/* ============================================================
   猫推AI — DeepSeek Harness 风格设计系统
   Design tokens ported from https://www.deepseek.com/harness/
   ============================================================ */

:root {
    /* ---- Color: Dark theme (harness) ---- */
    --ds-color-bg-page: #0a0a0a;
    --ds-color-brand: #6799fe;
    --ds-color-brand-deep: #3a65c2;
    --ds-color-text-primary: #fff;
    --ds-color-text-secondary: hsla(0, 0%, 100%, .8);
    --ds-color-text-description: hsla(0, 0%, 100%, .5);
    --ds-color-text-placeholder: hsla(0, 0%, 100%, .3);
    --ds-color-bg-surface-1: hsla(0, 0%, 100%, .06);
    --ds-color-bg-surface-2: hsla(0, 0%, 100%, .04);
    --ds-color-bg-surface-3: hsla(0, 0%, 100%, .02);
    --ds-color-bg-surface-5: hsla(0, 0%, 100%, .12);
    --ds-color-bg-overlay: #262626;
    --ds-color-bg-code: rgba(0, 0, 0, .35);
    --ds-color-bg-hover: hsla(0, 0%, 100%, .06);
    --ds-color-bg-input: hsla(0, 0%, 100%, .08);
    --ds-color-border-subtle: hsla(0, 0%, 100%, .08);
    --ds-color-border-default: hsla(0, 0%, 100%, .06);
    --ds-color-border-divider: hsla(0, 0%, 100%, .25);
    --ds-color-border-hover: hsla(0, 0%, 100%, .2);
    --ds-color-border-strong: hsla(0, 0%, 100%, .24);
    --ds-color-border-secondary: hsla(0, 0%, 100%, .2);

    /* ---- Buttons ---- */
    --ds-btn-primary-bg: #fff;
    --ds-btn-primary-text: #0a0a0a;
    --ds-btn-primary-hover-bg: rgba(0, 0, 0, .2);
    --ds-btn-secondary-bg: var(--ds-color-bg-surface-1);
    --ds-btn-secondary-text: #fff;
    --ds-btn-secondary-border: hsla(0, 0%, 100%, .15);
    --ds-btn-secondary-hover-bg: hsla(0, 0%, 100%, .2);
    --ds-btn-secondary-hover-border: hsla(0, 0%, 100%, .6);
    --ds-btn-ghost-bg: transparent;
    --ds-btn-ghost-text: #fff;
    --ds-btn-ghost-border: transparent;
    --ds-btn-ghost-hover-bg: hsla(0, 0%, 100%, .08);
    --ds-btn-ghost-hover-border: hsla(0, 0%, 100%, .2);

    /* ---- Radius ---- */
    --ds-radius-pill: 100px;
    --ds-radius-card: 24px;
    --ds-radius-panel: 16px;
    --ds-radius-media: 10px;
    --ds-radius-input: 10px;
    --ds-radius-sm: 8px;

    /* ---- Space ---- */
    --ds-space-1: 4px;
    --ds-space-2: 8px;
    --ds-space-3: 12px;
    --ds-space-4: 16px;
    --ds-space-5: 24px;
    --ds-space-6: 32px;
    --ds-space-7: 40px;
    --ds-space-8: 56px;
    --ds-space-9: 80px;
    --ds-space-10: 120px;

    --ds-blur-glass: 12px;
    --ds-shadow-card: 0 0 0 1px hsla(0, 0%, 100%, .06), 0 8px 24px rgba(0, 0, 0, .35);
    --ds-shadow-card-hover: 0 0 0 1px hsla(0, 0%, 100%, .14), 0 12px 40px rgba(0, 0, 0, .45);

    /* ---- Fonts ---- */
    --ds-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --ds-font-display: "Host Grotesk", "DM Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --ds-font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Code", "Microsoft YaHei", monospace;
}

/* ============================================================
   Base
   ============================================================ */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--ds-color-bg-page);
    color: var(--ds-color-text-primary);
    font-family: var(--ds-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

::selection {
    background: rgba(103, 153, 254, .35);
    color: #fff;
}

/* scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 100%, .2);
    border-radius: 100px;
}

/* ============================================================
   Preloader
   ============================================================ */
#preLoader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-color-bg-page);
}

#preLoader .loader {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid hsla(0, 0%, 100%, .12);
    border-top-color: var(--ds-color-brand);
    animation: ds-spin .8s linear infinite;
}

@keyframes ds-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   Layout container
   ============================================================ */
.ds-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .ds-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================================
   Section base
   ============================================================ */
.ds-section {
    padding: var(--ds-space-9) 0;
}

.ds-section--tight {
    padding: var(--ds-space-6) 0;
}

@media (max-width: 768px) {
    .ds-section {
        padding: var(--ds-space-7) 0;
    }
}

/* Section heading (mirrors harness "设计思路" header) */
.ds-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--ds-space-8);
}

.ds-section-head .ds-eyebrow {
    display: inline-block;
    font-family: var(--ds-font-mono);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ds-color-brand);
    margin-bottom: var(--ds-space-3);
}

.ds-section-head h2 {
    font-family: var(--ds-font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 var(--ds-space-3);
}

.ds-section-head .ds-section-desc {
    font-size: 17px;
    color: var(--ds-color-text-description);
    line-height: 1.7;
}

/* ============================================================
   Buttons (harness: white primary / glass secondary / ghost)
   ============================================================ */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--ds-radius-pill);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.ds-btn svg {
    width: 16px;
    height: 16px;
}

.ds-btn:active {
    transform: scale(.98);
}

.ds-btn--primary {
    background: var(--ds-btn-primary-bg);
    color: var(--ds-btn-primary-text);
}

.ds-btn--primary:hover {
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 4px 20px rgba(255, 255, 255, .12);
}

.ds-btn--secondary {
    background: var(--ds-btn-secondary-bg);
    color: var(--ds-btn-secondary-text);
    border-color: var(--ds-btn-secondary-border);
}

.ds-btn--secondary:hover {
    background: var(--ds-btn-secondary-hover-bg);
    border-color: var(--ds-btn-secondary-hover-border);
}

.ds-btn--ghost {
    background: var(--ds-btn-ghost-bg);
    color: var(--ds-btn-ghost-text);
}

.ds-btn--ghost:hover {
    background: var(--ds-btn-ghost-hover-bg);
    border-color: var(--ds-btn-ghost-hover-border);
}

/* ============================================================
   Badge / pill (harness hero "一切皆插件")
   ============================================================ */
.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    color: var(--ds-color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}

.ds-badge .ds-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ds-color-brand);
    box-shadow: 0 0 12px rgba(103, 153, 254, .8);
}

.ds-badge--brand {
    color: #fff;
    background: rgba(103, 153, 254, .14);
    border-color: rgba(103, 153, 254, .35);
}

/* ============================================================
   Glass card (harness surface cards)
   ============================================================ */
.ds-card {
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-card);
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
    box-shadow: var(--ds-shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ds-card:hover {
    border-color: var(--ds-color-border-hover);
    box-shadow: var(--ds-shadow-card-hover);
}

/* ============================================================
   Header (harness ds-header-bar)
   ============================================================ */
.ds-header-wrapper {
    position: relative;
    z-index: 50;
}

.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}

.header-area.is-sticky {
    background: rgba(10, 10, 10, .75);
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
    border-bottom: 1px solid var(--ds-color-border-default);
}

.ds-header-bar {
    max-width: 1280px;
    margin: 0 auto;
    height: 76px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .ds-header-bar {
        padding: 0 16px;
    }
}

/* Logo */
.ds-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Logo icon + text on one horizontal line (the <a> wraps the img + h2) */
.ds-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ds-logo img {
    height: 34px;
    width: auto;
    display: block;
    flex-shrink: 0;
    /* Pure white logo: keep transparency but force every visible pixel to white */
    filter: brightness(0) invert(1);
}

/* Explicitly force the two logo images to pure white wherever they appear */
img[src*="images/logo/logo.png"],
img[src*="images/logo/logo-s.png"] {
    filter: brightness(0) invert(1);
}

.ds-logo h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.01em;
    color: var(--ds-color-text-primary);
    white-space: nowrap;
}

/* Desktop nav */
.ds-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-nav .ds-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--ds-radius-pill);
    font-size: 15px;
    font-weight: 500;
    color: var(--ds-color-text-secondary);
    transition: color .2s ease, background .2s ease;
}

.ds-nav .ds-nav-link:hover {
    color: var(--ds-color-text-primary);
    background: var(--ds-color-bg-hover);
}

.ds-nav .ds-nav-link i {
    font-size: 12px;
}

/* Nav dropdown (desktop) */
.ds-nav .nav-item,
.ds-nav .ds-nav-item {
    position: relative;
}

.ds-nav .ds-nav-dropdown {
    list-style: none;
    margin: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 210px;
    padding: 8px;
    background: rgba(24, 24, 24, .96);
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 20;
}

.ds-nav .nav-item:hover .ds-nav-dropdown,
.ds-nav .ds-nav-item:hover .ds-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Bridge the hover gap so the dropdown doesn't close while moving the mouse into it */
.ds-nav .ds-nav-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.ds-nav .ds-nav-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--ds-radius-sm);
    font-size: 14px;
    color: var(--ds-color-text-secondary);
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}

.ds-nav .ds-nav-dropdown a:hover {
    background: var(--ds-color-bg-hover);
    color: var(--ds-color-text-primary);
}

/* Header actions (language select) */
.ds-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Keep the header nav always expanded (it is not a collapsible toggler) */
.header-area .main-navbar nav.collapse {
    display: flex;
}

/* ============================================================
   Mobile menu (off-canvas drawer)
   ============================================================ */
.header-area .main-responsive-nav {
    display: none;
}

.header-area .mobile-menu {
    visibility: hidden;
}

.menu-toggler {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-sm);
    background: var(--ds-color-bg-surface-1);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggler span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ds-color-text-primary);
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggler.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggler.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggler.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
    .header-area {
        height: 68px;
        background: rgba(10, 10, 10, .8);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--ds-color-border-default);
    }

    .header-area .ds-header-bar {
        height: 68px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-area .main-navbar {
        display: none;
    }

    .ds-header-actions {
        gap: 8px;
    }

    .menu-toggler {
        display: inline-flex;
    }

    .header-area .main-responsive-nav {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(320px, 84vw);
        height: 100vh;
        overflow-y: auto;
        transition: left .4s cubic-bezier(.4, 0, .2, 1);
        z-index: 999;
        background: #111;
        border-right: 1px solid var(--ds-color-border-default);
    }

    .mobile-menu .mobile-menu-wrapper {
        padding: 20px 20px 40px;
        margin-top: 68px;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu .ds-nav,
    .mobile-menu .navbar-nav {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        display: block;
        flex: none;
    }

    .mobile-menu .ds-nav>li,
    .mobile-menu .navbar-nav>li {
        display: block;
    }

    .mobile-menu .ds-nav>li>a,
    .mobile-menu .navbar-nav>li>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 0;
        border-bottom: 1px solid var(--ds-color-border-default);
        font-size: 15px;
        color: var(--ds-color-text-secondary);
        transition: color .2s ease;
    }

    .mobile-menu .ds-nav>li>a:hover,
    .mobile-menu .navbar-nav>li>a:hover {
        color: var(--ds-color-text-primary);
    }

    .mobile-menu .ds-nav ul,
    .mobile-menu .navbar-nav ul {
        list-style: none;
        padding-left: 16px;
    }

    .mobile-menu .ds-nav ul li a,
    .mobile-menu .navbar-nav ul li a {
        font-size: 14px;
        padding: 11px 0;
    }

    .mobile-menu li.nav-item:not(.show) ul {
        display: none;
    }

    .mobile-menu .nav-link.toggle i,
    .mobile-menu .ds-nav-link.toggle i {
        margin-left: auto;
        transition: transform .25s ease;
    }

    .mobile-menu li.nav-item.show .nav-link.toggle i,
    .mobile-menu li.nav-item.show .ds-nav-link.toggle i {
        transform: rotate(45deg);
    }

    .mobile-menu .more-option {
        margin-top: 24px;
    }

    .mobile-menu-active .mobile-menu {
        visibility: visible;
        left: 0;
    }
}

/* ============================================================
   Hero (harness hero)
   ============================================================ */
.ds-hero {
    position: relative;
    padding: clamp(130px, 16vh, 180px) 0 var(--ds-space-8);
    overflow: hidden;
}

/* ambient glows, like harness hero */
.ds-hero::before {
    content: "";
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(103, 153, 254, .16), transparent 65%);
    pointer-events: none;
}

.ds-hero::after {
    content: "";
    position: absolute;
    top: 100px;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(103, 153, 254, .08), transparent 60%);
    pointer-events: none;
}

.ds-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: var(--ds-space-8);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .ds-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--ds-space-6);
    }
}

.ds-hero .ds-badge {
    margin-bottom: var(--ds-space-5);
}

.ds-hero h1 {
    font-family: var(--ds-font-display);
    font-size: clamp(36px, 5.4vw, 62px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin: 0 0 var(--ds-space-5);
    word-break: break-all;
}

.ds-hero h1 .ds-hi {
    background: linear-gradient(100deg, #fff 30%, var(--ds-color-brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ds-hero .ds-hero-desc {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ds-color-text-description);
    margin: 0 0 var(--ds-space-6);
    max-width: 620px;
    word-break: break-all;
}

.ds-hero-desc strong.compliance {
    color: #ff8a8a;
    font-weight: 600;
}

.ds-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-7);
}

.ds-hero-actions .ds-btn img {
    height: 24px;
    width: auto;
    display: block;
}

.ds-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-4);
}

.ds-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--ds-space-3) var(--ds-space-4);
    border-radius: var(--ds-radius-panel);
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
}

.ds-hero-stat .ds-hero-stat-num {
    font-family: var(--ds-font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ds-color-text-primary);
}

.ds-hero-stat .ds-hero-stat-label {
    font-size: 13px;
    color: var(--ds-color-text-description);
}

/* Hero media (browser frame) */
.ds-browser-frame {
    position: relative;
    border-radius: var(--ds-radius-card);
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    overflow: hidden;
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}

.ds-browser-frame .ds-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ds-color-border-default);
}

.ds-browser-frame .ds-browser-dots {
    display: flex;
    gap: 6px;
}

.ds-browser-frame .ds-browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, .16);
}

.ds-browser-frame .ds-browser-dots span:nth-child(1) {
    background: rgba(255, 95, 86, .85);
}

.ds-browser-frame .ds-browser-dots span:nth-child(2) {
    background: rgba(255, 189, 46, .85);
}

.ds-browser-frame .ds-browser-dots span:nth-child(3) {
    background: rgba(39, 201, 63, .85);
}

.ds-browser-frame .ds-browser-url {
    flex: 1;
    margin-left: 8px;
    padding: 6px 14px;
    border-radius: var(--ds-radius-sm);
    background: var(--ds-color-bg-input);
    font-family: var(--ds-font-mono);
    font-size: 12px;
    color: var(--ds-color-text-placeholder);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-browser-frame .ds-browser-body {
    padding: 0;
    line-height: 0;
}

.ds-browser-frame .ds-browser-body img,
.ds-browser-frame .ds-browser-body video {
    width: 100%;
    display: block;
}

/* ============================================================
   Install / download card (harness "一键使用")
   ============================================================ */
.ds-install {
    position: relative;
}

.ds-install-card {
    max-width: 920px;
    margin: 0 auto;
    padding: var(--ds-space-6);
    border-radius: var(--ds-radius-card);
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    box-shadow: var(--ds-shadow-card);
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}

@media (max-width: 768px) {
    .ds-install-card {
        padding: var(--ds-space-4);
    }
}

.ds-install-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-5);
    flex-wrap: wrap;
}

.ds-install-head h3 {
    font-family: var(--ds-font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -.01em;
}

/* Tabs */
.ds-tabs {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-bg-surface-2);
    border: 1px solid var(--ds-color-border-default);
}

.ds-tab {
    padding: 8px 18px;
    border-radius: var(--ds-radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-color-text-description);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.ds-tab.active {
    color: var(--ds-color-text-primary);
    background: var(--ds-color-bg-surface-5);
}

.ds-tab-pane {
    display: none;
    animation: ds-fade-in .25s ease;
}

.ds-tab-pane.active {
    display: block;
}

@keyframes ds-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Code block */
.ds-code {
    position: relative;
    margin: 0;
    padding: var(--ds-space-4) var(--ds-space-5);
    border-radius: var(--ds-radius-panel);
    background: var(--ds-color-bg-code);
    border: 1px solid var(--ds-color-border-default);
    font-family: var(--ds-font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ds-color-text-secondary);
    overflow-x: auto;
}

.ds-code .ds-code-prefix {
    color: var(--ds-color-brand);
    user-select: none;
}

.ds-code .ds-code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--ds-radius-pill);
    border: 1px solid var(--ds-color-border-default);
    background: var(--ds-color-bg-input);
    color: var(--ds-color-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ds-code .ds-code-copy:hover {
    background: var(--ds-color-bg-hover);
    color: var(--ds-color-text-primary);
}

.ds-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-3);
    margin-top: var(--ds-space-4);
}

/* ============================================================
   Feature cards (harness 3 cards: 内核/能力/配置)
   ============================================================ */
.ds-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-space-5);
}

@media (max-width: 992px) {
    .ds-feature-grid {
        grid-template-columns: 1fr;
    }
}

.ds-feature-card {
    padding: var(--ds-space-6);
    border-radius: var(--ds-radius-card);
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
    box-shadow: var(--ds-shadow-card);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.ds-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--ds-color-border-hover);
    box-shadow: var(--ds-shadow-card-hover);
}

.ds-feature-card .ds-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ds-radius-panel);
    background: rgba(103, 153, 254, .14);
    border: 1px solid rgba(103, 153, 254, .3);
    color: var(--ds-color-brand);
    font-size: 20px;
    margin-bottom: var(--ds-space-4);
}

.ds-feature-card .ds-feature-kicker {
    font-family: var(--ds-font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--ds-color-text-placeholder);
    margin-bottom: var(--ds-space-2);
}

.ds-feature-card h3 {
    font-family: var(--ds-font-display);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 var(--ds-space-2);
    letter-spacing: -.01em;
}

.ds-feature-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ds-color-text-description);
}

/* ============================================================
   Split showcase rows (harness "设计思路")
   ============================================================ */
.ds-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ds-space-8);
    align-items: center;
}

.ds-split--reverse .ds-split-media {
    order: 2;
}

.ds-split--reverse .ds-split-content {
    order: 1;
}

@media (max-width: 992px) {
    .ds-split,
    .ds-split--reverse {
        grid-template-columns: 1fr;
        gap: var(--ds-space-5);
    }

    .ds-split--reverse .ds-split-media {
        order: 1;
    }

    .ds-split--reverse .ds-split-content {
        order: 2;
    }
}

.ds-split-content .ds-eyebrow {
    font-family: var(--ds-font-mono);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ds-color-brand);
    display: inline-block;
    margin-bottom: var(--ds-space-3);
}

.ds-split-content h2 {
    font-family: var(--ds-font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 0 0 var(--ds-space-3);
}

.ds-split-content .ds-split-desc {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ds-color-text-description);
    margin: 0 0 var(--ds-space-5);
}

.ds-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-3);
}

.ds-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ds-color-text-secondary);
}

.ds-list li i {
    color: var(--ds-color-brand);
    margin-top: 3px;
    font-size: 14px;
}

.ds-split-media .ds-browser-frame {
    margin-bottom: 0;
}

/* small floating chips overlay on media */
.ds-media-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--ds-radius-pill);
    background: rgba(20, 20, 20, .85);
    border: 1px solid var(--ds-color-border-default);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    color: var(--ds-color-text-secondary);
    z-index: 2;
}

.ds-media-chip i {
    color: var(--ds-color-brand);
}

/* ============================================================
   Pricing (harness style glass cards)
   ============================================================ */
.ds-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-space-5);
    max-width: 1160px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .ds-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

.pricing-item {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--ds-space-6);
    border-radius: var(--ds-radius-card);
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
    box-shadow: var(--ds-shadow-card);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.pricing-item:hover {
    transform: translateY(-4px);
    border-color: var(--ds-color-border-hover);
}

.pricing-item.active {
    border-color: rgba(103, 153, 254, .55);
    box-shadow: 0 0 0 1px rgba(103, 153, 254, .35), 0 16px 48px rgba(0, 0, 0, .4);
}

.pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ds-space-4);
}

.pricing-header h4 {
    font-family: var(--ds-font-display);
    font-size: 19px;
    font-weight: 600;
    margin: 0;
}

.pricing-header .label {
    padding: 4px 12px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-bg-surface-5);
    border: 1px solid var(--ds-color-border-default);
    font-size: 12px;
    color: var(--ds-color-text-description);
}

.pricing-list {
    list-style: none;
    margin: 0 0 var(--ds-space-5);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ds-color-text-secondary);
}

.pricing-list li i {
    color: var(--ds-color-brand);
    margin-top: 3px;
    font-size: 13px;
    flex-shrink: 0;
}

.pricing-list li i.fa-times {
    color: hsla(0, 0%, 100%, .28);
}

.pricing-list .show-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--ds-color-brand);
    cursor: pointer;
    user-select: none;
}

.pricing-item .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: var(--ds-space-4);
    border-top: 1px solid var(--ds-color-border-default);
}

.pricing-item .price .h5 {
    font-family: var(--ds-font-display);
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -.02em;
}

.pricing-item .price .period {
    font-size: 14px;
    color: var(--ds-color-text-description);
}

/* pricing toggle (harness tab switch) */
.tab-switch {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 4px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-bg-surface-2);
    border: 1px solid var(--ds-color-border-default);
}

.tab-switch .text {
    padding: 8px 18px;
    border-radius: var(--ds-radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-color-text-description);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
    user-select: none;
}

.tab-switch .text.active {
    color: var(--ds-color-text-primary);
    background: var(--ds-color-bg-surface-5);
}

.tab-switch .tab-switch-toggle {
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 100px;
    background: var(--ds-color-bg-surface-5);
    border: 1px solid var(--ds-color-border-default);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.tab-switch .switch-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .25s ease;
}

.tab-switch input[type="checkbox"] {
    display: none;
}

.tab-switch input[type="checkbox"]:checked~.switch-toggle-slider {
    transform: translateX(20px);
}

.tab-content .tab-pane {
    display: none;
}

.tab-content .tab-pane.active {
    display: block;
}

/* ============================================================
   Testimonials
   ============================================================ */
.ds-testimonial-card {
    padding: var(--ds-space-6);
    text-align: center;
}

.ds-testimonial-card .ds-quote-mark {
    font-family: var(--ds-font-display);
    font-size: 48px;
    line-height: 1;
    color: var(--ds-color-brand);
    opacity: .7;
    margin-bottom: var(--ds-space-3);
    display: block;
}

.ds-testimonial-card p.quote-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ds-color-text-secondary);
    margin: 0 0 var(--ds-space-5);
}

.ds-testimonial-card .ds-testimonial-person {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ds-testimonial-card .ds-testimonial-person img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--ds-color-border-default);
}

.ds-testimonial-card .ds-testimonial-person .name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.ds-testimonial-card .ds-testimonial-person .designation {
    font-size: 13px;
    color: var(--ds-color-text-description);
}

/* Testimonial shell + cards (self-contained carousel) */
.ds-testimonial-shell {
    max-width: 680px;
    margin: 0 auto;
}

.ds-testimonial-cards {
    position: relative;
}

.ds-testimonial-card {
    width: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.ds-testimonial-card:not(.is-active) {
    display: none;
}

.ds-testimonial-card .ds-testimonial-person {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Avatar selector buttons */
.ds-testimonial-avatars {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: var(--ds-space-6);
}

.ds-testimonial-avatar {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
    opacity: .55;
}

.ds-testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ds-testimonial-avatar:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.ds-testimonial-avatar.is-active {
    border-color: var(--ds-color-brand);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(103, 153, 254, .25), 0 8px 20px rgba(0, 0, 0, .35);
}

/* ============================================================
   FAQ
   ============================================================ */
.ds-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--ds-space-6);
    align-items: start;
}

@media (max-width: 992px) {
    .ds-faq-grid {
        grid-template-columns: 1fr;
    }
}

.accordion-item {
    border-radius: var(--ds-radius-panel) !important;
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default) !important;
    margin-bottom: var(--ds-space-3);
    overflow: hidden;
    backdrop-filter: blur(var(--ds-blur-glass));
    -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}

.accordion-item .accordion-header {
    margin: 0;
}

.accordion-item .accordion-button {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: var(--ds-color-text-primary);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--ds-font-body);
    position: relative;
    padding-right: 52px;
    cursor: pointer;
    transition: color .2s ease;
}

.accordion-item .accordion-button::after {
    content: "\f067";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", FontAwesome;
    font-weight: 300;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--ds-color-text-description);
    transition: transform .2s ease, color .2s ease;
}

.accordion-item .accordion-button:not(.collapsed)::after {
    content: "\f068";
    color: var(--ds-color-brand);
}

.accordion-item .accordion-body {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ds-color-text-description);
}

.accordion-item .accordion-body p {
    margin: 0;
}

/* FAQ wechat card */
.ds-wechat-card {
    padding: var(--ds-space-5);
    text-align: center;
    border-radius: var(--ds-radius-card);
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    position: sticky;
    top: 100px;
}

.ds-wechat-card img {
    width: 100%;
    max-width: 260px;
    border-radius: var(--ds-radius-panel);
    border: 1px solid var(--ds-color-border-default);
}

.ds-wechat-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
}

.ds-wechat-card p {
    font-size: 14px;
    color: var(--ds-color-text-description);
    margin: 0 0 var(--ds-space-4);
}

@media (max-width: 992px) {
    .ds-wechat-card {
        position: static;
    }
}

/* ============================================================
   CTA section (harness "开始使用")
   ============================================================ */
.ds-cta {
    text-align: center;
    padding: var(--ds-space-10) 0;
    position: relative;
}

.ds-cta::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(103, 153, 254, .12), transparent 65%);
    pointer-events: none;
}

.ds-cta h2 {
    font-family: var(--ds-font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 var(--ds-space-3);
}

.ds-cta p {
    font-size: 16px;
    color: var(--ds-color-text-description);
    margin: 0 auto var(--ds-space-6);
    max-width: 560px;
}

.ds-cta .ds-hero-actions {
    justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.ds-footer {
    border-top: 1px solid var(--ds-color-border-default);
    padding: var(--ds-space-7) 0 var(--ds-space-6);
}

.ds-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-6);
    margin-bottom: var(--ds-space-7);
}

@media (max-width: 992px) {
    .ds-footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .ds-footer-top {
        grid-template-columns: 1fr;
    }
}

.ds-footer-brand p {
    font-size: 14px;
    color: var(--ds-color-text-description);
    margin: var(--ds-space-3) 0 0;
    max-width: 320px;
    line-height: 1.7;
}

.ds-footer h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 var(--ds-space-3);
    color: var(--ds-color-text-primary);
}

.ds-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ds-footer ul a {
    font-size: 14px;
    color: var(--ds-color-text-description);
    transition: color .2s ease;
}

.ds-footer ul a:hover {
    color: var(--ds-color-text-primary);
}

.ds-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--ds-space-3);
    padding-top: var(--ds-space-5);
    border-top: 1px solid var(--ds-color-border-default);
    font-size: 13px;
    color: var(--ds-color-text-description);
}

.ds-footer-bottom a {
    color: var(--ds-color-text-description);
    transition: color .2s ease;
}

.ds-footer-bottom a:hover {
    color: var(--ds-color-text-primary);
}

.ds-footer-comply {
    font-size: 13px;
    color: hsla(0, 0%, 100%, .4);
    line-height: 1.6;
}

/* ============================================================
   Go top
   ============================================================ */
.go-top {
    position: fixed;
    bottom: 4%;
    right: 4%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ds-color-bg-surface-1);
    border: 1px solid var(--ds-color-border-default);
    color: var(--ds-color-text-secondary);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, background .2s ease, visibility .3s;
    z-index: 100;
}

.go-top.active {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.go-top:hover {
    background: var(--ds-color-bg-hover);
    color: var(--ds-color-text-primary);
}

/* ============================================================
   nice-select dark override
   ============================================================ */
.nice-select {
    background: var(--ds-color-bg-surface-1) !important;
    border: 1px solid var(--ds-color-border-default) !important;
    border-radius: var(--ds-radius-pill) !important;
    height: 36px;
    line-height: 34px;
    padding-left: 16px;
    padding-right: 34px;
    font-size: 14px;
    color: var(--ds-color-text-secondary);
}

.nice-select .current {
    color: var(--ds-color-text-secondary);
}

.nice-select:after {
    border-color: var(--ds-color-text-description);
}

.nice-select .list {
    background: #161616 !important;
    border: 1px solid var(--ds-color-border-default) !important;
    border-radius: var(--ds-radius-panel) !important;
}

.nice-select .list .option {
    color: var(--ds-color-text-secondary);
}

.nice-select .list .option:hover,
.nice-select .list .option.focus,
.nice-select .list .option.selected {
    background: var(--ds-color-bg-hover) !important;
    color: var(--ds-color-text-primary) !important;
}

/* ============================================================
   AOS / helpers
   ============================================================ */
[data-aos] {
    will-change: transform, opacity;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Bootstrap container inside ds layout (kept for admin/utility pages) */
.container {
    max-width: 1280px;
}

/* ============================================================
   Responsive fine-tuning
   ============================================================ */
@media (max-width: 1199px) {
    .ds-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .ds-hero h1 {
        font-size: clamp(32px, 9vw, 44px);
    }

    .ds-hero-desc {
        font-size: 15.5px;
    }

    .ds-btn {
        padding: 11px 18px;
        font-size: 14px;
    }

    .ds-feature-grid,
    .ds-pricing-grid {
        grid-template-columns: 1fr;
    }

    .ds-install-card {
        padding: var(--ds-space-4);
    }

    .ds-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .ds-tab {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
    }
}