/* ==========================================================================
   CtouyPHP 发布站 —— 自定义样式（配合 Bootstrap 5.3）
   只放 Bootstrap 覆盖不到的部分：品牌色、首屏、卡片、表格、页脚。
   ========================================================================== */

:root {
  --ct-ink:        #0f172a;
  --ct-ink-soft:   #475569;
  --ct-line:       #e2e8f0;
  --ct-bg:         #f7f9fc;
  --ct-brand:      #2563eb;
  --ct-brand-dark: #1e40af;
  --ct-accent:     #06b6d4;
  --ct-deep:       #0b1220;
  --ct-deep-2:     #122a52;
  --ct-radius:     14px;
  --ct-shadow:     0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --ct-shadow-lg:  0 12px 40px rgba(15, 23, 42, .12);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC",
               "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ct-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

code, pre, .ct-mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

a { color: var(--ct-brand-dark); }
a:hover { color: var(--ct-brand); }

.ct-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1080;
  background: #fff; padding: .6rem 1rem; border-radius: 0 0 .5rem 0;
}
.ct-skip:focus { left: 0; }

.ct-icon { vertical-align: -.15em; flex: none; }

/* ------------------------------------------------------------------ 按钮 */

.btn-ct,
.btn-ct-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; border-radius: 999px; padding: .55rem 1.15rem;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-ct {
  background: linear-gradient(135deg, var(--ct-brand) 0%, var(--ct-accent) 140%);
  border: 0; color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.btn-ct:hover, .btn-ct:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, .34); }
.btn-ct-ghost {
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
}
.btn-ct-ghost:hover, .btn-ct-ghost:focus { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-ct-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; border-radius: 999px; padding: .55rem 1.15rem;
  border: 1px solid var(--ct-line); background: #fff; color: var(--ct-ink);
}
.btn-ct-outline:hover { border-color: var(--ct-brand); color: var(--ct-brand-dark); }

/* ---------------------------------------------------------------- 导航栏 */

.ct-navbar {
  background: rgba(11, 18, 32, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-block: .55rem;
}
.ct-navbar .navbar-brand { color: #fff; }
.ct-navbar .ct-logo { border-radius: 8px; }
.ct-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.ct-brand-text strong { font-size: 1.05rem; letter-spacing: .2px; }
.ct-brand-text small { font-size: .72rem; color: rgba(255, 255, 255, .62); }
.ct-navbar .nav-link {
  color: rgba(255, 255, 255, .76); font-size: .95rem;
  padding: .5rem .7rem; border-radius: 8px;
}
.ct-navbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ct-navbar .nav-link.active { color: #fff; background: rgba(37, 99, 235, .32); }
.ct-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .3);
}
.ct-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ------------------------------------------------------------------ 首屏 */

.ct-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(6, 182, 212, .32), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(37, 99, 235, .38), transparent 62%),
    linear-gradient(160deg, var(--ct-deep) 0%, var(--ct-deep-2) 58%, #0d3b4a 100%);
  padding: 4.5rem 0 4rem;
}
.ct-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 78%);
}
.ct-hero > .container { position: relative; z-index: 1; }
.ct-hero h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.05rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -.5px; margin-bottom: 1rem;
}
.ct-hero .ct-hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: rgba(255, 255, 255, .82); max-width: 46rem; margin-bottom: 1.6rem;
}
.ct-hero .ct-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.6rem; }
.ct-hero .ct-hero-note { font-size: .88rem; color: rgba(255, 255, 255, .6); }
.ct-hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.ct-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; padding: .32rem .75rem;
}

.ct-shot {
  border-radius: var(--ct-radius); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 24px 60px rgba(2, 6, 23, .5); width: 100%; height: auto;
}

/* -------------------------------------------------------------- 数据条 */

.ct-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--ct-line);
  border: 1px solid var(--ct-line); border-radius: var(--ct-radius);
  overflow: hidden; margin-top: 2.6rem;
}
.ct-stat { background: #fff; padding: 1.15rem 1.25rem; }
.ct-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--ct-brand-dark); line-height: 1.1; }
.ct-stat-label { font-size: .86rem; color: var(--ct-ink-soft); margin-top: .3rem; }

/* ---------------------------------------------------------------- 区块 */

.ct-section { padding: 4rem 0; }
.ct-section-alt { background: var(--ct-bg); }
.ct-section-tight { padding: 3rem 0; }

.ct-section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.ct-section-head.ct-center { margin-inline: auto; text-align: center; }
.ct-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ct-brand);
  background: rgba(37, 99, 235, .1); border-radius: 999px; padding: .25rem .7rem;
  margin-bottom: .8rem;
}
.ct-eyebrow-light { color: #7dd3fc; background: rgba(125, 211, 252, .16); }
.ct-section-title { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.3px; }
.ct-section-lead { color: var(--ct-ink-soft); margin: .7rem 0 0; }

/* ---------------------------------------------------------------- 卡片 */

.ct-card {
  background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius);
  padding: 1.5rem; height: 100%;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.ct-card:hover { transform: translateY(-3px); box-shadow: var(--ct-shadow-lg); border-color: #cbd5e1; }
.ct-card h3 { font-size: 1.08rem; font-weight: 700; margin: .9rem 0 .5rem; }
.ct-card p { color: var(--ct-ink-soft); font-size: .94rem; margin: 0; }
.ct-card .ct-card-kicker { font-size: .78rem; font-weight: 700; color: var(--ct-accent); letter-spacing: .8px; }

.ct-icon-tile {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .16));
  color: var(--ct-brand-dark);
}
.ct-icon-tile-lg { width: 52px; height: 52px; border-radius: 14px; }

.ct-tile {
  background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius);
  padding: 1.4rem; height: 100%;
}
.ct-tile h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .45rem; }
.ct-tile p { color: var(--ct-ink-soft); font-size: .93rem; margin: 0; }

/* 痛点卡片：左边一条强调线 */
.ct-pain {
  background: #fff; border: 1px solid var(--ct-line); border-left: 3px solid var(--ct-accent);
  border-radius: 10px; padding: 1.2rem 1.3rem; height: 100%;
}
.ct-pain strong { display: block; font-size: .99rem; margin-bottom: .4rem; }
.ct-pain span { color: var(--ct-ink-soft); font-size: .92rem; }

/* ---------------------------------------------------------------- 表格 */

.ct-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ct-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.ct-table th, .ct-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--ct-line); vertical-align: top; }
.ct-table thead th {
  background: var(--ct-bg); font-size: .82rem; font-weight: 700; color: var(--ct-ink-soft);
  letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
  position: sticky; top: 0;
}
.ct-table tbody tr:hover td { background: #fbfcfe; }
.ct-table td:first-child { font-weight: 600; }
.ct-yes { color: #059669; font-weight: 700; }
.ct-no { color: #94a3b8; }
.ct-partial { color: #b45309; font-weight: 600; }

.ct-table-note { font-size: .86rem; color: var(--ct-ink-soft); margin-top: .8rem; }

/* ------------------------------------------------------------ 内页标题条 */

.ct-page-hero {
  color: #fff; padding: 3.2rem 0 2.8rem;
  background:
    radial-gradient(700px 320px at 8% -20%, rgba(6, 182, 212, .3), transparent 60%),
    linear-gradient(150deg, var(--ct-deep) 0%, var(--ct-deep-2) 70%, #0d3b4a 100%);
}
.ct-page-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin: 0; letter-spacing: -.4px; }
.ct-page-lead { color: rgba(255, 255, 255, .8); max-width: 48rem; margin: .9rem 0 0; }

/* ---------------------------------------------------------------- 折叠 */

.ct-accordion .accordion-item { border: 1px solid var(--ct-line); border-radius: 12px; margin-bottom: .75rem; overflow: hidden; }
.ct-accordion .accordion-button { font-weight: 700; font-size: 1rem; padding: 1.05rem 1.2rem; }
.ct-accordion .accordion-button:not(.collapsed) { color: var(--ct-brand-dark); background: rgba(37, 99, 235, .07); }
.ct-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .16); }
.ct-accordion .accordion-body { color: var(--ct-ink-soft); font-size: .95rem; padding-top: .3rem; }

/* ------------------------------------------------------------ 步骤 / 代码 */

.ct-step { display: flex; gap: 1rem; }
.ct-step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, var(--ct-brand), var(--ct-accent));
}
.ct-step h3 { font-size: 1.02rem; font-weight: 700; margin: .35rem 0 .4rem; }
.ct-step p { color: var(--ct-ink-soft); font-size: .93rem; margin: 0; }

.ct-pre {
  background: var(--ct-deep); color: #e2e8f0; border-radius: 12px;
  padding: 1rem 1.15rem; font-size: .88rem; line-height: 1.7;
  overflow-x: auto; margin: 0;
}
.ct-pre .ct-cmt { color: #7dd3fc; }

/* ---------------------------------------------------------------- 提示条 */

.ct-callout {
  border: 1px solid var(--ct-line); border-left: 3px solid var(--ct-brand);
  background: var(--ct-bg); border-radius: 10px; padding: 1rem 1.2rem;
  font-size: .93rem; color: var(--ct-ink-soft);
}
.ct-callout strong { color: var(--ct-ink); }

/* ---------------------------------------------------------------- 下载卡 */

.ct-dl {
  border: 1px solid var(--ct-line); border-radius: var(--ct-radius);
  padding: 1.5rem; background: #fff; box-shadow: var(--ct-shadow);
}
.ct-dl-name { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; font-weight: 700; word-break: break-all; }
.ct-dl-meta { font-size: .85rem; color: var(--ct-ink-soft); }
.ct-hash {
  font-family: ui-monospace, Consolas, monospace; font-size: .78rem;
  color: var(--ct-ink-soft); word-break: break-all; background: var(--ct-bg);
  border-radius: 8px; padding: .5rem .7rem; margin-top: .6rem;
}

/* ---------------------------------------------------------------- 行动号召 */

.ct-cta { padding: 3.4rem 0; background: var(--ct-bg); }
.ct-cta-inner {
  border-radius: 18px; padding: 2.2rem;
  color: #fff; display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center; justify-content: space-between;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(6, 182, 212, .34), transparent 62%),
    linear-gradient(140deg, var(--ct-deep) 0%, var(--ct-deep-2) 78%);
}
.ct-cta-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 .5rem; }
.ct-cta-lead { color: rgba(255, 255, 255, .78); font-size: .95rem; max-width: 34rem; }
.ct-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------------------------------------------------------------- 页脚 */

.ct-footer { background: var(--ct-deep); color: rgba(255, 255, 255, .72); padding: 3rem 0 1.6rem; }
.ct-footer-brand { font-size: 1.1rem; font-weight: 800; color: #fff; }
.ct-footer-intro { font-size: .9rem; line-height: 1.75; max-width: 34rem; }
.ct-footer-meta { font-size: .88rem; }
.ct-footer-title { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: .9rem; }
.ct-footer-links { list-style: none; padding: 0; margin: 0; }
.ct-footer-links li { margin-bottom: .55rem; }
.ct-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .92rem; }
.ct-footer a:hover { color: #fff; text-decoration: underline; }
.ct-footer-hr { border-color: rgba(255, 255, 255, .12); margin: 2.2rem 0 1.2rem; }
.ct-footer-bottom { font-size: .86rem; color: rgba(255, 255, 255, .55); }

/* -------------------------------------------------------------- 更新日志 */

.ct-release-list { display: flex; flex-direction: column; gap: 1.1rem; }
.ct-release {
  border: 1px solid var(--ct-line); border-left: 3px solid var(--ct-brand);
  border-radius: var(--ct-radius); background: #fff;
  padding: 1.4rem 1.5rem; box-shadow: var(--ct-shadow);
}
.ct-release-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-bottom: .5rem;
}
.ct-release-ver {
  font-family: ui-monospace, Consolas, monospace; font-weight: 800;
  font-size: 1.05rem; color: var(--ct-brand-dark);
}
.ct-release-latest {
  background: rgba(37, 99, 235, .1); color: var(--ct-brand-dark);
  border-color: rgba(37, 99, 235, .22);
}
.ct-release-date { font-size: .84rem; color: var(--ct-ink-soft); }
.ct-release-title {
  font-weight: 600; color: var(--ct-ink); margin: 0 0 .7rem;
}
.ct-release-items { margin: 0; padding-left: 1.1rem; color: var(--ct-ink-soft); }
.ct-release-items li { margin-bottom: .4rem; line-height: 1.75; }
.ct-release-items li:last-child { margin-bottom: 0; }

/* ==========================================================================
   公告条 / 导航补充
   ========================================================================== */

.ct-announce {
  background: linear-gradient(90deg, #1d4ed8, #0891b2);
  color: #fff;
  font-size: .88rem;
  padding: .5rem 0;
}
.ct-announce .container { display: flex; align-items: center; gap: .55rem; }
.ct-announce a { color: #fff; text-decoration: underline; }
.ct-announce-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7dd3fc; box-shadow: 0 0 0 4px rgba(125, 211, 252, .22); flex: none;
}

.ct-nav-quiet {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: .92rem;
  padding: .35rem .6rem;
  border-radius: 8px;
}
.ct-nav-quiet:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ==========================================================================
   资讯：卡片 / 列表 / 侧栏 / 正文
   ========================================================================== */

.ct-badge-soft {
  background: rgba(37, 99, 235, .1);
  color: var(--ct-brand-dark);
  border-color: rgba(37, 99, 235, .2);
}
.ct-badge-hot {
  background: rgba(6, 182, 212, .14);
  color: #0e7490;
  border-color: rgba(6, 182, 212, .28);
}

.ct-news-card {
  background: #fff;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ct-news-card:hover { transform: translateY(-3px); box-shadow: var(--ct-shadow-lg); border-color: #cbd5e1; }
.ct-news-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.55; margin: .85rem 0 .55rem; }
.ct-news-card h3 a { color: var(--ct-ink); text-decoration: none; }
.ct-news-card h3 a:hover { color: var(--ct-brand-dark); }
.ct-news-card p { color: var(--ct-ink-soft); font-size: .92rem; margin: 0; }

.ct-news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ct-news-date { font-size: .82rem; color: var(--ct-ink-soft); }

.ct-news-list { display: flex; flex-direction: column; gap: 1.1rem; }
.ct-news-item {
  background: #fff;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  padding: 1.5rem 1.6rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ct-news-item:hover { border-color: #cbd5e1; box-shadow: var(--ct-shadow); }
.ct-news-title { font-size: 1.15rem; font-weight: 700; margin: .8rem 0 .6rem; line-height: 1.5; }
.ct-news-title a { color: var(--ct-ink); text-decoration: none; }
.ct-news-title a:hover { color: var(--ct-brand-dark); }
.ct-news-summary { color: var(--ct-ink-soft); font-size: .94rem; margin-bottom: .8rem; }
.ct-news-more { font-size: .9rem; font-weight: 600; text-decoration: none; }

.ct-side-list { list-style: none; padding: 0; margin: .9rem 0 0; }
.ct-side-list li { border-bottom: 1px dashed var(--ct-line); }
.ct-side-list li:last-child { border-bottom: 0; }
.ct-side-list a, .ct-side-list li > span {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  padding: .55rem 0; font-size: .93rem; text-decoration: none; color: var(--ct-ink);
}
.ct-side-list a:hover { color: var(--ct-brand-dark); }
.ct-side-list a.on { color: var(--ct-brand-dark); font-weight: 700; }
.ct-side-list a span, .ct-side-list li > span span { color: var(--ct-ink-soft); font-size: .82rem; flex: none; }
.ct-side-list li > span { display: block; padding: .55rem 0; }

.ct-pager { margin-top: 1.6rem; }
.ct-pager .page-link { color: var(--ct-ink-soft); border-color: var(--ct-line); }
.ct-pager .page-item.active .page-link { background: var(--ct-brand); border-color: var(--ct-brand); }

/* 正文排版（后台用 Markdown 简写写，前台在这里成型） */
.ct-article-lead {
  font-size: 1.02rem; color: var(--ct-ink-soft);
  border-left: 3px solid var(--ct-brand); padding-left: 1rem; margin-bottom: 1.6rem;
}
.ct-body { font-size: 1rem; line-height: 1.95; color: #334155; }
.ct-body > p { margin: 0 0 1.1rem; }
.ct-body-h { font-size: 1.12rem; font-weight: 700; color: var(--ct-ink); margin: 1.8rem 0 .8rem; }
.ct-body-list { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.ct-body-list li { margin-bottom: .5rem; }
.ct-body-list-num { list-style: decimal; }
.ct-body-quote {
  border-left: 3px solid var(--ct-accent); background: var(--ct-bg);
  padding: .9rem 1.1rem; margin: 0 0 1.2rem; border-radius: 0 10px 10px 0;
  color: var(--ct-ink-soft); font-size: .96rem;
}
.ct-body code {
  background: #eef2ff; color: #3730a3; padding: .12rem .38rem;
  border-radius: 5px; font-size: .9em;
}
.ct-body .ct-table { margin-bottom: 1.2rem; }

/* ==========================================================================
   表单 / 提示条
   ========================================================================== */

.ct-form {
  background: #fff; border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius); padding: 1.7rem 1.8rem;
}
.ct-form .form-label { font-weight: 600; font-size: .92rem; }
.ct-form .form-control, .ct-form .form-select { border-color: var(--ct-line); padding: .6rem .8rem; }
.ct-form .form-control:focus, .ct-form .form-select:focus {
  border-color: var(--ct-brand); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .14);
}
.ct-req { color: #dc2626; }
.ct-form-note { font-size: .84rem; color: var(--ct-ink-soft); margin-top: .9rem; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-callout-ok { background: rgba(5, 150, 105, .08); border-color: rgba(5, 150, 105, .3); }
.ct-callout-err { background: rgba(220, 38, 38, .06); border-color: rgba(220, 38, 38, .3); }

/* ------------------------------------------------------------ 响应式微调 */

@media (min-width: 768px) {
  .ct-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .ct-navbar .navbar-collapse {
    background: rgba(11, 18, 32, .98);
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
    padding: .8rem; margin-top: .6rem;
  }
  .ct-hero { padding: 3.2rem 0 2.8rem; }
  .ct-section { padding: 3rem 0; }
  .ct-cta-inner { padding: 1.6rem; }
}

@media (max-width: 575.98px) {
  .ct-hero { padding: 2.6rem 0 2.2rem; }
  .ct-section { padding: 2.4rem 0; }
  .ct-hero .ct-hero-actions .btn { width: 100%; justify-content: center; }
  .ct-cta-actions { width: 100%; }
  .ct-cta-actions .btn { width: 100%; justify-content: center; }
  .ct-table th, .ct-table td { padding: .7rem .75rem; font-size: .9rem; }

  /* Bootstrap 的 g-5 行间距是 3rem，行负边距就有 24px，
     而 .container 的内边距只有 1.5rem 的一半（12px）。容器一旦占满视口宽度
     （<576px 就是这样），行会左右各顶出 12px，整页多出横向滚动条。
     手机上收到 g-4 的间距：12px 刚好等于容器内边距，不再溢出。 */
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
}
