/* ============================================================
   Zerjie 官网落地页
   ============================================================ */

:root {
    --brand:      #2563eb;
    --brand-dark: #1d4ed8;
    --gold:       #d4c9a8;
    --gold-dark:  #b8aa7e;
    --dark:       #0f172a;
    --gray-50:    #f8fafc;
    --gray-100:   #f1f5f9;
    --gray-200:   #e2e8f0;
    --gray-400:   #94a3b8;
    --gray-600:   #475569;
    --text:       #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing-body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, system-ui, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ============================================================
   导航
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}
.nav.is-scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
    flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.brand-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
}
.brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark);
    letter-spacing: -0.3px;
}
.brand-img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* ★ 品牌区：主标题 + 副标题上下排列 */
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-400);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* ============================================================
   Hero 演示站提示
   ============================================================ */
.hero-demo-tip {
    margin: 24px 0 0;
    font-size: 0.92rem;
    color: #94a3b8;
    letter-spacing: 0.3px;
}
.hero-demo-tip a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(96, 165, 250, 0.4);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}
.hero-demo-tip a:hover {
    color: #93c5fd;
    border-bottom-color: #93c5fd;
    text-decoration: none;
}

/* ============================================================
   导航菜单（桌面端横向）
   ============================================================ */
.nav-menu-wrap { display: flex; align-items: center; flex: 1; min-width: 0; }

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: var(--gray-600);
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-links > li > a:hover {
    color: var(--brand);
    background: var(--gray-50);
    text-decoration: none;
}
.nav-links .nav-admin {
    padding: 6px 16px;
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
}
.nav-links .nav-admin:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

.nav-links .has-children > a .nav-arrow {
    display: inline-block;
    font-size: 0.65rem;
    margin-left: 4px;
    opacity: 0.6;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}
.nav-links .has-children:hover > a .nav-arrow {
    transform: translateY(-1px) rotate(180deg);
    opacity: 1;
}

/* ============================================================
   导航子菜单（桌面端 hover）
   ============================================================ */
.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 8px 0;
    margin-top: 10px;
    list-style: none;
    z-index: 200;
    animation: submenuFadeIn 0.15s ease;
}
@keyframes submenuFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-submenu::before {
    content: '';
    position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: #fff;
    border-left: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
}
.nav-links .has-children:hover > .nav-submenu { display: block; }
.nav-submenu > li { position: relative; }
.nav-submenu > li > a {
    display: block;
    padding: 9px 22px;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}
.nav-submenu > li > a:hover {
    color: var(--brand);
    background: var(--gray-50);
    border-left-color: var(--brand);
    text-decoration: none;
}
.nav-submenu .nav-submenu {
    top: -9px; left: 100%;
    transform: none;
    margin-top: 0;
    margin-left: 6px;
    animation: submenuFadeInRight 0.15s ease;
}
@keyframes submenuFadeInRight {
    from { opacity: 0; transform: translateX(-4px); }
    to   { opacity: 1; transform: translateX(0); }
}
.nav-submenu .nav-submenu::before { display: none; }
.nav-submenu .has-children > a .nav-arrow {
    float: right;
    margin-left: 8px;
    transform: rotate(-90deg);
}
.nav-submenu .has-children:hover > a .nav-arrow { transform: rotate(-90deg); }

/* ============================================================
   头部图标按钮
   ============================================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}
.nav-icon-btn:hover,
.nav-icon-btn.is-active {
    background: var(--gray-100);
    color: var(--brand);
}
.nav-icon-btn svg { width: 20px; height: 20px; display: block; }

.nav-badge {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
.nav-badge.show { display: inline-flex; }

.nav-user-default {
    width: 26px !important;
    height: 26px !important;
    color: #94a3b8;
}
.nav-icon-btn:hover .nav-user-default { color: var(--brand); }
.nav-user-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ============================================================
   手机端「更多」按钮（三点图标）
   ============================================================ */
.nav-more-wrap {
    display: none;
}

/* ============================================================
   手机端导航菜单弹窗
   ============================================================ */
.nav-mobile-menu {
    min-width: 220px;
    max-width: 90vw;
    padding: 8px 0;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-mobile-menu .nav-links,
.nav-mobile-menu .nav-submenu {
    display: block !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    width: 100% !important;
}

.nav-mobile-menu .nav-links > li,
.nav-mobile-menu .nav-submenu > li {
    display: block !important;
    width: 100% !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-mobile-menu .nav-links > li > a,
.nav-mobile-menu .nav-submenu > li > a {
    display: block !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-left: 3px solid transparent !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--gray-600) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    width: auto !important;
}

.nav-mobile-menu .nav-links > li > a:hover,
.nav-mobile-menu .nav-submenu > li > a:hover {
    background: var(--gray-50) !important;
    color: var(--brand) !important;
    border-left-color: var(--brand) !important;
    text-decoration: none !important;
}

.nav-mobile-menu .nav-links .nav-admin {
    background: transparent !important;
    color: var(--brand) !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
}
.nav-mobile-menu .nav-links .nav-admin:hover {
    background: var(--gray-50) !important;
    color: var(--brand-dark) !important;
}

.nav-mobile-menu .nav-arrow {
    display: none !important;
}

.nav-mobile-menu .nav-submenu {
    display: block !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    animation: none !important;
    min-width: 0 !important;
    margin: 0 0 0 12px !important;
    padding: 0 0 0 12px !important;
    border-left: 2px solid var(--gray-200) !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
}
.nav-mobile-menu .nav-submenu::before {
    display: none !important;
}
.nav-mobile-menu .nav-submenu > li > a {
    padding-left: 16px !important;
    font-size: 0.9rem !important;
}

.nav-mobile-menu .has-children > a {
    color: var(--gray-400) !important;
    cursor: default !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding-top: 14px !important;
    padding-bottom: 6px !important;
}
.nav-mobile-menu .has-children > a:hover {
    background: transparent !important;
    color: var(--gray-400) !important;
    border-left-color: transparent !important;
}

/* ============================================================
   搜索
   ============================================================ */
.nav-search {
    width: 0;
    overflow: hidden;
    transition: width 0.25s ease, margin 0.25s ease;
    margin-right: 0;
}
.nav-search.is-open { width: 220px; margin-right: 6px; }
.nav-search form { display: block; }
.nav-search input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    background: var(--gray-50);
    color: var(--text);
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.nav-search input:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================================
   下拉面板（通用）
   ============================================================ */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    padding: 6px 0;
    display: none;
    z-index: 300;
    animation: navDropdownIn 0.15s ease;
}
.nav-dropdown.is-open { display: block; }
@keyframes navDropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -7px; right: 14px;
    width: 12px; height: 12px;
    background: #fff;
    border-left: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
    transform: rotate(45deg);
}
.nav-dropdown-head {
    padding: 8px 16px 6px;
    color: var(--gray-400);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-dropdown-empty { text-align: center; padding: 24px 16px; color: var(--gray-400); }
.nav-dropdown-empty-icon { font-size: 1.8rem; margin-bottom: 6px; opacity: 0.6; }
.nav-dropdown-empty p { font-size: 0.88rem; margin: 0; }
.nav-dropdown-divider { height: 1px; background: var(--gray-200); margin: 6px 0; }
.nav-dropdown-item {
    display: block;
    padding: 9px 16px;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.nav-dropdown-item:hover { background: var(--gray-50); color: var(--brand); text-decoration: none; }
.nav-dropdown-danger:hover { color: #dc2626; background: #fef2f2; }
.nav-dropdown-primary { color: var(--brand); font-weight: 600; text-align: center; }
.nav-dropdown-primary:hover { background: var(--brand); color: #fff; }

/* 用户下拉头部 */
.nav-user-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.nav-user-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.nav-user-info { min-width: 0; }
.nav-user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-email {
    color: var(--gray-400);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

/* 未登录：登录 / 注册 */
.nav-auth-actions { display: flex; gap: 8px; padding: 10px 14px 12px; }
.nav-auth-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-auth-login { background: var(--gray-100); color: var(--gray-600); }
.nav-auth-login:hover { background: var(--gray-200); color: var(--dark); text-decoration: none; }
.nav-auth-register {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.nav-auth-register:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* ============================================================
   通知下拉
   ============================================================ */
.nav-notice-dropdown {
    min-width: 340px;
    max-width: 90vw;
    padding: 0;
    overflow: hidden;
}
.nav-notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}
.nav-notice-mark-read {
    background: transparent;
    border: none;
    color: var(--brand);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.15s;
}
.nav-notice-mark-read:hover { background: #eff6ff; }
.nav-notice-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 4px 0;
}
.nav-notice-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.nav-notice-item:hover { background: var(--gray-50); text-decoration: none; }
.nav-notice-item.is-unread {
    background: #eff6ff;
    border-left-color: var(--brand);
}
.nav-notice-item.is-unread:hover { background: #dbeafe; }
.nav-notice-icon { flex-shrink: 0; font-size: 1.2rem; line-height: 1.3; }
.nav-notice-body { flex: 1; min-width: 0; }
.nav-notice-text {
    font-size: 0.88rem;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 3px;
}
.nav-notice-text strong { font-weight: 600; color: var(--brand); }
.nav-notice-excerpt {
    color: var(--gray-600);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.nav-notice-time { color: var(--gray-400); font-size: 0.75rem; }


/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: 160px 24px 100px;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: -25%;
    z-index: 0;
    background:
        radial-gradient(circle at 28% 36%, rgba(212, 201, 168, 0.15), transparent 42%),
        radial-gradient(circle at 74% 68%, rgba(122, 110, 90, 0.22), transparent 48%),
        radial-gradient(circle at 55% 12%, rgba(92, 112, 152, 0.15), transparent 45%),
        radial-gradient(circle at 12% 82%, rgba(168, 140, 92, 0.12), transparent 46%);
    animation: auraDrift 24s ease-in-out infinite alternate;
}
@keyframes auraDrift {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1);    opacity: 0.85; }
    50%  { transform: translate3d(2%, 2%, 0)   scale(1.08); opacity: 1;    }
    100% { transform: translate3d(-1%, 3%, 0)  scale(1.03); opacity: 0.9;  }
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(212, 201, 168, 0.12);
    border: 1px solid rgba(212, 201, 168, 0.3);
    border-radius: 40px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}
.hero-title-line { display: block; }
.hero-title-gold {
    background: linear-gradient(135deg, #f0e9d0 0%, var(--gold) 40%, var(--gold-dark) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 24px 36px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 0.9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ============================================================
   通用 Section
   ============================================================ */
.section { padding: 100px 24px; }
.section-gray { background: var(--gray-50); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 60px;
    font-weight: 300;
}

/* ============================================================
   特性卡片
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--brand);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 18px; display: inline-block; }
.feature-title { font-size: 1.15rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.feature-desc { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   快速开始
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}
.step {
    position: relative;
    padding: 28px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}
.step-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.step-title { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.step-desc { color: var(--gray-600); font-size: 0.94rem; margin-bottom: 16px; line-height: 1.7; }
.step-code {
    display: block;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.82rem;
    color: var(--dark);
    overflow-x: auto;
    white-space: nowrap;
}
.requirements {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    border: 1px solid var(--gray-200);
}
.requirements-title { font-size: 1.15rem; font-weight: 600; color: var(--dark); margin-bottom: 20px; }
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
    margin-bottom: 20px;
}
.requirement { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; }
.req-mark { font-weight: 700; font-size: 1.1rem; }
.req-required .req-mark { color: #16a34a; }
.req-optional .req-mark { color: var(--gray-400); }
.req-text { color: var(--gray-600); }
.requirements-note {
    padding-top: 16px;
    border-top: 1px dashed var(--gray-200);
    color: var(--gray-600);
    font-size: 0.92rem;
}
.requirements-note strong { color: var(--dark); }
.req-ok { color: #16a34a; font-weight: 600; margin-left: 8px; }
.req-fail { color: #dc2626; font-weight: 600; margin-left: 8px; }

/* ============================================================
   下载区
   ============================================================ */
.section-download { background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%); }
.download-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.download-head {
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--dark), #1e293b);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.download-version { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.download-label { color: var(--gray-400); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.download-number {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f0e9d0, var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.download-date { color: var(--gray-400); font-size: 0.9rem; }
/* Hero meta 里的下载量高亮 */
.hero-meta-downloads {
    color: #60a5fa;
    font-weight: 500;
}

/* 下载卡片右上角：日期 + 下载量纵向排列 */
.download-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}
.download-count {
    color: #cbd5e1;
    font-size: 0.85rem;
}
.download-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--brand);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.download-btn:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}
.download-btn-secondary { background: var(--gray-100); color: var(--dark); }
.download-btn-secondary:hover { background: var(--gray-200); color: var(--dark); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1); }
.download-btn-icon { font-size: 1.6rem; flex-shrink: 0; }
.download-btn-text { display: flex; flex-direction: column; gap: 2px; }
.download-btn-text strong { font-size: 1.05rem; font-weight: 600; }
.download-btn-text small { font-size: 0.85rem; opacity: 0.75; }
.download-changelog { padding: 0 32px 32px; }
.download-changelog h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}
.download-changelog ul { list-style: none; padding: 0; margin: 0; }
.download-changelog li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
}
.download-changelog li::before {
    content: "\00B7"; /* · MIDDLE DOT */
    position: absolute;
    left: 6px; top: 6px;
    color: var(--brand);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}
.download-note {
    max-width: 800px;
    margin: 24px auto 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.88rem;
}
.download-type {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.download-all-link { max-width: 800px; margin: 20px auto 0; display: flex; justify-content: center; }
.download-all-link a {
    display: inline-block;
    padding: 10px 22px;
    color: var(--brand);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--brand);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.download-all-link a:hover {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* ============================================================
   下载 - 空状态（暂未发布版本）
   ============================================================ */
.download-empty {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 32px;
    background: #fff;
    border: 1px dashed var(--gray-200);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}
.download-empty-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
}
.download-empty-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}
.download-empty-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto 28px;
}
.download-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.download-empty-actions .btn {
    padding: 12px 26px;
    font-size: 0.95rem;
}
.download-empty-actions .btn-ghost {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}
.download-empty-actions .btn-ghost:hover {
    background: var(--gray-200);
    color: var(--dark);
}

/* ============================================================
   Releases
   ============================================================ */
.release-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px 28px;
    transition: all 0.25s ease;
}
.release-card:hover { box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); border-color: var(--gray-400); }
.release-latest { border-color: var(--brand); box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12); padding-top: 32px; }
.release-latest:hover { border-color: var(--brand-dark); }
.release-ribbon {
    position: absolute;
    top: -1px; left: 24px;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.release-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.release-head-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-version {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
    font-family: 'SF Mono', 'Monaco', monospace;
}
.release-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.type-stable { background: #dcfce7; color: #166534; }
.type-beta   { background: #fef3c7; color: #92400e; }
.type-alpha  { background: #fee2e2; color: #991b1b; }
.release-head-right { color: var(--gray-400); font-size: 0.88rem; }
.release-date { display: inline-flex; align-items: center; gap: 4px; }
.release-body { margin-bottom: 18px; }
.release-changelog { list-style: none; padding: 0; margin: 0; }
.release-changelog li {
    position: relative;
    padding: 5px 0 5px 22px;
    color: var(--gray-600);
    font-size: 0.94rem;
    line-height: 1.7;
}
.release-changelog li::before {
    content: "\25B8"; /* ▸ BLACK RIGHT-POINTING SMALL TRIANGLE */
    position: absolute;
    left: 6px; top: 7px;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.85rem;
}
.release-foot {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px dashed var(--gray-200);
}
.release-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.release-download:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.release-download-icon { font-size: 1.05rem; }

.releases-page { padding: 140px 24px 80px; background: var(--gray-50); min-height: 70vh; }
.releases-inner { max-width: 860px; margin: 0 auto; }
.releases-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}
.releases-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.releases-subtitle { color: var(--gray-600); font-size: 0.95rem; }
.releases-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.releases-github-btn:hover {
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.releases-list { display: flex; flex-direction: column; gap: 20px; }
.releases-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}
.releases-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.releases-empty p { color: var(--gray-600); margin-bottom: 8px; font-size: 1rem; }
.releases-empty-sub { font-size: 0.85rem !important; color: var(--gray-400) !important; margin-bottom: 20px !important; }
.releases-back { margin-top: 40px; text-align: center; }

/* ============================================================
   Marketplace
   ============================================================ */
.marketplace-page { padding: 140px 24px 80px; background: var(--gray-50); min-height: 70vh; }
.marketplace-inner { max-width: 1180px; margin: 0 auto; }
.marketplace-inner-narrow { max-width: 720px; }
.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}
.marketplace-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.marketplace-subtitle { color: var(--gray-600); font-size: 0.95rem; }
.marketplace-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.marketplace-upload-btn:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.marketplace-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 22px 22px 18px;
    transition: all 0.25s ease;
}
.marketplace-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: var(--brand);
}
.mc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mc-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.mc-version {
    font-size: 0.82rem;
    color: var(--brand);
    font-weight: 600;
    flex-shrink: 0;
    font-family: 'SF Mono', 'Monaco', monospace;
}
.mc-desc {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.4em;
}
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mc-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
}
.mc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
    color: var(--gray-400);
    font-size: 0.82rem;
    margin-bottom: 14px;
    margin-top: auto;
}
.mc-foot { display: flex; gap: 10px; align-items: center; }
.mc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mc-download:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.mc-delete {
    padding: 8px 14px;
    background: transparent;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mc-delete:hover { background: #fee2e2; }
.marketplace-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}
.marketplace-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.marketplace-empty p { color: var(--gray-600); margin-bottom: 8px; font-size: 1rem; }
.marketplace-empty-sub { font-size: 0.85rem !important; color: var(--gray-400) !important; margin-bottom: 20px !important; }
.marketplace-back { margin-top: 40px; text-align: center; }
.marketplace-toast { padding: 12px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.marketplace-toast.success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.marketplace-toast.error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }

/* 上传页 */
.upload-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
}
.upload-tab {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}
.upload-tab:hover { color: var(--dark); text-decoration: none; }
.upload-tab.is-active {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.upload-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--gray-200);
}
.upload-drop-zone {
    position: relative;
    border: 2px dashed var(--gray-200);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gray-50);
    margin-bottom: 24px;
}
.upload-drop-zone:hover,
.upload-drop-zone.drag-over { border-color: var(--brand); background: #eff6ff; }
.upload-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%; height: 100%;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-text { color: var(--dark); font-size: 1rem; margin-bottom: 6px; }
.upload-text strong { color: var(--brand); }
.upload-hint { color: var(--gray-400); font-size: 0.82rem; }
.upload-filename { margin-top: 14px; color: var(--brand); font-weight: 500; font-size: 0.9rem; word-break: break-all; }
.upload-requirements {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}
.upload-requirements h4 { color: var(--dark); font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.upload-requirements ul { padding-left: 20px; margin-bottom: 12px; }
.upload-requirements code {
    background: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.85em;
    color: var(--brand);
    border: 1px solid var(--gray-200);
}
.upload-requirements details { margin-top: 12px; }
.upload-requirements summary { cursor: pointer; color: var(--brand); font-weight: 500; font-size: 0.88rem; padding: 4px 0; }
.upload-requirements pre {
    background: var(--dark);
    color: #e2e8f0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    overflow-x: auto;
    margin-top: 10px;
    line-height: 1.6;
}
.upload-actions { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.upload-submit {
    padding: 12px 28px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.upload-submit:hover {
    background: var(--brand-dark);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-item.is-open { border-color: var(--brand); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08); }
.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    font-size: 1rem;
    user-select: none;
}
.faq-toggle { color: var(--gray-400); font-size: 0.9rem; transition: transform 0.25s ease; }
.faq-item.is-open .faq-toggle { transform: rotate(180deg); color: var(--brand); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.is-open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 24px 22px; color: var(--gray-600); font-size: 0.94rem; line-height: 1.8; }

/* ============================================================
   子页面
   ============================================================ */
.subpage { min-height: 70vh; padding: 140px 24px 80px; background: var(--gray-50); }
.subpage-inner {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}
.subpage-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}
.subpage-content { color: var(--gray-600); line-height: 1.8; }
.link-back { display: inline-block; margin-top: 16px; color: var(--brand); font-weight: 500; }

/* ============================================================
   认证页
   ============================================================ */
.auth-page {
    min-height: 100vh;
    padding: 120px 24px 60px;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    padding: 40px 36px 32px;
}
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.auth-title { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; letter-spacing: -0.3px; }
.auth-subtitle { color: var(--gray-600); font-size: 0.92rem; }
.auth-alert { padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 18px; line-height: 1.6; }
.auth-alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.auth-alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.auth-notice {
    padding: 10px 14px;
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--brand);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.6;
}
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 0.88rem; font-weight: 500; color: var(--dark); }
.auth-req { color: #dc2626; }
.auth-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.auth-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.auth-field-hint { color: var(--gray-400); font-size: 0.78rem; line-height: 1.5; }
.auth-field-error { color: #dc2626; font-size: 0.78rem; line-height: 1.5; }
.auth-submit {
    width: 100%;
    padding: 13px 24px;
    margin-top: 4px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.25s ease;
    font-family: inherit;
}
.auth-submit:hover {
    background: var(--brand-dark);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}
.auth-foot {
    text-align: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-600);
}
.auth-foot a { color: var(--brand); font-weight: 500; }
.auth-back { text-align: center; margin-top: 16px; font-size: 0.85rem; }
.auth-back a { color: var(--gray-400); font-weight: 400; }
.auth-back a:hover { color: var(--brand); text-decoration: none; }

/* ============================================================
   开发文档
   ============================================================ */
.docs-page { padding: 100px 0 80px; background: #fff; min-height: 100vh; }
.docs-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}
.docs-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 16px;
    border-right: 1px solid var(--gray-200);
}
.docs-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.docs-sidebar-title { font-size: 1rem; font-weight: 700; color: var(--dark); }
.docs-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
}
.docs-nav-group { margin-bottom: 22px; }
.docs-nav-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.docs-nav-list { list-style: none; padding: 0; margin: 0; }
.docs-nav-list li { margin-bottom: 2px; }
.docs-nav-list a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}
.docs-nav-list a:hover { background: var(--gray-50); color: var(--brand); text-decoration: none; }
.docs-nav-list a.is-active {
    background: #eff6ff;
    color: var(--brand);
    border-left-color: var(--brand);
    font-weight: 500;
}
.docs-content { min-width: 0; }
.docs-hero { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 2px solid var(--gray-200); }
.docs-hero h1 { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; letter-spacing: -0.5px; }
.docs-hero p { color: var(--gray-600); font-size: 1.05rem; }
.docs-section {
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
    scroll-margin-top: 100px;
}
.docs-section:last-of-type { border-bottom: none; }
.docs-section h2 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 18px; letter-spacing: -0.3px; }
.docs-section h3 { font-size: 1.15rem; font-weight: 600; color: var(--dark); margin: 22px 0 12px; }
.docs-section p { color: var(--gray-600); line-height: 1.8; margin-bottom: 14px; font-size: 0.98rem; }
.docs-section ul { color: var(--gray-600); padding-left: 22px; margin-bottom: 16px; line-height: 1.9; }
.docs-section ul li { margin-bottom: 4px; }
.docs-section code {
    background: var(--gray-100);
    color: var(--brand);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.88em;
}
.docs-section pre {
    background: var(--dark);
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
}
.docs-section pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.docs-section b { color: var(--dark); font-weight: 600; }
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.92rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}
.docs-table th,
.docs-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.docs-table th { background: var(--gray-50); font-weight: 600; color: var(--dark); font-size: 0.85rem; }
.docs-table td { color: var(--gray-600); }
.docs-table tr:last-child td { border-bottom: none; }
.docs-footer {
    margin-top: 40px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 12px;
    text-align: center;
}
.docs-footer p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 8px; }
.docs-footer p:last-child { margin-bottom: 0; }

/* ============================================================
   论坛
   ============================================================ */
.forum-page {
    padding: 100px 24px 80px;
    background: var(--gray-50);
    min-height: 100vh;
}
.forum-inner { max-width: 900px; margin: 0 auto; }
.forum-inner-narrow { max-width: 780px; }

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}
.forum-title { font-size: 2rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; letter-spacing: -0.3px; }
.forum-subtitle { color: var(--gray-600); font-size: 0.95rem; }
.forum-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.forum-btn-new:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.forum-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}
.forum-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--gray-600);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}
.forum-tab:hover { color: var(--dark); text-decoration: none; }
.forum-tab.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 600;
}
.forum-tab-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
}
.forum-tab.is-active .forum-tab-count { background: #eff6ff; color: var(--brand); }

.forum-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.forum-orders { display: flex; gap: 4px; }
.forum-order {
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s;
}
.forum-order:hover { background: var(--gray-100); color: var(--dark); text-decoration: none; }
.forum-order.is-active { background: #eff6ff; color: var(--brand); font-weight: 500; }
.forum-search { display: flex; gap: 6px; }
.forum-search input {
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    min-width: 200px;
}
.forum-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.forum-search button {
    padding: 8px 18px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
}

.forum-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}
.forum-item {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.15s;
}
.forum-item:last-child { border-bottom: none; }
.forum-item:hover { background: var(--gray-50); }
.forum-item.is-pinned { background: #fffbeb; }
.forum-item.is-pinned:hover { background: #fef3c7; }
.forum-item-avatar {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
}
.forum-item-body { flex: 1; min-width: 0; }
.forum-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.forum-item-title {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.4;
}
.forum-item-title:hover { color: var(--brand); text-decoration: none; }
.forum-item-cat { font-size: 0.8rem; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.forum-item-excerpt {
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.forum-item-meta { display: flex; gap: 16px; color: var(--gray-400); font-size: 0.8rem; flex-wrap: wrap; }
.forum-item-stats { flex-shrink: 0; display: flex; gap: 18px; align-items: center; }
.forum-stat { text-align: center; min-width: 44px; }
.forum-stat-num { color: var(--dark); font-weight: 600; font-size: 1.05rem; font-family: 'SF Mono', 'Monaco', monospace; }
.forum-stat-label { color: var(--gray-400); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.forum-badge-pinned,
.forum-badge-closed,
.forum-badge-solved {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}
.forum-badge-pinned { background: #fef3c7; color: #92400e; }
.forum-badge-closed { background: #f1f5f9; color: #64748b; }
.forum-badge-solved { background: #dcfce7; color: #166534; }

.forum-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-400);
}
.forum-empty-small { padding: 40px 20px; }
.forum-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.forum-empty p { margin-bottom: 16px; color: var(--gray-600); }

.forum-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.forum-pagination a,
.forum-page-current {
    display: inline-block;
    min-width: 34px; height: 34px;
    line-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--brand);
    font-size: 0.88rem;
    background: #fff;
}
.forum-pagination a:hover { background: var(--gray-50); text-decoration: none; }
.forum-page-current { background: var(--brand); color: #fff; border-color: var(--brand); }

.forum-back { color: var(--brand); font-size: 0.9rem; text-decoration: none; }
.forum-back:hover { text-decoration: underline; }

.forum-new-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.forum-new-title { margin: 0; color: var(--dark); font-size: 1.5rem; }

.forum-form {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 28px;
}
.forum-field { margin-bottom: 20px; }
.forum-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}
.forum-req { color: #dc2626; }
.forum-field input[type="text"],
.forum-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.forum-field input:focus,
.forum-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.forum-field textarea { resize: vertical; line-height: 1.7; min-height: 160px; }
.forum-hint { text-align: right; color: var(--gray-400); font-size: 0.78rem; margin-top: 4px; }
.forum-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.forum-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.forum-cat-item:hover { border-color: var(--gray-400); background: var(--gray-50); }
.forum-cat-item.is-checked {
    border-color: var(--brand);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.forum-cat-item input { position: absolute; opacity: 0; pointer-events: none; }
.forum-cat-icon { font-size: 1.5rem; }
.forum-cat-label { font-size: 0.88rem; font-weight: 500; color: var(--dark); }

.forum-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 8px; }
.forum-btn-cancel {
    padding: 11px 24px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}
.forum-btn-cancel:hover { background: var(--gray-200); color: var(--dark); text-decoration: none; }
.forum-btn-submit {
    padding: 11px 28px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
}
.forum-btn-submit:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.forum-btn-delete {
    padding: 8px 18px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}
.forum-btn-delete:hover { background: #fecaca; }

.forum-topic-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.forum-topic-cat { font-size: 0.88rem; font-weight: 500; }
.forum-topic {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
}
.forum-topic.is-solved {
    border-color: #16a34a;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.08);
}
.forum-topic-head { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.forum-topic-title {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
}
.forum-topic-meta { display: flex; gap: 20px; color: var(--gray-400); font-size: 0.85rem; flex-wrap: wrap; }
.forum-topic-meta strong { color: var(--gray-600); font-weight: 600; }
.forum-topic-content {
    color: var(--text);
    line-height: 1.85;
    font-size: 0.98rem;
    word-break: break-word;
}
.forum-topic-admin {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--gray-200);
    text-align: right;
}

.forum-replies-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.forum-replies-title h2 { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--dark); }
.forum-replies-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: var(--gray-100);
    border-radius: 10px;
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 500;
}
.forum-replies { list-style: none; padding: 0; margin: 0 0 24px; }
.forum-reply {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.forum-reply-avatar {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-400), var(--gray-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}
.forum-reply-body { flex: 1; min-width: 0; }
.forum-reply-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.forum-reply-author { font-weight: 600; color: var(--dark); font-size: 0.92rem; }
.forum-reply-floor { color: var(--brand); font-size: 0.78rem; font-weight: 500; }
.forum-reply-time { color: var(--gray-400); font-size: 0.8rem; }
.forum-btn-delete-sm {
    padding: 3px 10px;
    background: transparent;
    color: var(--gray-400);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}
.forum-btn-delete-sm:hover { color: #dc2626; background: #fee2e2; }
.forum-reply-content {
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 0.93rem;
    word-break: break-word;
}

/* 回复操作区 */
.forum-reply-actions {
    margin-left: auto;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.forum-btn-reply {
    padding: 4px 12px;
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s ease;
}
.forum-btn-reply:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.forum-btn-mark-best {
    padding: 4px 12px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}
.forum-btn-mark-best:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.forum-btn-unmark {
    padding: 8px 18px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
    font-family: inherit;
}
.forum-btn-unmark:hover { background: #dcfce7; }

/* 最佳答案高亮 */
.forum-reply.is-best {
    position: relative;
    border: 1.5px solid #16a34a;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.1);
    padding-top: 36px;
}
.forum-reply.is-best::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 10px 10px 0 0;
}
.forum-best-tag {
    position: absolute;
    top: 10px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    background: #16a34a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* ============================================================
   楼中楼（子回复）
   ============================================================ */
.forum-subreplies {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    border-left: 2px solid var(--gray-200);
    padding-left: 14px;
}
.forum-reply.forum-subreply {
    background: var(--gray-50);
    border-color: var(--gray-200);
    padding: 14px 16px;
    margin-bottom: 8px;
}
.forum-reply.forum-subreply:last-child { margin-bottom: 0; }
.forum-reply.forum-subreply:hover { background: #fff; }
.forum-subreply-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.82rem !important;
    background: linear-gradient(135deg, #94a3b8, #64748b) !important;
}
.forum-reply-to {
    display: inline-block;
    padding: 1px 8px;
    background: #eff6ff;
    color: var(--brand);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    margin: 0 4px;
}

/* @ 提及 */
.forum-mention {
    display: inline-block;
    padding: 0 6px;
    background: #eff6ff;
    color: var(--brand);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.15s;
}
.forum-mention:hover {
    background: var(--brand);
    color: #fff;
}

/* 回复表单里的"回复 @某人" */
.forum-reply-target {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #eff6ff;
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.forum-reply-target strong { color: var(--brand); font-weight: 600; }
.forum-reply-cancel {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.15s;
}
.forum-reply-cancel:hover { background: rgba(0, 0, 0, 0.05); color: #dc2626; }

/* 高亮跳转 */
.forum-reply.highlight {
    animation: replyHighlight 2s ease;
}
@keyframes replyHighlight {
    0%   { background: #fef3c7; border-color: #f59e0b; }
    50%  { background: #fef3c7; border-color: #f59e0b; }
    100% { background: #fff; }
}

/* 回复表单 */
.forum-reply-form-wrap {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px 28px;
}
.forum-reply-form-title { margin: 0 0 16px; color: var(--dark); font-size: 1.05rem; font-weight: 600; }
.forum-reply-form-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    line-height: 1.7;
    box-sizing: border-box;
    min-height: 120px;
    transition: all 0.2s;
}
.forum-reply-form-wrap textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.forum-reply-form-wrap .forum-actions { margin-top: 12px; }

.forum-login-tip {
    text-align: center;
    padding: 24px;
    color: var(--gray-600);
    font-size: 0.95rem;
}
.forum-login-tip a { color: var(--brand); font-weight: 500; }

.forum-alert { padding: 12px 18px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.forum-alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }

/* ============================================================
   页脚（4 栏布局 + 内链优化）
   ============================================================ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 60px 24px 24px;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 14px;
}
.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 6px;
}
.footer-tagline-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 14px;
}
.footer-contact {
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--gray-400);
}
.footer-contact-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--gold-dark); }

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col a {
    color: var(--gray-400);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 24px;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
}
.footer-copyright { margin: 0; }
.footer-copyright strong { color: #cbd5e1; font-weight: 600; }
.footer-copyright a { color: var(--gold); text-decoration: none; }
.footer-copyright a:hover { color: var(--gold-dark); }
.footer-license {
    margin: 0;
    color: #475569;
    font-size: 0.8rem;
}

/* ============================================================
   响应式 - 平板 (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    /* 全局防溢出（根治右侧白边） */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 隐藏横向导航，显示三点按钮 */
    .nav-menu-wrap { display: none; }
    .nav-more-wrap { display: block; }
    .nav-actions { margin-left: auto; }

    /* ========================================================
       文档页 —— 手机端目录浮层
       ======================================================== */
    .docs-page {
        padding: 80px 0 60px;
        max-width: 100%;
        overflow-x: hidden;
    }
    .docs-layout {
        display: block;
        padding: 0 16px;
        gap: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .docs-sidebar {
        position: static;
        display: inline-flex;
        flex-direction: column;
        max-height: none;
        overflow: visible;
        padding: 0;
        margin: 0 0 16px 0;
        border: none;
        background: transparent;
        width: auto;
        box-sizing: border-box;
    }

    .docs-sidebar-head {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 9px 16px;
        background: #fff;
        border: 1px solid var(--gray-200);
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        cursor: pointer;
        user-select: none;
        transition: border-color 0.15s, box-shadow 0.15s;
        width: auto;
        box-sizing: border-box;
    }
    .docs-sidebar-head:hover {
        border-color: var(--brand);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    }

    .docs-sidebar-title {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--dark);
    }

    .docs-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1rem;
        color: var(--gray-600);
        cursor: pointer;
        padding: 0;
        margin: 0;
        line-height: 1;
    }

    .docs-toggle-close { display: none; }
    .docs-sidebar.is-collapsed .docs-nav { display: none; }

    .docs-sidebar:not(.is-collapsed) {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--gray-200);
        border-radius: 14px;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
        overflow: hidden;
        padding: 0;
        margin: 0;
        width: auto;
    }
    .docs-sidebar:not(.is-collapsed) .docs-sidebar-head {
        border-radius: 14px 14px 0 0;
        border: none;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: none;
        width: 100%;
        justify-content: space-between;
        padding: 14px 20px;
    }
    .docs-sidebar:not(.is-collapsed) .docs-nav {
        display: block;
        flex: 1;
        overflow-y: auto;
        padding: 12px 0 20px;
    }
    .docs-sidebar:not(.is-collapsed) .docs-toggle-open { display: none; }
    .docs-sidebar:not(.is-collapsed) .docs-toggle-close {
        display: inline;
        color: #dc2626;
        font-size: 1.05rem;
    }

    .docs-sidebar:not(.is-collapsed) .docs-nav-group { padding: 0 8px; }
    .docs-sidebar:not(.is-collapsed) .docs-nav-list a {
        padding: 9px 14px;
        font-size: 0.92rem;
    }

    .docs-content {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    .docs-hero {
        padding-bottom: 24px;
        margin-bottom: 24px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .docs-hero h1 { font-size: 1.8rem; }

    .docs-section {
        padding-top: 28px;
        padding-bottom: 28px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .docs-section h2 { font-size: 1.35rem; }

    .docs-section pre {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .docs-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .docs-footer {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* ★ 页脚：平板 2 栏布局 */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   响应式 - 手机 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    /* 导航 */
    .nav-inner { padding: 12px 16px; gap: 12px; }

    /* ★ 只作用于横向导航，不影响手机端弹窗 */
    .nav-menu-wrap .nav-links > li:not(:last-child) { display: none; }
    .nav-menu-wrap .nav-links > li:last-child { display: block; }
    .nav-menu-wrap .nav-links > li > a { padding: 6px 10px; font-size: 0.88rem; }
    .nav-menu-wrap .nav-links .has-children:hover > .nav-submenu { display: none; }
    .nav-menu-wrap .nav-submenu {
        position: static;
        transform: none;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        animation: none;
        border-radius: 0;
        background: transparent;
    }
    .nav-menu-wrap .nav-submenu::before { display: none; }
    .nav-menu-wrap .nav-submenu > li > a { padding-left: 32px; border-left: none; }

    /* Hero / Section */
    .hero { padding: 120px 20px 80px; }
    .section { padding: 70px 20px; }

    /* 下载卡片 */
    .download-head { flex-direction: column; align-items: flex-start; }
    .download-body { padding: 24px; }
    .download-changelog { padding: 0 24px 24px; }
    .download-head-right {
        align-items: flex-start;
        text-align: left;
    }
    .download-empty { padding: 40px 20px; }
    .download-empty-title { font-size: 1.2rem; }
    .download-empty-actions { flex-direction: column; }
    .download-empty-actions .btn { width: 100%; justify-content: center; }

    .requirements { padding: 24px 20px; }
    .subpage-inner { padding: 32px 24px; }

    /* Releases */
    .release-card { padding: 20px 20px; }
    .release-latest { padding-top: 28px; }
    .release-head { flex-direction: column; align-items: flex-start; }
    .release-version { font-size: 1.2rem; }
    .release-foot { flex-direction: column; align-items: stretch; }
    .release-download { justify-content: center; }
    .releases-page { padding: 120px 20px 60px; }
    .releases-title { font-size: 1.5rem; }
    .releases-header { flex-direction: column; align-items: flex-start; }

    /* Marketplace */
    .marketplace-page { padding: 120px 20px 60px; }
    .marketplace-title { font-size: 1.5rem; }
    .marketplace-header { flex-direction: column; align-items: flex-start; }
    .marketplace-grid { grid-template-columns: 1fr; }
    .upload-form { padding: 20px; }
    .upload-drop-zone { padding: 30px 16px; }
    .upload-actions { flex-direction: column-reverse; }
    .upload-actions > * { width: 100%; text-align: center; justify-content: center; }

    /* 认证 */
    .auth-page { padding: 100px 16px 40px; }
    .auth-card { padding: 28px 22px 24px; border-radius: 16px; }
    .auth-title { font-size: 1.35rem; }
    .auth-icon { width: 48px; height: 48px; font-size: 1.3rem; }

    /* 论坛 */
    .forum-page { padding: 90px 16px 60px; }
    .forum-header { flex-direction: column; align-items: flex-start; }
    .forum-title { font-size: 1.5rem; }
    .forum-item { padding: 14px 16px; gap: 12px; }
    .forum-item-avatar { width: 36px; height: 36px; font-size: 0.9rem; }
    .forum-item-stats { display: none; }
    .forum-item-title { font-size: 0.95rem; }
    .forum-cats { grid-template-columns: 1fr; }
    .forum-toolbar { flex-direction: column; align-items: stretch; }
    .forum-search input { min-width: 0; flex: 1; }
    .forum-topic { padding: 20px 20px; }
    .forum-topic-title { font-size: 1.2rem; }
    .forum-reply { padding: 14px 16px; }
    .forum-reply-form-wrap { padding: 20px 20px; }
    .forum-form { padding: 20px; }
    .forum-actions { flex-direction: column-reverse; }
    .forum-btn-cancel, .forum-btn-submit { width: 100%; text-align: center; justify-content: center; }

    /* 楼中楼移动端 */
    .forum-subreplies { padding-left: 8px; }
    .forum-reply.forum-subreply { padding: 12px 12px; }
    .forum-reply-actions { margin-left: 0; width: 100%; margin-top: 4px; }
    .forum-btn-reply { padding: 3px 10px; font-size: 0.75rem; }
    .forum-reply-target { font-size: 0.82rem; padding: 6px 10px; }
    .forum-best-tag { left: 16px; padding: 2px 10px; font-size: 0.7rem; }

    /* 通知下拉 */
    .nav-notice-dropdown { min-width: 280px; right: -60px; }

    /* ★ 页脚：手机端单栏 */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ============================================================
   响应式 - 小手机 (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .nav-search.is-open { width: 140px; }
    .nav-icon-btn { width: 34px; height: 34px; }
    .nav-icon-btn svg { width: 18px; height: 18px; }
}

/* ============================================================
   搜索提示（论坛）
   ============================================================ */
.forum-search-hint {
    padding: 10px 16px;
    background: #eff6ff;
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.forum-search-hint strong { color: var(--brand); }
.forum-search-clear {
    margin-left: auto;
    color: var(--gray-400);
    font-size: 0.82rem;
    text-decoration: none;
}
.forum-search-clear:hover { color: #dc2626; text-decoration: none; }

/* ============================================================
   分页导航（论坛）
   ============================================================ */
.forum-page-nav {
    padding: 0 14px !important;
    color: var(--gray-600) !important;
    font-weight: 500;
}
.forum-page-nav:hover {
    color: var(--brand) !important;
    background: #eff6ff !important;
}
.forum-page-dots {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.88rem;
}