/* ============================================================
           公用样式（所有页面共享）
           ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f7cff;
    --primary-dark: #3a5fd9;
    --primary-glow: rgba(79, 124, 255, 0.45);
    --accent: #00d4ff;
    --bg-base: #060b18;
    --bg-dark: #0a1122;
    --bg-card: #0f1a30;
    --bg-glass: rgba(15, 26, 48, 0.55);
    --text: #eaf0ff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(79, 124, 255, 0.25);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 80px rgba(79, 124, 255, 0.20);
    --radius: 1.25rem;
    --radius-sm: 0.75rem;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-base);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.container {
    width: 96%;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-full);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(79, 124, 255, 0.35);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 44px rgba(79, 124, 255, 0.50);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-glow-wrap {
    position: relative;
    display: inline-block;
}

.btn-glow-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    opacity: 0.3;
    filter: blur(18px);
    animation: glowPulse 3s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes glowPulse {
    0% {
        opacity: 0.2;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 3.6rem);
    font-weight: 800;
    text-align: center;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 头部（公用） ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #03050b;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    padding: 0.4rem 0;
    transition: background 0.3s;
}

.header.scrolled {
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(24px) saturate(1.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 96%;
    margin: 0 auto;
    padding: 1rem;
}

.logo img {
    height: 2rem;
    width: auto;
    transition: opacity 0.2s;
}

.logo:hover img {
    opacity: 0.85;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    margin-left: 2.5rem;
}

@media (min-width: 820px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-desktop>a {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-desktop>a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 0.8rem;
}

@media (min-width: 820px) {
    .nav-cta {
        display: flex;
    }
}

.nav-cta .btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1.4rem;
    border-radius: var(--radius-full);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(79, 124, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-cta .btn-login:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(79, 124, 255, 0.40);
}

.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.7rem;
    color: #fff;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 820px) {
    .hamburger {
        display: none;
    }
}

.nav-mobile {
    display: none;
    padding: 0.5rem 0.5rem 1rem;
    border-top: 1px solid var(--border);
    width: 100%;
    margin: 0 auto;
    background: rgba(6, 11, 24, 0.92);
    backdrop-filter: blur(12px);
}

.nav-mobile.open {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile a {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.nav-mobile a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-mobile .btn-login-mobile {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    border-radius: var(--radius-full);
    padding: 0.6rem;
}

/* ===== 底部（公用） ===== */
.footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    padding: 3.5rem 1rem 1.8rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem 4rem;
    margin: 0 auto;
}

.footer-brand {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 320px;
}

.footer-brand .logo-footer img {
    height: 2.6rem;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-brand .logo-footer img:hover {
    opacity: 1;
}

.footer-brand .brand-desc {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 0.6rem;
    line-height: 1.7;
}

.footer-brand .brand-desc strong {
    color: #fff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 3rem;
    flex: 1;
    max-width: 560px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li:first-child {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    position: relative;
    display: inline-block;
}

.footer-links ul li:first-child::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 0.3rem;
    opacity: 0.5;
}

.footer-links ul li {
    margin-bottom: 0.25rem;
}

.footer-links ul a {
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
    padding: 0.1rem 0;
    position: relative;
}

.footer-links ul a:hover {
    color: #fff;
    padding-left: 0.3rem;
}

.footer-links ul a::before {
    content: '›';
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
    margin-right: 0.2rem;
    color: var(--primary);
}

.footer-links ul a:hover::before {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.7rem;
    margin-top: 2.8rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    letter-spacing: 0.5px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom .heart {
    color: var(--accent);
    display: inline-block;
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@media (max-width: 820px) {
	.logo img {
        height: 1.2rem;
    }
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
        max-width: 100%;
        width: 100%;
    }

    .footer-links ul li:first-child::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
	.container {
        width: 100%;
    }
    .footer {
        padding: 2.5rem 0.5rem 1.2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .footer-links ul li:first-child {
        font-size: 0.8rem;
    }

    .footer-links ul a {
        font-size: 0.75rem;
    }

    .footer-brand .logo-footer img {
        height: 2rem;
    }

    .footer-brand .brand-desc {
        font-size: 0.75rem;
    }

    .footer-bottom {
        font-size: 0.6rem;
        padding-top: 1rem;
        margin-top: 2rem;
    }
}

.backfab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.backfab button,
.backfab a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 26, 48, 0.70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.backfab button:hover,
.backfab a:hover {
    transform: translateY(-2px) scale(1.04);
    background: rgba(79, 124, 255, 0.15);
    color: #fff;
    box-shadow: 0 12px 32px rgba(79, 124, 255, 0.15);
    border-color: rgba(79, 124, 255, 0.20);
}