/* ============ 全局变量 ============ */
:root {
    --bg-0: #0a1428;
    --bg-1: #0f1d3a;
    --bg-2: #162a55;
    --text: #ffffff;
    --text-dim: #a8b8d8;
    --text-faint: #7488ad;
    --accent: #4a7fd6;
    --accent-2: #8ab4f0;
    --accent-3: #c7dcff;
    --card: rgba(255, 255, 255, 0.035);
    --card-border: rgba(138, 180, 240, 0.12);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ 背景层（柔光） ============ */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 52% 44% at 28% 8%, rgba(30, 58, 138, 0.30) 0%, rgba(30, 58, 138, 0) 64%),
        radial-gradient(ellipse 46% 40% at 76% 22%, rgba(56, 84, 168, 0.16) 0%, rgba(56, 84, 168, 0) 62%),
        radial-gradient(ellipse 66% 52% at 50% 102%, rgba(13, 25, 52, 0.6) 0%, transparent 62%),
        linear-gradient(180deg, #05070d 0%, #080c16 42%, #060a13 74%, #05070d 100%);
    pointer-events: none;
    animation: glowShift 22s ease-in-out infinite alternate;
}

@keyframes glowShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    50%  { filter: hue-rotate(8deg) brightness(1.05); }
    100% { filter: hue-rotate(-5deg) brightness(0.98); }
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 极客感细微网格线纹理 */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(138, 180, 240, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 180, 240, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 0%, transparent 78%);
}

/* ============ 顶部导航 ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    background: rgba(7, 10, 24, 0.6);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--card-border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.nav-logo .badge {
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(168, 184, 216, 0.55);
    margin-top: -10px;
    align-self: flex-start;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: color 0.2s;
    border-radius: 8px;
}

.nav-item > a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }

/* 全屏下拉菜单 */
.nav-dropdown-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(12, 18, 38, 0.98) 0%, rgba(8, 12, 28, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(91, 141, 239, 0.3);
    padding: 36px 5%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9999;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
}

.nav-item:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 22px;
    min-width: 220px;
    flex: 1;
    transition: all 0.3s;
}

.menu-category:hover {
    background: rgba(91, 141, 239, 0.08);
    border-color: rgba(91, 141, 239, 0.4);
    transform: translateY(-3px);
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(91, 141, 239, 0.2);
}

.menu-category a {
    display: block;
    padding: 10px 12px;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    margin: 4px 0;
}

.menu-category a:hover {
    background: rgba(91, 141, 239, 0.15);
    color: #fff;
    transform: translateX(4px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-ghost {
    color: var(--text-dim);
    border: 1px solid var(--card-border);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.btn-primary {
    background: #fff;
    color: #0a0f24;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover { background: var(--accent-2); color: #0a0f24; transform: translateY(-1px); }

/* ============ 导航栏搜索框 ============ */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-input {
    width: 180px;
    padding: 8px 38px 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(138, 180, 240, 0.25);
    border-radius: 999px;
    color: #fff;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    outline: none;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nav-search-input:focus {
    width: 230px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-2);
    box-shadow: 0 0 12px rgba(138, 180, 240, 0.3);
}

.nav-search-input:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(138, 180, 240, 0.5);
}

.nav-search-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.nav-search-btn:hover {
    color: var(--accent-2);
    transform: scale(1.1);
}

/* ============ Hero ============ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 5% 60px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(199, 220, 255, 0.85);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 34px;
}

.hero-tag .dot {
    width: 6px; height: 6px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(138, 180, 240, 0.7);
}

.hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.5rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(199, 220, 255, 0.7) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .accent {
    display: inline-block;
    background: linear-gradient(180deg, #eaf1ff 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.hero .lead {
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
    margin-top: 10px;
    line-height: 1.9;
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 10px 20px;
}

.hero .lead .kv b {
    font-weight: 600;
    color: var(--accent-3);
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.hero .lead .kv.sep {
    color: rgba(138, 180, 240, 0.45);
}

.hero-cta {
    margin-top: 44px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.btn-white {
    background: #fff;
    color: #0a0f24;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.btn-white:hover { background: rgba(255, 255, 255, 0.92); transform: translateY(-2px); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
    color: #060b18;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(74, 127, 214, 0.35);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }

/* 产品拟真窗（玻璃拟物 Mockup） */
.hero-mockup {
    position: relative;
    width: min(860px, 92%);
    margin: 64px auto 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: perspective(1400px) rotateX(3deg) translateY(10px);
    transform-origin: top center;
}

.hero-mockup-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mockup-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.hero-mockup-bar span:nth-child(1) { background: #ff5f57; }
.hero-mockup-bar span:nth-child(2) { background: #febc2e; }
.hero-mockup-bar span:nth-child(3) { background: #28c840; }

.hero-mockup-bar .mockup-title {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(199, 220, 255, 0.5);
    letter-spacing: 1px;
}

.hero-mockup img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-mockup .mockup-fallback {
    min-height: 320px;
    background:
        radial-gradient(circle at 30% 30%, rgba(138, 180, 240, 0.22), transparent 60%),
        radial-gradient(circle at 75% 65%, rgba(74, 127, 214, 0.16), transparent 55%),
        linear-gradient(140deg, rgba(16, 26, 52, 0.9), rgba(8, 12, 26, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(199, 220, 255, 0.7);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.hero-tip {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-faint);
}

@media (max-width: 560px) {
    .hero-mockup {
        width: 100%;
        transform: perspective(1200px) rotateX(1deg);
        border-radius: 12px;
    }
}

/* ============ 通用区块 ============ */
.wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head .tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.1);
    border: 1px solid rgba(91, 141, 239, 0.25);
    color: var(--accent-2);
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.section-head p {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ 联系 ytx 版块 ============ */
.contact-ytx-section {
    padding: 70px 5%;
}

.contact-ytx-card {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-ytx-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-ytx-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.35), rgba(138, 180, 240, 0.2));
    border: 1px solid rgba(91, 141, 239, 0.4);
    color: #fff;
    flex-shrink: 0;
}

.contact-ytx-text h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: #fff;
}

.contact-ytx-text p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ============ 卡片网格 ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    padding: 32px 28px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(91, 141, 239, 0.4);
    background: rgba(91, 141, 239, 0.06);
    transform: translateY(-4px);
}

.card .icon {
    display: block;
    width: 22px;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent-2), transparent);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============ 产品专区 ============ */
.prod-group {
    margin-bottom: 44px;
}

.prod-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.prod-group-title::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 8px rgba(138, 180, 240, 0.5);
}

.prod-group-sub {
    color: var(--text-faint);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.prod-card {
    padding: 26px 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.prod-card:hover {
    border-color: rgba(91, 141, 239, 0.4);
    background: rgba(91, 141, 239, 0.06);
    transform: translateY(-4px);
}

.prod-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 141, 239, 0.08);
    border: 1px solid rgba(91, 141, 239, 0.18);
}

.prod-body h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prod-body .status {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.status-live {
    color: var(--accent-2);
    background: rgba(91, 141, 239, 0.15);
    border: 1px solid rgba(91, 141, 239, 0.3);
}

.status-beta {
    color: #ffd479;
    background: rgba(255, 212, 121, 0.12);
    border: 1px solid rgba(255, 212, 121, 0.3);
}

.status-dev {
    color: #7de3a9;
    background: rgba(125, 227, 169, 0.12);
    border: 1px solid rgba(125, 227, 169, 0.3);
}

.prod-body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

.prod-body a.more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.86rem;
    color: var(--accent-2);
    font-weight: 500;
    transition: all 0.2s;
}

.prod-body a.more:hover { color: #fff; padding-left: 4px; }

.prod-note {
    margin-top: 12px;
    padding: 18px 22px;
    border-radius: 12px;
    background: rgba(91, 141, 239, 0.06);
    border: 1px solid rgba(91, 141, 239, 0.2);
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
}

.prod-note a {
    color: var(--accent-2);
    font-weight: 500;
}

/* ============ 双栏介绍 ============ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-img {
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
    background: var(--card);
}

.split-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.split-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 18px;
}

.split-text p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.split-text ul {
    list-style: none;
    margin-top: 20px;
}

.split-text li {
    padding: 10px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-text li::before {
    content: '✓';
    color: var(--accent-2);
    font-weight: bold;
}

/* ============ 页脚 ============ */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 5% 40px;
    border-top: 1px solid var(--card-border);
    margin-top: 60px;
    background: rgba(7, 10, 24, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-faint);
    font-size: 0.88rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    color: var(--text-faint);
    font-size: 0.82rem;
}

/* ============ 滚动淡入淡出 ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 滚出视图时淡出（给后续滚动留下淡去感） */
.reveal.out-view {
    opacity: 0;
    transform: translateY(-30px);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ============ 汉堡菜单按钮（默认桌面隐藏） ============ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 960;
    width: min(320px, 85vw);
    height: 100vh;
    background: linear-gradient(180deg, #0f1d3a 0%, #0a1428 100%);
    border-left: 1px solid var(--card-border);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    padding: 96px 6% 40px;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu .mm-parent {
    display: block;
    padding: 14px 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(138, 180, 240, 0.12);
}

.mm-children {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.mm-children a {
    display: block;
    padding: 10px 4px 10px 14px;
    color: var(--text-dim);
    font-size: 0.92rem;
    border-left: 2px solid transparent;
}

.mm-children a:hover {
    color: #fff;
    border-left-color: var(--accent-2);
    background: rgba(91, 141, 239, 0.08);
}

.nav-item.open .mm-children { max-height: 600px; }

.mm-search {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(138, 180, 240, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s;
}

.mm-search:focus-within {
    border-color: var(--accent-light);
}

.mm-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.92rem;
    padding: 10px 12px;
    min-width: 0;
}

.mm-search-input::placeholder {
    color: var(--text-faint);
}

.mm-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.mm-search-btn:hover {
    color: var(--accent-2);
}

.mm-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.mm-footer .btn { width: 100%; justify-content: center; }

/* ============ 通用按钮（登录/个人中心等） ============ */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn-danger {
    background: rgba(255, 107, 107, 0.12);
    color: #ff8080;
    border: 1px solid rgba(255, 107, 107, 0.35);
}
.btn-danger:hover { background: rgba(255, 107, 107, 0.2); color: #ffb3b3; }

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============ 认证表单（登录/注册/搜索共用） ============ */
.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 5% 60px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 42px 38px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-card.wide { max-width: 620px; }

.auth-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--accent-2) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.auth-sub {
    color: var(--text-faint);
    text-align: center;
    font-size: 0.92rem;
    margin-bottom: 30px;
}

.form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
    font-size: 0.88rem;
    color: var(--text-dim);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(138, 180, 240, 0.25);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.form-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-2);
    box-shadow: 0 0 12px rgba(138, 180, 240, 0.3);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--text-faint);
}

.form-row label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.form-row input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.form-row a { color: var(--accent-2); }
.form-row a:hover { color: #fff; }

.auth-link {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.9rem;
    margin-top: 20px;
}
.auth-link a { color: var(--accent-2); font-weight: 500; }
.auth-link a:hover { color: #fff; }

.error-message {
    color: #ff8080;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.success-message {
    color: var(--accent-2);
    background: rgba(91, 141, 239, 0.1);
    border: 1px solid rgba(91, 141, 239, 0.3);
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
    font-size: 0.9rem;
    text-align: center;
}

/* ============ 个人中心（登录/login/personal.html） ============ */
.personal-wrap {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 75px);
}

.sidebar {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    background: var(--card);
    border-right: 1px solid var(--card-border);
    padding: 24px 16px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 75px;
    align-self: stretch;
    height: calc(100vh - 75px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.sidebar-heading {
    font-weight: 700;
    padding: 2px 12px 14px;
    margin: 0 2px 12px;
    border-bottom: 1px solid var(--card-border);
    letter-spacing: 0.5px;
    text-transform: none;
    font-size: 1rem;
    color: #fff;
}

.sidebar-menu { list-style: none; margin: 0; }

.sidebar-menu > li { margin-bottom: 6px; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: var(--text-dim);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.92rem;
}

.sidebar-menu a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.sidebar-menu a.active {
    background: rgba(91, 141, 239, 0.15);
    color: #fff;
    border: 1px solid rgba(91, 141, 239, 0.35);
}

.sidebar-menu .dropdown-arrow {
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-faint);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.sidebar-menu .dropdown-arrow.active { transform: rotate(180deg); }

.sidebar-menu .submenu {
    list-style: none;
    margin-top: 4px;
    padding-left: 8px;
    display: none;
}
.sidebar-menu .submenu.active { display: block; }
.sidebar-menu .submenu li { margin-bottom: 4px; }
.sidebar-menu .submenu a {
    padding: 10px 14px;
    font-size: 0.86rem;
    padding-left: 24px;
    border-left: 2px solid rgba(91, 141, 239, 0.4);
    border-radius: 0 8px 8px 0;
}
.sidebar-menu .submenu a.active {
    background: rgba(91, 141, 239, 0.1);
    border-left-color: var(--accent, #5b8def);
}

.content-area {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 44px calc(5% + 24px) 60px;
    min-height: calc(100vh - 75px);
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #fff;
}

.page-sub { text-align: center; color: var(--text-faint); font-size: 0.92rem; margin-bottom: 28px; }

.info-grid { display: grid; grid-template-columns: 120px 1fr; gap: 18px; margin-bottom: 30px; }
.info-label { color: var(--text-faint); align-self: center; font-weight: 500; font-size: 0.95rem; }
.info-value {
    color: #fff;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 0.95rem;
}

.action-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.form-hint {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-top: 6px;
    line-height: 1.4;
}
.form-hint.warn { color: var(--accent, #e3a23c); }

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(138, 180, 240, 0.25);
    border-radius: 50%;
    border-top-color: var(--accent-2);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ 搜索引擎（search.php） ============ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.55;
    animation: floatUp 7s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(-46px); opacity: 0.85; }
}

.search-wrap {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 5% 70px;
}

.search-title {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--accent-2) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 34px;
}

.search-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 44px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 104px 15px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(138, 180, 240, 0.3);
    border-radius: 999px;
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    box-shadow: 0 0 22px rgba(74, 127, 214, 0.15);
    transition: all 0.3s;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-2);
    box-shadow: 0 0 34px rgba(138, 180, 240, 0.3);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 26px;
    background: #fff;
    color: #0a0f24;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
}

.search-button:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(74, 127, 214, 0.4);
}

.search-stats {
    color: var(--text-faint);
    margin-bottom: 22px;
    font-size: 0.9rem;
}

.search-results {
    margin-top: 20px;
    text-align: left;
}

.result-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.result-item:hover {
    border-color: rgba(91, 141, 239, 0.4);
    background: rgba(91, 141, 239, 0.06);
    transform: translateY(-3px);
}

.result-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 600;
}
.result-title a { color: var(--accent-2); }
.result-title a:hover { color: #fff; }

.result-url {
    color: var(--text-faint);
    font-size: 0.82rem;
    margin-bottom: 8px;
    display: block;
}

.result-snippet { color: var(--text-dim); line-height: 1.7; font-size: 0.92rem; }
.result-meta { color: var(--text-faint); font-size: 0.78rem; margin-top: 10px; }

.highlight {
    background: rgba(138, 180, 240, 0.35);
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-right .btn-ghost { display: none; }
    .nav-search-input { width: 130px; }
    .nav-search-input:focus { width: 150px; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .section { padding: 60px 0; }
    .personal-wrap { flex-direction: column; min-height: auto; }
    .sidebar {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    .content-area { min-height: auto; padding: 30px 4%; }
}

@media (max-width: 560px) {
    .navbar { padding: 14px 4%; }
    .nav-logo { font-size: 1.15rem; }
    .nav-right { gap: 8px; }
    .nav-search { display: none; }
    .hero { padding: 60px 6% 50px; min-height: 80vh; }
    .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero-cta { flex-direction: column; width: 100%; align-items: stretch; }
    .btn-lg { justify-content: center; }
    .split-img img,
    .hero-mockup img,
    .hero-mockup .mockup-fallback {
        max-width: 100%;
    }
    .card-grid { grid-template-columns: 1fr; }
    .prod-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-head { margin-bottom: 36px; }
    .split { gap: 28px; }
    .prod-card { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn-lg { padding: 13px 26px; font-size: 0.92rem; }
    .auth-card { padding: 32px 24px; }
    .content-area { padding: 24px; }
    .info-grid { grid-template-columns: 1fr; gap: 12px; }
}