/* roulang page: index */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --teal: #0D9488;
  --amber: #D97706;
  --bg: #F4F7FB;
  --bg-light: #F8FAFE;
  --card: #FFFFFF;
  --text-h: #12213C;
  --text-body: #3C4A60;
  --text-dim: #8494A8;
  --border: #E6EBF2;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow: 0 2px 10px rgba(31,60,100,0.06);
  --shadow-hover: 0 8px 20px rgba(31,60,100,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }

.tabular { font-variant-numeric: tabular-nums; }

/* 双层导航 */
.header-wrap {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-tab {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}
.nav-tab:hover { background: #F0F4F9; color: var(--text-body); }
.nav-tab.active { background: #EFF6FF; color: var(--primary); font-weight: 600; }
.tab-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-fade { position: relative; }
.tab-fade::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 40px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.92));
  pointer-events: none;
  border-radius: 0 0 1rem 0;
}
@media (max-width: 767px) {
  .desktop-search { display: none; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: block; }
}

/* Hero 网格背景 */
.hero-grid {
  background-image:
    linear-gradient(rgba(37,99,235,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center top;
}
@media (max-width: 640px) {
  .hero-grid { background-size: 26px 26px; }
}

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* 按钮 */
.btn-primary {
  background: var(--primary); color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.95); }
.btn-primary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
}
.btn-ghost:hover { background: #EFF6FF; }
.btn-ghost:active { transform: scale(0.95); }
.btn-ghost:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.link-arrow { color: var(--primary); font-size: 0.875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; transition: gap 0.2s ease; }
.link-arrow:hover { gap: 0.5rem; }
.link-arrow:hover svg { transform: translateX(2px); }
.link-arrow svg { transition: transform 0.2s ease; }

/* 标签 */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; line-height: 1.4; }
.badge-blue { background: #EFF6FF; color: var(--primary); }
.badge-gray { background: #F0F4F9; color: var(--text-dim); }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-teal { background: #F0FDF9; color: var(--teal); }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.faq-item.active { border-left: 3px solid var(--primary); border-color: var(--primary); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--text-h);
  transition: background 0.2s ease;
}
.faq-q:hover { background: #F8FAFE; }
.faq-icon { transition: transform 0.25s ease; flex-shrink: 0; color: var(--primary); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--text-dim); line-height: 1.7; display: none; }
.faq-item.active .faq-a { display: block; }

/* 表单 */
.form-input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #D7E0EA;
  padding: 0 0.875rem;
  width: 100%;
  font-size: 0.875rem;
  background: #fff;
  transition: all 0.2s ease;
  color: var(--text-body);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-textarea {
  border-radius: 10px;
  border: 1px solid #D7E0EA;
  padding: 0.75rem 0.875rem;
  width: 100%;
  font-size: 0.875rem;
  min-height: 96px;
  transition: all 0.2s ease;
  background: #fff;
  color: var(--text-body);
  resize: vertical;
}
.form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-input:-webkit-autofill,
.form-textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--text-body);
  transition: background-color 9999s ease-in-out 0s;
}
.form-label { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 0.375rem; display: block; }

/* 进度条 */
.progress-bar { height: 6px; background: #E6EBF2; border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--primary), #60A5FA); }

/* 呼吸状态点 */
.status-dot { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; position: relative; }
.status-dot.green { background: var(--teal); }
.status-dot.blue { background: var(--primary); }
.status-dot.amber { background: var(--amber); }
.status-dot.pulse::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  animation: pulse 2s ease-out infinite;
  opacity: 0.4;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

/* 区块通用 */
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--text-h); line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 640px) { .section-title { font-size: 1.5rem; } }
.section-desc { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; max-width: 560px; }

/* 焦点可见性 */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* 新闻卡片 */
.news-card { transition: background 0.2s ease; border-radius: 1rem; border: 1px solid var(--border); background: #fff; overflow: hidden; }
.news-card:hover { background: #F8FAFE; }
.news-card .news-thumb { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }

/* 表格对比行 */
.compare-row { display: flex; border-bottom: 1px solid var(--border); min-height: 44px; align-items: center; }
.compare-row:last-child { border-bottom: none; }
.compare-label { flex: 0 0 120px; font-size: 0.8125rem; color: var(--text-dim); padding-right: 0.75rem; }
@media (max-width: 640px) { .compare-label { flex-basis: 88px; font-size: 0.75rem; } }
.compare-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }

/* 时间线 */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 23px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), #93C5FD, transparent);
}
.timeline-item { display: flex; gap: 1.25rem; position: relative; margin-bottom: 1.5rem; }
.timeline-icon { width: 48px; height: 48px; border-radius: 9999px; background: #EFF6FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border); }
.timeline-num { position: absolute; top: -4px; left: 34px; background: var(--primary); color: #fff; font-size: 0.625rem; font-weight: 700; border-radius: 9999px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; z-index: 2; }

/* 图片圆角 */
.img-cover { border-radius: 0.75rem; border: 1px solid var(--border); }

/* 页脚 */
.footer-link { color: var(--text-body); font-size: 0.875rem; transition: color 0.2s ease; display: inline-block; padding: 0.2rem 0; }
.footer-link:hover { color: var(--primary); }

/* 移动端间距调整 */
@media (max-width: 640px) {
  .section-title { letter-spacing: 0; }
}

/* 隐藏滚动条但允许滚动 */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* roulang page: article */
/* ===== 设计变量 ===== */
        :root {
            --primary: #2563EB;
            --primary-dark: #1D4ED8;
            --teal: #0D9488;
            --amber: #D97706;
            --bg: #F4F7FB;
            --bg-light: #F8FAFE;
            --card: #FFFFFF;
            --text-h: #12213C;
            --text-body: #3C4A60;
            --text-dim: #8494A8;
            --border: #E6EBF2;
            --radius-lg: 1rem;
            --radius-xl: 1.25rem;
            --shadow: 0 2px 10px rgba(31, 60, 100, 0.06);
            --shadow-hover: 0 8px 20px rgba(31, 60, 100, 0.1);
        }
        html {
            scroll-behavior: smooth;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
            background-color: var(--bg);
            color: var(--text-body);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }
        a {
            text-decoration: none;
            color: inherit;
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        button,
        input,
        select,
        textarea {
            font-family: inherit;
            font-size: inherit;
        }
        .container {
            max-width: 80rem;
            margin: 0 auto;
            padding-left: 1rem;
            padding-right: 1rem;
        }
        @media (min-width: 768px) {
            .container {
                padding-left: 1.5rem;
                padding-right: 1.5rem;
            }
        }
        /* ===== 自定义工具类 ===== */
        .bg-primary {
            background-color: var(--primary);
        }
        .text-primary {
            color: var(--primary);
        }
        .text-texth {
            color: var(--text-h);
        }
        .text-textbody {
            color: var(--text-body);
        }
        .text-textdim {
            color: var(--text-dim);
        }
        .border-lineb {
            border-color: var(--border);
        }
        .bg-bg-light {
            background-color: var(--bg-light);
        }
        .bg-footbg {
            background-color: #EAF0F7;
        }
        .bg-card {
            background-color: var(--card);
        }
        /* ===== 双层导航 ===== */
        .header-wrap {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
        }
        .nav-tab {
            padding: 0.375rem 1rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            color: var(--text-dim);
            transition: all 0.2s ease;
            white-space: nowrap;
            display: inline-block;
        }
        .nav-tab:hover {
            background: #F0F4F9;
            color: var(--text-body);
        }
        .nav-tab.active {
            background: #EFF6FF;
            color: var(--primary);
            font-weight: 600;
        }
        .mobile-menu {
            display: none;
        }
        .mobile-menu.open {
            display: block;
        }
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        /* ===== 卡片 ===== */
        .card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }
        .card-hover:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }
        /* ===== 按钮 ===== */
        .btn-primary {
            background: var(--primary);
            color: #fff;
            padding: 0.625rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            border: none;
            cursor: pointer;
            line-height: 1.4;
        }
        .btn-primary:hover {
            background: var(--primary-dark);
        }
        .btn-primary:active {
            transform: scale(0.95);
        }
        .btn-primary:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
        }
        .btn-ghost {
            background: #fff;
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 0.625rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            line-height: 1.4;
        }
        .btn-ghost:hover {
            background: #EFF6FF;
        }
        .btn-ghost:active {
            transform: scale(0.95);
        }
        .btn-ghost:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
        .link-arrow {
            color: var(--primary);
            font-size: 0.875rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            transition: gap 0.2s ease;
        }
        .link-arrow:hover {
            gap: 0.5rem;
        }
        .link-arrow svg {
            transition: transform 0.2s ease;
        }
        .link-arrow:hover svg {
            transform: translateX(2px);
        }
        /* ===== 标签 ===== */
        .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 500;
            line-height: 1.4;
            transition: all 0.2s ease;
        }
        .badge-blue {
            background: #EFF6FF;
            color: var(--primary);
        }
        .badge-gray {
            background: #F0F4F9;
            color: var(--text-dim);
        }
        .badge-amber {
            background: #FEF3C7;
            color: #92400E;
        }
        .badge-teal {
            background: #F0FDF9;
            color: var(--teal);
        }
        /* ===== 表单 ===== */
        .form-input {
            height: 44px;
            border-radius: 10px;
            border: 1px solid #D7E0EA;
            padding: 0 0.875rem;
            width: 100%;
            font-size: 0.875rem;
            background: #fff;
            transition: all 0.2s ease;
            color: var(--text-body);
        }
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }
        .form-input:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 1px;
        }
        .form-textarea {
            border-radius: 10px;
            border: 1px solid #D7E0EA;
            padding: 0.75rem 0.875rem;
            width: 100%;
            font-size: 0.875rem;
            min-height: 96px;
            transition: all 0.2s ease;
            background: #fff;
            color: var(--text-body);
            resize: vertical;
        }
        .form-textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }
        .form-input:-webkit-autofill,
        .form-textarea:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px #fff inset;
            -webkit-text-fill-color: var(--text-body);
            transition: background-color 9999s ease-in-out 0s;
        }
        .form-label {
            font-size: 0.875rem;
            color: var(--text-dim);
            margin-bottom: 0.375rem;
            display: block;
        }
        /* ===== 区块通用 ===== */
        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-h);
            line-height: 1.3;
            letter-spacing: -0.01em;
        }
        @media (max-width: 640px) {
            .section-title {
                font-size: 1.4rem;
            }
        }
        .section-desc {
            font-size: 0.95rem;
            color: var(--text-dim);
            line-height: 1.7;
            max-width: 560px;
        }
        /* ===== 页脚链接 ===== */
        .footer-link {
            display: block;
            padding: 0.25rem 0;
            font-size: 0.875rem;
            color: var(--text-dim);
            transition: color 0.2s ease;
        }
        .footer-link:hover {
            color: var(--primary);
        }
        /* ===== FAQ ===== */
        .faq-item {
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            background: #fff;
            transition: border-color 0.2s ease;
            overflow: hidden;
        }
        .faq-item.active {
            border-left: 3px solid var(--primary);
        }
        .faq-q {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.1rem 1.25rem;
            cursor: pointer;
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-h);
            transition: background 0.2s ease;
        }
        .faq-q:hover {
            background: #F8FAFE;
        }
        .faq-icon {
            transition: transform 0.25s ease;
            flex-shrink: 0;
            color: var(--primary);
        }
        .faq-item.active .faq-icon {
            transform: rotate(45deg);
        }
        .faq-a {
            padding: 0 1.25rem 1.25rem;
            font-size: 0.875rem;
            color: var(--text-dim);
            line-height: 1.7;
            display: none;
        }
        .faq-item.active .faq-a {
            display: block;
        }
        /* ===== 面包屑 ===== */
        .breadcrumb {
            font-size: 0.8125rem;
            color: var(--text-dim);
            padding: 1.25rem 0;
        }
        .breadcrumb a {
            color: var(--text-dim);
            transition: color 0.2s ease;
        }
        .breadcrumb a:hover {
            color: var(--primary);
        }
        .breadcrumb .separator {
            margin: 0 0.5rem;
            color: #B6C2D4;
        }
        /* ===== 文章正文排版 ===== */
        .article-body {
            font-size: 1rem;
            line-height: 1.85;
            color: var(--text-body);
        }
        .article-body h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-h);
            margin: 1.8em 0 0.8em;
            padding-left: 0.75rem;
            border-left: 3px solid var(--primary);
        }
        .article-body h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-h);
            margin: 1.5em 0 0.6em;
        }
        .article-body p {
            margin-bottom: 1.2em;
        }
        .article-body ul,
        .article-body ol {
            margin-bottom: 1.2em;
            padding-left: 1.5rem;
        }
        .article-body li {
            margin-bottom: 0.4em;
        }
        .article-body img {
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            margin: 1.5em 0;
        }
        .article-body blockquote {
            border-left: 3px solid var(--primary);
            background: #F0F4F9;
            padding: 0.875rem 1.25rem;
            border-radius: 0 0.5rem 0.5rem 0;
            color: var(--text-dim);
            margin: 1.5em 0;
            font-style: normal;
        }
        .article-body a {
            color: var(--primary);
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .article-body a:hover {
            color: var(--primary-dark);
        }
        .article-body hr {
            border: none;
            border-top: 1px solid var(--border);
            margin: 2em 0;
        }
        .article-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5em 0;
            font-size: 0.875rem;
        }
        .article-body th,
        .article-body td {
            border: 1px solid var(--border);
            padding: 0.625rem 0.875rem;
            text-align: left;
        }
        .article-body th {
            background: #F0F4F9;
            font-weight: 600;
            color: var(--text-h);
        }
        /* ===== 文章meta ===== */
        .article-meta {
            font-size: 0.8125rem;
            color: var(--text-dim);
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1rem;
        }
        /* ===== Tabs渐变遮罩 ===== */
        .tab-mask {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 32px;
            pointer-events: none;
            background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
            display: none;
        }
        @media (max-width: 767px) {
            .tab-mask {
                display: block;
            }
        }
        /* ===== 相关卡片 ===== */
        .related-card {
            transition: all 0.25s ease;
        }
        .related-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }
        /* ===== 信息卡数据 ===== */
        .stat-num {
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
        }
