/* ============================================================
   首页专用样式 · 阶段2 标杆
   迁移自 assets/index/style.css + apple-glass.css(reveal/glass 段)
   消费 design-tokens.css 全局令牌；自带 --home-* 局部变量
   ============================================================ */
:root {
    --home-shell-width: 1240px;
    --home-radius-lg: 28px;
    --home-radius-md: 20px;
    --home-radius-sm: 14px;
    --home-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.12);
    --home-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
    --home-border-glass: rgba(255, 255, 255, 0.34);
    --home-grid-line: rgba(148, 163, 184, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 24%),
        radial-gradient(circle at left 20%, rgba(14, 165, 233, 0.1), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 16%, #f8fafc 100%);
    font-family: var(--font-sans);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

header.scrolled::before {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: var(--border-default);
    box-shadow: var(--shadow-sm);
}

nav {
    position: relative;
    max-width: var(--home-shell-width);
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.logo::before {
    content: "";
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.26));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-image {
    height: 36px;
    width: auto;
    margin-left: -2.9rem;
    position: relative;
    z-index: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

header.scrolled .logo-text {
    color: var(--text-primary);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 1;
}

header.scrolled nav ul {
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--border-default);
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

header.scrolled nav ul li a {
    color: var(--text-secondary);
}

nav ul li a:hover,
nav ul li a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

header.scrolled nav ul li a:hover,
header.scrolled nav ul li a:focus-visible {
    color: var(--accent-primary);
    background: var(--accent-subtle);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 1;
    font-size: 1.45rem;
    color: #ffffff;
    cursor: pointer;
}

header.scrolled .menu-toggle {
    color: var(--text-primary);
}

main {
    position: relative;
}

section {
    max-width: var(--home-shell-width);
    margin: 0 auto;
    padding: 5.4rem 5%;
    position: relative;
}

section.hero {
    max-width: none;
    padding: 0;
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px),
        linear-gradient(var(--home-grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.32;
    z-index: 1;
}

.fullscreen-swiper,
.swiper-wrapper,
.swiper-slide {
    width: 100%;
    min-height: 100vh;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}

.swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(2, 6, 23, 0.84) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.64));
    z-index: 0;
}

.slide-content {
    position: absolute;
    left: min(8vw, 7rem);
    bottom: 12vh;
    z-index: 2;
    width: min(92vw, 820px);
    color: #ffffff;
    animation: heroFade 0.9s ease 0.15s both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.slide-content h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.9rem, 7vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.slide-content p {
    margin: 0 0 1.5rem;
    max-width: 48rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.85;
}

.slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.hero-btn {
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.slide-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.slide-signals span {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
}

.swiper-pagination {
    bottom: 2rem !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 999px;
    background: #ffffff;
}

.section-header {
    margin-bottom: 2.4rem;
    position: relative;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    position: absolute;
    top: -1.1rem;
    left: 0;
    z-index: 0;
    color: rgba(37, 99, 235, 0.09);
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
}

#about,
#services,
#portfolio,
#studio-culture,
#studio-environment {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#about,
#portfolio,
#studio-environment {
    margin-top: 1.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--home-radius-md);
    overflow: hidden;
    box-shadow: var(--home-shadow-card);
}

.about-image::after {
    content: "";
    position: absolute;
    inset: auto 1rem 1rem auto;
    width: 5rem;
    height: 5rem;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.18));
    filter: blur(2px);
}

.about-img,
.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    padding: 1.5rem 0.2rem;
}

.about-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-secondary);
}

.service-grid,
.team-grid,
.portfolio-grid,
.culture-content,
.environment-content {
    display: grid;
    gap: 1.3rem;
}

.service-grid,
.team-grid,
.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.culture-content,
.environment-content {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-item,
.team-member,
.portfolio-item,
.culture-item,
.environment-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--home-radius-md);
    border: 1px solid var(--border-default);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--home-shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-item:hover,
.team-member:hover,
.portfolio-item:hover,
.culture-item:hover,
.environment-item:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.service-item {
    padding: 2rem 1.6rem;
}

.service-item::before,
.culture-item::before {
    content: "";
    position: absolute;
    inset: auto -1rem -2rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 70%);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.2));
    color: var(--accent-primary);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.service-item h3,
.member-info h3,
.portfolio-info h3,
.culture-item h3,
.environment-info h3 {
    margin: 0 0 0.7rem;
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.service-item p,
.bio,
.portfolio-info p,
.culture-item p,
.environment-info p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.member-image {
    height: 280px;
    overflow: hidden;
}

.team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info,
.portfolio-info,
.environment-info {
    padding: 1.35rem 1.35rem 1.45rem;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 230px;
}

.position {
    color: var(--accent-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.bio {
    flex: 1;
    font-size: 0.95rem;
}

.member-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
    background: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.portfolio-item img,
.environment-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.portfolio-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.portfolio-info .btn,
.custom-btn {
    min-height: 2.9rem;
    padding: 0.78rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.portfolio-info .btn:hover,
.custom-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

#team-query {
    padding: 0 5% 5.4rem;
    max-width: var(--home-shell-width);
}

.team-query-content {
    padding: 2.4rem 1.6rem;
    border-radius: var(--home-radius-lg);
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
    text-align: center;
    box-shadow: var(--home-shadow-soft);
}

.team-query-content::before {
    content: "成员验证 / 合作识别";
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

footer {
    margin-top: 4rem;
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: rgba(226, 232, 240, 0.78);
}

.footer-content {
    max-width: var(--home-shell-width);
    margin: 0 auto;
    padding: 0 5%;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 1.2rem;
    border-radius: var(--home-radius-md);
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-section h4 {
    margin: 0 0 0.85rem;
    color: #ffffff;
    font-size: 1rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: rgba(226, 232, 240, 0.76);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 1.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(226, 232, 240, 0.76);
}

.footer-bottom a:hover {
    color: #ffffff;
}

.beian-icon {
    height: 16px;
    width: auto;
}

.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--home-radius-md);
    box-shadow: var(--home-shadow-soft);
}

.modal-header,
.modal-footer {
    border-color: var(--border-default);
}

.form-control {
    min-height: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-default);
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.wechat-popover {
    max-width: 210px;
    border-radius: var(--home-radius-sm);
    border: 1px solid var(--border-default);
    box-shadow: var(--home-shadow-card);
}

.wechat-qr {
    width: 100%;
    border-radius: 0.75rem;
}

@media (max-width: 980px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .slide-content {
        left: 5%;
        width: 90%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.95rem 1rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        border-radius: 1.4rem;
        background: rgba(255, 255, 255, 0.94);
        border-color: var(--border-default);
        box-shadow: var(--home-shadow-card);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li a {
        color: var(--text-primary);
        justify-content: flex-start;
    }

    .slide-content {
        left: 50%;
        bottom: 8vh;
        width: min(92vw, 620px);
        transform: translateX(-50%);
        text-align: center;
    }

    .slide-actions,
    .slide-signals {
        justify-content: center;
    }

    .slide-content p {
        font-size: 0.98rem;
    }

    section {
        padding: 4.4rem 1rem;
    }

    #team-query {
        padding: 0 1rem 4.4rem;
    }

    .service-grid,
    .team-grid,
    .portfolio-grid,
    .culture-content,
    .environment-content,
    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   主题切换按钮（首页导航内 · 适配透明 / 滚动两态）
   ============================================================ */
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

nav .theme-toggle {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

nav .theme-toggle:hover,
nav .theme-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

header.scrolled nav .theme-toggle {
    background: var(--bg-muted);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

header.scrolled nav .theme-toggle:hover,
header.scrolled nav .theme-toggle:focus-visible {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ============================================================
   暗色主题再皮（保留营销结构，补硬编码白底的暗色覆盖）
   说明：文字色/边框多为令牌驱动会自动随主题；此处仅覆盖
         硬编码的白色「表面」(body / 区块 / 卡片 / 玻璃头部)。
   ============================================================ */
[data-theme="dark"] body {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 24%),
        radial-gradient(circle at left 20%, rgba(14, 165, 233, 0.12), transparent 20%),
        linear-gradient(180deg, #0b1220 0%, #09090b 16%, #09090b 100%);
}

[data-theme="dark"] header::before {
    background: rgba(9, 9, 11, 0.28);
    border-bottom-color: rgba(63, 63, 70, 0.4);
}

[data-theme="dark"] header.scrolled::before {
    background: rgba(9, 9, 11, 0.82);
    border-bottom-color: var(--border-default);
}

[data-theme="dark"] header.scrolled nav ul {
    background: rgba(24, 24, 27, 0.82);
    border-color: var(--border-default);
}

[data-theme="dark"] #about,
[data-theme="dark"] #services,
[data-theme="dark"] #portfolio,
[data-theme="dark"] #studio-culture,
[data-theme="dark"] #studio-environment {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.72), rgba(24, 24, 27, 0.86));
    border-color: rgba(63, 63, 70, 0.6);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .service-item,
[data-theme="dark"] .team-member,
[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .culture-item,
[data-theme="dark"] .environment-item {
    background: rgba(24, 24, 27, 0.86);
    border-color: var(--border-default);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .service-item:hover,
[data-theme="dark"] .team-member:hover,
[data-theme="dark"] .portfolio-item:hover,
[data-theme="dark"] .culture-item:hover,
[data-theme="dark"] .environment-item:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .portfolio-tag {
    background: rgba(24, 24, 27, 0.88);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-surface0);
    color: var(--text-primary);
    border-color: var(--border-default);
}

[data-theme="dark"] .form-control {
    background: var(--input-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--input-placeholder);
}

@media (max-width: 768px) {
    [data-theme="dark"] nav ul {
        background: rgba(24, 24, 27, 0.96);
        border-color: var(--border-default);
    }
}

/* ===== 滚动揭示动画 + 玻璃卡片悬停（迁移自 apple-glass.css 128-217；由 app-enhanced.js 的 IntersectionObserver 加 .visible 触发）===== */
/* ============================================================
   Scroll-Reveal Animations (Intersection Observer driven)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out-expo),
                transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Direction variants */
.reveal-up {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.7s var(--ease-out-expo),
                transform 0.7s var(--ease-out-expo);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out-expo),
                transform 0.7s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-out-expo),
                transform 0.7s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.65s var(--ease-out-expo),
                transform 0.65s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ============================================================
   Glass Card Hover Enhancement
   ============================================================ */
.glass-card-hover {
    transition: transform 0.35s var(--ease-out-expo),
                box-shadow 0.35s var(--ease-out-expo),
                border-color 0.35s ease;
}

.glass-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
}

.glass-card-hover:active {
    transform: scale(0.98);
    transition: transform 0.12s ease;
}

/* 移动端揭示位移收敛 */
@media (max-width: 768px) {
    .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale { transform: translateY(24px); }
}

/* 减少动态效果兜底（与 base.css 全局 reduced-motion 协同）*/
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
    .glass-card-hover:hover { transform: none; }
}
