/* 不用 Google Fonts：国内经常卡住，会拖住整份 style.css 导致页面大面积空白 */

:root {
    --primary: #0052D9;
    --primary-dark: #003EB3;
    --primary-soft: #E8F1FF;
    --sky: #3B82F6;
    --secondary: #1B3356;
    --success: #00A870;
    --warning: #E37318;
    --danger: #E34D59;
    --info: #3B82F6;
    --ink-950: #06101F;
    --ink-900: #0A1628;
    --ink-800: #12233D;
    --ink-700: #1B3356;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --bg: #F3F6FB;
    --card-bg: #ffffff;
    --surface: #ffffff;
    --cta: #0052D9;
    --trust-bg: #E8F1FF;
    --text: #06101F;
    --text-light: #475569;
    --border: rgba(27, 51, 86, 0.1);
    --radius: 1.25rem;
    --radius-sm: 0.75rem;
    --shadow: 0 20px 50px -24px rgba(6, 16, 31, 0.28);
    --shadow-lg: 0 28px 60px -20px rgba(6, 16, 31, 0.35);
    --font-display: 'Sora', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei UI', sans-serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei UI', 'Sora', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* 软导航：顶栏进度条 + 内容区过渡 */
#soft-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 10000;
    pointer-events: none;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    opacity: 0;
    transition: width 0.35s ease, opacity 0.2s ease;
}
#soft-nav-progress.is-active {
    width: 78%;
    opacity: 1;
    animation: soft-nav-pulse 1.1s ease-in-out infinite;
}
@keyframes soft-nav-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}
.app-main {
    min-height: 40vh;
    transition: opacity 0.18s ease;
}
.app-main.is-soft-loading {
    opacity: 0.55;
    pointer-events: none;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.nav-brand img {
    height: 42px !important;
    width: auto !important;
    max-width: 280px !important;
    max-height: 42px !important;
    object-fit: contain;
    display: block;
}

.footer-grid > div:first-child img {
    height: 42px !important;
    width: auto !important;
    max-width: 280px !important;
    max-height: 42px !important;
    object-fit: contain;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--sky); color: white; transform: translateY(-1px); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #009a66; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-secondary {
    background: white;
    color: var(--ink-700);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    border: 1px solid rgba(27, 51, 86, 0.04);
}

.card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* —— Navbar (match a-cheng.cn) —— */
.navbar {
    background: rgba(6, 16, 31, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.03em;
}

.nav-brand:hover { color: white; }

.nav-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: transparent;
    display: inline-block;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    color: rgba(255,255,255,0.72);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* 对接门店二级菜单 */
.nav-menu .nav-dropdown {
    position: relative;
}
.nav-menu .nav-dropdown-toggle {
    cursor: pointer;
}
.nav-menu .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 148px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    padding: 8px 0;
    display: none;
    z-index: 120;
}
.nav-menu .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}
.nav-menu .nav-dropdown:hover .nav-dropdown-menu,
.nav-menu .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}
.nav-menu .nav-dropdown-menu a {
    display: block;
    color: #334155 !important;
    padding: 10px 16px;
    border-radius: 0;
    background: transparent !important;
    font-size: 14px;
}
.nav-menu .nav-dropdown-menu a:hover,
.nav-menu .nav-dropdown-menu a.active {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}


.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    cursor: pointer;
    display: block;
}

/* 扩大悬停热区，避免头像与菜单空隙导致菜单消失 */
.nav-user .dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 190px;
    padding: 8px 0;
    display: none;
    z-index: 100;
    border: 1px solid var(--border);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--gray-700);
    font-size: 14px;
}

.dropdown-menu a:hover { background: var(--primary-soft); color: var(--primary); }

.dropdown-menu.uc-avatar-menu {
    min-width: 210px;
    padding: 8px;
    border-radius: 10px;
}
.dropdown-menu.uc-avatar-menu > div:first-child {
    margin: 0 0 4px;
    border-radius: 8px;
}
.dropdown-menu.uc-avatar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 8px;
}
.dropdown-menu.uc-avatar-menu a:hover {
    background: #eef2f6;
}
.dropdown-menu.uc-avatar-menu .pix {
    width: 20px;
    text-align: center;
    font-size: 15px;
    line-height: 1;
    flex: 0 0 auto;
}

a.user-home-link {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease, opacity .15s ease;
    cursor: pointer;
}
a.user-home-link:hover {
    color: var(--primary);
    opacity: 0.92;
}
a.user-home-link img {
    display: block;
    transition: transform .15s ease, box-shadow .15s ease;
}
a.user-home-link:hover img {
    transform: scale(1.04);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.35);
}

/* 用户基础信息小弹窗 */
.user-card-pop {
    position: absolute;
    z-index: 10050;
    width: min(300px, calc(100vw - 24px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}
.user-card-pop.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.user-card-pop .ucp-inner {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    padding: 16px;
}
.user-card-pop .ucp-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}
.user-card-pop .ucp-close:hover { color: #475569; }
.user-card-pop .ucp-loading,
.user-card-pop .ucp-error {
    padding: 18px 8px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.user-card-pop .ucp-error { color: #ef4444; }
.user-card-pop .ucp-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 18px;
}
.user-card-pop .ucp-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
    flex-shrink: 0;
}
.user-card-pop .ucp-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.user-card-pop .ucp-user {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}
.user-card-pop .ucp-sig {
    margin-top: 12px;
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
}
.user-card-pop .ucp-sig-empty { color: #94a3b8; }
.user-card-pop .ucp-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}
.user-card-pop .ucp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}
.user-card-pop .ucp-stats b {
    display: block;
    font-size: 16px;
    color: #2563eb;
}
.user-card-pop .ucp-stats span {
    font-size: 11px;
    color: #94a3b8;
}
.user-card-pop .ucp-online { font-size: 12px; color: #94a3b8; }
.user-card-pop .ucp-online.is-on { color: #16a34a; font-weight: 600; }
.user-card-pop .ucp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
.user-card-pop .ucp-actions .ucp-btn:nth-child(3) {
    grid-column: 1 / -1;
}
.user-card-pop .ucp-btn {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.user-card-pop .ucp-btn:hover { background: #1d4ed8; }
.user-card-pop .ucp-btn-secondary {
    background: #f1f5f9;
    color: #334155 !important;
}
.user-card-pop .ucp-btn-secondary:hover { background: #e2e8f0; }

/* —— Hero —— */
.hero {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 88px 0 100px;
    text-align: left;
    background:
        radial-gradient(ellipse 70% 60% at 75% 35%, rgba(59,130,246,0.35), transparent 60%),
        radial-gradient(ellipse 45% 40% at 15% 80%, rgba(0,168,112,0.14), transparent 55%),
        linear-gradient(145deg, #06101F 0%, #0A1628 48%, #12233D 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero .eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 14px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 720px;
}

.hero p {
    font-size: 16px;
    opacity: 0.72;
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.7;
}

.hero .btn-group {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: white;
    color: var(--ink-950);
}
.hero .btn-primary:hover { background: var(--primary-soft); color: var(--ink-950); }
.hero .btn-ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.28);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,0.08); color: white; }

/* —— Hero carousel layout + program demo —— */
.hero-carousel { padding: 72px 0 96px; }
.hero-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.06) 45%, transparent 70%);
    background-size: 200% 100%;
    animation: hero-shimmer 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes hero-shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -40% 0; }
}
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 36px 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-copy { min-width: 0; }
.hero-slide-copy { display: none; }
.hero-slide-copy.is-active { display: block; animation: hero-fade-in .45s ease; }
.hero-lead {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    max-width: 640px;
    color: #fff;
    opacity: 1 !important;
}
.hero-sub {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin: 0 0 28px;
    max-width: 520px;
}
.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.28);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.hero-dot.is-active {
    width: 28px;
    background: #fff;
}
.hero-media {
    position: relative;
    min-height: 280px;
}
.hero-slide-media {
    display: none;
    width: 100%;
}
.hero-slide-media.is-active {
    display: block;
    animation: hero-fade-in .45s ease;
}
.hero-slide-media img,
.hero-slide-media video {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    background: #0b1424;
}
@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.hero-app-demo {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    animation: had-float 5.5s ease-in-out infinite;
}
@keyframes had-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.had-window {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(12, 20, 36, 0.92);
    box-shadow: 0 28px 70px rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
}
.had-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.had-dots { display: flex; gap: 6px; }
.had-dots i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}
.had-dots i:nth-child(2) { background: #febc2e; }
.had-dots i:nth-child(3) { background: #28c840; }
.had-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
}
.had-live-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6ee7b7;
}
.had-live-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: had-pulse 1.2s ease-in-out infinite;
}
@keyframes had-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(0.85); }
}
.had-body {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 220px;
}
.had-side {
    padding: 14px 10px;
    background: rgba(255,255,255,0.03);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.had-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin: 0 6px 12px;
}
.had-nav {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
    transition: background .2s, color .2s;
}
.had-nav.is-active,
.had-nav.active {
    background: rgba(56,189,248,0.16);
    color: #e0f2fe;
    font-weight: 600;
}
.had-main { padding: 16px 16px 18px; }
.had-kicker {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin-bottom: 4px;
}
.had-h {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.had-sub {
    font-size: 12px;
    color: rgba(186,230,253,0.78);
    margin-bottom: 12px;
    min-height: 1.4em;
}
.had-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    margin-bottom: 12px;
}
.had-bar i {
    display: block;
    height: 100%;
    width: var(--pct, 60%);
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #3b82f6);
    animation: had-bar-fill .7s ease;
}
@keyframes had-bar-fill {
    from { width: 8%; opacity: .7; }
    to { width: var(--pct, 60%); opacity: 1; }
}
.had-console {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(224,242,254,0.75);
    margin-bottom: 12px;
}
.had-console .had-ok { color: #6ee7b7; }
.had-console [data-had-line],
.had-console [data-had-line2],
.had-console [data-had-status] {
    animation: had-log-in .45s ease both;
}
@keyframes had-log-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}
.had-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.had-tags span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(52,211,153,0.16);
    color: #a7f3d0;
}

.stats-bar {
    background: white;
    padding: 28px 8px;
    box-shadow: var(--shadow);
    margin-top: -44px;
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid rgba(27, 51, 86, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item .number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.stat-item .label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 28px;
    margin-bottom: 40px;
}

.sidebar .card { margin-bottom: 20px; }
.sidebar h3 {
    font-family: var(--font-display);
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 700;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.board-card {
    background: var(--bg);
    border-radius: 1rem;
    padding: 18px;
    box-shadow: none;
    border: 1px solid transparent;
    border-top: 3px solid var(--primary);
    transition: all 0.25s;
    display: block;
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: white;
    border-color: rgba(0, 82, 217, 0.12);
}

.board-card .board-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.board-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 700;
}

.board-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.board-card .board-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--gray-500);
}

.thread-list .thread-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.thread-list .thread-item:last-child { border-bottom: none; }

.thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.thread-info { flex: 1; min-width: 0; }

.thread-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-title a { color: inherit; }
.thread-title a:hover { color: var(--primary); }

.thread-meta {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.thread-meta .tag {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.thread-stats {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--gray-500);
    font-size: 12px;
    flex-shrink: 0;
}

.thread-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.12);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    background: white;
    border: 1px solid var(--border);
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer {
    background: var(--ink-950);
    color: rgba(255,255,255,0.55);
    padding: 48px 0 28px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer h4 {
    font-family: var(--font-display);
    color: white;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer ul li a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}

.badge-top { background: var(--danger); color: white; }
.badge-hot {
  background: linear-gradient(90deg, #ff4d4f, #ff7a45);
  color: #fff;
  letter-spacing: .04em;
}
.badge-essence { background: var(--warning); color: white; }
.badge-closed { background: var(--gray-400); color: white; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success { background: #E8F8F0; color: #0B6E4F; }
.alert-error { background: #FDECEE; color: #B42318; }
.alert-warning { background: #FFF4E5; color: #9A5B00; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 70% 50% at 70% 30%, rgba(59,130,246,0.3), transparent 55%),
        linear-gradient(145deg, #06101F, #0A1628 50%, #12233D);
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 1.5rem;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-box h2 {
    font-family: var(--font-display);
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 800;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.auth-box .auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-500);
}

.chat-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    /* 顶栏 + 上下留白，保证底部输入框始终可见 */
    height: calc(100vh - 96px);
    max-height: calc(100vh - 96px);
    margin: 16px auto 24px;
    gap: 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.chat-sidebar {
    background: var(--bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.chat-sidebar h3 {
    padding: 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
}

.chat-room-item {
    display: block;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    transition: all 0.2s;
    color: inherit;
}

.chat-room-item:hover { background: white; }

.chat-room-item.active {
    background: var(--primary);
    color: white;
    border-left-color: var(--primary-dark);
}

.chat-room-item .room-name { font-weight: 600; font-size: 14px; }
.chat-room-item .room-desc { font-size: 12px; opacity: 0.7; margin-top: 2px; }

.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* 关键：否则消息把输入框挤出 overflow:hidden 区域 */
}
.chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-family: var(--font-display);
    flex-shrink: 0;
}
.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.chat-message .msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-message .msg-body { max-width: 70%; min-width: 0; }
.chat-message .msg-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.chat-message .msg-content {
    display: inline-block;
    background: var(--gray-100);
    padding: 10px 14px;
    border-radius: 14px;
    word-break: break-word;
    text-align: left;
}

.chat-message.self { flex-direction: row-reverse; }
.chat-message.self .msg-body { text-align: right; }
.chat-message.self .msg-content { background: var(--primary); color: white; }

.chat-input {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
    z-index: 2;
}

.chat-input textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    line-height: 1.4;
}

.chat-input textarea:focus { border-color: var(--primary); }
.chat-input .btn { flex-shrink: 0; height: 44px; padding: 0 18px; }

/* 聊天页隐藏页脚，避免再把视口顶掉 */
body.page-chat .footer,
body:has(.chat-container) .footer { display: none; }

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--ink-950);
    color: white;
    padding: 20px 0;
}

.admin-sidebar h2 {
    padding: 0 20px 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-display);
}

.admin-sidebar ul { list-style: none; }
.admin-sidebar ul li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li a.active {
    background: var(--primary);
    color: white;
}

.admin-content {
    padding: 24px;
    background: var(--bg);
}

.admin-content h1 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 800;
}

.admin-table {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-600);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-stat-card .num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.admin-stat-card .label {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 4px;
}

.quill { border-radius: 8px; }
.quill .ql-toolbar {
    border-radius: 8px 8px 0 0;
    border-color: var(--border);
    background: var(--gray-50);
    padding: 8px;
}
.quill .ql-container {
    border-radius: 0 0 8px 8px;
    border-color: var(--border);
    font-size: 14px;
    min-height: 150px;
}
.quill .ql-editor { padding: 12px; min-height: 150px; }
.quill .ql-editor p { margin: 0 0 8px 0; }
.quill .ql-editor ul,
.quill .ql-editor ol { padding-left: 24px; margin: 8px 0; }
.quill .ql-editor blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin: 12px 0;
    color: var(--gray-600);
    font-style: italic;
}
.quill .ql-editor pre.ql-syntax {
    background: var(--ink-900);
    color: #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 13px;
}

.post-content,
.reply-content { word-break: break-word; }
.post-content p,
.reply-content p { margin: 0 0 12px 0; }
.post-content h1, .reply-content h1 {
    font-size: 24px; font-weight: 700; margin: 20px 0 12px; color: var(--gray-900);
    font-family: var(--font-display);
}
.post-content h2, .reply-content h2 {
    font-size: 20px; font-weight: 600; margin: 18px 0 10px; color: var(--gray-900);
}
.post-content h3, .reply-content h3 {
    font-size: 18px; font-weight: 600; margin: 16px 0 8px; color: var(--gray-800);
}
.post-content h4, .reply-content h4 {
    font-size: 16px; font-weight: 600; margin: 14px 0 8px; color: var(--gray-700);
}
.post-content ul, .reply-content ul,
.post-content ol, .reply-content ol { padding-left: 24px; margin: 8px 0 16px; }
.post-content li, .reply-content li { margin: 4px 0; }
.post-content blockquote, .reply-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 14px;
    margin: 16px 0;
    background: var(--primary-soft);
    border-radius: 0 8px 8px 0;
    color: var(--gray-600);
    font-style: italic;
}
.post-content code, .reply-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: var(--danger);
}
.post-content pre, .reply-content pre {
    background: var(--ink-900);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}
.post-content pre code, .reply-content pre code {
    background: none; padding: 0; color: inherit;
}
.post-content a, .reply-content a { color: var(--primary); text-decoration: underline; }
.post-content a:hover, .reply-content a:hover { color: var(--primary-dark); }
.post-content img, .reply-content img,
.ql-editor img {
    max-width: 100%;
    height: auto;
    max-height: min(70vh, 640px);
    object-fit: contain;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.forum-editor {
    min-height: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.forum-editor .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.forum-editor .ql-container.ql-snow {
    border: 0;
    min-height: 220px;
}
.forum-editor-compact .ql-container.ql-snow {
    min-height: 140px;
}
.forum-editor .ql-editor {
    min-height: 220px;
}
.forum-editor-compact .ql-editor {
    min-height: 140px;
}
.post-content table, .reply-content table {
    width: 100%; border-collapse: collapse; margin: 16px 0;
}
.post-content th, .reply-content th,
.post-content td, .reply-content td {
    border: 1px solid var(--border); padding: 8px 12px; text-align: left;
}
.post-content th, .reply-content th {
    background: var(--gray-50); font-weight: 600;
}

/* sidebar hot boards */
.sidebar .hot-board-link {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg);
    font-size: 14px;
    color: var(--text);
    transition: background .2s;
}
.sidebar .hot-board-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

@media (max-width: 960px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-app-demo {
        margin: 0 auto;
        max-width: 420px;
    }
    .hero-media { min-height: 0; }
}

/* —— 首页产品宣传（对标软件官网，但更高级且不雷同） —— */
body.page-home-product {
    background: #f4f7fb;
}
body.page-home-product .navbar {
    background: rgba(6, 16, 31, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.page-home-product .footer { margin-top: 0; }

/* 左文右图：文字在左，轮播动画在右 */
.hero-showcase {
    position: relative;
    padding: 56px 0 72px;
    min-height: min(90vh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: left;
    background: #06101f;
}
.hero-showcase-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 85% 35%, rgba(14, 165, 233, 0.26), transparent 58%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(0, 82, 217, 0.18), transparent 55%),
        linear-gradient(155deg, #0b1b33 0%, #07111f 48%, #050b14 100%);
    pointer-events: none;
}
.hero-showcase-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.28;
    mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}
.hero-showcase-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.45fr);
    gap: 28px 32px;
    align-items: center;
    width: 100%;
}
.hero-showcase-copy {
    position: relative;
    z-index: 6;
    max-width: 480px;
    padding: 0;
    margin: 0;
    isolation: isolate;
}
.hero-showcase-copy::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -24px -36px -28px -20px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 80% 70% at 20% 40%, rgba(6, 16, 31, 0.72), transparent 70%),
        linear-gradient(90deg, rgba(6, 16, 31, 0.55) 0%, rgba(6, 16, 31, 0.2) 70%, transparent 100%);
    pointer-events: none;
}
.hero-showcase .hero-brand {
    font-family: var(--font-display);
    margin: 0 0 16px;
    color: #ffffff;
    opacity: 1;
}
.hero-showcase .hero-brand-zh {
    display: block;
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-shadow:
        0 0 24px rgba(56, 189, 248, 0.35),
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 12px 36px rgba(0, 0, 0, 0.55);
}
.hero-showcase .hero-brand-en {
    display: block;
    margin-top: 6px;
    font-size: clamp(18px, 2.1vw, 28px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(226, 242, 255, 0.92);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.hero-showcase .hero-lead {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 700;
    margin: 0 0 12px;
    color: #ffffff;
    opacity: 1 !important;
    max-width: 520px;
    text-shadow:
        0 0 18px rgba(125, 211, 252, 0.28),
        0 8px 24px rgba(0, 0, 0, 0.45);
}
.hero-showcase .hero-sub {
    margin: 0 0 28px;
    max-width: 480px;
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
    font-size: 15px;
    line-height: 1.75;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.hero-showcase .btn-group {
    justify-content: flex-start;
    flex-wrap: wrap;
}
.hero-showcase .btn-primary.hero-cta-main,
.hero .btn-primary.hero-cta-main {
    min-width: 148px;
    border-radius: 999px;
    padding-left: 26px;
    padding-right: 26px;
    background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
    color: #fff !important;
    border: 0;
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.35);
}
.hero-showcase .btn-primary.hero-cta-main:hover,
.hero .btn-primary.hero-cta-main:hover {
    filter: brightness(1.06);
    background: linear-gradient(135deg, #7dd3fc, #3b82f6) !important;
    color: #fff !important;
}
.hero-showcase .btn-ghost {
    border-radius: 999px;
}

.hero-coverflow {
    position: relative;
    z-index: 2;
    width: 100%;
    height: clamp(380px, 44vw, 580px);
    margin: 0;
    perspective: 1600px;
}
.hero-cover-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(98%, 760px);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease,
        filter 0.5s ease;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(180deg, #121a2b 0%, #0b1424 100%);
    box-shadow: 0 28px 70px rgba(0,0,0,0.45);
    will-change: transform, opacity;
}
.hero-cover-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-cover-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.55);
}
.hero-cover-chrome span:nth-child(1) { background: #f87171; }
.hero-cover-chrome span:nth-child(2) { background: #fbbf24; }
.hero-cover-chrome span:nth-child(3) { background: #34d399; }
.hero-cover-card img,
.hero-cover-card video {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(320px, 38vw, 520px);
    object-fit: contain;
    object-position: top center;
    background: #0a1220;
}
.hero-cover-card .hero-app-demo {
    margin: 0 auto;
    max-width: none;
    width: 100%;
    animation: none;
}
.hero-cover-card .had-window {
    border-radius: 0;
    box-shadow: none;
}
.hero-cover-card[data-pos="0"] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 5;
    filter: none;
    cursor: default;
    box-shadow:
        0 34px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(125,211,252,0.22),
        0 0 48px rgba(56, 189, 248, 0.12);
}
.hero-cover-card[data-pos="-1"] {
    transform: translate(calc(-50% - 30%), -52%) scale(0.82) rotateY(8deg);
    opacity: 0.42;
    z-index: 3;
    filter: saturate(0.85) brightness(0.78);
}
.hero-cover-card[data-pos="1"] {
    transform: translate(calc(-50% + 30%), -52%) scale(0.82) rotateY(-8deg);
    opacity: 0.42;
    z-index: 3;
    filter: saturate(0.85) brightness(0.78);
}
.hero-cover-card[data-pos="-2"],
.hero-cover-card[data-pos="2"],
.hero-cover-card[data-pos="-3"],
.hero-cover-card[data-pos="3"] {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-showcase-dots {
    position: relative;
    z-index: 3;
    justify-content: flex-start;
    margin: 22px 0 0;
}

.product-rail {
    margin-top: -36px;
    position: relative;
    z-index: 2;
    padding: 0 0 8px;
}
.product-rail-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(6, 16, 31, 0.12);
}
.product-rail-item {
    background: #fff;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-rail-item strong {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--ink-950);
}
.product-rail-item span {
    font-size: 13px;
    color: var(--gray-500);
}

.product-section-head {
    text-align: left;
    max-width: 720px;
    margin: 0 0 56px;
}
.product-eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 12px;
}
.product-eyebrow.light { color: #7dd3fc; }
.product-section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink-950);
    margin: 0 0 12px;
}
.product-section-head p {
    margin: 0;
    color: var(--gray-500);
    font-size: 16px;
    line-height: 1.75;
    max-width: 560px;
}

.product-features {
    position: relative;
    padding: 88px 0 56px;
    background:
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(56, 189, 248, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 35% at 90% 60%, rgba(37, 99, 235, 0.1), transparent 50%),
        linear-gradient(180deg, rgba(244, 247, 251, 0.92) 0%, rgba(255, 255, 255, 0.75) 100%);
}
.product-features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.55;
    pointer-events: none;
}
.product-features > .container { position: relative; z-index: 1; }
.product-feature {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px 56px;
    align-items: center;
    margin-bottom: 36px;
    padding: 28px 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(6, 16, 31, 0.06);
}
.product-feature.is-reverse .product-feature-copy { order: 2; }
.product-feature.is-reverse .product-feature-visual { order: 1; }
.product-section-head.slice-block {
    padding: 22px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.product-feature-num {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #94a3b8;
    margin-bottom: 14px;
}
.product-feature-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #e8f1ff, #f0f9ff);
    border: 1px solid rgba(0,82,217,0.12);
    font-size: 22px;
    margin-bottom: 18px;
}
.product-feature-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    color: var(--ink-950);
}
.product-feature-sub {
    font-size: 16px;
    font-weight: 600;
    color: #0284c7;
    margin: 0 0 14px;
}
.product-feature-body {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray-600);
    max-width: 460px;
}
.product-feature-visual { min-width: 0; }
.product-feature-panel {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        linear-gradient(165deg, #071221 0%, #12233d 52%, #1a3358 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(6, 16, 31, 0.22);
    min-height: 280px;
}
.product-feature-panel .pfp-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.18);
}
.product-feature-panel .pfp-bar > i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #64748b;
}
.product-feature-panel .pfp-bar > i:nth-child(1) { background: #f87171; }
.product-feature-panel .pfp-bar > i:nth-child(2) { background: #fbbf24; }
.product-feature-panel .pfp-bar > i:nth-child(3) { background: #34d399; }
.product-feature-panel .pfp-bar > span {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.02em;
}
.product-feature-panel .pfp-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #7dd3fc;
    font-style: normal;
}
.product-feature-panel .pfp-live em {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
    animation: pfp-pulse 1.6s ease-out infinite;
}
.product-feature-panel .pfp-body {
    padding: 18px 18px 20px;
}
.product-feature-panel .pfp-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 8px;
}
.product-feature-panel .pfp-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.product-feature-panel .pfp-log {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.88);
    margin-bottom: 14px;
    min-height: 1.4em;
    transition: opacity 0.25s ease;
}
.product-feature-panel .pfp-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 16px;
}
.product-feature-panel .pfp-progress-bar,
.product-feature-panel .pfp-progress > i {
    display: block;
    height: 100%;
    width: 18%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #2563eb, #22d3ee);
    background-size: 200% 100%;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    transform-origin: left center;
    animation:
        pfp-fill 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite,
        pfp-sheen 2.2s linear infinite;
}
.product-feature-panel.is-js .pfp-progress-bar {
    animation: pfp-sheen 2.2s linear infinite;
    transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-feature-panel .pfp-console {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    color: rgba(186, 230, 253, 0.88);
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
    min-height: 74px;
}
.product-feature-panel .pfp-ok {
    color: #86efac;
}
.product-feature-panel .pfp-tag {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
}
.product-feature-panel .pfp-log.is-flash {
    animation: pfp-fade 0.4s ease;
}
@keyframes pfp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
@keyframes pfp-sheen {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes pfp-fill {
    0%, 8% { width: 16%; }
    28% { width: 42%; }
    52% { width: 68%; }
    78% { width: 92%; }
    90%, 100% { width: 100%; }
}
@keyframes pfp-fade {
    from { opacity: 0.25; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .product-feature-panel .pfp-live em,
    .product-feature-panel .pfp-progress-bar,
    .product-feature-panel .pfp-progress > i {
        animation: none !important;
    }
}

/* 全部功能网格 */
.product-cap-block {
    margin-top: 12px;
    margin-bottom: 48px;
    padding: 28px 28px 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 48px rgba(6, 16, 31, 0.06);
    overflow: visible;
}
.product-cap-block.slice-block {
    overflow: visible;
}
.product-cap-head {
    max-width: 640px;
    margin: 0 0 24px;
}
.product-cap-head h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink-950);
    margin: 0 0 8px;
}
.product-cap-head p {
    margin: 0;
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}
.product-cap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
    align-items: stretch;
}
.product-cap-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 8px 22px rgba(6, 16, 31, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: visible;
    cursor: default;
    min-height: 76px;
}
.product-cap-card:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 132, 199, 0.28);
    box-shadow: 0 14px 30px rgba(6, 16, 31, 0.1);
    z-index: 8;
}
.product-cap-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(145deg, #e8f1ff, #f0f9ff);
    border: 1px solid rgba(0, 82, 217, 0.12);
}
.product-cap-copy { min-width: 0; flex: 1; }
.product-cap-copy h4 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-950);
}
.product-cap-sub {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
}
/* 介绍浮层：不撑高卡片，避免网格错位 */
.product-cap-body {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% - 6px);
    z-index: 9;
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.65;
    color: #e2e8f0;
    background: linear-gradient(165deg, #0b1a2e 0%, #12243d 100%);
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(6, 16, 31, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}
.product-cap-body::before {
    content: '';
    position: absolute;
    left: 28px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #0f1f33;
    border-left: 1px solid rgba(125, 211, 252, 0.22);
    border-top: 1px solid rgba(125, 211, 252, 0.22);
    transform: rotate(45deg);
}
.product-cap-card:hover .product-cap-body,
.product-cap-card:focus-within .product-cap-body,
.product-cap-card.is-open .product-cap-body {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover: none) {
    .product-cap-card.is-open {
        z-index: 8;
    }
}

/* 电脑端下滑进入：半透明卡片 + 切片揭开 + 内容上浮 */
.slice-block {
    position: relative;
    overflow: hidden;
    --slice-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.slice-mask { display: none; }

@media (min-width: 769px) {
    html.has-slice-js .slice-mask {
        display: flex;
        flex-direction: column;
        position: absolute;
        inset: 0;
        z-index: 5;
        pointer-events: none;
        border-radius: inherit;
        overflow: hidden;
    }
    html.has-slice-js .slice-mask i {
        flex: 1 1 auto;
        min-height: 0;
        background: rgba(226, 236, 248, 0.92);
        transform: scaleX(1);
        transform-origin: left center;
        transition: transform 0.72s var(--slice-ease);
        box-shadow: inset 0 -1px 0 rgba(6, 16, 31, 0.05);
    }
    html.has-slice-js .slice-mask.slice-mask-dark i {
        background: rgba(10, 22, 40, 0.94);
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    }
    html.has-slice-js [data-slice-dir="left"] .slice-mask i {
        transform-origin: right center;
    }
    html.has-slice-js [data-slice-dir="up"] .slice-mask {
        flex-direction: row;
    }
    html.has-slice-js [data-slice-dir="up"] .slice-mask i {
        transform-origin: bottom center;
        transform: scaleY(1);
        box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
    }
    html.has-slice-js .slice-mask i:nth-child(1) { transition-delay: 0.00s; }
    html.has-slice-js .slice-mask i:nth-child(2) { transition-delay: 0.06s; }
    html.has-slice-js .slice-mask i:nth-child(3) { transition-delay: 0.12s; }
    html.has-slice-js .slice-mask i:nth-child(4) { transition-delay: 0.18s; }
    html.has-slice-js .slice-mask i:nth-child(5) { transition-delay: 0.24s; }
    html.has-slice-js .slice-mask i:nth-child(6) { transition-delay: 0.30s; }

    html.has-slice-js .slice-block.is-sliced .slice-mask i {
        transform: scaleX(0);
    }
    html.has-slice-js [data-slice-dir="up"].is-sliced .slice-mask i {
        transform: scaleY(0);
    }

    html.has-slice-js .slice-block:not(.is-sliced) {
        opacity: 0.35;
        transform: translateY(40px);
        transition:
            opacity 0.65s var(--slice-ease),
            transform 0.75s var(--slice-ease);
    }
    html.has-slice-js .slice-block.is-sliced {
        opacity: 1;
        transform: none;
    }
    html.has-slice-js .slice-block:not(.is-sliced) .product-feature-copy,
    html.has-slice-js .slice-block:not(.is-sliced) .product-feature-visual,
    html.has-slice-js .product-section-head:not(.is-sliced) > *:not(.slice-mask),
    html.has-slice-js .product-download:not(.is-sliced) .product-download-dock {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(2px);
        transition:
            opacity 0.55s ease 0.12s,
            transform 0.7s var(--slice-ease) 0.12s,
            filter 0.55s ease 0.12s;
    }
    html.has-slice-js .slice-block[data-slice-dir="right"]:not(.is-sliced) .product-feature-copy {
        transform: translateX(-36px) translateY(12px);
    }
    html.has-slice-js .slice-block[data-slice-dir="right"]:not(.is-sliced) .product-feature-visual {
        transform: translateX(36px) translateY(12px);
    }
    html.has-slice-js .slice-block[data-slice-dir="left"]:not(.is-sliced) .product-feature-copy {
        transform: translateX(36px) translateY(12px);
    }
    html.has-slice-js .slice-block[data-slice-dir="left"]:not(.is-sliced) .product-feature-visual {
        transform: translateX(-36px) translateY(12px);
    }
    html.has-slice-js .slice-block.is-sliced .product-feature-copy,
    html.has-slice-js .slice-block.is-sliced .product-feature-visual,
    html.has-slice-js .product-section-head.is-sliced > *:not(.slice-mask),
    html.has-slice-js .product-download.is-sliced .product-download-dock {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.has-slice-js .slice-mask { display: none !important; }
    html.has-slice-js .slice-block,
    html.has-slice-js .slice-block .product-feature-copy,
    html.has-slice-js .slice-block .product-feature-visual,
    html.has-slice-js .product-section-head > *,
    html.has-slice-js .product-download .product-download-dock {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}
.pfp-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}
.pfp-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f57;
}
.pfp-bar i:nth-child(2) { background: #febc2e; }
.pfp-bar i:nth-child(3) { background: #28c840; }
.pfp-bar span { margin-left: 8px; }
.pfp-lines {
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pfp-lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}
.pfp-lines span:nth-child(1) { width: 72%; }
.pfp-lines span:nth-child(2) { width: 88%; }
.pfp-lines span:nth-child(3) { width: 54%; background: rgba(59,130,246,0.55); }
.pfp-lines em {
    margin-top: 8px;
    font-style: normal;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.product-download {
    padding: 72px 0 96px;
    background:
        radial-gradient(ellipse 50% 70% at 15% 30%, rgba(56,189,248,0.16), transparent 55%),
        linear-gradient(160deg, #040a14 0%, #0a1628 55%, #10243f 100%);
    color: #fff;
}
.product-download-dock {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 40px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}
.product-download-dock-v2 { gap: 24px; }
.product-download-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}
.product-download-copy p {
    margin: 0;
    color: rgba(255,255,255,0.66);
    font-size: 15px;
    line-height: 1.7;
    max-width: 52ch;
}
.product-os-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.product-os-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.product-os-card:hover {
    border-color: rgba(125,211,252,0.45);
    background: rgba(255,255,255,0.09);
    transform: translateY(-2px);
}
.product-os-card.is-soon { opacity: 0.72; }
.product-os-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(56,189,248,0.25), rgba(99,102,241,0.18));
    color: #e0f2fe;
}
.product-os-card-icon svg { width: 22px; height: 22px; }
.product-os-card-copy h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.02em;
}
.product-os-card-copy p {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}
.product-os-card .btn {
    min-width: 72px;
    justify-content: center;
}
.product-os-soon {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.55) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    cursor: default;
    pointer-events: none;
}
.product-download-more {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-download .btn-primary {
    background: #fff;
    color: var(--ink-950);
}
.product-download .btn-primary:hover { background: #e0f2fe; color: var(--ink-950); }
.product-download .btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
}
.product-download .btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* Hero OS chips */
.hero-os-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.hero-os-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hero-os-chip:hover {
    background: rgba(56,189,248,0.16);
    border-color: rgba(125,211,252,0.45);
    color: #fff;
    transform: translateY(-1px);
}
.hero-os-chip.is-soon {
    opacity: 0.55;
    cursor: default;
}
.hero-os-ico {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
}
.hero-os-ico svg { width: 16px; height: 16px; }

/* Dedicated download page */
.page-download .app-main { padding: 0; }
.dl-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 48px;
    background:
        radial-gradient(ellipse 60% 80% at 80% 10%, rgba(56,189,248,0.22), transparent 55%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(99,102,241,0.18), transparent 50%),
        linear-gradient(165deg, #040a14 0%, #0a1628 50%, #0f2744 100%);
    color: #fff;
}
.dl-hero-glow {
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 60%);
    pointer-events: none;
}
.dl-hero-inner { position: relative; max-width: 820px; }
.dl-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 850;
    letter-spacing: -0.04em;
    margin: 8px 0 12px;
}
.dl-hero-sub {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.68);
    max-width: 54ch;
}
.dl-hero-sub strong { color: #e0f2fe; font-weight: 700; }
.dl-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.dl-hero-meta span {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.78);
}
.dl-platforms {
    padding: 8px 0 88px;
    background: linear-gradient(180deg, #0f2744 0%, #f4f7fb 18%, #f4f7fb 100%);
}
.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}
.dl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 24px 22px 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 39, 68, 0.08);
    box-shadow: 0 18px 50px rgba(15, 39, 68, 0.12);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(15, 39, 68, 0.16);
    border-color: rgba(37, 99, 235, 0.22);
}
.dl-card.is-recommended {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
}
.dl-card.is-soon { opacity: 0.88; }
.dl-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.dl-card-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #94a3b8;
}
.dl-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #0f2744;
    background: linear-gradient(145deg, #e0f2fe, #dbeafe);
}
.dl-card-icon svg { width: 28px; height: 28px; }
.dl-icon-windows { background: linear-gradient(145deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.dl-icon-linux { background: linear-gradient(145deg, #fef3c7, #fde68a); color: #92400e; }
.dl-icon-macos { background: linear-gradient(145deg, #e5e7eb, #f3f4f6); color: #111827; }
.dl-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.dl-card-short {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 650;
    color: #2563eb;
}
.dl-card-desc {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
}
.dl-card-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}
.dl-file-hint {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}
.dl-btn { width: 100%; justify-content: center; }
.dl-btn.is-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: default;
    pointer-events: none;
}
.dl-rec-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 750;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
}
.dl-changelog {
    margin-top: 28px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 39, 68, 0.08);
    overflow: hidden;
}
.dl-changelog summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 20px;
    font-weight: 700;
    color: #0f172a;
}
.dl-changelog summary::-webkit-details-marker { display: none; }
.dl-changelog-body {
    padding: 0 20px 18px;
    font-size: 13px;
    line-height: 1.75;
    color: #64748b;
    white-space: pre-wrap;
}
.dl-help {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(15, 39, 68, 0.04);
}
.dl-help p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}
.dl-help .btn-ghost {
    border: 1px solid rgba(15, 39, 68, 0.16);
    color: #0f172a;
    background: #fff;
}
.dl-help .btn-ghost:hover { background: #eff6ff; color: #1d4ed8; }

@media (max-width: 960px) {
    .product-feature,
    .product-feature.is-reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-feature.is-reverse .product-feature-copy,
    .product-feature.is-reverse .product-feature-visual { order: unset; }
    .product-rail-inner { grid-template-columns: 1fr; }
    .product-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-download-dock { padding: 28px; }
    .product-os-cards { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; margin-top: 0; }
    .hero-showcase-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-showcase-copy { max-width: none; text-align: center; }
    .hero-showcase .btn-group,
    .hero-showcase-dots,
    .hero-os-row { justify-content: center; }
    .hero-showcase .hero-lead,
    .hero-showcase .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cover-card[data-pos="-1"] { transform: translate(calc(-50% - 26%), -50%) scale(0.8); }
    .hero-cover-card[data-pos="1"] { transform: translate(calc(-50% + 26%), -50%) scale(0.8); }
}

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero { padding: 56px 0 72px; text-align: center; }
    .hero-carousel { padding: 56px 0 72px; }
    .hero-showcase { min-height: 0; padding: 56px 0 48px; }
    .hero-coverflow { height: 280px; }
    .hero-cover-card { width: min(94%, 420px); }
    .hero-cover-card img,
    .hero-cover-card video { max-height: 260px; }
    .hero-cover-card[data-pos="-1"],
    .hero-cover-card[data-pos="1"] { opacity: 0.28; }
    .hero .btn-group { justify-content: center; }
    .hero-dots { justify-content: center; }
    .had-body { grid-template-columns: 1fr; }
    .had-side {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .had-brand { width: 100%; margin-bottom: 6px; }
    .had-nav { margin: 0; }
    .main-layout { grid-template-columns: 1fr; }
    .board-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .chat-container { grid-template-columns: 1fr; }
    .chat-sidebar { display: none; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .product-features { padding: 56px 0 28px; }
    .product-section-head { text-align: center; }
    .product-section-head p { margin-left: auto; margin-right: auto; }
    .product-cap-block { padding: 22px 18px 24px; }
    .product-cap-grid { grid-template-columns: 1fr; }
    .product-cap-head { text-align: center; margin-left: auto; margin-right: auto; }
    .product-download-actions { align-items: stretch; }
    .product-os-tabs { margin: 0 auto; }
    .product-download-copy { text-align: center; }
    .product-download-copy p { margin-left: auto; margin-right: auto; }
    .product-download-more { justify-content: center; }
    .dl-hero { padding: 56px 0 36px; text-align: center; }
    .dl-hero-inner { margin: 0 auto; }
    .dl-hero-sub { margin-left: auto; margin-right: auto; }
    .dl-hero-meta { justify-content: center; }
    .dl-help { flex-direction: column; text-align: center; }
}

/* 社交媒体：链接区下方横向胶囊（左对齐）+ 右侧悬浮 */
.ac-social-footer {
    width: 100%;
    margin: 22px 0 0;
    text-align: left;
}
.ac-social-footer-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.45;
    text-align: left;
}
.ac-social-footer-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.ac-social-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.ac-social-chip:hover {
    border-color: rgba(125, 211, 252, 0.4);
    background: rgba(255,255,255,0.12);
    color: #fff;
    transform: translateY(-1px);
}
.ac-social-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
}
.ac-social-chip-label {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ac-social-svg { width: 16px; height: 16px; display: block; }
.ac-social-img { width: 18px; height: 18px; border-radius: 999px; object-fit: cover; display: block; }

.ac-social-side {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ac-social-side-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.28);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.ac-social-side-btn:hover {
    transform: translateX(-3px);
    background: #0ea5e9;
    border-color: rgba(125, 211, 252, 0.55);
    color: #fff;
}
.ac-social-side-btn .ac-social-svg { width: 18px; height: 18px; }
.ac-social-side-btn .ac-social-img { width: 20px; height: 20px; }
.ac-social-side-tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.ac-social-side-btn:hover .ac-social-side-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
body.page-chat .ac-social-side { display: none; }

@media (max-width: 960px) {
    .ac-social-side { right: 10px; gap: 8px; }
    .ac-social-side-btn { width: 40px; height: 40px; border-radius: 12px; }
}
@media (max-width: 768px) {
    .ac-social-side { display: none; }
}

/* 侧边栏分享 / 官网直达二维码 */
.ac-share-side {
    position: fixed;
    right: 18px;
    top: calc(50% - 176px);
    z-index: 81;
}
.ac-share-side-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.28);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.ac-share-side-btn:hover,
.ac-share-side.is-open .ac-share-side-btn {
    transform: translateX(-3px);
    background: #2563eb;
    border-color: rgba(147, 197, 253, 0.55);
    color: #fff;
}
.ac-share-svg { width: 18px; height: 18px; display: block; }
.ac-share-side-tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.ac-share-side-btn:hover .ac-share-side-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.ac-share-panel {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    width: 176px;
    padding: 14px 12px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    text-align: center;
}
.ac-share-side:hover .ac-share-panel,
.ac-share-side.is-open .ac-share-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.ac-share-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}
.ac-share-qr-link { display: inline-block; }
.ac-share-qr {
    width: 148px;
    height: 148px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.ac-share-tip {
    margin: 8px 0 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.ac-share-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}
.ac-share-open:hover { background: #1d4ed8; }
body.page-chat .ac-share-side { display: none; }

@media (max-width: 960px) {
    .ac-share-side { right: 10px; top: calc(50% - 160px); }
    .ac-share-side-btn { width: 40px; height: 40px; border-radius: 12px; }
}
@media (max-width: 768px) {
    .ac-share-side { display: none; }
}

/* 回到顶部 */
.ac-back-top {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 85;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #38bdf8, #2563eb);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, filter .18s ease;
}
.ac-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.ac-back-top:hover { filter: brightness(1.08); }
.ac-back-top:active { transform: translateY(1px) scale(0.98); }
body.page-chat .ac-back-top { display: none; }

@media (max-width: 960px) {
    .ac-back-top { right: 12px; bottom: 16px; width: 44px; height: 44px; }
}
@media (max-width: 768px) {
    .ac-back-top { right: 12px; bottom: 14px; }
}

/* ===== 论坛首页增补模块 ===== */
.home-extra { padding: 56px 0; background: #f8fafc; }
.home-extra .product-section-head { margin-bottom: 28px; max-width: 640px; }
.home-extra .product-section-head h2 { font-size: 1.75rem; margin: 8px 0; }
.home-extra-tip { margin-top: 14px; font-size: 13px; color: #64748b; }
.home-extra-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

.home-changelog { background: #0f172a; color: #e2e8f0; }
.home-changelog-card {
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 1.1fr 1.4fr auto;
  padding: 28px; border-radius: 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(148,163,184,.22);
}
.home-changelog-left h2 { margin: 6px 0; font-size: 1.5rem; color: #fff; }
.home-changelog-date { color: #94a3b8; font-size: 13px; }
.home-changelog-list { margin: 0; padding-left: 18px; color: #cbd5e1; font-size: 14px; line-height: 1.7; }
@media (max-width: 900px) {
  .home-changelog-card { grid-template-columns: 1fr; }
}

.home-compat-table-wrap { overflow-x: auto; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.home-compat-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.home-compat-table th { text-align: left; padding: 12px 14px; background: #f1f5f9; color: #475569; font-weight: 600; }
.home-compat-table td { padding: 12px 14px; border-top: 1px solid #e2e8f0; color: #334155; }
.home-compat-table tr:hover td { background: #f8fafc; }

.home-tut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-tut-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border-radius: 16px; background: #fff;
  border: 1px solid #e2e8f0; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-tut-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.home-tut-meta { font-size: 12px; font-weight: 700; color: #2563eb; letter-spacing: .04em; }
.home-tut-card h3 { margin: 0; font-size: 15px; line-height: 1.45; color: #0f172a; }
.home-tut-go { margin-top: auto; font-size: 13px; color: #64748b; }
@media (max-width: 900px) { .home-tut-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .home-tut-grid { grid-template-columns: 1fr; } }

.home-mall-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory;
}
.home-mall-card {
  scroll-snap-align: start; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: inherit;
  min-width: 220px;
}
.home-mall-img { height: 140px; background: #e2e8f0 center/cover no-repeat; }
.home-mall-copy { padding: 14px 16px 16px; }
.home-mall-copy h3 { margin: 0 0 4px; font-size: 16px; }
.home-mall-copy p { margin: 0; font-size: 13px; color: #64748b; }

.home-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-explore-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-explore-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
  border-color: rgba(14, 165, 233, .35);
}
.home-explore-img {
  height: 150px;
  background: #0b1220 center/cover no-repeat;
}
.home-explore-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.home-explore-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0284c7;
}
.home-explore-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #0f172a;
}
.home-explore-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
}
.home-explore-cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
}
@media (max-width: 960px) {
  .home-explore-grid { grid-template-columns: 1fr; }
  .home-explore-card { flex-direction: row; min-height: 140px; }
  .home-explore-img { width: 42%; min-width: 140px; height: auto; align-self: stretch; }
}
@media (max-width: 560px) {
  .home-explore-card { flex-direction: column; }
  .home-explore-img { width: 100%; height: 140px; }
}

.home-faq-list { display: grid; gap: 10px; max-width: 860px; }
.home-faq-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px;
}
.home-faq-item summary {
  cursor: pointer; font-weight: 600; color: #0f172a; list-style: none;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after { content: '+'; float: right; color: #94a3b8; font-weight: 400; }
.home-faq-item[open] summary::after { content: '–'; }
.home-faq-item p { margin: 10px 0 0; color: #475569; font-size: 14px; line-height: 1.7; }

/* ===== 投诉建议：提交弹窗 + 管理员左侧回复坞 ===== */
.ac-fb-launch {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15,23,42,.28);
}
.ac-fb-launch:hover { background: #0284c7; }
body.page-chat .ac-fb-launch { display: none; }
body.ac-fb-open { overflow: hidden; }

.ac-fb-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ac-fb-modal[hidden] { display: none !important; }
.ac-fb-backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px);
}
.ac-fb-dialog {
  position: relative; width: min(560px, 100%);
  background: #fff; border-radius: 18px; padding: 20px 20px 16px;
  box-shadow: 0 24px 60px rgba(15,23,42,.28); max-height: min(92vh, 820px); overflow: auto;
}
.ac-fb-dialog-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.ac-fb-dialog-head h3 { margin:0; font-size: 18px; }
.ac-fb-x {
  border:0; background:transparent; font-size:24px; line-height:1; cursor:pointer; color:#64748b;
}
.ac-fb-form label {
  display:block; font-size:13px; font-weight:600; color:#334155; margin-bottom:12px;
}
.ac-fb-form label span { color:#ef4444; margin-left:2px; }
.ac-fb-form input, .ac-fb-form textarea {
  display:block; width:100%; margin-top:6px; padding:10px 12px;
  border:1px solid #e2e8f0; border-radius:10px; font: inherit; box-sizing:border-box;
}
.ac-fb-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ac-fb-drop {
  border:1.5px dashed #cbd5e1; border-radius:14px; padding:14px; margin-bottom:12px;
  background:#f8fafc; cursor:pointer; transition: border-color .15s, background .15s;
}
.ac-fb-drop.is-drag { border-color:#0ea5e9; background:#f0f9ff; }
.ac-fb-drop-inner { text-align:center; color:#64748b; font-size:13px; }
.ac-fb-drop-inner strong { display:block; color:#0f172a; margin-bottom:4px; }
.ac-fb-previews { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.ac-fb-thumb { position:relative; width:72px; height:72px; border-radius:10px; overflow:hidden; }
.ac-fb-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.ac-fb-thumb button {
  position:absolute; top:2px; right:2px; width:20px; height:20px; border:0; border-radius:999px;
  background:rgba(15,23,42,.75); color:#fff; cursor:pointer; line-height:1;
}
.ac-fb-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
.ac-fb-tip { margin:10px 0 0; font-size:12px; color:#94a3b8; }
.ac-fb-success { text-align:center; padding:24px 8px 8px; }
.ac-fb-success-icon {
  width:56px; height:56px; margin:0 auto 12px; border-radius:999px; background:#dcfce7; color:#16a34a;
  display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700;
}
.ac-fb-success h4 { margin:0 0 8px; font-size:18px; }
.ac-fb-success p { margin:0 0 8px; color:#475569; }
.ac-fb-eta-at { font-size:13px; color:#0284c7 !important; font-weight:600; }

.ac-fb-admin-dock {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: stretch;
}
.ac-fb-admin-toggle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 1px solid rgba(148,163,184,.35);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: rgba(15,23,42,.92);
  color: #fff;
  padding: 14px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(2,8,23,.28);
}
.ac-fb-admin-toggle.is-pulse { animation: ac-fb-pulse .8s ease; }
@keyframes ac-fb-pulse {
  0%,100% { box-shadow: 0 12px 28px rgba(2,8,23,.28); }
  50% { box-shadow: 0 0 0 4px rgba(14,165,233,.45); }
}
.ac-fb-admin-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.ac-fb-badge {
  writing-mode: horizontal-tb;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #ef4444; color:#fff; font-size:11px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
}
.ac-fb-admin-panel {
  width: min(360px, calc(100vw - 48px));
  max-height: min(78vh, 640px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 0;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 18px 40px rgba(15,23,42,.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.ac-fb-admin-panel[hidden] { display: none !important; }
.ac-fb-admin-head {
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 14px; border-bottom:1px solid #e2e8f0; background:#0f172a; color:#fff;
}
.ac-fb-admin-head-actions { display:flex; gap:6px; }
.ac-fb-mini {
  border:1px solid rgba(255,255,255,.25); background:transparent; color:#fff;
  border-radius:8px; padding:4px 8px; font-size:12px; cursor:pointer;
}
.ac-fb-admin-tabs { display:flex; gap:0; border-bottom:1px solid #e2e8f0; }
.ac-fb-admin-tabs button {
  flex:1; border:0; background:#f8fafc; padding:10px 8px; font-size:12px; cursor:pointer; color:#64748b;
}
.ac-fb-admin-tabs button.is-active { background:#fff; color:#0284c7; font-weight:700; border-bottom:2px solid #0284c7; }
.ac-fb-admin-list { overflow:auto; flex:1; padding:8px; }
.ac-fb-empty { text-align:center; color:#94a3b8; padding:28px 8px; font-size:13px; }
.ac-fb-item {
  display:block; width:100%; text-align:left; border:1px solid #e2e8f0; background:#fff;
  border-radius:12px; padding:10px 12px; margin-bottom:8px; cursor:pointer;
}
.ac-fb-item:hover { border-color:#7dd3fc; background:#f0f9ff; }
.ac-fb-item-top { display:flex; justify-content:space-between; gap:8px; font-size:13px; }
.ac-fb-item-meta, .ac-fb-item-time { font-size:11px; color:#94a3b8; margin-top:4px; }
.ac-fb-item-snippet { font-size:12px; color:#475569; margin-top:6px; line-height:1.5; }
.ac-fb-admin-detail { overflow:auto; flex:1; padding:10px 12px 14px; display:flex; flex-direction:column; gap:10px; }
.ac-fb-admin-detail[hidden] { display:none !important; }
.ac-fb-back { border:0; background:transparent; color:#0284c7; cursor:pointer; font-size:13px; text-align:left; padding:0; }
.ac-fb-detail-card { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:12px; font-size:13px; line-height:1.6; }
.ac-fb-detail-imgs { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.ac-fb-detail-imgs img { width:64px; height:64px; object-fit:cover; border-radius:8px; }
.ac-fb-old-reply { margin-top:10px; padding-top:8px; border-top:1px dashed #cbd5e1; color:#166534; }
.ac-fb-reply-form textarea {
  width:100%; box-sizing:border-box; border:1px solid #e2e8f0; border-radius:10px; padding:10px; font:inherit; margin-bottom:8px;
}
@media (max-width: 720px) {
  .ac-fb-grid { grid-template-columns: 1fr; }
  .ac-fb-launch { right: 12px; bottom: 72px; padding: 9px 12px; }
  .ac-fb-admin-panel { width: min(320px, calc(100vw - 40px)); max-height: 70vh; }
}


.ac-fb-tabs { display:flex; gap:0; margin:0 0 14px; border-bottom:1px solid #e2e8f0; }
.ac-fb-tabs button {
  flex:1; border:0; background:transparent; padding:10px 8px; font-size:13px; cursor:pointer; color:#64748b;
}
.ac-fb-tabs button.is-active {
  color:#0284c7; font-weight:700; border-bottom:2px solid #0284c7;
}
.ac-fb-history-list { display:grid; gap:10px; margin-top:12px; max-height:360px; overflow:auto; }
.ac-fb-hist-item {
  border:1px solid #e2e8f0; border-radius:12px; padding:12px; background:#f8fafc; font-size:13px; line-height:1.6;
}
.ac-fb-hist-item p { margin:8px 0; color:#334155; white-space:pre-wrap; }
.ac-fb-wait { margin-top:8px; color:#b45309; font-size:12px; }
