/* ============================================================
   ECOHALE — 生态呼吸 | 全局平滑滚动 + GPU加速
   ============================================================ */

/* 全局平滑滚动 */
html {
    scroll-behavior: smooth;
}

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

:root {
    /* 绿白低饱和配色 */
    --primary-color: #a8d5ba;
    --secondary-color: #f5f9f6;
    --accent-color: #7fb685;
    --text-color: #2c3e2d;
    --text-muted: #5a7d5e;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --liquid-gradient: linear-gradient(135deg, rgba(168, 213, 186, 0.3), rgba(245, 249, 246, 0.4));
    --nav-height: 72px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #e8f5e9 0%, #f1f8e9 40%, #e0f2f1 70%, #f5f9f6 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   自定义光标
   ============================================================ */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--text-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.3s ease;
}

.cursor-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--text-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

body.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent-color);
}

body.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent-color);
    opacity: 0.8;
}

body.cursor-text .cursor-ring {
    width: 8px;
    height: 8px;
    border: none;
    background: var(--accent-color);
    opacity: 0;
}

/* ============================================================
   Loading 遮罩
   ============================================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: linear-gradient(160deg, #e8f5e9 0%, #f1f8e9 40%, #e0f2f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.loading-screen.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

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

.loading-logo {
    margin-bottom: 40px;
}

.loading-breath-icon {
    margin-bottom: 20px;
}

.breath-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1;
    transform-origin: center;
    opacity: 0;
}

.breath-circle.c1 {
    animation: breathe 2s ease-in-out infinite 0s;
    stroke: var(--accent-color);
}
.breath-circle.c2 {
    animation: breathe 2s ease-in-out infinite 0.3s;
}
.breath-circle.c3 {
    animation: breathe 2s ease-in-out infinite 0.6s;
}
.breath-circle.c4 {
    animation: breathe 2s ease-in-out infinite 0.9s;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.loading-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--text-color);
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(168, 213, 186, 0.2);
    border-radius: 2px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.1s ease;
}

.loading-percent {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ============================================================
   背景粒子画布
   ============================================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* ============================================================
   液态玻璃基础效果
   ============================================================ */
.glass-card, .glass-nav, .glass-button, .glass-input {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* 液态流动效果 */
.glass-card::before, .glass-nav::before, .glass-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(255, 255, 255, 0) 0deg,
        rgba(255, 255, 255, 0.2) 30deg,
        rgba(255, 255, 255, 0) 60deg 300deg,
        rgba(255, 255, 255, 0.2) 330deg,
        rgba(255, 255, 255, 0) 360deg
    );
    animation: liquidRotate 12s linear infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* 液态高光效果 */
.glass-card::after, .glass-nav::after, .glass-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0) 40% 60%,
        rgba(255, 255, 255, 0.25) 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}

@keyframes liquidRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   导航栏
   ============================================================ */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0 30px;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

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

/* 汉堡按钮 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(245, 249, 246, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-nav-link {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================================
   容器
   ============================================================ */
.container {
    padding-top: 0;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.container.visible {
    opacity: 1;
}

/* ============================================================
   英雄区域
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    transform: translate(
        var(--mouse-x, 0px),
        calc(var(--mouse-y, 0px) + var(--scroll-y, 0px))
    );
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
    font-family: 'Noto Serif SC', serif;
}

.title-line {
    display: inline-flex;
    gap: 0.05em;
}

.title-word {
    display: inline-block;
    cursor: default;
    position: relative;
    z-index: 10;
    will-change: transform;
    /* 初始 transform 由 CSS char-reveal 动画控制，物理引擎在 revealed 后接管 */
}

/* ★ 物理引擎接管 — 禁用一切 CSS transition，逐帧 transform */
.char-reveal.phys-active,
.title-word.phys-active {
    transition: none !important;
    transform-origin: center center;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    margin-bottom: 40px;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--accent-color);
    opacity: 0.5;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 0.6; }
}

.hero-scroll-hint span {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   通用区域样式
   ============================================================ */
section {
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    transform: translateY(var(--scroll-y, 0px));
}

.section-title {
    font-size: clamp(36px, 6vw, 56px);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
}

/* ============================================================
   关于区域
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* ============================================================
   卡片样式
   ============================================================ */
.glass-card {
    padding: 40px;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(var(--card-x, 0px), var(--card-y, 0px));
    will-change: transform;
    transform: translateZ(0) translate(var(--card-x, 0px), var(--card-y, 0px));
}

.glass-card:hover {
    transform: translate(
        var(--card-x, 0px),
        calc(var(--card-y, 0px) - 8px)
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 600;
}

.card-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* 服务编号 */
.service-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: left;
}

/* ============================================================
   作品网格
   ============================================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-card::before {
    display: none;
}

.portfolio-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.portfolio-card:hover .portfolio-image img {
    transform: none;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(44, 62, 45, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(168, 213, 186, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-info {
    padding: 24px 28px;
}

.portfolio-info .card-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-info .card-text {
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   图片渐进加载（Blur-up Placeholder）
   ============================================================ */
.portfolio-image {
    background: linear-gradient(135deg, rgba(168, 213, 186, 0.15), rgba(245, 249, 246, 0.25));
    position: relative;
}

.portfolio-image img {
    filter: blur(0);
    transition: filter 0.6s ease;
}

.portfolio-image img.loading {
    filter: blur(20px);
    transform: scale(1.05);
}

.portfolio-image img.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* ============================================================
   联系区域
   ============================================================ */
.contact-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.contact-card {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.glass-input {
    padding: 16px 20px;
    border: 1px solid rgba(168, 213, 186, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    width: 100%;
}

.glass-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.glass-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(127, 182, 133, 0.15);
    background: rgba(255, 255, 255, 0.6);
}

.glass-textarea {
    min-height: 140px;
    resize: vertical;
}

/* ============================================================
   液态按钮
   ============================================================ */
.liquid-button {
    padding: 16px 44px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 3;
    will-change: transform;
    transform: translateZ(0);
}

.liquid-button:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 12px 32px rgba(0, 0, 0, 0.12);
}

.button-liquid {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(168, 213, 186, 0.4) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.liquid-button:hover .button-liquid {
    opacity: 1;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: rgba(44, 62, 45, 0.04);
    border-top: 1px solid rgba(168, 213, 186, 0.2);
    padding: 60px 20px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-color);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(168, 213, 186, 0.15);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================================
   滚动动画 — 字符逐个揭示
   ============================================================ */
.char-reveal {
    opacity: 0;
    transform: translateY(30px) rotateX(-20deg);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.char-reveal.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    /* 物理引擎 start() 会清除 transition 并接管 transform */
}

/* 逐行揭示 */
.line-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 卡片 stagger 进入 */
.stagger-in {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-in.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================================
   响应式设计
   ============================================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 16px;
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    /* 导航栏 */
    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .glass-nav {
        width: 92%;
        padding: 0 20px;
    }

    /* 网格单列 */
    .about-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .glass-card {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 36px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }

    /* 隐藏自定义光标在触摸设备上 */
    .custom-cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 30px;
    }

    .service-number {
        font-size: 36px;
    }
}

/* ============================================================
   减少动画偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .char-reveal, .line-reveal, .stagger-in {
        opacity: 1;
        transform: none;
    }

    .loading-screen {
        display: none;
    }

    .container {
        opacity: 1;
    }
}

/* ============================================================
   兼容性回退
   ============================================================ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-card, .glass-nav, .glass-button, .glass-input {
        background: rgba(255, 255, 255, 0.35);
    }
}

/* ============================================================
   自定义滚动条
   ============================================================ */

/* 无障碍跳转链接 */
.skip-link {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 100010;
    padding: 12px 24px;
    background: var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(168, 213, 186, 0.08);
}

::-webkit-scrollbar-thumb {
    background: rgba(127, 182, 133, 0.35);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 182, 133, 0.55);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 182, 133, 0.35) rgba(168, 213, 186, 0.08);
}

/* ============================================================
   滚动进度条
   ============================================================ */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 100001;
    background: rgba(168, 213, 186, 0.1);
    pointer-events: none;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: progressShimmer 3s ease infinite;
    border-radius: 0 2px 2px 0;
    transition: width 0.1s ease;
    will-change: width;
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   侧边区域指示器
   ============================================================ */
.section-indicators {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body:not(.cursor-hover) .section-indicators {
    opacity: 0.4;
}

body:not(.cursor-hover) .section-indicators:hover {
    opacity: 0.8;
}

.section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.section-dot:hover {
    background: rgba(127, 182, 133, 0.4);
    transform: scale(1.3);
}

.section-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(127, 182, 133, 0.5);
}

/* ============================================================
   3D 卡片倾斜效果
   ============================================================ */
.glass-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.glass-card.tilt-active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 25px 60px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(168, 213, 186, 0.08);
}

/* 光泽效果 */
.glass-card::after {
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0) 40% 60%,
        rgba(255, 255, 255, 0.25) 100%
    );
    mix-blend-mode: screen;
}

.glass-card.tilt-active::after {
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
}

/* ============================================================
   磁性光标激活状态
   ============================================================ */
.magnetic-active {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================================
   自定义文字选中样式
   ============================================================ */
::selection {
    background: rgba(168, 213, 186, 0.4);
    color: var(--text-color);
}

::-moz-selection {
    background: rgba(168, 213, 186, 0.4);
    color: var(--text-color);
}

/* ============================================================
   键盘焦点指示器（无障碍）
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* ============================================================
   通知动画
   ============================================================ */
@keyframes notifIn { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes notifOut { 
    from { transform: translateX(0); opacity: 1; } 
    to { transform: translateX(100%); opacity: 0; } 
}

/* ============================================================
   移动端适配新增元素
   ============================================================ */
@media (max-width: 768px) {
    .section-indicators {
        right: 8px;
        gap: 8px;
    }

    .section-dot {
        width: 8px;
        height: 8px;
    }

    .scroll-progress-bar {
        height: 2px;
    }
}

/* ============================================================
   V5 — 导航 Logo hover 动效
   ============================================================ */
.nav-logo .logo-text {
    transition: letter-spacing 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease,
                text-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.nav-logo .logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover .logo-text {
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(127, 182, 133, 0.3);
}

.nav-logo:hover .logo-text::after {
    width: 100%;
    left: 0;
}

/* ============================================================
   V6 — Footer 增强
   ============================================================ */
/* 高透明度背景（非玻璃质感） */
.site-footer {
    position: relative;
    background: rgba(168, 213, 186, 0.04);
    border-top: 1px solid rgba(168, 213, 186, 0.15);
}

/* 社交图标容器 */
.footer-social-icons {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

/* 单个社交图标 */
.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 213, 186, 0.06);
    border: 1px solid rgba(168, 213, 186, 0.12);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-icon:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(127, 182, 133, 0.25);
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer 链接 hover：取消缩进，保持简洁 */
.footer-col a {
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

/* Footer 底部左右分布 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 作者署名 */
.footer-author {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.6;
    display: flex;
    align-items: center;
}

.author-label {
    display: inline-block;
    white-space: nowrap;
    margin-right: 4px;
}

.footer-author a {
    display: inline-block;
    width: 10ch;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-author a:hover {
    opacity: 1;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(127, 182, 133, 0.6), 0 0 24px rgba(127, 182, 133, 0.3);
}

/* ============================================================
   移动端适配 — 新 Footer 元素
   ============================================================ */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}
