:root {
    --text-primary: #1a1d29;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-accent: #2d3748;
    --text-color: #1a1d29;
    --accent-color: #0288d1;
    --accent-secondary: #00acc1;
    --bg-color: rgba(255, 255, 255, 0.85);
    --bg-secondary: rgba(248, 249, 250, 0.9);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-inner-border: rgba(255, 255, 255, 0.4);
    --bg-gradient: linear-gradient(180deg, #5e9fbf29 0%, rgb(255 255 255) 100%);
}

/* 翡翠绿配色 */
[data-color-theme="emerald"] {
    --text-primary: #065f46;
    --text-secondary: #047857;
    --text-muted: #6b7280;
    --accent-color: #10b981;
    --accent-secondary: #059669;
    --bg-gradient: linear-gradient(180deg, #a7f3d029 0%, rgb(255 255 255) 100%);
}

/* 魅力紫配色 */
[data-color-theme="purple"] {
    --text-primary: #581c87;
    --text-secondary: #7c3aed;
    --text-muted: #6b7280;
    --accent-color: #a855f7;
    --accent-secondary: #8b5cf6;
    --bg-gradient: linear-gradient(180deg, #ddd6fe29 0%, rgb(255 255 255) 100%);
}

/* 玫瑰红配色 */
[data-color-theme="rose"] {
    --text-primary: #881337;
    --text-secondary: #be185d;
    --text-muted: #6b7280;
    --accent-color: #f43f5e;
    --accent-secondary: #e11d48;
    --bg-gradient: linear-gradient(180deg, #fecdd329 0%, rgb(255 255 255) 100%);
}

/* 琥珀金配色 */
[data-color-theme="amber"] {
    --text-primary: #92400e;
    --text-secondary: #b45309;
    --text-muted: #6b7280;
    --accent-color: #eab308;
    --accent-secondary: #ca8a04;
    --bg-gradient: linear-gradient(180deg, #fef3c729 0%, rgb(255 255 255) 100%);
}

[data-theme="dark"] {
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --text-accent: #cbd5e0;
    --text-color: #f7fafc;
    --bg-color: rgba(42, 42, 42, 0.75);
    --bg-secondary: rgba(30, 30, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-inner-border: rgba(255, 255, 255, 0.2);
    --bg-gradient: linear-gradient(180deg, #2c3e50 0%, #1a1a1a 100%);
}

/* 黑夜模式下的配色适配 */
[data-theme="dark"][data-color-theme="emerald"] {
    --bg-gradient: linear-gradient(180deg, #064e3b 0%, #1a1a1a 100%);
}

[data-theme="dark"][data-color-theme="purple"] {
    --bg-gradient: linear-gradient(180deg, #4c1d95 0%, #1a1a1a 100%);
}

[data-theme="dark"][data-color-theme="rose"] {
    --bg-gradient: linear-gradient(180deg, #7f1d1d 0%, #1a1a1a 100%);
}

[data-theme="dark"][data-color-theme="amber"] {
    --bg-gradient: linear-gradient(180deg, #713f12 0%, #1a1a1a 100%);
}

body {
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    transition: all 0.3s ease;
}

.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: var(--bg-color);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: var(--bg-secondary);
}

.card {
    background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 var(--glass-inner-border);
    text-align: left;
    max-width: 450px;
    margin: 20px;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    animation: fadeIn 0.6s ease-in-out;
    z-index: 1;
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--glass-border);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.3) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--reflection-x, 50%) var(--reflection-y, 50%), 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 10%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 80%);
    border-radius: 20px;
    opacity: var(--reflection-opacity, 0);
    pointer-events: none;
    transition: opacity 0.15s ease;
    mix-blend-mode: overlay;
    z-index: 2;
}

[data-theme="dark"] .card::before {
    background: radial-gradient(circle at var(--reflection-x, 50%) var(--reflection-y, 50%), 
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 10%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 80%);
}

/* 黑夜模式适配 */
[data-theme="dark"] .basic-info {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .info-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
}

[data-theme="dark"] .social-links {
    border-top-color: rgba(255, 255, 255, 0.04);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        margin: 15px;
        padding: 20px 18px;
        max-width: 400px;
    }
    
    .basic-info {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .basic-info h1 {
        font-size: 22px;
        margin: 0 0 5px 0;
    }
    
    .basic-info .title {
        font-size: 14px;
        margin-bottom: 1px;
    }
    
    .basic-info .subtitle {
        font-size: 13px;
    }
    
    .contact-info {
        margin: 12px 0;
    }
    
    .info-item {
        padding: 7px 10px;
        margin-bottom: 6px;
    }
    
    .info-icon {
        margin-right: 8px;
        font-size: 13px;
        width: 16px;
        height: 16px;
    }
    
    .info-value {
        font-size: 12px;
    }
    
    .info-label {
        font-size: 10px;
    }
    
    .social-links {
        margin-top: 12px;
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }
    
    .social-link {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .social-link i {
        font-size: 13px;
    }
    
    .color-palette {
        right: 10px;
        min-width: 180px;
    }
    
    .language-palette {
        right: 200px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .card {
        margin: 10px;
        padding: 18px 16px;
    }
    
    .contact-info {
        margin: 10px 0;
    }
    
    .info-item {
        margin-bottom: 5px;
        padding: 6px 8px;
    }
    
    .info-value {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .social-links {
        gap: 5px;
    }
    
    .social-link {
        padding: 7px 12px;
        font-size: 11px;
    }
    
    .color-palette {
        right: 5px;
        min-width: 160px;
        top: 70px;
    }
    
    .language-palette {
        right: 175px;
        min-width: 140px;
        top: 70px;
    }
}

/* 移除静态的hover效果，让JavaScript动态控制 */

.avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid var(--accent-color);
    transition: transform 0.3s;
}

.avatar img:hover {
    transform: scale(1.12);
}

/* 基本信息区域 */
.basic-info {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.basic-info h1 {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.basic-info .title {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.basic-info .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1.4;
}

/* 联系信息区域 */
.contact-info {
    margin: 14px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateX(3px);
}

.info-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.3;
    word-break: break-all;
}

/* 社交链接区域 */
.social-links {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px color-mix(in srgb, var(--accent-color) 30%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    letter-spacing: -0.005em;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 6px 20px color-mix(in srgb, var(--accent-color) 40%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.social-link:active {
    transform: translateY(0px) scale(1.01);
    box-shadow: 
        0 3px 10px color-mix(in srgb, var(--accent-color) 50%, transparent),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.social-link i {
    font-size: 14px;
}

/* 调色盘面板样式 */
.color-palette {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--bg-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 var(--glass-inner-border);
    padding: 16px;
    min-width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-palette.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.palette-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.palette-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.color-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.color-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.color-option.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.color-preview {
    display: flex;
    gap: 3px;
}

.color-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-option span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

/* 语言选择面板样式 */
.language-palette {
    position: fixed;
    top: 80px;
    right: 20px; /* 与语言按钮对齐 */
    background: var(--bg-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 var(--glass-inner-border);
    padding: 16px;
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-palette.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateX(2px);
}

.language-option.active {
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    border-color: var(--accent-color);
}

.language-flag {
    font-size: 20px;
    line-height: 1;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        backdrop-filter: blur(20px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.footer {
    position: absolute;
    bottom: 15px;
    text-align: center;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
}
