/* ============================================================
   CSS 变量 — 支持深色模式
   ============================================================ */
:root {
    --bg-body: #F5F8FA;
    --text-primary: #1A2A3C;
    --text-secondary: #3A4A5C;
    --text-light: #4A5A6C;
    --glass-bg: rgba(255, 255, 255, 0.13);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    --glass-highlight: rgba(255, 255, 255, 0.35);
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.30);
    --hero-bg: rgba(255, 255, 255, 0.15);
    --hero-border: rgba(255, 255, 255, 0.25);
    --nav-bg: rgba(245, 248, 250, 0.85);
    --sidebar-bg: rgba(255, 255, 255, 0.12);
    --overlay-bg: rgba(58, 74, 92, 0.15);
    --blur-amount: 18px;
    --blur-card: 14px;
    --blur-glass: 20px;
    --bg-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1200&q=80');
    --gallery-img-size: 600;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #1A1E2A;
        --text-primary: #E8EDF5;
        --text-secondary: #C8D0DC;
        --text-light: #A0AAB8;
        --glass-bg: rgba(255, 255, 255, 0.06);
        --glass-border: rgba(255, 255, 255, 0.10);
        --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.30);
        --glass-highlight: rgba(255, 255, 255, 0.12);
        --card-bg: rgba(255, 255, 255, 0.05);
        --card-border: rgba(255, 255, 255, 0.12);
        --hero-bg: rgba(255, 255, 255, 0.05);
        --hero-border: rgba(255, 255, 255, 0.10);
        --nav-bg: rgba(26, 30, 42, 0.88);
        --sidebar-bg: rgba(26, 30, 42, 0.75);
        --overlay-bg: rgba(0, 0, 0, 0.40);
        --bg-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1200&q=80&auto=format&fit=crop');
    }
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 100vh;
    background-image: var(--bg-image);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: background-color 0.5s ease, color 0.4s ease;
}

/* ============================================================
   验证层
   ============================================================ */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s ease;
    pointer-events: auto;
}

.verification-overlay.hide {
    opacity: 0;
    transform: translateY(-30px) scale(0.96);
    pointer-events: none;
    visibility: hidden;
}

.glass-card {
    width: 100%;
    max-width: 400px;
    padding: 40px 32px 36px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 25% 18%, var(--glass-highlight) 0%, transparent 55%);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.5s;
}

.glass-card>* {
    position: relative;
    z-index: 2;
}

.view {
    display: none;
    animation: fadeInUp 0.50s ease both;
}
.view.active {
    display: block;
}

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

.card-title {
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}
.card-sub {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 32px;
    opacity: 0.85;
}
.btn-primary {
    display: inline-block;
    padding: 14px 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 180, 209, 0.30);
    border-radius: 60px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(148, 180, 209, 0.06);
    user-select: none;
}
.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #94B4D1;
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(148, 180, 209, 0.12);
}
.btn-primary:active {
    transform: scale(0.97);
}
.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.8rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.20);
}
.status-icon.success {
    color: #5BA88C;
}
.status-icon.fail {
    color: #D48A8A;
}
.status-title {
    font-size: 2.0rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.status-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 28px;
}
.link-reset {
    display: inline-block;
    color: #94B4D1;
    font-size: 0.90rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.25s, transform 0.25s;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    background: none;
    border: none;
    font-family: inherit;
}
.link-reset:hover {
    color: #7AA3C0;
    border-bottom-color: #94B4D1;
    transform: translateY(-1px);
}
.btn-enter {
    margin-top: 12px;
}

/* ============================================================
   主内容
   ============================================================ */
.main-content {
    opacity: 0;
    transition: opacity 1.0s ease 0.2s;
    min-height: 100vh;
    position: relative;
}
.main-content.visible {
    opacity: 1;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 0;
    position: relative;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 16px 16px 0;
    }
}

/* ============================================================
   顶部导航
   ============================================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.35s ease, transform 0.40s ease, background 0.4s;
    pointer-events: none;
    border-bottom: 1px solid rgba(148, 180, 209, 0.08);
}
.top-nav:hover,
.top-nav:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.top-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}
.top-nav .nav-left ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}
.top-nav .nav-left ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}
.top-nav .nav-left ul li a:hover {
    color: #94B4D1;
    border-bottom-color: #94B4D1;
}
.nav-lang {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border: 1px solid rgba(148, 180, 209, 0.20);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.25s;
    user-select: none;
    white-space: nowrap;
}
.nav-lang:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #94B4D1;
}

@media (max-width: 640px) {
    .top-nav {
        padding: 0 16px;
        height: 48px;
    }
    .top-nav .nav-left ul {
        gap: 16px;
    }
    .top-nav .nav-left ul li a {
        font-size: 0.80rem;
    }
    .nav-lang {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ============================================================
   汉堡图标
   ============================================================ */
.hamburger {
    position: fixed;
    top: 14px;
    right: 24px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: rgba(245, 248, 250, 0.60);
    border-radius: 8px;
    border: 1px solid rgba(148, 180, 209, 0.15);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    padding: 8px 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.80);
    border-color: #94B4D1;
    transform: scale(1.02);
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.30s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        top: 12px;
        right: 16px;
        width: 36px;
        height: 36px;
        gap: 4px;
    }
    .hamburger span {
        width: 20px;
        height: 2px;
    }
}
@media (max-width: 480px) {
    .hamburger {
        top: 10px;
        right: 12px;
        width: 32px;
        height: 32px;
        padding: 6px 4px;
        gap: 3px;
    }
    .hamburger span {
        width: 18px;
        height: 2px;
    }
}

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 84vw;
    height: 100%;
    z-index: 1200;
    background: var(--sidebar-bg);
    backdrop-filter: blur(var(--blur-glass)) saturate(1.1);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.1);
    box-shadow: -6px 0 40px rgba(0, 0, 0, 0.04), inset 1px 0 0 rgba(255, 255, 255, 0.08);
    padding: 80px 32px 40px;
    transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
    overflow-y: auto;
    border-left: 1px solid var(--glass-border);
}
.sidebar::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 160%;
    background: radial-gradient(ellipse at 30% 10%, var(--glass-highlight) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.4;
}
.sidebar.open {
    right: 0;
}
.sidebar .sidebar-brand {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--text-light);
    opacity: 0.5;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 300;
    position: relative;
    z-index: 2;
}
.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}
.sidebar ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 450;
    letter-spacing: 0.06em;
    padding: 14px 18px;
    display: block;
    border-radius: 14px;
    transition: all 0.30s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}
.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--glass-border);
    transform: translateX(4px);
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 180, 209, 0.20);
    border-radius: 10px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1150;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.40s ease;
}
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        padding: 72px 20px 30px;
        right: -300px;
    }
    .sidebar ul li a {
        font-size: 1.05rem;
        padding: 12px 16px;
    }
}
@media (max-width: 480px) {
    .sidebar {
        width: 260px;
        padding: 64px 16px 24px;
        right: -280px;
    }
    .sidebar ul li a {
        font-size: 1.0rem;
        padding: 10px 14px;
    }
}

/* ============================================================
   Hero + About
   ============================================================ */
.hero-about {
    padding: 120px 30px 60px;
    text-align: center;
    position: relative;
    background: var(--hero-bg);
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--hero-border);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.4s, border-color 0.4s, transform 0.3s ease-out;
    will-change: transform;
}
.hero-about h1 {
    font-size: 4.2rem;
    font-weight: 300;
    letter-spacing: 0.10em;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}
.hero-about .subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    opacity: 0.85;
    border-top: 1px solid rgba(148, 180, 209, 0.20);
    display: inline-block;
    padding-top: 14px;
    margin-bottom: 24px;
}
.hero-about .about-text {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.9;
    background: rgba(255, 255, 255, 0.12);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .hero-about {
        padding: 100px 20px 40px;
    }
    .hero-about h1 {
        font-size: 2.8rem;
    }
    .hero-about .subtitle {
        font-size: 0.90rem;
    }
    .hero-about .about-text {
        font-size: 0.95rem;
        padding: 16px 20px;
    }
}
@media (max-width: 480px) {
    .hero-about {
        padding: 80px 16px 30px;
    }
    .hero-about h1 {
        font-size: 2.2rem;
    }
    .hero-about .about-text {
        font-size: 0.90rem;
        padding: 14px 16px;
    }
}

/* ============================================================
   文章列表
   ============================================================ */
.blog-section {
    padding: 40px 0 20px;
}
.blog-section .section-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}
.blog-section .section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: #94B4D1;
    margin: 12px auto 0;
    border-radius: 4px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }
}
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== 文章卡片 — 升级液态玻璃 ===== */
.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-card)) saturate(1.1);
    -webkit-backdrop-filter: blur(var(--blur-card)) saturate(1.1);
    border-radius: 24px;
    padding: 20px 24px 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: transform 0.30s ease, box-shadow 0.40s ease, background 0.4s, border-color 0.4s;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 1;
    will-change: transform;
}
/* 动态高光 */
.blog-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, var(--glass-highlight) 0%, transparent 55%);
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.5s, transform 0.6s ease;
    transform: translate(0, 0);
}
.blog-card:hover::before {
    opacity: 0.8;
    transform: translate(5%, 5%);
}
/* 噪点纹理 */
.blog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    mix-blend-mode: overlay;
    border-radius: 24px;
    z-index: 0;
}
.blog-card>* {
    position: relative;
    z-index: 1;
}
.blog-card:hover {
    transform: translateY(-6px) scale(1.005);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}
.blog-card.hidden-card {
    display: none;
}
.blog-card.visible-card {
    display: block;
    animation: fadeInUp 0.5s ease both;
}

.blog-card .card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.blog-card .post-date {
    font-size: 0.70rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.7;
    flex-shrink: 0;
}
.blog-card .post-title {
    font-size: 1.20rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.4;
    flex: 1;
}
.blog-card .toggle-icon {
    font-size: 1.1rem;
    color: #94B4D1;
    transition: transform 0.35s ease;
    flex-shrink: 0;
    margin-left: 4px;
}
.blog-card.expanded .toggle-icon {
    transform: rotate(180deg);
}
.blog-card .card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.50s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, margin 0.35s ease;
    opacity: 0;
    margin-top: 0;
}
.blog-card.expanded .card-content {
    max-height: 900px;
    opacity: 1;
    margin-top: 16px;
}
.blog-card .card-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 180, 209, 0.10);
    font-weight: 400;
    letter-spacing: 0.01em;
}
.read-more-tag {
    font-size: 0.78rem;
    color: #94B4D1;
    letter-spacing: 0.08em;
    font-weight: 400;
    text-align: right;
    padding-top: 6px;
    border-top: 1px dashed rgba(148, 180, 209, 0.15);
    margin-top: 4px;
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
}

.expand-btn {
    display: block;
    margin: 20px auto 10px;
    padding: 10px 32px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(148, 180, 209, 0.25);
    border-radius: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
    width: fit-content;
    min-width: 160px;
}
.expand-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: #94B4D1;
    transform: scale(1.02);
}
.expand-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .blog-card {
        padding: 16px 18px 18px;
    }
    .blog-card .post-title {
        font-size: 1.05rem;
    }
    .blog-card .card-content p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    .expand-btn {
        font-size: 0.85rem;
        padding: 8px 24px;
        min-width: 140px;
    }
}

/* ============================================================
   海风影集
   ============================================================ */
.gallery-section {
    padding: 40px 0 10px;
}
.gallery-section .gallery-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}
.gallery-section .gallery-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: #94B4D1;
    margin: 12px auto 0;
    border-radius: 4px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
@media (max-width: 420px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    border: 1px solid var(--card-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: transform 0.30s ease, box-shadow 0.35s ease, background 0.4s;
    position: relative;
}
.gallery-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background: var(--bg-body);
}
.gallery-item:hover img {
    transform: scale(1.02);
}
.gallery-item.hidden-photo {
    display: none;
}
.gallery-item.visible-photo {
    display: block;
    animation: fadeInUp 0.5s ease both;
}

.gallery-expand-btn {
    display: block;
    margin: 24px auto 10px;
    padding: 10px 32px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(148, 180, 209, 0.25);
    border-radius: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
    width: fit-content;
    min-width: 160px;
}
.gallery-expand-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: #94B4D1;
    transform: scale(1.02);
}
.gallery-expand-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .gallery-item img {
        height: 160px;
    }
    .gallery-expand-btn {
        font-size: 0.85rem;
        padding: 8px 24px;
        min-width: 140px;
    }
}

/* ============================================================
   底部通栏
   ============================================================ */
.footer {
    width: 100%;
    margin: 40px auto 20px;
    padding: 28px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount)) saturate(1.15);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(1.15);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s, border-color 0.4s;
}
.footer::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 10%, var(--glass-highlight) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.4;
}
.footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.footer .footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer .footer-note {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    line-height: 1.8;
    max-width: 700px;
    opacity: 0.85;
}
.footer .footer-email {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 180, 209, 0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.footer .footer-email:hover {
    color: var(--text-primary);
    transform: scale(1.02);
    border-color: rgba(148, 180, 209, 0.30);
    background: rgba(255, 255, 255, 0.12);
}
.footer .footer-email .email-icon {
    font-size: 1.0rem;
    opacity: 0.7;
}
.footer .footer-copy {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.06em;
    opacity: 0.6;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .footer {
        padding: 24px 20px;
        margin: 30px auto 16px;
        border-radius: 16px;
    }
    .footer .footer-note {
        font-size: 0.85rem;
        line-height: 1.7;
        max-width: 100%;
    }
    .footer .footer-email {
        font-size: 0.88rem;
        padding: 4px 10px;
    }
    .footer .footer-copy {
        font-size: 0.72rem;
    }
}
@media (max-width: 480px) {
    .footer {
        padding: 20px 16px;
        margin: 24px auto 12px;
        border-radius: 14px;
    }
    .footer .footer-note {
        font-size: 0.80rem;
        line-height: 1.6;
    }
    .footer .footer-email {
        font-size: 0.82rem;
        padding: 3px 8px;
        gap: 4px;
    }
    .footer .footer-copy {
        font-size: 0.68rem;
    }
    .footer .footer-content {
        gap: 8px;
    }
}

/* ============================================================
   滚动视差辅助
   ============================================================ */
.parallax-bg {
    transition: transform 0.1s ease-out;
    will-change: transform;
}
.parallax-hero {
    transition: transform 0.15s ease-out;
    will-change: transform;
}
.parallax-card {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* ============================================================
   工具类
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 图片渐进加载 */
img {
    opacity: 0;
    transition: opacity 0.6s ease;
}
img.loaded {
    opacity: 1;
}
img.loading {
    opacity: 0.3;
}