/*
 Theme Name: default
 Description: 企业官网 · 浅色通透 / 信任感 / Hero + 解决方案切换
 Version: 1.0.0
 License: LicenseRef-AidoSaaS-CMS-Free
 License URI: https://www.aidosaas.com
 Market: free
 Price: 0
*/

:root {
  --brand-50: #eff5ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;   /* 企业蓝：白底对比 4.6:1 ✅ */
  --brand-700: #1d4ed8;
  --accent: #0ea5e9;
  --accent-soft: #e0f2fe;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e6e8ee;
  --text: #0f172a;
  --muted: #55617a;
  --muted-2: #94a3b8;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
  --shadow-lg: 0 24px 60px rgba(37,99,235,.16);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --readw: 760px;
  --header-h: 64px;
  --gap: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s ease; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.layout { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: start; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-600), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; box-shadow: var(--shadow-sm); }
.brand__name { letter-spacing: -.02em; }
.nav { display: none; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; position: relative; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--brand-700); background: var(--brand-50); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--text); transition: transform .15s ease, background .2s; }
.icon-btn:hover { background: var(--surface); border-color: var(--brand-200); transform: scale(1.05); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: grid; }
.search-toggle { display: grid; }
.searchbar { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 12px 0; }
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: 8px; }
.searchbar input[type=search] { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 999px; font: inherit; background: #fff; }
.searchbar input:focus { border-color: var(--brand-500); outline: none; box-shadow: 0 0 0 3px var(--brand-50); }
.drawer { display: none; border-top: 1px solid var(--border); background: #fff; padding: 8px 20px 16px; }
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 12px 8px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--surface-2); }
.drawer a:last-child { border-bottom: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand-200); background: var(--surface); transform: translateY(-2px); }

/* Hero */
.hero-corner { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero-corner h1 { font-size: clamp(34px, 5cqw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.hero-corner .lead { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; }
.hero-card .bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.hero-card .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--surface-2); font-size: 14px; }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .num { font-family: var(--mono); font-weight: 800; color: var(--brand-600); }
.hero-card .chip { background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* 客户 logo 条 */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted-2); font-weight: 800; font-size: 18px; }
.logo-strip span { opacity: .7; letter-spacing: .04em; }

/* 数据实力 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0; }
.stat { text-align: center; padding: 22px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .v { font-size: clamp(28px, 4cqw, 44px); font-weight: 900; color: var(--brand-600); line-height: 1; letter-spacing: -.02em; }
.stat .k { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* 文章卡片 */
.post-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); }
.kicker--accent { color: var(--accent); }
.card__title { font-size: 19px; margin: 0; line-height: 1.35; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--brand-700); }
.card__excerpt { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.card__meta { font-size: 13px; color: var(--muted-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* 区块标题 */
.section { margin: 40px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.section__title { font-size: 24px; margin: 0; }
.section__more { font-size: 14px; font-weight: 700; color: var(--muted); }
.section__more:hover { color: var(--brand-700); }

/* 能力网格 */
.feat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.feat .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.feat h3 { font-size: 18px; margin: 0 0 6px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }

/* 解决方案 tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { font-weight: 700; font-size: 14px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; }
.tab.is-active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* 侧栏 */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.widget__title { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.widget__title::before { content: ""; width: 5px; height: 16px; border-radius: 3px; background: var(--brand-600); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { color: var(--text); font-weight: 600; }
.cat-list a:hover { color: var(--brand-700); }
.cat-list .count { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; }
.tag-cloud { line-height: 2; }
.tag-cloud-item { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--brand-700); font-weight: 600; transition: transform .15s ease, background .2s; }
.tag-cloud-item:hover { background: var(--brand-50); transform: translateY(-2px); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { color: var(--text); font-weight: 600; font-size: 15px; }
.mini-list a:hover { color: var(--brand-700); }
.mini-list .t { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }

/* 单篇 */
.single { max-width: var(--readw); margin: 28px auto 0; }
.single__cat { margin-bottom: 12px; }
.single__title { font-size: 34px; margin: 0 0 14px; }
.single__meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.single__meta .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; }
.single__cover { border-radius: var(--radius); overflow: hidden; margin: 8px 0 26px; box-shadow: var(--shadow-md); }
.single__cover img { width: 100%; max-height: 460px; object-fit: cover; }
.prose { font-size: 17.5px; color: #1f2937; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--brand-500); background: var(--brand-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #334155; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: var(--radius-sm); overflow: auto; font-family: var(--mono); font-size: 14px; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-size: .9em; }
.prose pre code { background: none; padding: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tag-pill { background: var(--brand-50); color: var(--brand-700); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .15s ease, background .2s; }
.tag-pill:hover { background: var(--brand-100); transform: translateY(-2px); }
.related { margin: 40px auto 0; max-width: var(--maxw); }

.comments { max-width: var(--readw); margin: 40px auto 0; }
.comments__title { font-size: 20px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.comment__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; flex: none; }
.comment__author { font-weight: 700; }
.comment__body { color: #334155; }
.comment-form { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.comment-form textarea, .comment-form input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; margin-bottom: 10px; background: #fff; }
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--brand-500); outline: none; box-shadow: 0 0 0 3px var(--brand-50); }

.pagination { display: flex; gap: 10px; justify-content: center; margin: 36px 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; font-weight: 700; color: var(--text); background: #fff; transition: transform .15s ease, background .2s, border-color .2s; }
.pagination a:hover { background: var(--brand-50); border-color: var(--brand-200); transform: translateY(-2px); }
.pagination .current { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

.archive-head { max-width: var(--maxw); margin: 28px auto 8px; }
.archive-head h1 { font-size: 28px; margin: 0 0 6px; }
.archive-head .desc { color: var(--muted); }
.breadcrumb { font-size: 13px; color: var(--muted-2); margin: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.page-title { font-size: 30px; }

.not-found { max-width: 560px; margin: 64px auto; text-align: center; padding: 0 20px; }
.not-found h1 { font-size: 64px; margin: 0; color: var(--brand-600); }
.not-found p { color: var(--muted); }

.site-footer { margin-top: 56px; background: #0f172a; color: #cbd5e1; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 28px; padding: 44px 0; grid-template-columns: 1fr; }
.footer__col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { padding: 6px 0; font-size: 14px; }
.footer__brand { font-size: 15px; }
.footer__brand .brand__mark { background: linear-gradient(135deg, var(--brand-500), var(--accent)); }
.footer__bottom { border-top: 1px solid #1e293b; padding: 18px 0; font-size: 13px; color: #94a3b8; text-align: center; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--brand-600); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-700); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

.cta-band { background: linear-gradient(135deg, var(--brand-600), var(--accent)); color: #fff; border-radius: var(--radius); padding: 36px 30px; margin: 40px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.cta-band h3 { color: #fff; font-size: 24px; margin: 0; }
.cta-band .btn--ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.28); }

@media (min-width: 576px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .nav { display: flex; } .nav-toggle { display: none; } }
@media (min-width: 992px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } .sidebar { position: sticky; top: calc(var(--header-h) + 16px); } .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, 1fr); } .single__title { font-size: 27px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* === AidoSaaS 内容类型模板样式包（自动注入 · AIDO-TYPE-PACK） === */
:root{
  --at-accent: var(--primary, var(--brand-600, #4f46e5));
  --at-accent-2: var(--accent, var(--brand-500, #6366f1));
  --at-muted: var(--muted, var(--text-muted, #64748b));
  --at-border: var(--border, var(--line, #e6e8ee));
  --at-surface: var(--surface, var(--card, #ffffff));
  --at-bg: var(--bg, var(--background, #ffffff));
  --at-success: var(--success, #16a34a);
  --at-shadow: var(--shadow-lg, 0 12px 32px rgba(15,23,42,.10));
}
.kicker--cat{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.06em;
  color:var(--at-accent); background:color-mix(in srgb, var(--at-accent) 12%, transparent);
  padding:4px 10px; border-radius:999px;
}
.kicker--news{ color:var(--at-accent-2); background:color-mix(in srgb, var(--at-accent-2) 12%, transparent); }
.kicker--faq{ color:var(--at-success); background:color-mix(in srgb, var(--at-success) 14%, transparent); }
.product-tag{
  display:inline-block; margin-left:10px; font-size:14px; font-weight:800;
  color:var(--at-accent); background:color-mix(in srgb, var(--at-accent) 10%, transparent);
  padding:3px 10px; border-radius:999px;
}
.product-layout{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:36px; align-items:start; }
.product-aside{ position:sticky; top:90px; }
.buy-card{
  background:var(--at-surface); border:1px solid var(--at-border); border-radius:16px;
  padding:20px; box-shadow:var(--at-shadow);
}
.buy-card__price{ margin-bottom:14px; }
.buy-card__price .amount{ font-size:30px; font-weight:800; color:var(--at-accent); }
.buy-card__price .amount--free{ color:var(--at-success); }
.buy-card__meta{ list-style:none; margin:16px 0 0; padding:14px 0 0; border-top:1px solid var(--at-border); display:grid; gap:8px; }
.buy-card__meta li{ display:flex; justify-content:space-between; font-size:13px; color:var(--at-muted); }
.buy-card__meta li b{ color:var(--at-muted); font-weight:600; }
.btn--block{ display:flex; width:100%; justify-content:center; margin-top:10px; }
.faq-q{ display:flex; gap:12px; align-items:baseline; font-size:clamp(24px,3.4vw,34px); line-height:1.2; margin:0 0 14px; }
.faq-q__mark{ flex:none; width:38px; height:38px; border-radius:10px; display:grid; place-items:center; font-weight:800; color:#fff; background:var(--at-success); }
.faq-a{ margin-top:18px; }
.faq-list{ display:grid; gap:10px; }
.faq-link{ display:flex; align-items:center; gap:12px; padding:14px 16px; background:var(--at-surface); border:1px solid var(--at-border); border-radius:12px; text-decoration:none; color:inherit; transition:transform .15s, border-color .15s; }
.faq-link:hover{ transform:translateX(2px); border-color:var(--at-accent); }
.faq-link__mark{ flex:none; width:26px; height:26px; border-radius:8px; display:grid; place-items:center; font-weight:800; font-size:13px; color:var(--at-success); background:color-mix(in srgb, var(--at-success) 14%, transparent); }
.faq-link__title{ flex:1; font-weight:600; }
.faq-link__arrow{ color:var(--at-muted); }
.feed-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 8px; }
.feed-tab{ display:inline-flex; align-items:center; padding:8px 16px; border-radius:999px; border:1px solid var(--at-border); background:var(--at-surface); color:var(--at-muted); text-decoration:none; font-size:14px; font-weight:600; transition:all .15s; }
.feed-tab:hover{ border-color:var(--at-accent); color:var(--at-accent); }
.feed-tab--active{ background:var(--at-accent); border-color:var(--at-accent); color:#fff; }
@media (max-width: 880px){
  .product-layout{ grid-template-columns:1fr; }
  .product-aside{ position:static; }
}
/* === /AidoSaaS 内容类型模板样式包 === */
