/* ===== Aboutme 页面专用样式 ===== */

/* ===== 联系人仪表盘 ===== */
.contact-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px 0;
}

/* ===== 透明容器 ===== */
.contact-wrapper {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    justify-content: center;
}

/* --- 左侧导航：大圆 + 小圆 --- */
.contact-nav {
    position: relative;
    flex-shrink: 0;
    width: 400px;
    height: 400px;
}

/* ===== 黑胶唱片大圆 ===== */
.nav-circle-big {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    
    /* 盘面：明显对角光晕 + 浅灰色凹痕 + 深色底 */
    background: 
        /* 1. 左上-右下对角柔和光泽（更亮） */
        radial-gradient(ellipse at 20% 18%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 30%, transparent 55%),
        radial-gradient(ellipse at 78% 82%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 25%, transparent 45%),
        /* 2. 唱片凹痕（浅灰色细环，与黑色盘面对比强烈） */
        repeating-radial-gradient(
            circle at center,
            transparent 0px,
            transparent 5px,
            rgba(180, 180, 180, 0.06) 5px,
            rgba(180, 180, 180, 0.06) 6px
        ),
        /* 3. 盘面底色（极深黑色渐变） */
        radial-gradient(
            circle at 40% 35%,
            #2a2a2a 0%,
            #111111 45%,
            #0a0a0a 70%,
            #050505 100%
        );
    
    border: 2px solid rgba(255, 255, 255, 0.04);
}

/* ===== 唱片中心标签 ===== */
.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 45% 40%,
        #f5e8d0 0%,
        #e0c8a8 60%,
        #d4b890 100%
    );
    box-shadow: 
        inset 0 -4px 12px rgba(0, 0, 0, 0.20),
        0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 2;
}

/* 标签内头像（使用 head.jpg） */
.vinyl-label img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* --- 三个小圆（轨道运动） --- */
.nav-circle-list {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nav-circle-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.80);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    will-change: transform;
    animation: orbit 20s linear infinite;
}

/* 每个小圆不同的起始角度 */
.nav-circle-item:nth-child(1) { animation-name: orbit-30; }   /* GitHub · 30° */
.nav-circle-item:nth-child(2) { animation-name: orbit-90; }   /* CF · 90° */
.nav-circle-item:nth-child(3) { animation-name: orbit-150; }  /* 邮箱 · 150° */

/* 轨道半径 = 大圆半径 160px (320/2) */
@keyframes orbit-30 {
    from { transform: rotate(30deg) translateX(160px) rotate(-30deg); }
    to   { transform: rotate(390deg) translateX(160px) rotate(-390deg); }
}
@keyframes orbit-90 {
    from { transform: rotate(90deg) translateX(160px) rotate(-90deg); }
    to   { transform: rotate(450deg) translateX(160px) rotate(-450deg); }
}
@keyframes orbit-150 {
    from { transform: rotate(150deg) translateX(160px) rotate(-150deg); }
    to   { transform: rotate(510deg) translateX(160px) rotate(-510deg); }
}

/* 悬浮时暂停动画，方便点击 */
.nav-circle-item:hover {
    animation-play-state: paused;
}

/* 激活状态 */
.nav-circle-item.active {
    border-color: #d4a373;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(212, 163, 115, 0.30);
}

/* 小圆内的图标 */
.nav-circle-item i,
.nav-circle-item img {
    transition: transform 0.2s ease;
}
.nav-circle-item:hover i,
.nav-circle-item:hover img {
    transform: scale(1.05);
}

/* --- 右侧内容面板 --- */
.contact-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 200px;
}

.contact-panel {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 8px 0;
    animation: fadeSlide 0.3s ease;
}

.contact-panel.active {
    display: flex;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.8;
}

.panel-body div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.panel-label {
    color: #64748b;
    width: 56px;
    flex-shrink: 0;
}

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 12px;
    }
    .contact-nav {
        width: 240px;
        height: 240px;
    }
    .nav-circle-big {
        width: 180px;
        height: 180px;
    }
    .vinyl-label {
        width: 70px;
        height: 70px;
    }
    .vinyl-label img {
        width: 44px;
        height: 44px;
    }
    .nav-circle-item {
        width: 40px;
        height: 40px;
        margin-left: -20px;
        margin-top: -20px;
    }
    @keyframes orbit-30 {
        from { transform: rotate(30deg) translateX(90px) rotate(-30deg); }
        to   { transform: rotate(390deg) translateX(90px) rotate(-390deg); }
    }
    @keyframes orbit-90 {
        from { transform: rotate(90deg) translateX(90px) rotate(-90deg); }
        to   { transform: rotate(450deg) translateX(90px) rotate(-450deg); }
    }
    @keyframes orbit-150 {
        from { transform: rotate(150deg) translateX(90px) rotate(-150deg); }
        to   { transform: rotate(510deg) translateX(90px) rotate(-510deg); }
    }
    .contact-content {
        width: 100%;
        min-height: auto;
    }
    .panel-header {
        font-size: 14px;
    }
    .panel-body {
        font-size: 14px;
    }
    .panel-label {
        width: 48px;
    }
}