/**
 * 黔前智算 - 统一样式表
 * 所有前端页面共用此样式
 */

/* ==================== CSS 变量 ==================== */
:root {
    /* 品牌色 — 取自 Logo 薄荷绿 / 墨绿 / 炭黑 */
    --brand-charcoal: #12181B;
    --brand-charcoal-mid: #1A2428;
    --brand-charcoal-deep: #0A0E10;

    --primary: #20D492;
    --primary-dark: #14A873;
    --primary-light: #6EF5C4;
    --primary-rgb: 32, 212, 146;
    --secondary: #177A59;
    --secondary-dark: #0F5C43;
    --secondary-light: #2A9B74;
    --accent: #F59E0B;
    --success: #20D492;
    --warning: #F59E0B;
    
    --bg-primary: #ffffff;
    --bg-secondary: #F4FBF8;
    --bg-tertiary: #E8F8F1;
    --hero-bg: #FAFCFB;
    --hero-dark-bg: #E8F8F1;
    --hero-dark-overlay: linear-gradient(
        115deg,
        rgba(244, 251, 248, 0.78) 0%,
        rgba(232, 248, 241, 0.62) 45%,
        rgba(255, 255, 255, 0.48) 100%
    );
    --hero-dark-text: #12181B;
    --hero-dark-text-muted: #4B5854;
    --hero-dark-text-accent: #177A59;
    
    --text-primary: #12181B;
    --text-secondary: #4B5854;
    --text-tertiary: #8A9690;
    
    --border-light: #E2EBE7;
    --border-medium: #CDD9D3;
    
    --shadow-sm: 0 2px 8px rgba(18, 24, 27, 0.04);
    --shadow-md: 0 4px 16px rgba(18, 24, 27, 0.08);
    --shadow-lg: 0 8px 32px rgba(18, 24, 27, 0.12);
    --shadow-xl: 0 20px 60px rgba(18, 24, 27, 0.16);
    --shadow-glow: 0 0 40px rgba(32, 212, 146, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    --navbar-height: 72px;
    --transition: all 0.3s ease;

    /* 全屏布局 */
    --layout-max-width: none;
    --layout-gutter: clamp(16px, 3vw, 48px);
    --layout-gutter-wide: clamp(24px, 5vw, 80px);
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
}

html,
body {
    overflow-x: clip;
}

::selection {
    background: rgba(var(--primary-rgb), 0.22);
    color: var(--brand-charcoal);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #E8F8F1 0%, #F4FBF8 38%, #ffffff 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    width: 100%;
}

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

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

/* ==================== 布局 ==================== */
.container {
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
}

.container-wide {
    padding-left: var(--layout-gutter-wide);
    padding-right: var(--layout-gutter-wide);
}

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

/* ==================== 导航栏 ==================== */
.site-topbar.navbar,
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* 顶栏条：仅一行高度，blur 不包住下方移动菜单（避免 fixed 被裁切） */
.navbar-bar {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.site-topbar.navbar.scrolled .navbar-bar,
.navbar.scrolled .navbar-bar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

/* 顶栏全宽：Logo 左、菜单居中展开、操作区右 */
.navbar .container.navbar-content,
.site-topbar .navbar-bar.container.navbar-content {
    width: 100%;
    max-width: none;
    padding-left: var(--layout-gutter-wide);
    padding-right: var(--layout-gutter-wide);
}

.navbar-content {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
}

.navbar-content > .logo,
.navbar-bar > .logo {
    flex-shrink: 0;
    margin-right: clamp(8px, 2vw, 32px);
}

/* 桌面：顶栏一行 — Logo | 菜单 | 操作区 */
.site-topbar .nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 2.8vw, 52px);
    min-width: 0;
}

@media (min-width: 1025px) {
    .site-topbar.navbar {
        display: flex;
        align-items: center;
        height: var(--navbar-height);
        padding-left: var(--layout-gutter-wide);
        padding-right: var(--layout-gutter-wide);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-light);
    }

    .site-topbar .navbar-bar {
        display: contents;
    }

    .site-topbar .nav-mobile-shell,
    .site-topbar .nav-mobile-panel {
        display: contents;
    }

    .site-topbar .nav-links {
        position: static;
        height: auto;
        overflow: visible;
        display: flex !important;
        visibility: visible;
        pointer-events: auto;
    }

    .site-topbar .nav-mobile-backdrop,
    .site-topbar .nav-mobile-footer,
    .site-topbar .nav-mobile-dismiss {
        display: none !important;
    }

    .site-topbar.navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-sm);
    }

    .site-topbar .navbar-bar > .logo {
        margin-right: clamp(8px, 2vw, 32px);
    }

    .site-topbar .mobile-menu-btn {
        display: none;
    }

    .site-topbar .logo {
        order: 1;
    }

    .site-topbar .nav-links {
        order: 2;
    }

    .site-topbar .nav-actions {
        order: 3;
        margin-left: clamp(8px, 2vw, 32px);
    }

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

.navbar-content > .nav-actions,
.navbar-bar > .nav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: clamp(8px, 2vw, 32px);
    white-space: nowrap;
}

.navbar-content > .mobile-menu-btn,
.navbar-bar > .mobile-menu-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

/* Logo 图片样式 */
.logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s;
}

.navbar .logo .logo-img {
    display: block;
    height: 28px;
    width: auto;
}

.navbar .logo .logo-img--dark {
    display: none;
}

:root[data-theme="dark"] .navbar .logo .logo-img--light {
    display: none;
}

:root[data-theme="dark"] .navbar .logo .logo-img--dark {
    display: block;
}

.navbar .logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--brand-charcoal);
    white-space: nowrap;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

/* 保留原有 logo-icon 和 logo-text 样式以兼容其他页面 */
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 导航链接容器 */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.8vw, 52px);
}

/* 导航链接 */
.nav-link {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

button.nav-link.nav-mega-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    margin: 0;
    border-radius: 0;
}

@media (min-width: 1025px) {
    button.nav-link.nav-mega-trigger {
        background: transparent !important;
        padding: 0 !important;
    }
}

button.nav-link.nav-mega-trigger:focus,
button.nav-link.nav-mega-trigger:focus-visible,
button.nav-link.nav-mega-trigger:hover,
button.nav-link.nav-mega-trigger:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 下拉菜单容器 */
.nav-dropdown-container {
    position: relative;
}

.nav-dropdown-container::after {
    content: '';
    position: absolute;
    left: -24px;
    right: -24px;
    top: 100%;
    height: 16px;
    display: block;
}

.nav-dropdown-container .nav-link i {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-dropdown-container:hover .nav-link i {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

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

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-dropdown-item:hover {
    background: rgba(2,132,199,0.08);
    color: var(--primary);
}

.nav-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

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

/* 官网顶栏：登录后头像与下拉（由 /js/main.js SiteNavAuth 注入） */
.site-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.site-user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(220px, 46vw);
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: inherit;
}

.site-user-menu-trigger:hover {
    background: rgba(15, 23, 42, 0.1);
}

.site-user-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.site-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px;
    z-index: 2000;
}

.site-user-dropdown.is-open {
    display: block;
    animation: siteUserMenuIn 0.15s ease;
}

@keyframes siteUserMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
}

.site-user-dropdown a i {
    width: 1.1em;
    text-align: center;
    color: var(--text-secondary);
}

.site-user-dropdown a:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

.site-user-dropdown a.danger {
    color: #dc2626;
}

.site-user-dropdown a.danger i {
    color: #dc2626;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* 移动端导航 */
@media (max-width: 1024px) {
    .nav-links {
        gap: 24px;
    }
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    /*
     * 移动端导航（参考 iOS / Material 常见模式）
     * - 加高顶栏 + safe-area，大触控区
     * - 全屏遮罩 + 顶栏下全高抽屉，内容可滚动
     * - 手风琴子菜单 + 底部固定登录/试用
     */
    :root {
        --mobile-bar-min: 64px;
        --mobile-header-height: calc(var(--mobile-bar-min) + env(safe-area-inset-top, 0px));
        --mobile-nav-top: var(--mobile-header-height);
        --navbar-height: var(--mobile-header-height);
        --mobile-nav-item-min: 48px;
    }

    .site-topbar.navbar {
        height: auto;
        background: transparent;
        border-bottom: none;
        pointer-events: none;
    }

    body.nav-mobile-open .site-topbar.navbar {
        z-index: 3000;
    }

    /* —— 顶栏条：加高、留刘海安全区 —— */
    .site-topbar .navbar-bar {
        position: relative;
        z-index: 3002;
        pointer-events: auto;
        box-sizing: border-box;
        min-height: var(--mobile-bar-min);
        height: var(--mobile-header-height);
        padding-top: env(safe-area-inset-top, 0px);
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-bottom: 0;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .site-topbar .navbar-bar > .logo {
        margin-right: 0;
        flex: 0 0 auto;
        min-width: 0;
    }

    .site-topbar .navbar-bar .logo-img {
        height: 28px;
    }

    .site-topbar .navbar-bar .logo-text {
        font-size: 18px;
    }

    /* 登录/试用移入抽屉底部；顶栏保留语言切换 + 菜单按钮 */
    .site-topbar .navbar-bar > .nav-actions {
        display: flex;
        margin-left: 0;
        gap: 4px;
        flex-shrink: 0;
    }

    .site-topbar .navbar-bar > .nav-actions > .btn,
    .site-topbar .navbar-bar > .nav-actions > a.btn {
        display: none;
    }

    .site-topbar .navbar-bar .lang-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 12px;
    }

    .site-topbar .navbar-bar .lang-btn span {
        display: none;
    }

    .site-topbar .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        margin: 0;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.05);
        position: relative;
        z-index: 3003;
        pointer-events: auto;
    }

    body.nav-mobile-open .site-topbar .mobile-menu-btn {
        background: rgba(var(--primary-rgb), 0.12);
        color: var(--primary);
    }

    /* —— 抽屉外壳：关闭时不挡页面 —— */
    .nav-mobile-shell {
        pointer-events: none;
    }

    body.nav-mobile-open .nav-mobile-shell {
        pointer-events: auto;
    }

    .nav-mobile-shell[aria-hidden="true"] {
        visibility: hidden;
    }

    body.nav-mobile-open .nav-mobile-shell[aria-hidden="false"] {
        visibility: visible;
    }

    .nav-mobile-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 2990;
        touch-action: none;
        pointer-events: auto;
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    body.nav-mobile-open .nav-mobile-backdrop {
        display: block;
        opacity: 1;
    }

    .nav-mobile-panel {
        position: fixed;
        top: var(--mobile-nav-top);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2995;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        box-shadow: 0 -4px 32px rgba(15, 23, 42, 0.12);
        border-radius: 0;
        overflow: hidden;
        transform: translateY(12px);
        opacity: 0;
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
        pointer-events: none;
    }

    body.nav-mobile-open .nav-mobile-panel {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-topbar .nav-links {
        flex: 0 1 auto;
        min-height: 0;
        max-height: calc(100vh - var(--mobile-nav-top));
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: visible;
        pointer-events: auto;
        position: static;
        max-height: none;
        height: auto;
        background: #ffffff;
        box-shadow: none;
        border: none;
    }

    .site-topbar .nav-links > .nav-link,
    .site-topbar .nav-links > .nav-dropdown-container {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #ffffff;
    }

    /* 一级菜单行（智算软件 与其它项同款，仅多右侧折叠图标） */
    .site-topbar .nav-links > .nav-link,
    .site-topbar .nav-links > .nav-dropdown-container > button.nav-link.nav-mega-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px;
        min-height: var(--mobile-nav-item-min);
        width: 100% !important;
        padding: 12px 20px !important;
        margin: 0 !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        font-family: inherit !important;
        color: var(--text-primary) !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
        border-radius: 0 !important;
        box-sizing: border-box;
        background: #ffffff !important;
        box-shadow: none !important;
        appearance: none !important;
        -webkit-appearance: none !important;
    }

    .site-topbar .nav-links > .nav-dropdown-container > button.nav-link.nav-mega-trigger:focus,
    .site-topbar .nav-links > .nav-dropdown-container > button.nav-link.nav-mega-trigger:active {
        border: none !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .site-topbar .nav-links > .nav-link.active,
    .site-topbar .nav-links > .nav-dropdown-container > button.nav-link.nav-mega-trigger.active {
        color: var(--primary) !important;
        background: rgba(var(--primary-rgb), 0.08) !important;
    }

    .site-topbar .nav-links > .nav-link::after {
        display: none;
    }

    .site-topbar .nav-links .nav-mega-trigger-label {
        flex: 0 1 auto;
    }

    .site-topbar .nav-links .nav-link-chevron {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 14px;
        color: var(--text-muted);
        transition: transform 0.22s ease;
        pointer-events: none;
    }

    .nav-dropdown-container.active > .nav-mega-trigger .nav-link-chevron {
        transform: rotate(180deg);
        color: var(--primary);
    }

    .nav-dropdown-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #ffffff;
        border: none;
    }

    .nav-dropdown-container::after {
        display: none;
    }

    .nav-dropdown-container .mega-menu-backdrop,
    .nav-dropdown-container .mega-menu-panel {
        display: none !important;
    }

    .nav-mobile-products {
        display: none;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #ffffff;
        border: none;
        border-bottom: none;
    }

    .nav-dropdown-container.active .nav-mobile-products {
        display: block;
    }

    .nav-mobile-product-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 20px 10px 32px;
        font-size: 16px;
        color: var(--text-secondary);
        text-decoration: none;
        background: #ffffff;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    }

    .nav-mobile-product-link:last-child {
        border-bottom: none;
    }

    .nav-mobile-product-link:active {
        color: var(--primary);
        background: rgba(var(--primary-rgb), 0.06);
    }

    .nav-mobile-product-link--all {
        font-size: 15px;
        color: var(--primary);
        font-weight: 600;
    }

    .site-topbar .nav-links > .nav-link:last-of-type {
        border-bottom: none;
    }

    .site-topbar .nav-links > .nav-dropdown-container + .nav-link {
        border-top: none;
    }

    /* 菜单列表结束：灰色横线 */
    .nav-mobile-menu-end {
        flex: 0 0 auto;
        width: 100%;
        height: 0;
        margin: 0;
        padding: 0;
        border: none;
        border-top: 1px solid #cbd5e1;
        background: transparent;
    }

    /* 抽屉底栏：登录 / 试用（拇指热区） */
    .nav-mobile-footer {
        flex: 0 0 auto;
        display: none;
        gap: 12px;
        padding: 16px 20px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-top: none;
        border-bottom: 1px solid #cbd5e1;
        background: #fff;
        box-shadow: none;
    }

    body.nav-mobile-open .nav-mobile-footer {
        display: flex;
    }

    .nav-mobile-footer .btn {
        flex: 1;
        min-height: 48px;
        font-size: 16px;
    }

    /* 菜单下方空白：点击关闭 */
    .nav-mobile-dismiss {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        background: #ffffff;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    :root {
        --mobile-bar-min: 60px;
    }

    .site-topbar .navbar-bar .logo-text {
        font-size: 17px;
    }
}

body.nav-mobile-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .nav-mobile-panel,
    .nav-mobile-backdrop {
        transition: none;
    }
}

/* -------- 智算软件 · Mega menu -------- */
.mega-menu-backdrop {
    display: none;
}

.mega-menu-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 36px var(--layout-gutter-wide) 44px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
}

/* 智算软件 · 多列卡片分区（左深右浅） */
.mega-menu-inner.mega-menu-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px var(--layout-gutter-wide) 24px;
    max-width: none;
}

.mega-cards-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mega-card {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.mega-card--mm {
    margin-top: 4px;
    background: linear-gradient(135deg, #f8fafc 0%, #F4FBF8 48%, #ffffff 100%);
    border-color: rgba(var(--primary-rgb), 0.18);
}

.mega-card-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mega-card-ico {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(23, 122, 89, 0.08));
    color: var(--primary);
    font-size: 1.05rem;
}

.mega-card-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.mega-card-thumb--app {
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

.mega-zlink--with-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-product-thumb {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 0;
    object-fit: contain;
    margin-bottom: 24px;
    background: transparent;
}

.mega-card-title {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.mega-card-body {
    padding: 14px 18px 18px;
}

.mega-card-body--split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 0;
}

.mega-card-body--mm {
    padding-bottom: 18px;
}

.mega-pane {
    padding: 10px 14px;
    border-radius: 10px;
    min-width: 0;
}

.mega-pane--deep {
    background: transparent;
}

.mega-pane--soft {
    background: transparent;
}

.mega-pane-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.mega-pane-vrule {
    width: 1px;
    margin: 4px 0;
    background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.mega-cards-split-rule {
    height: 1px;
    margin: 18px 0 14px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
    border: none;
}

.mega-card-title-link {
    color: inherit;
    text-decoration: none;
}

.mega-card-title-link:hover {
    color: var(--primary);
}

.mega-card--creative {
    background: linear-gradient(135deg, #fffaf5 0%, #fff7ed 48%, #ffffff 100%);
    border-color: rgba(249, 115, 22, 0.2);
}

.mega-card--llm {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 48%, #ffffff 100%);
    border-color: rgba(8, 145, 178, 0.2);
}

.mega-menu-foot {
    margin: 12px 0 0;
    padding: 0 4px;
    text-align: center;
    font-size: 13px;
}

.mega-menu-foot a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.mega-menu-foot a:hover {
    text-decoration: underline;
}

/* ZStack 旧版（若个别页未跑脚本仍保留类名） */
.mega-menu-inner.mega-menu-zstack {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-width: none;
}

.mega-zband {
    padding: 28px var(--layout-gutter-wide) 32px;
}

.mega-zband--white {
    background: #fff;
}

.mega-zband--tint {
    background: #F4FBF8;
    border-radius: 0 0 18px 18px;
}

.mega-zrow {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mega-zrow:first-child {
    padding-top: 4px;
}

.mega-zrow:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.mega-zband--tint .mega-zrow {
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

.mega-zrow--flush {
    padding-bottom: 8px;
}

.mega-zrow-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 1.15rem;
}

.mega-zrow-main {
    flex: 1;
    min-width: 0;
}

.mega-zrow-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.mega-zbadge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.mega-zrow-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.mega-zrow-cols--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 0;
    align-items: start;
}

.mega-zcol {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 28px;
    border-right: 1px solid rgba(148, 163, 184, 0.35);
}

.mega-zcol:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 8px;
}

.mega-zlink {
    display: block;
    padding: 9px 12px;
    margin-left: -8px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.mega-zlink:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}


.mega-col-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.mega-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.mega-link i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    opacity: 0.85;
}

.mega-link.mega-link-sub {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
}

.mega-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}

@media (min-width: 900px) {
    .mega-subgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mega-link.mega-link-active,
.mega-zlink.mega-link-active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    font-weight: 600;
}

@media (min-width: 1025px) {
    .nav-dropdown-container .mega-menu-panel.nav-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--navbar-height);
        width: 100vw;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        border-radius: 0 0 20px 20px;
        border: 1px solid var(--border-light);
        border-top: none;
        box-shadow: var(--shadow-lg);
        transform: none;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s;
    }

    .nav-dropdown-container:hover .mega-menu-panel.nav-dropdown,
    .nav-dropdown-container:focus-within .mega-menu-panel.nav-dropdown,
    .nav-dropdown-container.active .mega-menu-panel.nav-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown-container.active .nav-link i {
        transform: rotate(180deg);
    }

    .nav-dropdown-container .mega-menu-backdrop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mega-menu-backdrop {
        display: none !important;
    }

    .nav-dropdown-container.active .mega-menu-backdrop {
        display: none !important;
    }

    /* 移动端：Mega 菜单在抽屉内手风琴展开，避免 fixed 层与顶栏错位 */
    .nav-dropdown-container .mega-menu-panel.nav-dropdown {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        max-height: none;
        overflow: visible;
        width: 100%;
        margin: 8px 0 0;
        transform: none;
        border-radius: 12px;
        z-index: auto;
        padding: 0;
        box-shadow: none;
        border: 1px solid var(--border-light);
        background: var(--bg-secondary);
    }

    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 20px 32px;
    }

    .mega-menu-inner.mega-menu-zstack {
        padding: 0;
        gap: 0;
    }

    .mega-menu-inner.mega-menu-cards {
        padding: 16px 14px 20px;
    }

    .mega-cards-top {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mega-card-body--split {
        grid-template-columns: 1fr;
    }

    .mega-pane-vrule {
        display: none;
    }

    .mega-zband {
        padding: 20px 20px 24px;
    }

    .mega-zrow {
        gap: 14px;
        padding: 14px 0;
    }

    .mega-zrow-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .mega-zrow-cols--split {
        grid-template-columns: 1fr;
    }

    .mega-zcol {
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .mega-col-title {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .mega-subgrid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
}

.btn-ghost:hover {
    background: rgba(2,132,199,0.08);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 12px rgba(2,132,199,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(2,132,199,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* ==================== Hero 区域 ==================== */
.hero {
    min-height: calc(100svh - var(--navbar-height));
    display: flex;
    align-items: center;
    padding: calc(var(--navbar-height) + 40px) 0 80px;
    background: var(--hero-bg);
    text-align: center;
}

/* Hero 深色纯色底 + 背景图（全站统一） */
.hero-has-bg {
    position: relative;
    overflow: hidden;
    background-color: var(--hero-dark-bg) !important;
    background-image: var(--hero-bg-image, none) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-dark-overlay);
    pointer-events: none;
    z-index: 0;
}

.hero-has-bg > .container,
.hero-has-bg .container {
    position: relative;
    z-index: 1;
}

.hero-has-bg h1 {
    color: var(--hero-dark-text);
}

/* Hero 标题与数字：黑 / 深绿纯色 */
.hero-has-bg h1,
.hero-has-bg h1 span,
.hero-has-bg .hero-title,
.hero-section.hero-has-bg .hero-title,
[class*="-hero"].hero-has-bg h1,
[class*="-hero"].hero-has-bg h1 span {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--hero-dark-text) !important;
}

.hero-has-bg h1 .gradient-text,
[class*="-hero"].hero-has-bg h1 .gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--hero-dark-text-accent) !important;
}

.hero:not(.hero-has-bg) h1 .gradient-text,
.hero:not(.hero-has-bg) h1 span,
[class*="-hero"]:not(.hero-has-bg) h1 .gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--hero-dark-text-accent) !important;
}

.hero-has-bg .stat-value,
.hero-has-bg .model-stat-value,
[class*="-hero"].hero-has-bg .stat-value,
[class*="-hero"].hero-has-bg .model-stat-value {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--hero-dark-text-accent) !important;
}

.hero-has-bg p,
.hero-has-bg .stat-label,
.hero-has-bg .model-hero-subtitle,
.hero-has-bg .hero-subtitle,
.hero-has-bg .hero-description,
.hero-has-bg h2,
.hero-has-bg h3 {
    color: var(--hero-dark-text-muted);
}

.hero-has-bg .hero-badge {
    background: rgba(32, 212, 146, 0.12) !important;
    border: 1px solid rgba(23, 122, 89, 0.22);
    color: var(--hero-dark-text-accent) !important;
    box-shadow: none !important;
    animation: none;
}

.hero-has-bg .resources-hero-meta,
.hero-has-bg .news-hero-meta,
.hero-has-bg .solutions-hero-meta,
.hero-has-bg .contact-hero-meta {
    color: var(--hero-dark-text-muted);
}

.hero-has-bg .contact-hero-badge {
    color: var(--hero-dark-text-accent) !important;
    background: rgba(32, 212, 146, 0.12) !important;
    border-color: rgba(23, 122, 89, 0.22) !important;
}

.hero-has-bg .stat-value {
    color: var(--hero-dark-text-accent);
}

.hero-has-bg .btn-outline {
    color: var(--hero-dark-text);
    border-color: rgba(23, 122, 89, 0.35);
}

.hero-has-bg .btn-outline:hover {
    background: rgba(23, 122, 89, 0.08);
    border-color: var(--hero-dark-text-accent);
    color: var(--hero-dark-text-accent);
}

.hero-has-bg .text-gray-900,
.hero-has-bg .text-gray-600,
.hero-has-bg .text-gray-700 {
    color: var(--hero-dark-text-muted) !important;
}

.hero-has-bg h1.text-gray-900,
.hero-has-bg .feature-hero h1 {
    color: var(--hero-dark-text) !important;
}

/* Hero 全局纯色灰背景（不含 hero-has-bg 页面） */
.hero::before,
.news-hero:not(.hero-has-bg)::before,
.model-hero:not(.hero-has-bg)::before,
.contact-hero:not(.hero-has-bg)::before,
.hero-section:not(.hero-has-bg)::before {
    display: none !important;
}

.model-hero:not(.hero-has-bg),
.contact-hero:not(.hero-has-bg),
.ai-hero:not(.hero-has-bg),
.products-hero:not(.hero-has-bg),
.support-hero:not(.hero-has-bg),
.feature-hero:not(.hero-has-bg),
.enterprise-hero:not(.hero-has-bg),
.hero-section:not(.hero-has-bg) {
    background: var(--hero-bg) !important;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* 普通内页标题区（法律条款、文档等） */
.hero.hero-compact {
    min-height: auto;
    padding: calc(var(--navbar-height) + 48px) 0 48px;
}

.hero.hero-compact h1 {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 12px;
}

.hero.hero-compact p {
    font-size: 17px;
    margin-bottom: 0;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ==================== Section ==================== */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-primary);
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(2,132,199,0.1), rgba(88,86,214,0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 24px;
}

.card-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ==================== Grid ==================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ==================== Footer ==================== */
.footer {
    background: var(--brand-charcoal);
    color: white;
    padding: clamp(48px, 6vw, 72px) var(--layout-gutter-wide) clamp(24px, 3vw, 36px);
    box-sizing: border-box;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.footer-grid {
    margin-bottom: clamp(32px, 4vw, 48px);
    width: 100%;
}

.trust-badges,
.footer-bottom {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .footer-grid {
        display: grid;
        /* 3:7 等同 30%:70%，且与 column-gap 不叠加溢出 */
        grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
        column-gap: clamp(24px, 3vw, 40px);
        align-items: start;
        width: 100%;
    }

    .footer-brand {
        min-width: 0;
        width: 100%;
    }

    .footer-links--desktop {
        width: 100%;
        justify-self: stretch;
    }
}

.footer-brand .logo {
    display: inline-flex;
    color: white;
    margin-bottom: 16px;
}

.footer-brand .footer-desc,
.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.7;
    max-width: none;
    margin: 0 0 20px;
}

.footer-col {
    min-width: 0;
}

/* PC 页脚：右侧 70% 区域内五列等分 */
@media (min-width: 1025px) {
    .footer-links--desktop {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: clamp(12px, 1.5vw, 20px);
        width: 100%;
        min-width: 0;
    }

    .footer-links--desktop .footer-col {
        min-width: 0;
    }
}

.footer-links--mobile {
    display: none;
}

.footer-col h4,
.footer-links--desktop h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links--desktop a {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links--desktop a:hover {
    color: var(--primary-light);
}

/* 手机页脚：手风琴（默认隐藏，见 max-width:768px） */
.footer-accordion-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.footer-accordion {
    border: none;
    margin: 0;
    padding: 0;
}

.footer-accordion-trigger {
    list-style: none;
}

.footer-accordion-trigger::-webkit-details-marker {
    display: none;
}

.footer-accordion-icon {
    display: none;
}

.footer-links--mobile .footer-accordion-panel a {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links--mobile .footer-accordion-panel a:hover {
    color: var(--primary-light);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
    padding: clamp(20px, 3vw, 28px) 0;
    margin-bottom: clamp(20px, 3vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    white-space: nowrap;
}

.trust-item i {
    font-size: 16px;
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: clamp(20px, 3vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom p {
    margin: 0;
}

.footer-copy,
.footer-company {
    color: rgba(255, 255, 255, 0.45);
}

.footer-company {
    margin-top: 4px;
}

.footer-icp {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1024px) {
    .footer {
        padding: 40px var(--layout-gutter) max(20px, env(safe-area-inset-bottom));
    }

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

    .footer-brand {
        max-width: none;
        text-align: center;
        padding-bottom: 4px;
    }

    .footer-brand .logo {
        justify-content: center;
        margin-bottom: 12px;
    }

    .footer-brand .footer-desc,
    .footer-brand p {
        max-width: none;
        margin: 0 auto 16px;
        font-size: 13px;
        line-height: 1.65;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links--desktop {
        display: none;
    }

    .footer-links--mobile {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-links--mobile .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-links--mobile .footer-col:last-child {
        border-bottom: none;
    }

    .footer-links--mobile .footer-accordion-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 48px;
        padding: 12px 0;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
        touch-action: manipulation;
    }

    .footer-links--mobile .footer-accordion-title {
        text-transform: none;
        letter-spacing: 0;
        font-size: 15px;
    }

    .footer-links--mobile .footer-accordion-icon {
        display: block;
        flex-shrink: 0;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.45);
        transition: transform 0.2s ease;
    }

    .footer-links--mobile .footer-accordion[open] .footer-accordion-icon {
        transform: rotate(180deg);
    }

    .footer-links--mobile .footer-accordion-panel {
        padding: 0 0 12px;
    }

    .footer-links--mobile .footer-accordion-panel a {
        padding: 10px 0;
        font-size: 14px;
    }

    .footer-links--mobile .footer-accordion-panel a:first-child {
        padding-top: 4px;
    }

    .trust-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
        padding: 20px 0;
        margin-bottom: 16px;
    }

    .trust-item {
        justify-content: flex-start;
        font-size: 12px;
        white-space: normal;
        line-height: 1.4;
    }

    .footer-bottom {
        padding-top: 16px;
        font-size: 12px;
        line-height: 1.7;
    }

    .footer-copy,
    .footer-company {
        font-size: 12px;
    }

    .footer-icp {
        margin-top: 10px;
        font-size: 11px;
        word-break: break-all;
    }
}

/* ==================== 文本内容页 ==================== */
.text-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-secondary);
}

.text-content p {
    margin-bottom: 20px;
}

.text-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.text-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.text-content ul, .text-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.text-content li {
    margin-bottom: 8px;
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== 弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 90%;
    max-width: 420px;
    z-index: 2001;
    display: none;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: var(--shadow-xl);
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2,132,199,0.1);
}

/* ==================== 客户评价 ==================== */
.testimonials {
    background: var(--bg-secondary);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    font-size: 60px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 24px;
    line-height: 1;
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ==================== 客户案例 ==================== */
.cases {
    background: var(--bg-primary);
}

.case-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.case-header {
    background: linear-gradient(135deg, var(--text-primary), #434344);
    padding: 32px;
    color: white;
}

.case-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-header p {
    font-size: 14px;
    opacity: 0.8;
}

.case-body {
    padding: 24px 32px;
}

.case-metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.case-metric h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.case-metric p {
    font-size: 13px;
    color: var(--text-tertiary);
}

.case-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-tag {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== GPU 卡片 ==================== */
.gpu-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.gpu-card .card-icon {
    margin-left: auto;
    margin-right: auto;
}

.gpu-card.featured {
    border: 2px solid var(--primary);
}

.gpu-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary);
}

.gpu-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.gpu-badge.hot {
    background: #ff3b30;
}

.gpu-badge.enterprise {
    background: #1d1d1f;
}

.gpu-badge.flagship {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.gpu-title {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 16px;
}

.gpu-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.gpu-specs {
    list-style: none;
    margin: 0 auto 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    width: fit-content;
    max-width: 100%;
    text-align: left;
}

.gpu-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.gpu-specs li i {
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    color: var(--primary);
}

.gpu-price {
    text-align: center;
    margin: auto 0 20px;
}

.gpu-price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.gpu-price-unit {
    color: var(--text-tertiary);
}

.gpu-card > .btn {
    width: 100%;
    margin-top: auto;
}

.gpu-btn {
    width: 100%;
}

.recommend-gpu {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    text-align: left;
}

.recommend-gpu p {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.recommend-gpu p:last-child {
    margin-bottom: 0;
}

.recommend-reason {
    font-size: 13px !important;
    color: var(--text-tertiary) !important;
}

/* ==================== 模型标签 ==================== */
.model-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-card-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-card-icon.blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.stat-card-icon.green {
    background: linear-gradient(135deg, #34c759, #4cd964);
}

.stat-card-icon.purple {
    background: linear-gradient(135deg, #177A59, #6EF5C4);
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card-desc {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ==================== 数据表格 ==================== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2,132,199,0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(2,132,199,0.1);
}

/* 按钮增强效果 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

/* 模型卡片动画增强 */
.model-card-detailed {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card-detailed:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* 筛选器卡片动画 */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(2,132,199,0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

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

.data-table tr:hover {
    background: rgba(2,132,199,0.02);
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-primary {
    background: var(--primary);
}

.badge-success {
    background: var(--success);
}

.badge-secondary {
    background: var(--text-tertiary);
}

/* ==================== 按钮尺寸 ==================== */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-danger:hover {
    background: #ff2d20;
    transform: translateY(-1px);
}

/* ==================== 模型卡片 ==================== */
.model-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.model-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.model-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.model-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.model-badge.hot {
    background: #ff3b30;
}

.model-badge.new {
    background: var(--primary);
}

.model-badge.open-source {
    background: var(--success);
}

.model-badge.domestic {
    background: var(--warning);
}

.model-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.model-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.model-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ==================== 详细模型卡片 ==================== */
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

@media (max-width: 1280px) {
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .model-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.model-card-detailed {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.model-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.model-card-detailed:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.model-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.model-card-title-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.model-card-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.model-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.model-card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.model-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.meta-item i {
    color: var(--primary);
    font-size: 16px;
}

.model-card-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.feature-tag {
    padding: 6px 14px;
    background: rgba(2,132,199,0.1);
    border-radius: 16px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.model-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.model-card-actions .btn {
    flex: 1;
    min-width: 100px;
}

@media (max-width: 1200px) {
    .model-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .model-card-actions {
        flex-direction: column;
    }
    
    .model-card-actions .btn {
        width: 100%;
    }
}
/* ==================== 价格表格 ==================== */
.pricing-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pricing-table th,
.pricing-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.pricing-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

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

.pricing-table tr:hover {
    background: rgba(2,132,199,0.02);
}

/* ==================== 合作流程 ==================== */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-arrow {
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 20px;
    margin: 0 10px;
}

/* 新合作流程样式 */
.cooperation-process {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 60px 0;
    position: relative;
}

.cooperation-process .process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.step-circle .step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 0;
}

.step-circle .step-icon {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.cooperation-process .step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cooperation-process .step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.step-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.step-details:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.step-details li:before {
    content: "✓";
    color: var(--success);
    margin-right: 8px;
    font-weight: 600;
}

.process-connector {
    position: absolute;
    top: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    flex: 1;
    z-index: 1;
    left: 25%;
    right: 25%;
}

@media (max-width: 1024px) {
    .cooperation-process {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .process-connector {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--primary-light), var(--primary));
    }
    
    .cooperation-process .process-step {
        width: 100%;
        max-width: 400px;
    }
}

/* ==================== GPU 规格对比 ==================== */
.table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

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

.comparison-table tr:hover {
    background: rgba(2,132,199,0.02);
}

/* ==================== 模型微调 ==================== */
/* 微调流程 */
.tuning-step {
    position: relative;
}

.step-features {
    list-style: none;
    margin-top: 16px;
}

.step-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.step-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* 支持模型 */
.base-models {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.model-group {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.model-group h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.model-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.model-tag {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 技术特点 */
.tech-card {
    text-align: center;
}

.tech-params {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.param {
    padding: 4px 12px;
    background: rgba(2,132,199,0.1);
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* 计费说明 */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.pricing-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    z-index: 1;
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.price-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.pricing-note {
    background: rgba(255,149,0,0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
}

.pricing-note i {
    color: var(--warning);
    font-size: 20px;
    margin-top: 2px;
}

.pricing-note p {
    color: var(--text-primary);
    font-size: 14px;
    margin: 0;
}

/* ==================== 资源包页面 ==================== */
/* 模型分类 */
.model-categories {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.model-category {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.model-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* 计费说明 */
.billing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.billing-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
}

.billing-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(2,132,199,0.1), rgba(88,86,214,0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin: 0 auto 16px;
}

.billing-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.billing-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .hero {
        padding: calc(var(--navbar-height) + 50px) 0 70px;
    }
    .section {
        padding: 70px 0;
    }
    .stats {
        gap: 40px;
    }
    .stat-value {
        font-size: 36px;
    }
    .case-metrics {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: calc(var(--navbar-height) + 40px) 0 60px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .stat-value {
        font-size: 32px;
    }
    .case-metrics {
        flex-direction: column;
        gap: 16px;
    }
    .modal {
        padding: 32px 24px;
    }
    .card {
        padding: 24px;
    }
    .gpu-card-icon {
        font-size: 36px;
    }
    .gpu-price-value {
        font-size: 28px;
    }
    .gpu-specs li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(var(--navbar-height) + 30px) 0 50px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 14px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 24px;
    }
    .stats {
        grid-template-columns: 1fr;
        max-width: 240px;
        gap: 16px;
    }
    .stat-value {
        font-size: 28px;
    }
    .card {
        padding: 20px;
    }
    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }
    .model-list {
        grid-template-columns: 1fr;
    }
    .pricing-table th,
    .pricing-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .process-step {
        width: 100%;
        max-width: 300px;
    }
    .process-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==================== 全站移动端通用优化 ==================== */
@media (max-width: 768px) {
    .section,
    .container,
    .card,
    main,
    article {
        min-width: 0;
    }

    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }

    pre {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .feature-row {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .pricing-table,
    .comparison-table,
    .data-table,
    .orders-table,
    table.table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap,
    .table-responsive,
    .orders-table-wrap,
    .data-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-toolbar,
    .toolbar,
    .filter-bar,
    .search-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .modal {
        width: calc(100% - 32px);
        max-width: none;
        margin: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --layout-gutter: 16px;
    }

    .btn-small {
        min-height: 44px;
        padding: 10px 16px;
    }

    .section-header h2,
    .section-title {
        font-size: 22px;
    }
}
