/* ===========================================
   青岛同源基因科技有限责任公司 - 企业官网样式
   参照红帽官网设计风格
   =========================================== */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #cc0000;
    --primary-dark: #a30000;
    --primary-light: #ee0000;
    --accent: #0066cc;
    --accent-bio: #00a896;
    --dark: #151515;
    --gray-900: #1f1f1f;
    --gray-800: #292929;
    --gray-700: #4d4d4d;
    --gray-600: #6a6e73;
    --gray-500: #8a8d90;
    --gray-300: #d2d2d2;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --success: #3e8635;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.14);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Red Hat Display", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶部公告条 ---------- */
.top-banner {
    background-color: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.top-banner a {
    color: var(--white);
    text-decoration: underline;
    margin-left: 8px;
}

/* ---------- 顶部导航 ---------- */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    background: var(--primary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.logo-icon::before {
    content: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    min-height: 44px;
    line-height: 1;
}

.logo-text .logo-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #151515;
    display: block;
    width: 100%;
    text-align: left;
    letter-spacing: 0;
}

.logo-text .logo-en {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: #6a6e73;
    letter-spacing: 0;
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-menu li a:hover {
    color: var(--primary);
    background-color: var(--gray-100);
}

.nav-menu li a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-menu li a.active::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    margin: 4px auto -14px;
    background-color: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-actions .btn {
    padding: 8px 18px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-dark:hover {
    background-color: var(--gray-800);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ---------- 图片通用 ---------- */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Hero 区 ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a0202 0%, #2a0505 50%, #401010 100%);
    color: #ffffff;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(204, 0, 0, 0.25), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 168, 150, 0.15), transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'><g fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'><path d='M0,400 Q200,200 400,400 T800,400'/><path d='M0,300 Q200,100 400,300 T800,300'/><path d='M0,500 Q200,300 400,500 T800,500'/><path d='M0,600 Q200,400 400,600 T800,600'/><circle cx='100' cy='200' r='3' fill='rgba(255,255,255,0.15)'/><circle cx='300' cy='350' r='4' fill='rgba(204,0,0,0.4)'/><circle cx='500' cy='250' r='3' fill='rgba(255,255,255,0.15)'/><circle cx='700' cy='450' r='4' fill='rgba(0,168,150,0.4)'/><circle cx='200' cy='600' r='3' fill='rgba(255,255,255,0.15)'/><circle cx='600' cy='650' r='4' fill='rgba(204,0,0,0.4)'/></g></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Hero 双栏：左文本 + 右配图 */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.25), transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(204, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(204, 0, 0, 0.4);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-title .highlight {
    color: #ff6b6b;
}

.hero-desc {
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* 副 Hero（其他页面用） */
.subhero {
    background: linear-gradient(135deg, #1a0202 0%, #2a0505 100%);
    color: #ffffff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.subhero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 50%, rgba(204, 0, 0, 0.3), transparent 60%);
    pointer-events: none;
}

/* 带配图的副 Hero */
.subhero-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.subhero-photo::before {
    background:
        linear-gradient(135deg, rgba(20, 0, 0, 0.85) 0%, rgba(60, 5, 5, 0.75) 60%, rgba(102, 0, 0, 0.55) 100%),
        radial-gradient(circle at 80% 50%, rgba(204, 0, 0, 0.3), transparent 60%);
}

.subhero .container {
    position: relative;
    z-index: 2;
}

.subhero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.subhero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* ---------- 通用 section ---------- */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 56px 0;
}

.section-light {
    background-color: var(--gray-50);
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 48px;
    max-width: 800px;
    line-height: 1.6;
}

.section-subtitle.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 卡片 / 网格 ---------- */
.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);
}

.card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(204, 0, 0, 0.05));
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.3;
}

.card-desc {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.card-link::after {
    content: "→";
    transition: transform var(--transition);
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* 产品卡片：带顶部彩条 */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* ---------- 特色板块（带图） ---------- */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px 0;
}

.feature-block.reverse .feature-text {
    order: 2;
}

.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f8f8f8, #ececec);
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(204, 0, 0, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.feature-text h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.feature-text p {
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-list {
    margin: 20px 0 28px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--gray-800);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* ---------- 统计数据 ---------- */
.stats-section {
    background: linear-gradient(135deg, #181820 0%, #2a0505 100%);
    color: #ffffff;
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #ff6b6b;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- 表格 ---------- */
.table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 600px;
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    font-weight: 600;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: var(--gray-50);
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.data-table tbody tr:nth-child(even):hover {
    background-color: var(--gray-100);
}

/* ---------- 时间线 ---------- */
.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .timeline-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.timeline-item .timeline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item .timeline-desc {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.12), transparent 60%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.cta-section p {
    font-size: 17px;
    margin-bottom: 32px;
    opacity: 0.92;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-section .btn:hover {
    background-color: var(--gray-100);
    color: var(--primary-dark);
}

/* ---------- 文章列表 ---------- */
.article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.article-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #eee, #ccc);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-cat {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(204, 0, 0, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark);
}

.article-card p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.article-meta {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- 内容页（文档样式） ---------- */
.content-block {
    margin-bottom: 48px;
}

.content-block h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
    color: var(--dark);
}

.content-block h3 {
    font-size: 21px;
    font-weight: 600;
    margin: 28px 0 14px;
    color: var(--dark);
}

.content-block p {
    margin-bottom: 14px;
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1.8;
}

.content-block ul, .content-block ol {
    margin: 14px 0 18px 24px;
}

.content-block ul li, .content-block ol li {
    margin-bottom: 10px;
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1.7;
}

.content-block ul li {
    list-style: disc;
    padding-left: 4px;
}

.content-block ol li {
    list-style: decimal;
}

.note-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffa000;
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #5d4400;
    font-size: 15px;
    line-height: 1.6;
}

.tip-box {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #0d3a64;
    font-size: 15px;
    line-height: 1.6;
}

.warn-box {
    background-color: #fff0f0;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #6b0000;
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- Footer（固定深色底，不随主题变量反转） ---------- */
.footer {
    background-color: #181820;
    color: rgba(255, 255, 255, 0.78);
    padding: 56px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-brand .footer-logo {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .footer-logo > span:not(.logo-icon) {
    display: block;
    line-height: 1.25;
}

.footer-brand .footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 16px;
}

/* ---------- 联系信息卡 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    text-align: center;
    padding: 36px 24px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.contact-card .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- 价格表 ---------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.price-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.price-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}

.price-card.featured::before {
    content: "推荐";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-card .price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin: 18px 0;
}

.price-card .price small {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 400;
}

.price-card ul {
    text-align: left;
    margin: 20px 0;
}

.price-card ul li {
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    padding-left: 24px;
}

.price-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .article-list { grid-template-columns: repeat(2, 1fr); }
    .feature-block { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
    .feature-block.reverse .feature-text { order: 0; }
    .price-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        box-shadow: var(--shadow-md);
        gap: 0;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu li a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--gray-100);
    }
    .nav-menu li a.active::after {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .nav-actions {
        display: none;
    }
    .hero-title { font-size: 36px; }
    .hero-desc { font-size: 16px; }
    .section { padding: 56px 0; }
    .section-title { font-size: 28px; }
    .subhero h1 { font-size: 32px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .article-list { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .stat-item .stat-number { font-size: 36px; }
    .feature-text h2 { font-size: 26px; }
    .cta-section h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .logo-text .logo-name { font-size: 14px; }
    .logo-text .logo-en { font-size: 10px; }
}

/* ---------- 图片墙 / 画廊 ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: 1/2;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

/* ---------- 图卡：带标题的图片块 ---------- */
.photo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.photo-card {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    color: var(--white);
    background-color: var(--dark);
    transition: all var(--transition);
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.85));
    z-index: 2;
}

.photo-card .photo-card-body {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.photo-card .tag {
    align-self: flex-start;
    padding: 4px 10px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.photo-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.photo-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* ---------- 图片横幅 ---------- */
.image-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    max-height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 40px 0;
    box-shadow: var(--shadow-lg);
}

.image-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.7) 0%, rgba(204, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 40px;
}

.image-banner .banner-overlay h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.image-banner .banner-overlay p {
    font-size: 16px;
    opacity: 0.92;
    max-width: 700px;
}

/* ---------- 响应式补充 ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-visual { max-width: 600px; margin: 0 auto; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .photo-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .image-banner { aspect-ratio: 4/3; }
    .image-banner .banner-overlay h2 { font-size: 24px; }
}


/* ---------- 价格表 ---------- */
.price-table-section {
    margin-bottom: 48px;
}

.price-table-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.price-table-section .data-table {
    font-size: 13px;
}

.price-table-section .data-table th,
.price-table-section .data-table td {
    padding: 12px 14px;
    white-space: nowrap;
}

.price-table-section .data-table td:first-child {
    font-weight: 600;
    color: var(--gray-800);
}

.price-notes {
    margin-top: 24px;
}

.price-notes ol {
    margin: 12px 0 0 20px;
}

.price-notes li {
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .price-table-section .data-table {
        font-size: 12px;
    }
    .price-table-section .data-table th,
    .price-table-section .data-table td {
        padding: 10px 8px;
    }
}
/* ---------- 简易动画 ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp 0.8s ease both;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ---------- 顶栏工具：明暗 / 语言 ---------- */
.nav-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.toolbar-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

#theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="dark"] #theme-toggle .theme-icon-light {
    display: none;
}

[data-theme="dark"] #theme-toggle .theme-icon-dark {
    display: inline;
}

.footer-bottom {
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* ---------- 4000T 存储卖点 ---------- */
.storage-highlight {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.08) 0%, rgba(204, 0, 0, 0.03) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: -24px auto 48px;
    max-width: 1280px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.storage-highlight .badge-4000t {
    display: inline-block;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.storage-highlight p {
    font-size: 17px;
    color: var(--gray-800);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.storage-highlight strong {
    color: var(--primary);
    font-weight: 800;
}

/* ---------- 暗色主题 ---------- */
[data-theme="dark"] {
    --dark: #f0f0f0;
    --gray-900: #e8e8e8;
    --gray-800: #d0d0d0;
    --gray-700: #b0b0b0;
    --gray-600: #909090;
    --gray-500: #787878;
    --gray-300: #404040;
    --gray-200: #333333;
    --gray-100: #252525;
    --gray-50: #1c1c1c;
    --white: #141414;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body {
    background-color: #121212;
    color: var(--gray-900);
}

[data-theme="dark"] .header {
    background-color: #1a1a1a;
    border-bottom-color: var(--gray-200);
}

[data-theme="dark"] .logo-text .logo-name {
    color: #f5f5f5;
}

[data-theme="dark"] .logo-text .logo-en {
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .nav-menu li a {
    color: #e0e0e0;
}

[data-theme="dark"] .nav-menu li a:hover {
    background-color: var(--gray-100);
}

[data-theme="dark"] .toolbar-btn {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: #e0e0e0;
}

[data-theme="dark"] .card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .price-card {
    background-color: #1e1e1e;
    border-color: var(--gray-200);
}

[data-theme="dark"] .card-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .feature-text h2,
[data-theme="dark"] .content-block h2 {
    color: #f0f0f0;
}

[data-theme="dark"] .card-desc,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .feature-text p {
    color: var(--gray-700);
}

[data-theme="dark"] .section-light {
    background-color: var(--gray-50);
}

[data-theme="dark"] .section:not(.section-dark):not(.stats-section):not(.cta-section):not(.hero):not(.subhero) {
    background-color: #121212;
}

[data-theme="dark"] .storage-highlight {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.2) 0%, rgba(204, 0, 0, 0.08) 100%);
}

[data-theme="dark"] .storage-highlight p {
    color: var(--gray-800);
}

[data-theme="dark"] .data-table {
    background-color: #1e1e1e;
}

[data-theme="dark"] .data-table tbody tr:nth-child(even) {
    background-color: #252525;
}

[data-theme="dark"] .data-table tbody tr:hover {
    background-color: #2a2a2a;
}

[data-theme="dark"] .top-banner {
    background-color: #0a0a0a;
}

[data-theme="dark"] .nav-menu.open {
    background-color: #1a1a1a;
}

[data-theme="dark"] .footer {
    background-color: #121218;
    color: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] .footer-brand .footer-logo,
[data-theme="dark"] .footer-col h4,
[data-theme="dark"] .footer-contact strong {
    color: #ffffff;
}

[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-contact p {
    color: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .footer-col ul li a {
    color: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .footer-col ul li a:hover {
    color: #ffffff;
}

[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-bottom a,
[data-theme="dark"] .footer-legal a {
    color: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] .footer-legal a:hover {
    color: #ffffff;
}

[data-theme="dark"] .footer-top {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* 技术文档单页布局：左=正文，右=本文目录 */
.docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 48px;
    align-items: start;
}

/* 云平台使用说明：左=章节菜单，中=正文，右=本页目录 */
.docs-layout-3 {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 32px;
}

.section-docs {
    padding-top: 40px;
}

.subhero-compact {
    padding: 36px 0 28px;
}

.subhero-compact h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
}

/* 暗色主题下，深色横幅区标题保持浅色（避免 --white 变量反转） */
[data-theme="dark"] .hero,
[data-theme="dark"] .subhero,
[data-theme="dark"] .stats-section,
[data-theme="dark"] .cta-section {
    color: #ffffff;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .subhero h1,
[data-theme="dark"] .subhero-compact h1,
[data-theme="dark"] .cta-section h2 {
    color: #ffffff;
}

[data-theme="dark"] .hero-desc,
[data-theme="dark"] .subhero p,
[data-theme="dark"] .cta-section p {
    color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .breadcrumb a:hover {
    color: #ffffff;
}

.docs-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-right: 2px solid var(--gray-200);
    padding-right: 16px;
}

.docs-sidebar-heading {
    margin: 0 0 2px;
    font-size: inherit;
    font-weight: inherit;
}

.docs-sidebar-heading a {
    display: block;
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.docs-sidebar-heading a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.docs-sidebar-heading a.is-active {
    background: rgba(204, 0, 0, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.docs-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-sidebar-list a {
    display: block;
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 13.5px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.docs-sidebar-list a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.docs-sidebar-list a.is-active {
    background: rgba(204, 0, 0, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.doc-page-title {
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.doc-page h3,
.doc-page h4,
.doc-page h5 {
    scroll-margin-top: 100px;
    margin-top: 28px;
    margin-bottom: 12px;
}

.doc-page p,
.doc-page ul,
.doc-page ol {
    margin-bottom: 14px;
    line-height: 1.8;
    color: var(--gray-700);
}

.doc-page ul,
.doc-page ol {
    padding-left: 1.35em;
}

.doc-page li {
    margin-bottom: 6px;
}

.doc-page a {
    color: var(--primary);
    word-break: break-all;
}

.doc-page a:hover {
    text-decoration: underline;
}

pre.doc-code {
    margin: 16px 0 20px;
    padding: 16px 18px;
    background: #1a1a24;
    color: #e8e8e8;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.doc-figure {
    margin: 20px 0;
    text-align: center;
}

.doc-figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.doc-figure.is-broken img {
    display: none;
}

.doc-figure.is-broken::before {
    content: "配图需登录飞书查看，或请将截图放入 images/docs/ 后更新页面";
    display: block;
    padding: 32px 20px;
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.doc-figure-cap {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.doc-toc-empty {
    font-size: 13px;
    color: var(--gray-600);
}

.docs-index-intro {
    margin-bottom: 20px;
    color: var(--gray-700);
    line-height: 1.8;
}

.docs-index-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: docs-chapter;
}

.docs-index-item {
    margin-bottom: 10px;
    counter-increment: docs-chapter;
}

.docs-index-link {
    display: block;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.docs-index-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.docs-content {
    min-width: 0;
}

.doc-toc {
    position: sticky;
    top: 96px;
    border-left: 2px solid var(--gray-200);
    padding: 4px 0 4px 20px;
    background-color: transparent;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.doc-toc h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.doc-toc ul {
    margin: 0;
    padding: 0;
}

.doc-toc li {
    list-style: none;
}

.doc-toc li a {
    display: block;
    padding: 5px 0 5px 10px;
    margin-left: -12px;
    border-left: 2px solid transparent;
    color: var(--gray-700);
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.doc-toc li a:hover {
    color: var(--primary);
}

.doc-toc li a.is-active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.doc-toc-sub {
    margin-left: 12px;
    padding-left: 8px;
    border-left: 1px dashed var(--gray-200);
}

.doc-toc-sub a {
    font-size: 12.5px;
    color: var(--gray-600);
    padding: 3px 0 3px 10px;
}

.doc-toc-note {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.55;
}

.docs-content .content-block {
    scroll-margin-top: 100px;
}

/* 云平台发展历史 */
.cloud-history-block {
    max-width: 960px;
    margin: 0 auto;
}

.cloud-history-title {
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    text-align: center;
}

.cloud-history-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 32px;
    text-align: center;
}

.cloud-history-table th:first-child,
.cloud-history-table td:first-child {
    width: 160px;
    white-space: nowrap;
    vertical-align: top;
    font-weight: 600;
}

.cloud-history-table td ol {
    margin: 0;
    padding-left: 1.25em;
}

.cloud-history-table td li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.cloud-history-table td li:last-child {
    margin-bottom: 0;
}

/* 云平台用户统计 */
.cloud-user-stats {
    max-width: 960px;
    margin: 56px auto 0;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.cloud-user-stats-title {
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    text-align: center;
}

.cloud-user-stats-intro {
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray-700);
    margin-bottom: 32px;
    text-align: center;
}

.cloud-user-stats-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.cloud-user-stat {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.cloud-user-stat-num {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.cloud-user-stat-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.cloud-user-stats-figure {
    margin: 0;
    text-align: center;
}

.cloud-user-stats-figure img {
    width: 100%;
    max-width: 920px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.cloud-user-stats-figure figcaption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .cloud-user-stats-metrics {
        grid-template-columns: 1fr;
    }
}

.code-block {
    background-color: #1a1a24;
    color: #e0e0e0;
    padding: 16px 20px;
    border-radius: 6px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 14px 0;
}

.code-block .cmt { color: #6a9955; }
.code-block .cmd { color: #4ec9b0; }
.code-block .opt { color: #dcdcaa; }
.code-block .str { color: #ce9178; }

.wechat-qr-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.wechat-qr-wrap img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    display: block;
}

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .docs-layout-3 {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        border-right: none;
        border-bottom: 2px solid var(--gray-200);
        padding: 0 0 16px;
    }
    .doc-toc {
        position: relative;
        top: 0;
        max-height: none;
        order: -1;
        border-left: none;
        border-top: 2px solid var(--gray-200);
        padding: 16px 0 0;
    }
    .doc-toc li a {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
    }
    .doc-toc li a.is-active {
        border-left: none;
    }
}

[data-theme="dark"] .doc-toc {
    background-color: transparent;
    border-color: var(--gray-200);
}

[data-theme="dark"] .btn-outline {
    color: #e0e0e0;
    border-color: var(--gray-300);
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }
    .nav-actions .btn-primary {
        display: none;
    }
    .storage-highlight {
        margin: 0 16px 32px;
        padding: 20px 16px;
    }
    .storage-highlight .badge-4000t {
        font-size: 32px;
    }
}
