/* ===== 基础变量 ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --light: #f8fafc;
    --gray: #94a3b8;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px -10px var(--primary);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== 重置与基础 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0f1a;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== 雪山壁纸背景层 ===== */
#mountain-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#mountain-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}

#mountain-bg-image.loaded {
    opacity: 1;
}

/* 遮罩层：确保文字可读性，同时保留壁纸美感 */
#mountain-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, 
            rgba(10, 15, 26, 0.45) 0%, 
            rgba(10, 15, 26, 0.35) 30%, 
            rgba(10, 15, 26, 0.55) 70%, 
            rgba(10, 15, 26, 0.75) 100%
        );
}

/* ===== 粒子背景 ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.nav-tool {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-tool::after {
    background: var(--gradient-1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

/* ===== 英雄区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-badge:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.3);
}

/* 公众号二维码浮层 */
.badge-qrcode {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--dark-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px -10px var(--primary);
    pointer-events: none;
}

.badge-qrcode::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--dark-light);
    border-right: 1px solid rgba(99, 102, 241, 0.25);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-qrcode img {
    width: 240px;
    height: 240px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    background: var(--white);
    padding: 6px;
    image-rendering: -webkit-optimize-contrast;
}

.badge-qrcode p {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
}

/* hover 和 active 状态显示二维码 */
.hero-badge:hover .badge-qrcode,
.hero-badge.active .badge-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 2.5rem;
    min-height: 2rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 15px -5px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.6);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--dark-lighter);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-accent {
    background: var(--gradient-2);
    color: var(--white);
    box-shadow: 0 4px 15px -5px rgba(245, 158, 11, 0.5);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(245, 158, 11, 0.6);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

/* 统计数据 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* 滚动提示 */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--gray);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0; transform: translateY(8px); }
}

/* ===== 通用区域样式 ===== */
section {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ===== 关于我 ===== */
.about {
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.3) 0%, rgba(15, 23, 42, 0.35) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
}

.frame-decoration {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 30px;
    z-index: 1;
    animation: frameFloat 3s ease-in-out infinite;
}

@keyframes frameFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

.about-intro {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-card {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===== 技能区域 ===== */
.skills {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 0.05;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.skill-icon svg {
    width: 30px;
    height: 30px;
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.skill-progress {
    height: 6px;
    background: var(--dark-lighter);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* ===== 内容展示 ===== */
.content {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.content-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.content-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.content-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.card-image {
    height: 200px;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.content-card.featured .card-image {
    height: auto;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.card-body {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.content-card p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===== 联系区域 ===== */
.contact {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(10, 15, 26, 0.35) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-detail h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-detail p {
    color: var(--gray);
}

.contact-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.qrcode-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
}

.qrcode-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--light);
}

.qrcode-subtext {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===== 页脚 ===== */
.footer {
    background: rgba(10, 15, 26, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--gray);
}

.footer-icp {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray);
    opacity: 0.7;
}

/* ===== 滚动显示动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-stats {
        gap: 2rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .image-frame {
        width: 200px;
        height: 200px;
    }
}

/* ===== 下载按钮 ===== */
.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 15px -5px rgba(16, 185, 129, 0.5);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.6);
}

.nav-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-download::after {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ===== 网易云音乐专属样式 ===== */
.btn-netease {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    color: var(--white);
    box-shadow: 0 4px 15px -5px rgba(198, 40, 40, 0.5);
    gap: 0.5rem;
}

.btn-netease:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(198, 40, 40, 0.6);
}

.netease-icon {
    font-size: 1.1rem;
}

.nav-netease {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-netease::after {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
}

/* 网易云统计数据高亮 */
.stat-netease .stat-number {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-netease .stat-suffix {
    color: #e53935;
}

/* 联系区网易云卡片 */
.contact-netease {
    position: relative;
    border-color: rgba(198, 40, 40, 0.15);
}

.contact-netease:hover {
    border-color: rgba(198, 40, 40, 0.5);
    box-shadow: 0 0 30px -10px rgba(198, 40, 40, 0.3);
}

.contact-netease .contact-icon {
    filter: drop-shadow(0 0 8px rgba(198, 40, 40, 0.4));
}

.contact-link {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid rgba(198, 40, 40, 0.2);
    border-radius: 12px;
    color: #e53935;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.contact-link svg {
    width: 18px;
    height: 18px;
}

.contact-link:hover {
    background: rgba(198, 40, 40, 0.2);
    border-color: rgba(198, 40, 40, 0.4);
    transform: translateY(-50%) translateX(3px);
    box-shadow: 0 0 15px -5px rgba(198, 40, 40, 0.3);
}

/* ===== 网易云电台板块 ===== */
.radio {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(198, 40, 40, 0.08) 50%, rgba(15, 23, 42, 0.3) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

/* 板块顶部红色标签 */
.section-tag-netease {
    background: rgba(198, 40, 40, 0.12);
    border-color: rgba(198, 40, 40, 0.3);
    color: #ff6b6b;
}

/* 电台介绍卡片 */
.radio-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid rgba(198, 40, 40, 0.2);
    box-shadow: 0 20px 60px -20px rgba(198, 40, 40, 0.25);
}

.radio-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(229, 57, 53, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(198, 40, 40, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 10, 10, 0.85) 100%);
    z-index: 0;
}

.radio-hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* 电台图标 + 音波动画 */
.radio-hero-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 40px -10px rgba(229, 57, 53, 0.6);
    flex-shrink: 0;
}

.radio-wave {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
}

.radio-wave span {
    display: block;
    width: 3px;
    height: 100%;
    background: #e53935;
    border-radius: 2px;
    animation: radioWave 1.2s ease-in-out infinite;
    transform-origin: center;
}

.radio-wave span:nth-child(1) { animation-delay: 0s; height: 40%; }
.radio-wave span:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.radio-wave span:nth-child(3) { animation-delay: 0.3s; height: 100%; }
.radio-wave span:nth-child(4) { animation-delay: 0.45s; height: 60%; }
.radio-wave span:nth-child(5) { animation-delay: 0.6s; height: 35%; }

@keyframes radioWave {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.radio-hero-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #ff8a80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.radio-hero-text p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 1rem;
}

.btn-radio-enter {
    white-space: nowrap;
}

/* 电台数据统计卡片 */
.radio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.radio-stat-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(198, 40, 40, 0.15);
    text-align: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.radio-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c62828, #e53935, #ff6b6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.radio-stat-card:hover::before {
    transform: scaleX(1);
}

.radio-stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(198, 40, 40, 0.4);
    box-shadow: 0 20px 40px -15px rgba(198, 40, 40, 0.3);
}

.radio-stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 12px rgba(229, 57, 53, 0.4));
}

.radio-stat-value {
    margin-bottom: 0.5rem;
}

.radio-stat-value .stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b 0%, #e53935 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.radio-stat-label {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.radio-stat-bar {
    height: 4px;
    background: rgba(198, 40, 40, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.radio-stat-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #c62828, #e53935);
    border-radius: 2px;
    width: 0;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.radio-stat-card.animated .radio-stat-bar span {
    width: 100%;
}

/* 主播信息条 */
.radio-host {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.radio-host:hover {
    border-color: rgba(198, 40, 40, 0.3);
    box-shadow: 0 10px 30px -10px rgba(198, 40, 40, 0.2);
}

.radio-host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c62828, #e53935);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px -5px rgba(229, 57, 53, 0.5);
}

.radio-host-info {
    flex: 1;
}

.radio-host-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.25rem;
}

.radio-host-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.radio-host-fans {
    color: #ff6b6b;
    font-weight: 600;
}

.radio-host-divider {
    opacity: 0.5;
}

.radio-host-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid rgba(198, 40, 40, 0.25);
    border-radius: 50px;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.radio-host-link svg {
    width: 16px;
    height: 16px;
}

.radio-host-link:hover {
    background: rgba(198, 40, 40, 0.2);
    border-color: rgba(198, 40, 40, 0.5);
    transform: translateX(4px);
    box-shadow: 0 0 15px -5px rgba(229, 57, 53, 0.4);
}

/* 电台板块响应式 */
@media (max-width: 768px) {
    .radio-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .radio-hero-icon {
        margin: 0 auto;
    }

    .radio-stats {
        grid-template-columns: 1fr;
    }

    .radio-host {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ===== 下载弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px -20px var(--primary);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card::-webkit-scrollbar {
    width: 6px;
}

.modal-card::-webkit-scrollbar-thumb {
    background: var(--dark-lighter);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 30px -10px #10b981;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #10b981 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-version {
    font-size: 0.85rem;
    color: var(--gray);
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: all var(--transition-fast);
}

.feature-item:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--gray);
}

.modal-system {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.system-label {
    color: var(--primary-light);
    font-weight: 600;
}

.system-value {
    color: var(--gray);
}

.btn-modal-download {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.modal-tip {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
}

/* 弹窗响应式 */
@media (max-width: 480px) {
    .modal-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .modal-header {
        gap: 1rem;
    }

    .modal-icon {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    .modal-title {
        font-size: 1.35rem;
    }
}

/* ===== Anime.js 动画配套样式 ===== */

/* 初始隐藏：仅当 JS 主动添加 .pre-animate 类时启用，避免动画失败导致内容永久不可见 */
.pre-animate {
    opacity: 0;
    will-change: transform, opacity;
}

/* 字符单元（标题逐字动画） */
.char {
    display: inline-block;
    will-change: transform, opacity;
    white-space: pre;
}

/* 按钮涟漪元素 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
    will-change: transform, opacity;
}

/* SVG 描边动画准备：技能图标 path */
.skill-icon svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 3D 倾斜卡片准备 */
.skill-card,
.content-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

/* 滚动揭示初始状态（由 anime.js 接管的元素） */
.reveal-anime {
    opacity: 0;
    will-change: transform, opacity;
}

/* ===== 降级：尊重用户减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    .pre-animate,
    .char,
    .reveal-anime,
    .hero-title-line {
        opacity: 1 !important;
        transform: none !important;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
