/* ============================================================
   小神空间 XIAOSHEN SPACE — 共享样式
   视觉体系基于 DIGITAL PERSONA 参考模板（浅色 · 紫蓝粉渐变 · 玻璃拟态）
   ============================================================ */

:root {
    --bg-primary: #f5f4f1;
    --bg-secondary: #eeece8;
    --bg-card: rgba(255, 255, 255, 0.75);
    --text-primary: #2b2733;
    --text-secondary: #595361;
    --text-muted: #8c8695;
    --accent-purple: #7c3aed;
    --accent-blue: #2563eb;
    --accent-pink: #db2777;
    --accent-cyan: #0891b2;
    --accent-gold: #d97706;
    --gradient-main: linear-gradient(135deg, #7c3aed, #2563eb, #db2777);
    --gradient-secondary: linear-gradient(135deg, #0891b2, #7c3aed);
    --gradient-text: linear-gradient(120deg, #6d28d9, #1d4ed8, #be185d);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(124, 58, 237, 0.2);
    --glow-purple: rgba(124, 58, 237, 0.3);
    --glow-blue: rgba(37, 99, 235, 0.25);
    --glow-pink: rgba(219, 39, 119, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(124, 58, 237, 0.4); color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

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

/* ===== 自定义光标 ===== */
#custom-cursor {
    position: fixed;
    width: 30px; height: 30px;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--glow-purple);
}
#custom-cursor-dot {
    position: fixed;
    width: 6px; height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 15px var(--accent-purple);
}
#custom-cursor.hovering {
    width: 50px; height: 50px;
    border-color: var(--accent-pink);
    background: rgba(219, 39, 119, 0.08);
}
#custom-cursor-dot.hovering {
    width: 10px; height: 10px;
    background: var(--accent-pink);
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-medium);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(245, 244, 241, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    padding: 12px 48px;
}
.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.nav-logo:hover { color: var(--accent-purple); }
.nav-logo .logo-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gradient-main);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 10px var(--glow-purple); transform: scale(1); }
    50% { box-shadow: 0 0 25px var(--glow-purple), 0 0 50px var(--glow-blue); transform: scale(1.3); }
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: var(--transition-fast);
    position: relative;
    cursor: pointer;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-main);
    transition: var(--transition-fast);
    border-radius: 2px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-purple); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: var(--transition-medium);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.nav-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gradient-main);
    transition: var(--transition-medium);
    z-index: -1;
    opacity: 0.9;
    border-radius: 50px;
}
.nav-cta:hover::before { left: 0; }
.nav-cta:hover {
    border-color: transparent;
    box-shadow: 0 0 30px var(--glow-purple);
    transform: translateY(-2px);
    color: #fff;
}

/* ===== 移动菜单 ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}
.menu-toggle span {
    width: 28px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-medium);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 120px 48px 80px;
    text-align: center;
    overflow: hidden;
}
.hero-title {
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(120deg, #6d28d9, #1d4ed8, #be185d, #6d28d9);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.15));
    /* 入场淡入 + 渐变色彩流动（无缝循环） */
    animation: fadeInUp 1s ease-out 0.15s both, hero-gradient-flow 4s linear infinite;
}
@keyframes hero-gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
/* 中文标题下方的英文翻译 */
.hero-title-en {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.6vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.5em;
    text-indent: 0.5em; /* 抵消末字符字距，保证视觉居中 */
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 36px;
    animation: fadeInUp 1s ease-out 0.25s both;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 740px; /* 保证第二行完整不折行 */
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    flex-direction: column; /* 卡片纵向排列 */
    align-items: center;
    gap: 24px; /* 两张卡片的上下间隔 */
    margin-bottom: 48px;
    animation: fadeInUp 1s ease-out 0.45s both;
}
.btn-primary {
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    background: var(--gradient-main);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition-medium);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    display: inline-block;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: var(--transition-slow);
}
.btn-primary:hover::after { left: 50%; top: 50%; }

/* ===== 返回首页按钮 ===== */
.back-home-wrap {
    text-align: center;
    padding: 0 48px 80px;
}
.back-home-btn {
    font-size: 1.05rem;
}
/* 房子图标黑白化：去色并提亮，融入按钮白色文字 */
.back-home-btn .home-icon {
    filter: grayscale(1) brightness(1.8);
}
/* 关于我页面：内容区整体水平垂直居中，页脚贴底 */
body.about-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* 装饰圆环右移后防止出现横向滚动条 */
}
body.about-page .footer {
    margin-top: auto;
}
body.about-page .about-main {
    flex: 1; /* 占据导航栏与页脚之间的全部空间 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 内容垂直居中 */
    padding-top: 90px; /* 为固定导航栏留出空间 */
}
body.about-page .about-section {
    padding: 20px 48px; /* 收窄上下留白，让内容组整体居中 */
}
body.about-page .back-home-wrap {
    padding: 36px 48px 0;
}
.btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition-medium);
    text-decoration: none;
    backdrop-filter: blur(10px);
    display: inline-block;
}
.btn-secondary:hover {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.08);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    animation: bounce-down 2s infinite;
    cursor: default;
}
.hero-scroll-indicator .mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease;
}
.hero-scroll-indicator:hover .mouse {
    transform: scale(1.18);
}
.hero-scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 8px;
    background: var(--accent-purple);
    border-radius: 3px;
    animation: scroll-wheel 2s infinite;
}
@keyframes scroll-wheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}
@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 统计区 ===== */
.stats-section {
    position: relative;
    z-index: 1;
    padding: 60px 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    justify-content: center; /* 卡片数量少时保持居中 */
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: var(--transition-medium);
    cursor: default;
    position: relative;
    overflow: hidden;
}
/* 统计区改造后的快速导航卡片：蓝粉渐变文字 + 点击跳转 */
/* 长方形按钮样式：高度贴合文字，宽度形成长条外观 */
.nav-card {
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    padding: 8px 48px; /* 左右留白确保文字与边框有清晰间距 */
    width: min(760px, 100%); /* 适当拉长矩形宽度 */
    margin: 0 auto; /* 容器内居中，间距由 hero-actions 的 gap 控制 */
}
.nav-card .nav-card-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: linear-gradient(120deg, #1d4ed8, #be185d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-fast);
}
.nav-card:hover {
    transform: translateY(-6px);
    border-color: rgba(29, 78, 216, 0.4);
    box-shadow: 0 16px 40px rgba(29, 78, 216, 0.15), 0 8px 24px rgba(190, 24, 93, 0.12);
}
.nav-card:hover .nav-card-text {
    filter: drop-shadow(0 0 12px rgba(190, 24, 93, 0.35));
}

/* ===== 点赞按钮：渐变拇指 + 彩点迸发动画（参考图效果） ===== */
.like-card {
    gap: 16px;
    font: inherit; /* button 元素默认不继承字体，保持与相邻卡片文字一致 */
    color: inherit;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.like-card:active {
    transform: translateY(-2px) scale(0.97); /* 点击按压反馈 */
}
.like-stage {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.like-thumb {
    width: 27px;
    height: 27px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}
.like-card:hover .like-thumb {
    transform: scale(1.2) rotate(-6deg);
    filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.5));
}
/* 彩点：默认隐藏，悬停浮现环绕，点击向外迸发 */
.cf {
    position: absolute;
    left: 50%; top: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.cf.dash { width: 11px; height: 4.5px; border-radius: 999px; }
.cf-1  { background: #f97316; --dx: -30px; --dy: -24px; }
.cf-2  { background: #ec4899; --dx: 26px;  --dy: -30px; }
.cf-3  { background: #60a5fa; --dx: 34px;  --dy: -6px;  }
.cf-4  { background: #a78bfa; --dx: 30px;  --dy: 22px;  }
.cf-5  { background: #f43f5e; --dx: 16px;  --dy: 34px;  }
.cf-6  { background: #fbbf24; --dx: -8px;  --dy: 36px;  }
.cf-7  { background: #6366f1; --dx: -28px; --dy: 26px;  }
.cf-8  { background: #38bdf8; --dx: -36px; --dy: 2px;   }
.cf-9  { background: #fb923c; --dx: -18px; --dy: -34px; }
.cf-10 { background: #ec4899; --dx: 6px;   --dy: -38px; }
.like-card:hover .cf {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1);
}
.like-card.burst .cf {
    animation: cf-burst 0.45s cubic-bezier(0.17, 0.67, 0.4, 1) both;
}
@keyframes cf-burst {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.5) rotate(0deg); }
    55%  { opacity: 1; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 2.1), calc(-50% + var(--dy) * 2.1)) scale(1.05) rotate(90deg); }
}
.like-card.burst .like-thumb {
    animation: thumb-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes thumb-pop {
    0%   { transform: scale(0.7); }
    55%  { transform: scale(1.28) rotate(-8deg); filter: drop-shadow(0 0 14px rgba(236, 72, 153, 0.6)); }
    100% { transform: scale(1.2) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
    .like-card .cf, .like-card.burst .cf, .like-card.burst .like-thumb { animation: none; }
}
/* ===== 点赞按钮结束 ===== */

/* ===== 点赞弹窗：玻璃拟态 LOGIN 卡片（参考图效果） ===== */
.lm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 32, 56, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.lm-overlay[hidden] { display: none; }
.lm-overlay.open { opacity: 1; }

.lm-card {
    position: relative;
    width: min(400px, 100%);
    padding: 52px 44px 64px;
    border-radius: 24px;
    background: #f5f5f5; /* 灰白色背景，与网页背景自然过渡 */
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 70px rgba(30, 30, 30, 0.18);
    transform: scale(0.85) translateY(24px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease;
}
.lm-card.open {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 外部蓝色边框：顺时针循环流动（GPU transform 旋转，性能友好） */
.lm-border {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    padding: 4px;
    /* 仅显示外圈 4px 环形带：content-box 与全区域做差集 */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.lm-border::before {
    content: '';
    position: absolute;
    inset: -150%; /* 放大至任意旋转角度都能覆盖环形带 */
    background: conic-gradient(
        from 0deg,
        transparent 0deg 285deg,
        #45d6f5 318deg,
        #2f8ef7 342deg,
        rgba(47, 142, 247, 0) 360deg
    );
    animation: lm-border-spin 3.6s linear infinite;
    will-change: transform;
}
@keyframes lm-border-spin {
    to { transform: rotate(360deg); }
}

/* 左下角青色发光 L 形线条已按用户要求移除 */

.lm-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.lm-close:hover { background: rgba(0, 0, 0, 0.12); transform: rotate(90deg); }
.lm-close:active { transform: scale(0.9); }

.lm-title {
    margin: 0 0 36px;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 600;
    font-family: "Times New Roman", Times, serif;
    letter-spacing: 0.32em;
    text-indent: 0.32em; /* 抵消末字符字距，保持视觉居中 */
    color: #6d6f9c;
}
.lm-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -22px 0 24px;
    color: #d4546d;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
}
.lm-slogan::before,
.lm-slogan::after {
    content: '';
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 84, 109, 0.8));
}
.lm-slogan::after {
    background: linear-gradient(90deg, rgba(212, 84, 109, 0.8), transparent);
}

.lm-form { display: flex; flex-direction: column; }
.lm-input {
    width: 100%;
    height: 50px;
    margin-bottom: 18px;
    padding: 0 18px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    color: #333;
    font-size: 0.98rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lm-input::placeholder { color: #999; letter-spacing: 0.05em; }
.lm-input:focus {
    border-color: #2f8ef7;
    box-shadow: 0 0 0 3px rgba(47, 142, 247, 0.18);
}

/* 评论框：由原用户名/密码两框合并的多行文本域 */
.lm-comment {
    height: auto;
    min-height: 110px;
    padding: 12px 16px;
    line-height: 1.6;
    resize: none;
}

/* 历史评论弹窗（提交评论后展示大家的足迹） */
.lm-history { width: min(480px, 100%); }
.lm-history-list {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 2px;
    margin-bottom: 26px;
}
.lm-history-item {
    background: #ffffff;
    border: 1px solid #e8e8ee;
    border-radius: 12px;
    padding: 12px 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.lm-history-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.lm-history-text {
    margin: 0 0 6px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}
.lm-history-time {
    color: #9aa0b5;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}
.lm-history-loading {
    margin: 30px 0;
    text-align: center;
    color: #9aa0b5;
    font-size: 0.92rem;
}
.lm-history-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.lm-history-btn {
    flex: 0 0 auto;
    min-width: 128px;
    padding: 0 22px;
}

.lm-submit {
    height: 52px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f8ef7, #1f6fe0);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(31, 111, 224, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.lm-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(31, 111, 224, 0.5);
    filter: brightness(1.06);
}
.lm-submit:active { transform: translateY(0) scale(0.97); }
.lm-submit.done { background: linear-gradient(135deg, #34d399, #10b981); }
.lm-history-link {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 9px 18px;
    border: 1px solid rgba(109, 111, 156, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #6d6f9c;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.lm-history-link:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 142, 247, 0.5);
    background: rgba(239, 247, 255, 0.9);
    color: #2f8ef7;
}
.lm-history-link:active { transform: translateY(0) scale(0.97); }

/* 评论为空时的提示语 */
.lm-hint {
    margin: -6px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e53e3e;
    text-align: center;
    animation: lmHintIn 0.25s ease;
}
@keyframes lmHintIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .lm-card { padding: 44px 24px 52px; border-radius: 20px; }
    .lm-border { border-radius: 24px; }
    .lm-title { font-size: 1.4rem; margin-bottom: 28px; }
    .lm-slogan { gap: 7px; margin-top: -14px; margin-bottom: 20px; font-size: 0.82rem; letter-spacing: 0.08em; text-indent: 0.08em; }
    .lm-slogan::before, .lm-slogan::after { width: 16px; }
    .lm-input { height: 46px; }
    .lm-comment { height: auto; min-height: 100px; }
    .lm-submit { height: 48px; }
    .lm-history-actions { flex-direction: column; }
    .lm-history-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lm-overlay, .lm-card, .lm-close, .lm-submit, .lm-history-link { transition: none; }
    .lm-border { background: linear-gradient(135deg, #2f8ef7, #45d6f5); } /* 降级为静态蓝色边框 */
    .lm-border::before { animation: none; display: none; }
}
/* ===== 点赞弹窗结束 ===== */

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: var(--transition-medium);
    transform-origin: left;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
    transform: translateY(-4px);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== 通用 Section ===== */
.section-tag {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800; /* 加粗 */
    color: var(--accent-purple);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}
/* 关于我板块标题：黑色、小一号 */
.about-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #000000;
}
/* 联系方式板块标题：小一号 */
.contact-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ===== 关于 ===== */
.about-section {
    position: relative;
    z-index: 1;
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text {
    position: relative;
    z-index: 2; /* 文字始终位于人物装饰之上，保证可读性 */
}
.about-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 500px;
    width: 100%;
    justify-self: end; /* 人物与背景装饰整体靠右，与左侧文字拉开距离 */
    z-index: 1;
}
/* 立绘形象（透明底 PNG + HUD 风格背景装饰） */
.about-character {
    position: relative;
    left: 60px; /* 人物整体向右偏移 */
    max-width: 400px;
    width: 100%;
    justify-self: center;
    margin-left: 0; /* 已通过 justify-self: end 整体靠右，不再额外偏移 */
    animation: float-orb 6s ease-in-out infinite;
}
/* 三色光晕：略大于人物，边缘大范围柔化过渡 */
.about-character::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    height: 114%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 32%, rgba(124, 58, 237, 0.18), transparent 58%),
        radial-gradient(circle at 70% 68%, rgba(219, 39, 119, 0.13), transparent 58%),
        radial-gradient(circle at 60% 30%, rgba(37, 99, 235, 0.11), transparent 55%);
    filter: blur(14px);
    z-index: -1;
}
/* 旋转 HUD 渐变弧环：直径略大于人物高度，顶部高出头顶 */
.about-character::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    height: 107%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 90deg,
        transparent 0 12%,
        rgba(124, 58, 237, 0.9) 22%,
        rgba(37, 99, 235, 0.9) 38%,
        transparent 48% 60%,
        rgba(219, 39, 119, 0.75) 72%,
        transparent 84%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    animation: spin-hud 9s linear infinite;
    z-index: -1;
}
@keyframes spin-hud {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.about-character img {
    display: block;
    margin: 0 auto;
    max-height: 600px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 24px 40px rgba(124, 58, 237, 0.25)) drop-shadow(0 6px 14px rgba(43, 39, 51, 0.12));
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.about-character:hover img {
    transform: scale(1.06);
}
/* 漂浮的代码 / 创作符号 */
.code-float {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 700;
    color: rgba(124, 58, 237, 0.55);
    text-shadow: 0 0 12px rgba(124, 58, 237, 0.35);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    animation: glyph-float 5s ease-in-out infinite;
}
.code-float.c2 { color: rgba(37, 99, 235, 0.5); animation-duration: 6s; animation-delay: 0.8s; }
.code-float.c3 { color: rgba(219, 39, 119, 0.5); animation-duration: 5.5s; animation-delay: 1.6s; }
.code-float.c4 { color: rgba(8, 145, 178, 0.55); animation-duration: 6.5s; animation-delay: 0.4s; }
@keyframes glyph-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-14px) rotate(5deg); }
}
@keyframes float-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

/* 特质标签 */
.trait-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.character-traits {
    position: absolute;
    inset: 8% -12% 7%;
    display: block;
    margin: 0;
    z-index: 0;
    pointer-events: none;
}
.character-traits .trait-chip {
    position: absolute;
    padding: 7px 13px;
    font-size: 0.72rem;
    color: rgba(124, 58, 237, 0.72);
    border-color: rgba(124, 58, 237, 0.24);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.08);
    backdrop-filter: blur(4px);
    animation: glyph-float 5.6s ease-in-out infinite;
}
.character-traits .trait-chip:nth-child(1) { top: 14%; left: -5%; }
.character-traits .trait-chip:nth-child(2) { top: 27%; right: -4%; animation-delay: 1.2s; }
.character-traits .trait-chip:nth-child(3) { bottom: 25%; left: -9%; animation-delay: 2.1s; }
.character-traits .trait-chip:nth-child(4) { bottom: 11%; right: -7%; animation-delay: 0.5s; }
.trait-chip {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.06);
    color: var(--accent-purple);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--transition-fast);
    cursor: default;
}
.trait-chip:hover {
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 15px var(--glow-purple);
    transform: translateY(-2px);
}

/* ===== 特性/能力 ===== */
.features-section {
    position: relative;
    z-index: 1;
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition-medium);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: var(--transition-medium);
    transform-origin: right;
}
.feature-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.08);
    transform: translateY(-6px);
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: var(--transition-medium);
}
.feature-card:hover .feature-icon {
    background: rgba(124, 58, 237, 0.18);
    box-shadow: 0 0 20px var(--glow-purple);
    transform: scale(1.1);
}
.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== 技术足迹（博客/项目/AI 心得） ===== */
.journey-section {
    position: relative;
    z-index: 1;
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
}
.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.journey-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}
.journey-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.12);
    transform: translateY(-6px);
}
.journey-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.journey-type {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--gradient-secondary);
    letter-spacing: 0.1em;
    font-weight: 600;
}
.journey-type.t-pink { background: linear-gradient(135deg, #db2777, #d97706); }
.journey-type.t-blue { background: linear-gradient(135deg, #2563eb, #0891b2); }
.journey-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}
.journey-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.journey-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
}
.journey-link {
    margin-top: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.journey-card:hover .journey-link { gap: 10px; }

/* ===== 职业愿景 ===== */
.vision-section {
    position: relative;
    z-index: 1;
    padding: 60px 48px;
    max-width: 1200px;
    margin: 0 auto;
}
.vision-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.vision-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(124, 58, 237, 0.06), transparent, rgba(219, 39, 119, 0.06), transparent);
    animation: rotate-bg 15s linear infinite;
}
@keyframes rotate-bg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vision-box > * { position: relative; z-index: 1; }
.vision-icon {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 15px var(--glow-purple));
}
.vision-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.vision-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== 联系方式 ===== */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 100px 48px;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: var(--transition-medium);
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}
.contact-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
    transform: translateY(-5px);
}
.contact-icon {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: var(--transition-medium);
}
.contact-card:hover .contact-icon {
    background: rgba(124, 58, 237, 0.18);
    box-shadow: 0 0 20px var(--glow-purple);
    transform: scale(1.1);
}
.contact-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.contact-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

/* ===== 通用弹窗 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 39, 51, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: var(--transition-medium);
    box-shadow: 0 30px 80px rgba(43, 39, 51, 0.4);
}
.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--accent-pink);
    color: #fff;
    border-color: transparent;
    transform: rotate(90deg);
}

/* ===== 页脚 ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 48px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(245, 244, 241, 0.9);
    backdrop-filter: blur(20px);
}
.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}
.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition-fast);
    cursor: pointer;
}
.footer-links a:hover { color: var(--accent-purple); }

/* 静态标语文本：不可点击、无链接交互，字体与原链接一致 */
.static-slogan {
    cursor: default;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
}
.nav-links .static-slogan {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.footer-links .static-slogan {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 剪辑作品页：页脚固定贴住页面最底部 */
body.clips-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
body.clips-page .footer { margin-top: auto; }

/* ===== 左侧固定导航栏 ===== */
body.about-page,
body.clips-page {
    padding-left: 230px; /* 桌面端为侧边栏留出空间 */
}
body.about-page .navbar,
body.clips-page .navbar {
    left: 230px;
    width: calc(100% - 230px); /* 顶部导航避开侧边栏 */
}
.side-nav {
    position: fixed;
    top: 0; left: 0;
    width: 230px;
    height: 100vh;
    background: #fcfcfc; /* 白色背景，与主内容区分 */
    border-right: 1px solid #e5e7eb; /* 浅灰色分隔线 */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05); /* 轻阴影增强层次感 */
    padding: 96px 18px 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.side-nav-header { margin-bottom: 18px; }
.side-nav-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #16337a;
    letter-spacing: 0.08em;
}
.side-nav-sub {
    font-size: 0.68rem;
    color: #8a97ad;
    letter-spacing: 0.35em;
    margin-top: 6px;
}
.side-nav-bar {
    display: block;
    width: 22px; height: 2px;
    background: #e8590c;
    border-radius: 2px;
    margin-top: 10px;
}
.side-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.side-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    color: #4a5568;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition-fast);
}
.side-nav-item svg { width: 18px; height: 18px; flex: none; }
.side-nav-item:hover { background: rgba(29, 78, 216, 0.06); color: #16337a; }
.side-nav-item.active {
    background: #dbe7f6;
    border-left-color: #1d4ed8;
    color: #1d4ed8;
    font-weight: 600;
}
.side-nav-toggle { display: none; }
.side-nav-backdrop { display: none; }

/* 关于我页：板块整体上移 */
#about {
    position: relative;
    top: -153px;
}
/* 返回首页按钮：跟随板块上移 */
.back-home-btn {
    position: relative;
    top: -120px;
}

@media (max-width: 768px) {
    body.about-page,
    body.clips-page { padding-left: 0; }
    body.about-page .navbar,
    body.clips-page .navbar { left: 0; width: 100%; }
    .side-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 3000;
        padding-top: 84px;
    }
    .side-nav.open { transform: translateX(0); }
    .side-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 76px; left: 16px;
        width: 42px; height: 42px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(29, 78, 216, 0.2);
        color: #1d4ed8;
        font-size: 1.1rem;
        cursor: pointer;
        z-index: 2500;
        box-shadow: 0 4px 14px rgba(22, 51, 122, 0.15);
    }
    .side-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 2900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .side-nav-backdrop.show { opacity: 1; pointer-events: auto; }
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    /* transform 置为 none 以避免创建层叠上下文，保证立绘 mix-blend-mode 正常融合 */
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== 页面头部（剪辑页） ===== */
.page-hero {
    position: relative;
    z-index: 1;
    padding: 160px 48px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.page-hero .section-tag { justify-content: center; }
/* 剪辑作品页主标题字体 */
.page-hero .section-title {
    font-family: "Times New Roman", Times, serif;
}
/* 剪辑作品页头部标签：下划线末端淡出 */
.page-hero .section-tag {
    position: relative;
    padding-bottom: 12px;
}
.page-hero .section-tag::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% - 0.2em); /* 与文字等长（去掉末尾字距） */
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgb(58, 151, 238) 0%, rgba(58, 151, 238, 0.5) 65%, rgba(58, 151, 238, 0) 100%); /* 末端淡出 */
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .journey-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-section { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .navbar.scrolled { padding: 10px 20px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(245, 244, 241, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
        backdrop-filter: blur(30px);
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; color: var(--text-primary); }
    .menu-toggle { display: flex; }
    .nav-cta { display: none; }
    .hero { padding: 100px 20px 60px; }
    .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .about-section { grid-template-columns: 1fr; padding: 60px 20px; gap: 40px; }
    .about-character { margin-left: 0; } /* 移动端恢复居中，不右移 */
    .character-traits { inset: 9% -7% 7%; }
    .character-traits .trait-chip { font-size: 0.67rem; padding: 6px 10px; }
    .features-section { padding: 60px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .journey-section { padding: 60px 20px; }
    .journey-grid { grid-template-columns: 1fr; }
    .vision-section { padding: 30px 20px; }
    .vision-box { flex-direction: column; text-align: center; padding: 36px 24px; }
    .stats-section { padding: 40px 20px; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-number { font-size: 2rem; }
    .contact-section { padding: 60px 20px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer { padding: 24px 20px; flex-direction: column; text-align: center; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .page-hero { padding: 130px 20px 40px; }
    .modal-overlay { padding: 16px; }
}
@media (max-width: 480px) {
    .stats-section { grid-template-columns: 1fr 1fr; gap: 8px; padding: 24px 12px; }
    .stat-card { padding: 20px 12px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }
}

/* ===== 移动端适配增强 ===== */
img { max-width: 100%; }
a, button {
    -webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
    touch-action: manipulation; /* 消除双击缩放延迟 */
}
@media (max-width: 768px) {
    /* 触控目标最小 44×44px */
    .side-nav-toggle { width: 44px; height: 44px; font-size: 1.2rem; }
    .side-nav-item { min-height: 44px; }
    .footer-links a { padding: 10px 6px; }
    /* 页面头部标签在窄屏下取消桌面端的大幅偏移，避免移出屏幕 */
    .page-hero .section-tag {
        left: 0 !important;
        top: 0 !important;
        font-size: 1.2rem !important;
    }
}

/* ===== 移动端完整适配（放在末尾覆盖桌面规则） ===== */
@media (max-width: 768px) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    #custom-cursor, #custom-cursor-dot { display: none; }
    .nav-logo { font-size: 1.05rem; letter-spacing: 0.1em; }
    .hero {
        min-height: 100svh;
        padding: calc(96px + env(safe-area-inset-top)) 20px 72px;
    }
    .hero-title-en { font-size: 0.72rem; letter-spacing: 0.26em; text-indent: 0.26em; margin-bottom: 24px; }
    .hero-subtitle { margin-bottom: 28px; font-size: 1rem; line-height: 1.7; }
    .hero-scroll-indicator { bottom: max(18px, env(safe-area-inset-bottom)); }
    .nav-card { width: 100%; padding: 12px 20px; }
    .nav-card .nav-card-text { font-size: 1.2rem; }
    body.about-page .about-main { justify-content: flex-start; padding-top: 76px; }
    body.about-page .about-section { padding: 36px 20px 20px; }
    #about, .back-home-btn { top: 0; }
    body.about-page .back-home-wrap { padding: 20px 20px 48px; }
    .about-character { left: 0; margin: 0 auto; max-width: min(400px, 88vw); }
    .about-visual { justify-self: center; max-width: min(440px, 100%); }
    .section-description { font-size: 1rem; margin-bottom: 24px; }
}
@media (max-width: 480px) {
    .navbar { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
    .navbar.scrolled { padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
    .hero { padding-inline: 16px; }
    .hero-title { font-size: clamp(2rem, 10.5vw, 2.7rem); }
    .hero-actions { width: 100%; gap: 14px; margin-bottom: 32px; }
    .nav-card { padding: 11px 16px; }
    .nav-card .nav-card-text { font-size: 1.08rem; }
    .about-section, body.about-page .about-section { padding-inline: 16px; }
    .about-character { max-width: 86vw; }
    .character-traits .trait-chip { font-size: 0.62rem; padding: 5px 8px; }
    .code-float { font-size: 0.82rem !important; }
    .back-home-wrap, body.about-page .back-home-wrap { padding-inline: 16px; }
}

/* 关于页：窄屏时让立绘和装饰完整落在可视区域内 */
@media (max-width: 768px) {
    .side-nav-toggle {
        top: max(12px, env(safe-area-inset-top));
        left: 12px;
    }
    .about-section { overflow: hidden; }
    .about-visual {
        aspect-ratio: auto;
        width: min(100%, 420px);
        margin: 0 auto;
        padding: 8px 0 18px;
    }
    .about-character {
        width: min(82vw, 340px);
        max-width: none;
    }
    .about-character img {
        max-height: min(62svh, 430px);
        width: auto;
    }
    .character-traits { inset: 7% 0 8%; }
    .character-traits .trait-chip:nth-child(1) { top: 12%; left: 0; }
    .character-traits .trait-chip:nth-child(2) { top: 29%; right: 0; }
    .character-traits .trait-chip:nth-child(3) { bottom: 24%; left: 0; }
    .character-traits .trait-chip:nth-child(4) { bottom: 9%; right: 0; }
    .code-float[style*="left"] { left: 1% !important; }
    .code-float[style*="right"] { right: 1% !important; }
}
@media (max-width: 480px) {
    .about-visual { width: 100%; padding-bottom: 12px; }
    .about-character { width: min(80vw, 310px); }
    .about-character img { max-height: min(56svh, 390px); }
    .character-traits .trait-chip { font-size: 0.58rem; }
}
