/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --accent: #FD79A8;
    --accent-light: #FDCB6E;
    --dark: #2D3436;
    --gray-900: #1F2937;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-300: #D1D5DB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    --gradient-accent: linear-gradient(135deg, #FD79A8 0%, #FDCB6E 100%);
    --gradient-dark: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== 背景装饰 ===== */
.bg-decoration {
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.bg-decoration::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(80px);
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    animation: logoSpin 9s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .logo-icon svg { animation: none; }
}

.logo-text {
    background: linear-gradient(135deg, #6C5CE7 0%, #FD79A8 50%, #00B894 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航链接 */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    position: relative;
    border-radius: 999px;
    padding: 5px;
    /* 流动渐变做底层，厚度 = padding = 外层渐变露出的"边框" + 内层内边距 */
    background: linear-gradient(135deg, #6C5CE7, #FD79A8, #00B894, #6C5CE7);
    background-size: 300% 300%;
    animation: navBorderFlow 6s linear infinite;
    overflow: hidden;
}

/* 胶囊框：白内层（inset 2px = 渐变边框厚度），盖住中间渐变，只留边缘 2px 流动色 */
.nav-links::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
    pointer-events: none;
}

@keyframes navBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: color 0.25s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

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

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

/* 滑块：跟随 active 导航项平滑滑动 —— 位于白内层（z=0）之上、链接文字（z=2）之下 */
.nav-slider {
    position: absolute;
    left: 0;
    width: 0;
    background: rgba(108, 92, 231, 0.12);
    border-radius: 999px;
    transform: translateX(0);
    opacity: 0;
    transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.12s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.1s ease,
                height 0.1s ease,
                opacity 0.1s ease;
    z-index: 1;
    pointer-events: none;
    will-change: transform, width;
}

/* 搜索链接 */
.search-link {
    padding: 0 0.55rem;
    border-radius: 999px;
    width: auto;
    height: auto;
    justify-content: center;
    min-width: 2.4rem;
}

.search-icon {
    width: 18px;
    height: 18px;
}

/* CTA 按钮 */
.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Hero 区域 ===== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* 左侧内容 */
.hero-content {
    max-width: 560px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(253, 121, 168, 0.1);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* 按钮组 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.45);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 统计数据 */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    line-height: 1.2;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
}

/* 右侧作品展示 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 代表作品视频大卡片 */
.video-card {
    display: block;
    width: 100%;
    max-width: 620px;
    text-decoration: none;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    position: relative;
    background: #000;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(108, 92, 231, 0.35);
}

.video-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.video-card:hover .video-cover-img {
    transform: scale(1.08);
}

.video-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.25) 100%);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
    opacity: 1;
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 3px;
}

.video-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.video-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.video-card-title {
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: right;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em;
}

/* 浮动装饰卡片 */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    z-index: 3;
}

.floating-card-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 1.5s;
}

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

.fc-icon {
    font-size: 1.5rem;
}

.fc-content {
    display: flex;
    flex-direction: column;
}

.fc-value {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.fc-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ===== 通用区块 ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== 实用工具区域 ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-status.ready {
    background: rgba(81, 207, 102, 0.1);
    color: #51CF66;
}

.tool-status.beta {
    background: rgba(253, 203, 110, 0.1);
    color: #FDCB6E;
}

/* ===== 联系方式区域 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    font-family: inherit;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.contact-card:active {
    transform: translateY(-2px) scale(0.99);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* 官方 app 图标（微信/QQ）：白底彩色或品牌色底白色 logo */
.contact-app-logo {
    width: 40px;
    height: 40px;
    display: block;
}

.contact-icon.email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-icon.wechat {
    background: #07C160;
}

.contact-icon.qq {
    background: #1296DB;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    word-break: break-all;
}

.contact-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.contact-link:hover {
    color: var(--primary-light);
}

/* ===== 社交媒体区域 ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.social-card {
    font-family: inherit;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-card.bilibili:hover { border-color: #FB7299; }
.social-card.xhs:hover { border-color: #FF2442; }
.social-card.douyin:hover { border-color: #000000; }

.social-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.social-card.bilibili .social-icon { background: linear-gradient(135deg, #FB7299 0%, #00A1D6 100%); }
.social-card.xhs .social-icon { background: #FF2442; }
.social-card.douyin .social-icon { background: #000000; }

.social-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.social-app-logo {
    width: 36px;
    height: 36px;
    display: block;
}

.social-card span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.social-card small {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* ===== 我的经历 / 时间线 ===== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== 休闲娱乐区域 ===== */
.leisure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.leisure-card {
    font-family: inherit;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
}

.leisure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.leisure-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.leisure-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
}

.leisure-emoji {
    font-size: 4rem;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* 网易云歌单卡片：音乐背景图 + 网易云 APP 图标 */
.leisure-image-music {
    background: #1a1a2e;
}

.leisure-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.leisure-music-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
}

.leisure-app-icon {
    position: relative;
    z-index: 2;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #C20C0C;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leisure-app-icon img {
    width: 46px;
    height: 46px;
}

.leisure-card:hover .leisure-app-icon {
    transform: scale(1.1);
}

/* 照片墙卡片：自然背景图 + iOS 图库 APP 图标 */
.leisure-image-photos {
    background: #1a2e1a;
}

.leisure-app-icon.is-white {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.18);
}

/* ===== 密码生成器 ===== */
.tool-trigger {
    cursor: pointer;
}

.pw-generator {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pw-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    min-height: 58px;
}

.pw-output {
    flex: 1;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    word-break: break-all;
    letter-spacing: 0.05em;
}

.pw-copy-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pw-copy-btn:hover { background: var(--primary-light); }
.pw-copy-btn.copied { background: #27ae60; }
.pw-copy-btn svg { width: 18px; height: 18px; }

.pw-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pw-strength-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: right;
}

.pw-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pw-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.pw-length-val {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.pw-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--gray-100);
    outline: none;
}

.pw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.4);
    transition: transform 0.15s ease;
}

.pw-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.pw-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.pw-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pw-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.pw-option:hover { background: var(--gray-100); }

.pw-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.pw-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.pw-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.4);
}

.pw-generate-btn:active { transform: translateY(0); }
.pw-generate-btn svg { width: 18px; height: 18px; }

/* ===== 配色方案生成器（iframe） ===== */
.color-iframe {
    width: 100%;
    height: calc(85vh - 140px);
    min-height: 400px;
    border: none;
    border-radius: var(--radius-lg);
    background: #f5f6fa;
}

/* ===== 代码片段管理器 ===== */
.snippet-manager {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.snippet-add {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.snippet-input, .snippet-select, .snippet-textarea {
    font-family: inherit;
    font-size: 0.9rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    background: white;
    color: var(--gray-900);
    transition: border-color 0.2s ease;
}

.snippet-input:focus, .snippet-select:focus, .snippet-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.snippet-textarea {
    font-family: 'Courier New', 'Consolas', monospace;
    resize: vertical;
    min-height: 80px;
}

.snippet-add-btn {
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.snippet-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.snippet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.snippet-item {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.snippet-item:hover { border-color: var(--primary-light); }

.snippet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: var(--gray-100);
}

.snippet-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.snippet-lang {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
}

.snippet-code {
    margin: 0;
    padding: 0.75rem 0.85rem;
    background: #1e1e2e;
    color: #cdd6f4;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 200px;
}

.snippet-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: var(--gray-100);
}

.snippet-copy, .snippet-delete {
    padding: 0.35rem 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.snippet-copy { background: var(--primary); color: white; }
.snippet-copy:hover { background: var(--primary-light); }
.snippet-copy.copied { background: #27ae60; }

.snippet-delete { background: var(--gray-300); color: var(--gray-700); }
.snippet-delete:hover { background: #e74c3c; color: white; }

.snippet-empty {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem;
    font-size: 0.9rem;
}

/* ===== Markdown 编辑器 ===== */
.md-editor {
    display: flex;
    flex-direction: column;
}

.md-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.5rem;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-300);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.md-toolbar button {
    min-width: 32px;
    height: 32px;
    padding: 0 0.55rem;
    border: none;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-toolbar button:hover {
    background: var(--primary);
    color: white;
}

.md-toolbar-sep {
    width: 1px;
    background: var(--gray-300);
    margin: 0 0.15rem;
}

.md-clear-btn:hover { background: #e74c3c !important; color: white !important; }

.md-export-btn {
    color: var(--primary);
    border: 1px solid rgba(124, 108, 240, 0.3);
}
.md-export-btn:hover { background: var(--primary) !important; color: white !important; }

.md-panes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 400px;
    border: 1.5px solid var(--gray-300);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

@media (max-width: 600px) {
    .md-panes {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: 500px;
    }
}

.md-input {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gray-900);
    background: white;
}

.md-preview {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    background: var(--gray-100);
    border-left: 1.5px solid var(--gray-300);
}

@media (max-width: 600px) {
    .md-preview {
        border-left: none;
        border-top: 1.5px solid var(--gray-300);
    }
}

.md-preview h1, .md-preview h2, .md-preview h3 {
    margin: 0.8em 0 0.4em;
    color: var(--gray-900);
}
.md-preview h1 { font-size: 1.5rem; }
.md-preview h2 { font-size: 1.25rem; }
.md-preview h3 { font-size: 1.1rem; }

.md-preview p {
    margin: 0.5em 0;
    line-height: 1.7;
    color: var(--gray-700);
}

.md-preview ul, .md-preview ol {
    margin: 0.5em 0;
    padding-left: 1.5rem;
    color: var(--gray-700);
}

.md-preview li { margin: 0.25em 0; line-height: 1.6; }

.md-preview blockquote {
    margin: 0.6em 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--primary);
    background: rgba(124, 108, 240, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.md-preview blockquote p { margin: 0.25em 0; color: var(--gray-700); }

.md-preview pre {
    margin: 0.6em 0;
    padding: 0.75rem 1rem;
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.5;
}

.md-preview code { font-family: 'Courier New', 'Consolas', monospace; }

.md-preview p code, .md-preview li code {
    padding: 2px 6px;
    background: rgba(124, 108, 240, 0.12);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.85em;
}

.md-preview pre code { background: none; color: inherit; padding: 0; }

.md-preview a { color: var(--primary); text-decoration: none; }
.md-preview a:hover { text-decoration: underline; }

.md-preview hr { border: none; border-top: 2px solid var(--gray-300); margin: 1em 0; }
.md-preview strong { color: var(--gray-900); }
.md-preview .md-empty { color: var(--gray-400); text-align: center; padding: 2rem; }

/* ===== 作品集覆盖层 ===== */
.works-overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 246, 250, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

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

.works-overlay-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
}

.works-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.works-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.works-header {
    text-align: center;
    margin-bottom: 3rem;
}

.works-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(124, 108, 240, 0.1);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.works-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
}

.works-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.works-card {
    background: white;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.works-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.works-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
    border-color: var(--primary-light);
}

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

.works-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.works-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.works-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.works-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(124, 108, 240, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

/* ===== 作品合集：6 大类手风琴 ===== */
.works-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.works-cat {
    background: white;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.works-cat.open {
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.12);
}

.works-cat-header {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.works-cat-header:hover { background: var(--gray-100); }
.works-cat.open .works-cat-header { background: linear-gradient(90deg, rgba(124,108,240,0.06), rgba(253,121,168,0.04)); }

.works-cat-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 108, 240, 0.1);
    border-radius: 12px;
}

.works-cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
}

.works-cat-count {
    justify-self: end;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(124, 108, 240, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

.works-cat-arrow {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
    transition: transform 0.3s ease;
}
.works-cat.open .works-cat-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.works-cat-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 分类内部的小卡片网格：改为更紧凑的列数 */
.works-cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
    padding: 0 1.25rem 1.25rem;
}

/* 迷你工具卡片 */
.works-mini-card {
    background: white;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 1.1rem 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation-fill-mode: both;
}

.works-mini-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.works-mini-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 24px rgba(108, 92, 231, 0.13);
}

.works-mini-card:hover::before { transform: scaleX(1); }

.works-mini-icon {
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.works-mini-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
}

.works-mini-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* 待开发卡片的灰化视觉 */
.works-mini-card.works-coming {
    background: var(--gray-100);
    opacity: 0.88;
    cursor: help;
}
.works-mini-card.works-coming::before {
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
}
.works-mini-card.works-coming:hover {
    transform: translateY(-2px);
    border-color: var(--gray-400);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.works-coming-tag {
    align-self: flex-start;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gray-600);
    background: rgba(107, 114, 128, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px dashed rgba(107, 114, 128, 0.3);
}

/* 未开发卡片抖动动画 */
@keyframes works-shake {
    0%, 100% { transform: translateX(0) translateY(0); }
    20% { transform: translateX(-4px) translateY(-2px); }
    40% { transform: translateX(4px) translateY(-2px); }
    60% { transform: translateX(-3px) translateY(-1px); }
    80% { transform: translateX(3px) translateY(-1px); }
}

@media (max-width: 600px) {
    .works-cat-header { grid-template-columns: auto 1fr auto; padding: 0.9rem; gap: 0.7rem; }
    .works-cat-icon { width: 38px; height: 38px; font-size: 1.2rem; }
    .works-cat-count { justify-self: start; grid-column: 1 / -1; margin-top: -0.2rem; }
    .works-cat-arrow { grid-column: auto; margin-left: auto; }
    .works-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        padding: 0 0.85rem 0.85rem;
    }
    .works-mini-card { padding: 0.9rem 0.8rem; }
    .works-mini-card h4 { font-size: 0.85rem; }
    .works-mini-card p { font-size: 0.72rem; }
    .works-overlay-content { padding: 4rem 1rem 2rem; }
    .works-header h2 { font-size: 1.8rem; }
}

.leisure-card h3 {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.leisure-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== 二级菜单面板（遮罩下落 + 底部模糊） ===== */
.panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    pointer-events: none;
}

/* 遮罩：从顶部下落覆盖 */
.panel-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.45s ease, backdrop-filter 0.45s ease;
}

.panel-overlay.active {
    pointer-events: auto;
}

.panel-overlay.active::before {
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 面板主体：从顶部滑下 */
.panel-sheet {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    background: white;
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.panel-overlay.active .panel-sheet {
    transform: translate(-50%, 0);
}

/* 顶部拖拽指示条 */
.panel-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0.75rem auto 0;
    flex-shrink: 0;
}

/* 关闭按钮 */
.panel-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--gray-900);
    transform: rotate(90deg);
}

.panel-close svg {
    width: 18px;
    height: 18px;
}

/* 面板头部 */
.panel-header {
    padding: 1rem 1.5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.panel-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.panel-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* 面板内容区（可滚动） */
.panel-body {
    padding: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.panel-body::-webkit-scrollbar {
    width: 6px;
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

/* 账号列表项 */
.account-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-align: left;
}

.account-item:hover {
    background: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.account-item:last-child {
    margin-bottom: 0;
}

/* 头像（CSS 生成） */
.account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.account-avatar.grad-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.account-avatar.grad-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.account-avatar.grad-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.account-avatar.grad-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.account-avatar.grad-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* 图片头像：填满圆形，不显示首字母占位 span */
.account-avatar.avatar-image,
.detail-avatar.avatar-image {
    padding: 0;
    overflow: hidden;
}

.account-avatar.avatar-image img,
.detail-avatar.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.account-avatar.avatar-image span,
.detail-avatar.avatar-image span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    color: white;
    font-weight: 800;
    font-size: inherit;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-nickname {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sub {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.account-arrow {
    color: var(--gray-300);
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.account-item:hover .account-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.account-arrow svg {
    width: 20px;
    height: 20px;
}

/* 账号详情视图 */
.account-detail {
    animation: detailIn 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes detailIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-back:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

.detail-back svg {
    width: 16px;
    height: 16px;
}

.detail-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-2xl);
}

.detail-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 2.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.detail-nickname {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.detail-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.detail-id-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    max-width: 320px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-id {
    flex: 1;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    word-break: break-all;
}

.copy-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: none;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(108, 92, 231, 0.3);
}

.copy-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 14px rgba(108, 92, 231, 0.45);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #51CF66 0%, #40C057 100%);
}

/* 手机号列表 */
.phone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
}

.phone-item:last-child {
    margin-bottom: 0;
}

.phone-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.phone-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone-location {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.phone-number {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.phone-number.empty {
    color: var(--gray-300);
}

/* 哔哩哔哩账号跳转卡片 */
.social-account-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.social-account-item:hover {
    background: white;
    border-color: #FB7299;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.social-account-item:last-child {
    margin-bottom: 0;
}

.social-account-item .platform-tag {
    font-size: 0.75rem;
    color: #FB7299;
    font-weight: 600;
}

/* 即将上线提示 */
.coming-soon {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray-500);
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ===== 网易云歌单卡片（横长条，背景图铺满，悬停变暗显简介） ===== */
.music-card {
    position: relative;
    display: block;
    width: 100%;
    height: 132px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    /* 兜底渐变背景：图片未加载时也不空 */
    background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 50%, #FD79A8 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.music-card + .music-card {
    margin-top: 1rem;
}

.music-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.music-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.music-card:hover .music-card-img {
    transform: scale(1.06);
    filter: brightness(0.45);
}

.music-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.35) 100%);
    transition: background 0.3s ease;
}

.music-card:hover .music-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.music-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.music-card-top {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.music-card-index {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.85;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.music-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.music-card-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    opacity: 0;
    max-height: 0;
    transform: translateY(8px);
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.music-card:hover .music-card-desc {
    opacity: 1;
    transform: translateY(0);
    max-height: 4.6em;
}

.music-card-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.music-card:hover .music-card-arrow {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.music-card-arrow svg {
    width: 16px;
    height: 16px;
}

/* 图片加载失败兜底：靠卡片渐变背景 + overlay 呈现 */
.music-card.img-fallback .music-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.15) 100%);
}

/* 窄屏：无 hover，让简介默认可见，卡片高度自适应 */
@media (max-width: 640px) {
    .music-card {
        height: auto;
        min-height: 110px;
    }
    .music-card-desc {
        opacity: 1;
        max-height: 5em;
        transform: translateY(0);
    }
    .music-card-arrow {
        opacity: 1;
    }
}

/* ===== 复制成功提示 ===== */
.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #51CF66 0%, #40C057 100%);
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(81, 207, 102, 0.4);
    font-weight: 600;
    font-size: 0.9375rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-toast svg {
    width: 20px;
    height: 20px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    margin-bottom: 0;
}

.footer-brand .logo-text {
    color: white;
}

.footer-desc {
    color: var(--gray-300);
    max-width: 400px;
    margin: 0 auto 2rem;
}

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

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

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

/* ===== 联系方式加密状态 ===== */
.contact-locked {
    max-width: 480px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    text-align: center;
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.locked-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(253, 121, 168, 0.1) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.locked-icon svg {
    width: 36px;
    height: 36px;
}

.locked-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.locked-desc {
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.locked-status {
    display: block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #51CF66;
    font-weight: 600;
    min-height: 1.2em;
}

.contact-hidden {
    display: none;
}

/* ===== 认证弹窗遮罩层 ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* 认证弹窗主体 */
.auth-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* 关闭按钮 */
.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--gray-900);
    transform: rotate(90deg);
}

.auth-close svg {
    width: 18px;
    height: 18px;
}

/* 装饰背景 */
.auth-modal-bg {
    height: 120px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.auth-modal-bg::before,
.auth-modal-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.auth-modal-bg::before {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    top: -100px;
    right: -50px;
}

.auth-modal-bg::after {
    width: 150px;
    height: 150px;
    background: rgba(253, 121, 168, 0.3);
    bottom: -75px;
    left: -30px;
}

/* 弹窗内容 */
.auth-modal-content {
    padding: 0 2rem 2.5rem;
    text-align: center;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* 图标 */
.auth-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
    color: var(--primary);
}

.auth-icon svg {
    width: 40px;
    height: 40px;
}

/* 标题 */
.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

/* 表单 */
.auth-form {
    text-align: left;
}

/* 输入框组 */
.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    outline: none;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: var(--gray-500);
}

.auth-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.auth-input:focus + .auth-input-icon,
.auth-input-group:focus-within .auth-input-icon {
    color: var(--primary);
}

/* 输入框抖动错误动画 */
.auth-input.shake {
    animation: shake 0.4s ease;
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.05);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* 错误提示 */
.auth-error {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
}

.auth-error.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.auth-error svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.45);
}

.auth-submit:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-submit-loader {
    width: 18px;
    height: 18px;
    display: none;
    animation: spin 0.8s linear infinite;
}

.auth-submit.loading .auth-submit-text {
    opacity: 0.5;
}

.auth-submit.loading .auth-submit-loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示文字 */
.auth-hint {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ===== 认证成功 Toast 提示 ===== */
.auth-success-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #51CF66 0%, #40C057 100%);
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(81, 207, 102, 0.4);
    font-weight: 600;
    font-size: 0.9375rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-success-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.auth-success-toast svg {
    width: 22px;
    height: 22px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 时间线响应式 */
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 50px) !important;
        margin-left: 50px !important;
        margin-right: 0 !important;
    }

    .floating-card-1 {
        left: 0;
    }

    .floating-card-2 {
        right: 0;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container,
    .hero-container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .work-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ===== 移动端汉堡菜单 ===== */
.mobile-menu-btn {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                margin-top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease;
    margin-left: -11px;
    pointer-events: none;
}

.mobile-menu-btn span:nth-child(1) {
    margin-top: -7px;
}

.mobile-menu-btn span:nth-child(2) {
    margin-top: 0;
}

.mobile-menu-btn span:nth-child(3) {
    margin-top: 7px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    margin-top: 0;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    margin-top: 0;
}

/* 移动端底部菜单遮罩 */
.mobile-menu-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    backdrop-filter: blur(2px);
}

.mobile-menu-mask.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* 移动端底部菜单面板 */
.mobile-menu-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 1000;
    border-radius: 24px 24px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    max-height: 78vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel.active {
    transform: translateY(0);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 12px;
    text-decoration: none;
    color: var(--gray-900);
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease;
    letter-spacing: 0.02em;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item:active {
    background: rgba(108, 92, 231, 0.06);
}

.mobile-menu-item svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-right: 4px;
}

/* 响应式断点：隐藏导航胶囊、显示汉堡按钮 */
@media (max-width: 768px) {
    .nav-container {
        height: 64px !important;
        flex-wrap: nowrap !important;
        padding: 0 1rem !important;
        gap: 0.75rem !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px !important;
        padding: 0 1rem !important;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .logo-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .mobile-menu-item {
        padding: 16px 10px;
        font-size: 1.05rem;
    }
}