/* ===================== Reset & Base ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    color-scheme: dark light;
    --section-anchor-offset: 6rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--section-anchor-offset);
    /* 设置根字体大小，使用rem基准 */
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #111 0%, #1a1a1a 100%);
    color: #fff;
    overflow-x: hidden;
    transition: background .3s, color .3s;
    min-height: 100vh;
    line-height: 1.6;
    /* 字体渲染优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.light {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    color: #111;
}


img {
    display: block;
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

body.light :focus-visible {
    outline-color: #2563eb;
}

/* ===================== 全新字体系统 - 适中舒适比例 ===================== */

/* 1. 主标题/品牌标识 - 适中大小，强调但不夸张 */
.header-left {
    font-weight: 700;
    font-size: clamp(1.12rem, 1.02rem + 0.16vw, 1.3rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* 2. 区域标题 - 清晰的层次感 */
.section-title {
    font-weight: 600;
    font-size: clamp(1.06rem, 0.98rem + 0.15vw, 1.18rem);
    letter-spacing: 0;
    line-height: 1.3;
}

/* 3. 引言/签名 - 适度强调 */
.motto {
    font-weight: 500;
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
    letter-spacing: 0.01em;
    line-height: 1.6;
}

/* 4. 副标题/段落 - 良好的可读性 */
.section-text {
    font-weight: 400;
    font-size: 1.125rem; /* 18px */
    letter-spacing: 0.02em;
    line-height: 1.7;
}

/* 5. 卡片标签 - 清晰可见 */
.link-label {
    font-weight: 500;
    font-size: 0.9375rem; /* 15px */
    letter-spacing: 0.03em;
    line-height: 1.5;
}

/* 6. 按钮文字 - 适配按钮尺寸 */
.link-button {
    font-weight: 500;
    font-size: 0.875rem; /* 14px */
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.dropdown-menu li a {
    font-weight: 500;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* 7. 正文/常规文本 */
.footer,
.footer-line {
    font-weight: 400;
    font-size: 0.9375rem; /* 15px */
    letter-spacing: 0.03em;
    line-height: 1.6;
}

/* 8. 小文本/辅助信息 */
.icp,
#busuanzi_container_site_pv,
#busuanzi_container_site_uv {
    font-weight: 400;
    font-size: 0.875rem; /* 14px */
    letter-spacing: 0.04em;
    line-height: 1.5;
}

/* 9. 图标字体大小 */
.link-icon i {
    font-size: 1.125rem; /* 18px */
    line-height: 1;
}

/* ===================== Header - 紧凑优化 ===================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0.75rem 1.5rem;
    background: rgba(17, 17, 17, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

body.light .header-inner {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.header.scrolled .header-inner {
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.hero-scrolled .header.scrolled .header-inner {
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.14);
}

body.light .header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

body.light.hero-scrolled .header.scrolled .header-inner {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Header Left 标题动画效果 */
.header-left {
    position: relative;
    padding: 0.25rem 0;
    overflow: hidden;
    background: linear-gradient(90deg, #fff 0%, #ccc 50%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 8s ease-in-out infinite;
}

body.light .header-left {
    background: linear-gradient(90deg, #111 0%, #555 50%, #111 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-left::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:hover .header-left::before {
    width: 100%;
}

body.light .header-left::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.6), transparent);
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

/* 图标按钮 - 优化padding和大小 */
.icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    touch-action: manipulation;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

body.light .icon-btn {
    background: rgba(0, 0, 0, 0.05);
}

body.light .icon-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.icon-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* 汉堡菜单图标 */
.hamburger {
    width: 1rem;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 1rem;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -5px;
}

.hamburger::after {
    top: 5px;
}

/* ===================== Header Dropdown ===================== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 124px;
    background: rgba(35, 35, 35, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
    padding: 0.75rem;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -0.65rem;
    left: 0;
    right: 0;
    height: 0.65rem;
}

body.light .dropdown-menu {
    background: rgba(250, 250, 250, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

body.light .dropdown-menu li a {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

body.light .dropdown-menu li a:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

.dropdown-menu li a i {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===================== Hero ===================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #111 0%, #1a1a1a 100%);
    transition: background 0.5s ease, transform 0.5s ease;
    z-index: 1;
    will-change: transform;
}

body.light .hero-background {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

/* 调整头像和签名位置 */
.hero-fixed {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 5;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 800px;
    padding: 0 1.5rem;
    will-change: transform, opacity;
}

.scroll-indicator {
    position: fixed;
    left: 50%;
    bottom: clamp(1.5rem, 2.8vh, 2.2rem);
    transform: translateX(-50%);
    z-index: 6;
    width: 2rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.82;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
    cursor: pointer;
}

.scroll-indicator.is-hidden {
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
}

.scroll-indicator-triangle {
    width: 0;
    height: 0;
    border-left: 0.45rem solid transparent;
    border-right: 0.45rem solid transparent;
    border-top: 0.62rem solid rgba(255, 255, 255, 0.74);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.26));
    animation: indicatorPulse 1.85s ease-in-out infinite;
}

body.light .scroll-indicator-triangle {
    border-top-color: rgba(17, 17, 17, 0.62);
    filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.18));
}

@keyframes indicatorPulse {
    0%,
    100% {
        transform: translateY(0) scale(0.96);
        opacity: 0.66;
    }
    50% {
        transform: translateY(5px) scale(1.03);
        opacity: 1;
    }
}

/* ===================== 头像动画效果 ===================== */
.avatar {
    width: 9rem; /* 144px */
    height: 9rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.4),
            0 0 0 0px rgba(255, 255, 255, 0.1),
            0 0 0 0px rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
    position: relative;
    animation: avatarGlow 4s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
}

body.light .avatar {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.1),
            0 0 0 0px rgba(0, 0, 0, 0.08),
            0 0 0 0px rgba(0, 0, 0, 0.03);
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow:
                0 15px 40px rgba(0, 0, 0, 0.4),
                0 0 0 0px rgba(255, 255, 255, 0.1),
                0 0 0 0px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow:
                0 15px 40px rgba(0, 0, 0, 0.4),
                0 0 0 14px rgba(255, 255, 255, 0.06),
                0 0 0 28px rgba(255, 255, 255, 0.025);
        transform: scale(1.02);
    }
}

body.light .avatar {
    animation: avatarGlowLight 4s ease-in-out infinite;
}

@keyframes avatarGlowLight {
    0%, 100% {
        box-shadow:
                0 15px 40px rgba(0, 0, 0, 0.1),
                0 0 0 0px rgba(0, 0, 0, 0.08),
                0 0 0 0px rgba(0, 0, 0, 0.03);
    }
    50% {
        box-shadow:
                0 15px 40px rgba(0, 0, 0, 0.1),
                0 0 0 14px rgba(0, 0, 0, 0.04),
                0 0 0 28px rgba(0, 0, 0, 0.015);
        transform: scale(1.02);
    }
}

/* 头像悬停效果 */
.avatar:hover {
    animation-play-state: paused;
    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.5),
            0 0 0 8px rgba(255, 255, 255, 0.15),
            0 0 0 16px rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

body.light .avatar:hover {
    box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.2),
            0 0 0 8px rgba(0, 0, 0, 0.1),
            0 0 0 16px rgba(0, 0, 0, 0.03);
    transform: scale(1.05);
}

/* ===================== 签名动画效果 ===================== */
.motto {
    line-height: 1.6;
    text-align: center;
    max-width: 36rem; /* 576px */
    margin: 0 auto;
    position: relative;
    padding: 0.5rem;
    min-height: 2.4rem;
    overflow: hidden;
    pointer-events: none;
    color: inherit;
    background: linear-gradient(90deg, #fff 0%, #aaa 50%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: mottoShine 6s linear infinite;
    font-weight: 700;
    overflow: visible;
}

body.light .motto {
    background: linear-gradient(90deg, #111 0%, #666 50%, #111 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes mottoShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* 终端继续输入下划线光标 */
.motto::after {
    content: '_';
    display: inline-block;
    margin-left: 0.1em;
    color: rgba(255, 255, 255, 0.92);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
    animation: terminalCursorBlink 0.9s steps(1, end) infinite;
    transform: translateY(0.02em);
}

body.light .motto::after {
    color: rgba(0, 0, 0, 0.75);
    -webkit-text-fill-color: rgba(0, 0, 0, 0.75);
}

@keyframes terminalCursorBlink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

/* ===================== Main Content ===================== */
.main-content {
    position: relative;
    z-index: 12;
}

.content-wrapper {
    --content-lift: 36px;
    --content-enter-offset: 60px;
    position: relative;
    z-index: 22;
    width: min(1200px, calc(100% - 2rem));
    margin: 0.2rem auto 0;
    padding: 2.4rem 1.8rem 2.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.17);
    border-radius: 1.15rem;
    transform: translate3d(0, calc(var(--content-lift) + var(--content-enter-offset)), 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, box-shadow 0.24s ease-out, border-color 0.24s ease-out;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
    overflow: visible;
    opacity: 0;
    pointer-events: none;
}

body:not(.hero-scrolled) .content-wrapper {
    opacity: 0;
    pointer-events: none;
}

.content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.34);
    pointer-events: none;
}

.content-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.content-wrapper.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, var(--content-lift), 0);
}

.content-wrapper.is-raised {
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.14);
}

body.light .content-wrapper {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
}

body.light .content-wrapper::before {
    background: rgba(0, 0, 0, 0.25);
}

body.light .content-wrapper::after {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.light .content-wrapper.is-raised {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 4rem 0;
    position: relative;
    scroll-margin-top: var(--section-anchor-offset);
}

.section + .section {
    margin-top: 1.4rem;
}

.content-wrapper > .section:first-child {
    padding-top: 1.4rem;
}

/* ===================== Section Title 增强效果 ===================== */
.section-title {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    background: linear-gradient(90deg, #fff 0%, #ccc 50%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 8s ease-in-out infinite;
}

body.light .section-title {
    background: linear-gradient(90deg, #111 0%, #555 50%, #111 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.8),
    transparent);
    border-radius: 1px;
    background-size: 200% 100%;
    animation: lineFlow 3s linear infinite;
}

body.light .section-title::after {
    background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.6),
    transparent);
}

@keyframes lineFlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.section-text {
    line-height: 1.7;
    text-align: center;
    max-width: 36rem; /* 576px */
    margin: 0 auto 3rem;
    opacity: 0.9;
    padding: 0 1rem;
}

.section-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.section-link:hover {
    opacity: 1;
}

/* ===================== Links Section ===================== */
.links-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* PC端一行显示 */
.links-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.75rem;
    padding: 1rem;
    flex-wrap: nowrap;
    position: relative;
    isolation: isolate;
}

/* Link Card */
.link-card {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
    flex: 1;
    min-width: 0;
    max-width: 14rem;
    min-height: 12.5rem; /* 200px */
    z-index: 1;
}

body.light .link-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 1rem;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light .link-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Icon Wrapper - 确保图标显示 */
.link-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
    width: 100%;
}

.link-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .link-icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.link-icon-wrapper:hover .link-icon {
    transform: translateY(-2px) scale(1.08);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light .link-icon-wrapper:hover .link-icon {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.link-label {
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link Buttons - 优化按钮padding */
.link-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    background: rgba(35, 35, 35, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    padding: 0;
    z-index: 100;
    pointer-events: none;
}

.link-buttons::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

body.light .link-buttons {
    background: rgba(250, 250, 250, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.link-card.active .link-buttons {
    max-height: 31.25rem; /* 500px */
    opacity: 1;
    padding: 0.75rem;
    pointer-events: auto;
    z-index: 5001;
}

.link-card.active {
    z-index: 5000;
    position: relative;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem; /* 优化按钮padding */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    min-height: 2.5rem;
    touch-action: manipulation;
}

body.light .link-button {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

body.light .link-button:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

.link-button i {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===================== Footer ===================== */
.footer {
    position: relative;
    width: min(1200px, calc(100% - 2rem));
    padding: 1.35rem 1.2rem 1.15rem;
    text-align: center;
    margin: 0.85rem auto 1.5rem;
    opacity: 0.8;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 21;
    transition: box-shadow 0.24s ease-out, border-color 0.24s ease-out, background 0.24s ease-out;
}

.footer::before {
    content: none;
    display: none;
}

body.light .footer {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

body.hero-scrolled .footer {
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.14);
}

body.light.hero-scrolled .footer {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ===================== Header/Footer Layer Sync (Tablet/Mobile) ===================== */
@media (max-width: 1024px) {
    body.hero-scrolled .header.scrolled .header-inner,
    body.hero-scrolled .footer {
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
        border-color: rgba(255, 255, 255, 0.15);
    }

    body.light.hero-scrolled .header.scrolled .header-inner,
    body.light.hero-scrolled .footer {
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.11);
        border-color: rgba(0, 0, 0, 0.13);
    }
}

@media (max-width: 768px) {
    body.hero-scrolled .header.scrolled .header-inner,
    body.hero-scrolled .footer {
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
        border-color: rgba(255, 255, 255, 0.15);
    }

    body.light.hero-scrolled .header.scrolled .header-inner,
    body.light.hero-scrolled .footer {
        box-shadow: 0 10px 16px rgba(0, 0, 0, 0.11);
        border-color: rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 480px) {
    body.hero-scrolled .header.scrolled .header-inner,
    body.hero-scrolled .footer {
        box-shadow: 0 11px 18px rgba(0, 0, 0, 0.22);
    }

    body.light.hero-scrolled .header.scrolled .header-inner,
    body.light.hero-scrolled .footer {
        box-shadow: 0 9px 14px rgba(0, 0, 0, 0.11);
    }
}

body.light .footer::before {
    content: none;
    display: none;
}

.footer-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.48rem;
}

body.light .footer-container {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.footer-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
}

body.light .footer-line {
    color: rgba(17, 17, 17, 0.88);
}

.footer-line span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.footer-line a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.footer-line i {
    opacity: 0.82;
}

.footer-line:nth-child(1),
.footer-line:nth-child(2) {
    width: auto;
}

.footer-line:nth-child(1) span,
.footer-line:nth-child(2) .icp-link {
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .footer-line:nth-child(1) span,
body.light .footer-line:nth-child(2) .icp-link {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.footer-line:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.2rem;
}

.footer-line:last-child span {
    padding: 0.28rem 0.62rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

body.light .footer-line:last-child span {
    background: rgba(0, 0, 0, 0.035);
    border-color: rgba(0, 0, 0, 0.08);
}

#busuanzi_container_site_pv,
#busuanzi_container_site_uv {
    margin: 0;
}

.icp {
    font-family: 'Microsoft YaHei', sans-serif;
}

.icp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.icp-link:hover {
    opacity: 1;
}

/* ===================== Mobile Responsive ===================== */
@media (max-width: 768px) {
    html {
        font-size: 15px; /* 移动端稍微减小基准字体 */
    }

    .header {
        padding: 0.5rem 0.75rem;
    }

    .header-inner {
        padding: 0.625rem 1rem;
        border-radius: 0.75rem;
    }

    .header-left {
        font-size: 1.2rem; /* 移动端减小标题 */
    }

    .header-right {
        gap: 0.5rem;
    }

    .icon-btn {
        width: 2.25rem;
        height: 2.25rem;
    }

    .icon-btn svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .dropdown-menu {
        top: calc(100% + 0.35rem);
        min-width: 120px;
        padding: 0.625rem;
    }

    .dropdown-menu ul {
        gap: 0.375rem;
    }

    .dropdown-menu li a {
        padding: 0.625rem 0.875rem;
        font-size: 0.76rem;
    }

    /* 移动端头像和签名调整 */
    .hero-fixed {
        top: 45%;
        gap: 1.5rem;
    }

    .avatar {
        width: 7rem;
        height: 7rem;
    }

    .motto {
        font-size: 1.125rem; /* 18px */
    }

    .section {
        padding: 2.5rem 0;
    }

    .content-wrapper > .section:first-child {
        padding-top: 0.95rem;
    }

    .content-wrapper {
        --content-lift: 24px;
        --content-enter-offset: 44px;
        width: calc(100% - 1.5rem);
        margin: 0.55rem auto 0;
        padding: 1.8rem 1rem 1.7rem;
        border-radius: 1rem;
    }

    .section-title {
        font-size: 1.375rem; /* 22px */
    }

    .section-text {
        font-size: 1rem; /* 16px */
        margin-bottom: 2rem;
    }

    /* 手机端 Links 布局 - 改为单列 */
    .links-container {
        width: 100%;
        max-width: 24rem; /* 384px */
        margin: 0 auto;
    }

    .links-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem;
        width: 100%;
    }

    .link-card {
        padding: 1.25rem;
        border-radius: 0.875rem;
        max-width: 100%;
        width: 100%;
        min-height: 10rem;
        margin: 0 auto;
    }

    .link-icon {
        width: 3.125rem;
        height: 3.125rem;
    }

    .link-icon i {
        font-size: 1rem;
    }

    .link-label {
        font-size: 0.9375rem; /* 15px */
    }

    /* 手机端按钮面板优化 */
    .link-buttons {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        z-index: 1100;
        pointer-events: none;
        padding: 0;
    }

    .link-card.active .link-buttons {
        max-height: 31.25rem;
        opacity: 1;
        visibility: visible;
        padding: 0.75rem;
        pointer-events: auto;
        z-index: 1200;
    }

    .link-button {
        padding: 0.75rem;
        margin-bottom: 0.375rem;
    }

    .footer {
        width: calc(100% - 1.5rem);
        margin: 0.5rem auto 1rem;
        padding: 0.95rem 0.65rem 0.78rem;
        border-radius: 0.95rem;
    }

    .footer-container {
        width: 100%;
        padding: 0;
        border-radius: 0;
        gap: 0.5rem;
    }

    .footer-line {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-line:nth-child(1),
    .footer-line:nth-child(2) {
        width: 100%;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        width: 100%;
        max-width: 22rem;
        min-height: 2.05rem;
        padding: 0.42rem 0.7rem;
        border-radius: 0.72rem;
        line-height: 1.4;
    }

    #busuanzi_container_site_pv,
    #busuanzi_container_site_uv {
        font-size: 0.82rem;
    }

    .footer-line:last-child {
        display: none;
    }

    .footer-container {
        gap: 0.58rem;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.045);
        border-color: rgba(255, 255, 255, 0.12);
    }

    body.light .footer-line:nth-child(1) span,
    body.light .footer-line:nth-child(2) .icp-link {
        background: rgba(0, 0, 0, 0.045);
        border-color: rgba(0, 0, 0, 0.11);
    }

    .footer-container {
        width: fit-content;
        max-width: 100%;
        padding: 0.55rem 0.62rem;
        border-radius: 0.82rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

    body.light .footer-container {
        background: rgba(0, 0, 0, 0.02);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
    }

    .footer-line,
    .footer-line:nth-child(1),
    .footer-line:nth-child(2) {
        width: auto;
        max-width: 100%;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        width: fit-content;
        max-width: 100%;
        white-space: nowrap;
    }

    .footer-container {
        width: 100%;
        max-width: 820px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.light .footer-container {
        background: transparent;
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px; /* 小屏幕进一步减小基准字体 */
    }

    .header {
        padding: 0.375rem 0.5rem;
    }

    .header-inner {
        padding: 0.5rem 0.75rem;
    }

    .header-left {
        font-size: 1.08rem;
    }

    .icon-btn {
        width: 2rem;
        height: 2rem;
    }

    .dropdown-menu {
        top: calc(100% + 0.3rem);
        min-width: 110px;
        padding: 0.5rem;
    }

    .dropdown-menu li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.74rem;
    }

    .hero-fixed {
        gap: 1.25rem;
    }

    .avatar {
        width: 6rem;
        height: 6rem;
    }

    .motto {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .content-wrapper > .section:first-child {
        padding-top: 0.8rem;
    }

    .content-wrapper {
        --content-lift: 20px;
        --content-enter-offset: 34px;
        width: calc(100% - 1rem);
        margin: 0.7rem auto 0;
        padding: 1.6rem 0.85rem 1.55rem;
        border-radius: 0.95rem;
    }

    .footer {
        width: calc(100% - 1rem);
        margin: 0.35rem auto 0.85rem;
        border-radius: 0.9rem;
        padding: 0.84rem 0.5rem 0.72rem;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        max-width: 100%;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        min-height: 1.95rem;
        padding: 0.36rem 0.58rem;
        border-radius: 0.62rem;
    }

    #busuanzi_container_site_pv,
    #busuanzi_container_site_uv {
        font-size: 0.78rem;
    }

    .footer-line:last-child {
        display: none;
    }

    .footer-container {
        gap: 0.5rem;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        min-height: 1.9rem;
        padding: 0.34rem 0.54rem;
        border-radius: 0.56rem;
    }

    .footer-container {
        padding: 0.46rem 0.5rem;
        border-radius: 0.72rem;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        white-space: nowrap;
    }

    .footer-container {
        width: 100%;
        max-width: 820px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.light .footer-container {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .link-card {
        padding: 1rem;
        min-height: 9rem;
    }

    .link-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .link-icon i {
        font-size: 0.9375rem;
    }

    .link-label {
        font-size: 0.875rem;
    }
}

/* ===================== 平板设备 (768px - 1024px) ===================== */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 15.5px; /* 平板中间值 */
    }

    .links-grid {
        gap: 1.25rem;
    }

    .link-card {
        padding: 1.375rem;
        max-width: 13.75rem;
    }

    .content-wrapper {
        --content-lift: 30px;
        --content-enter-offset: 46px;
        width: calc(100% - 2rem);
        margin: 0.25rem auto 0;
        padding: 2rem 1.2rem 1.9rem;
        border-radius: 1.05rem;
    }

    .content-wrapper > .section:first-child {
        padding-top: 1.1rem;
    }

    .footer {
        width: calc(100% - 2rem);
        margin: 0.7rem auto 1.2rem;
        padding: 1.05rem 0.8rem 0.9rem;
    }

    .footer-container {
        width: 100%;
        gap: 0.6rem;
    }

    .footer-line:nth-child(1),
    .footer-line:nth-child(2) {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        width: 100%;
        max-width: 30rem;
        min-height: 2.1rem;
        padding: 0.4rem 0.78rem;
        border-radius: 0.78rem;
    }

    .footer-container {
        width: 100%;
        max-width: 820px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.light .footer-container {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .footer-line:last-child {
        display: none;
    }

    .link-icon {
        width: 3.125rem;
        height: 3.125rem;
    }

    .link-icon i {
        font-size: 1rem;
    }
}

/* ===================== 大屏幕设备 (1440px以上) ===================== */
@media (min-width: 1440px) {
    html {
        font-size: 16px;
    }

    .header-left {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .motto {
        font-size: 1.15rem;
    }

    .links-grid {
        gap: 1.5rem;
    }

    .link-card {
        max-width: 14.5rem;
    }
}

/* ===================== 超大屏幕设备 (1920px以上) ===================== */
@media (min-width: 1920px) {
    html {
        font-size: 15.5px;
    }

    .content-wrapper {
        max-width: 1320px;
        --content-lift: 40px;
    }

    .footer {
        max-width: 1320px;
    }

    .dropdown-menu li a {
        font-size: 0.72rem;
    }
}

/* ===================== Footer Mobile/Tablet Final Cleanup ===================== */
@media (max-width: 1024px) {
    .footer-container {
        width: 100%;
        max-width: 820px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        gap: 0.48rem;
    }

    body.light .footer-container {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .footer-line:last-child {
        display: none;
    }

    .footer-line:nth-child(1),
    .footer-line:nth-child(2) {
        width: auto;
        display: block;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .footer {
        width: calc(100% - 1.5rem);
        margin: 0.5rem auto 1rem;
        padding: 0.95rem 0.65rem 0.78rem;
        border-radius: 0.95rem;
    }
}

@media (max-width: 480px) {
    .footer {
        width: calc(100% - 1rem);
        margin: 0.35rem auto 0.85rem;
        border-radius: 0.9rem;
        padding: 0.84rem 0.5rem 0.72rem;
    }

    .footer-line:nth-child(1) span,
    .footer-line:nth-child(2) .icp-link {
        min-height: 1.9rem;
        padding: 0.34rem 0.54rem;
        border-radius: 0.56rem;
    }
}

/* ===================== Content Layer Line Cleanup ===================== */
.content-wrapper {
    border-top-width: 0.5px;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.content-wrapper::before {
    content: none;
    display: none;
}

body.light .content-wrapper {
    border-top-width: 0.5px;
    border-top-color: rgba(0, 0, 0, 0.07);
}

body.light .content-wrapper::before {
    content: none;
    display: none;
}

/* ===================== Animations ===================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-fixed,
    .hero-background {
        transform: none !important;
    }

    .content-wrapper {
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .scroll-indicator {
        animation: none !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===================== 工具类 ===================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ===================== Footer Final 3-Line Layout (All Devices) ===================== */
.footer-container {
    width: 100%;
    max-width: 820px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-line {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-line:nth-child(1),
.footer-line:nth-child(2),
.footer-line:last-child {
    display: flex !important;
}

.footer-line:nth-child(1) span,
.footer-line:nth-child(2) .icp-link,
.footer-line:last-child span {
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    white-space: nowrap;
    line-height: 1.35;
}

.footer-line:last-child {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    white-space: nowrap;
}

#busuanzi_container_site_pv,
#busuanzi_container_site_uv {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    white-space: nowrap;
}

#busuanzi_value_site_pv,
#busuanzi_value_site_uv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35ch;
    margin: 0 0.08rem;
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    line-height: 1;
    transform-origin: center;
    transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

body.light #busuanzi_value_site_pv,
body.light #busuanzi_value_site_uv {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.counter-pop {
    animation: footerCounterPop 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes footerCounterPop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.16);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .footer {
        width: min(1200px, calc(100% - 2rem));
        margin: 0.85rem auto 1.5rem;
        padding: 1.35rem 1.2rem 1.15rem;
        border-radius: 1rem;
    }

    .footer-line:nth-child(1),
    .footer-line:nth-child(2),
    .footer-line:last-child {
        font-size: clamp(0.72rem, 1.6vw, 0.9rem);
    }

    .footer-line:last-child {
        gap: 0.45rem;
    }

    #busuanzi_container_site_pv,
    #busuanzi_container_site_uv {
        gap: 0.22rem;
    }
}

@media (max-width: 768px) {
    .footer {
        width: min(1200px, calc(100% - 1rem));
        padding: 1.05rem 0.72rem 0.95rem;
    }

    .footer-line:nth-child(1),
    .footer-line:nth-child(2),
    .footer-line:last-child {
        font-size: clamp(0.64rem, 2.7vw, 0.8rem);
        letter-spacing: 0.01em;
    }

    .footer-line:last-child {
        gap: 0.3rem;
    }

    #busuanzi_container_site_pv,
    #busuanzi_container_site_uv {
        gap: 0.14rem;
    }

    #busuanzi_value_site_pv,
    #busuanzi_value_site_uv {
        min-width: 2.15ch;
        margin: 0 0.06rem;
        padding: 0.1rem 0.32rem;
    }
}

/* ===================== Unified Title Underline (toluv/about/links) ===================== */
.header-left,
#about .section-title,
#links .section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.62rem;
}

.header-left::before,
#about .section-title::after,
#links .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.82) 22%,
    rgba(255, 255, 255, 0.82) 78%,
    transparent 100%);
    background-size: 200% 100%;
    animation: lineFlow 3.1s linear infinite;
    transition: none;
}

body.light .header-left::before,
body.light #about .section-title::after,
body.light #links .section-title::after {
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.62) 22%,
    rgba(0, 0, 0, 0.62) 78%,
    transparent 100%);
}

.header:hover .header-left::before {
    width: 100%;
}

#about,
#links {
    text-align: left;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(0.72rem, 1.45vw, 1.02rem);
    min-height: clamp(210px, 24vh, 300px);
}

#about .section-title {
    margin-bottom: 0;
    align-self: flex-start;
    text-align: left;
}

#links .section-title {
    align-self: flex-start;
    text-align: left;
}

#about .section-text {
    margin: 0;
    margin-top: auto;
    margin-bottom: clamp(0.02rem, 0.2vw, 0.14rem);
    transform: translateY(clamp(0.95rem, 2.2vw, 1.5rem));
    align-self: center;
    text-align: center;
    max-width: 38rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2.2rem, 3.2vw, 2.9rem);
    padding: 0 1rem;
}

#links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#links .links-container {
    width: 100%;
}

@media (max-width: 1024px) {
    .header-left,
    #about .section-title,
    #links .section-title {
        padding-bottom: 0.56rem;
    }

    .header-left::before,
    #about .section-title::after,
    #links .section-title::after {
        height: 1.8px;
    }

    #about {
        gap: clamp(0.62rem, 1.8vw, 0.86rem);
        min-height: clamp(186px, 21vh, 260px);
    }

    #about .section-text {
        margin-top: auto;
        margin-bottom: clamp(0rem, 0.2vw, 0.12rem);
        transform: translateY(clamp(0.72rem, 2.8vw, 1.18rem));
        min-height: clamp(2.05rem, 4vw, 2.6rem);
        padding: 0 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-left,
    #about .section-title,
    #links .section-title {
        padding-bottom: 0.5rem;
    }

    .header-left::before,
    #about .section-title::after,
    #links .section-title::after {
        height: 1.6px;
    }

    #about {
        gap: 0.56rem;
        min-height: clamp(160px, 19vh, 220px);
    }

    #about .section-text {
        margin-top: auto;
        margin-bottom: 0.06rem;
        transform: translateY(clamp(0.5rem, 2.5vw, 0.88rem));
        min-height: auto;
        padding: 0 0.7rem;
    }
}

/* ===================== Header Dropdown Compact (Tablet/Mobile) ===================== */
@media (max-width: 1024px) {
    :root {
        --section-anchor-offset: 5.25rem;
    }

    .dropdown-menu {
        min-width: 112px;
        padding: 0.56rem;
    }

    .dropdown-menu ul {
        gap: 0.34rem;
    }

    .dropdown-menu li a {
        padding: 0.52rem 0.74rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-anchor-offset: 4.8rem;
    }

    .dropdown-menu {
        min-width: 104px;
        padding: 0.48rem;
    }

    .dropdown-menu li a {
        padding: 0.46rem 0.62rem;
        font-size: 0.74rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-anchor-offset: 4.5rem;
    }

    .dropdown-menu {
        min-width: 98px;
        padding: 0.42rem;
    }

    .dropdown-menu li a {
        padding: 0.42rem 0.54rem;
        font-size: 0.72rem;
    }
}
