/* ==========================================================================
   小月创意工坊 · 前台样式
   ========================================================================== */
:root {
  --brand: #1668e3;
  --brand-dark: #0f4fb3;
  --brand-2: #0fa3a3;
  --accent: #ff8a3d;
  --ink: #0f1b2d;
  --ink-2: #2b3a4f;
  --muted: #64748b;
  --bg: #f5f8fc;
  --card: #ffffff;
  --line: #e2eaf3;
  --shadow: 0 8px 28px rgba(17, 46, 90, .08);
  --shadow-lg: 0 20px 60px rgba(17, 46, 90, .14);
  --radius: 16px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.7 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button { font-family: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.3; }
p { margin: 0 0 12px; }
.container { width: min(100% - 40px, var(--container)); margin: 0 auto; }
.narrow { width: min(100% - 40px, 900px); }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
  white-space: nowrap; line-height: 1.4;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(22, 104, 227, .28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-second { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-second:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 13px 28px; font-size: 15.5px; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ---------------------------------------------------------------- 顶部 */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226,234,243,.9);
}
.head-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.brand.light .brand-name { color: #fff; }
.brand-mark {
  width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 4px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(22,104,227,.28);
}
.brand-mark i { background: #fff; border-radius: 3px; }
.brand-mark i:last-child { background: #8ef0dd; }

.nav-panel { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 3px; padding: 8px 8px;
  color: var(--ink-2); font-size: 14px; font-weight: 500; background: none; border: 0;
  cursor: pointer; border-radius: 8px; white-space: nowrap;
}
.nav-a:hover, .sub-toggle:hover, .nav-item.open .sub-toggle { color: var(--brand); background: #eef4ff; }
.caret { font-size: 11px; color: #93a4b8; transition: transform .2s; }
.nav-item.open .caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 224px; padding: 8px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: none; z-index: 70; max-height: 66vh; overflow: auto;
}
.nav-item.open .sub-menu { display: block; animation: drop .16s ease-out both; }
@keyframes drop { from { opacity: 0; transform: translateX(-50%) translateY(0); } to { opacity: 1; transform: translateX(-50%) translateY(6px); } }
.sub-menu a {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; white-space: nowrap;
}
.sub-menu a:hover { background: #f2f7ff; color: var(--brand); }
.sub-menu .mi { width: 18px; display: inline-block; text-align: center; }

.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.head-link { font-size: 13.5px; color: var(--muted); padding: 6px 8px; }
.head-link:hover { color: var(--brand); }
.head-btn {
  padding: 7px 15px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 13.5px; font-weight: 600;
}
.head-btn:hover { background: var(--brand-dark); color: #fff; }
.nav-burger {
  display: none; width: 38px; height: 34px; margin-left: auto; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; padding: 6px 8px; cursor: pointer;
}
.nav-burger span { display: block; width: 100%; height: 2px; margin: 4px 0; background: #0f1b2d; border-radius: 2px; transition: .2s; }

.notice-bar { background: linear-gradient(90deg, #eef6ff, #effcf9); border-top: 1px solid #e6f1fb; }
.notice-inner { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; color: #2b5a86; }
.notice-ico { flex: none; }
.notice-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-close { border: 0; background: none; color: #7d9ab5; font-size: 18px; cursor: pointer; line-height: 1; padding: 0 4px; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; padding: 70px 0 64px; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 15% 0%, rgba(63, 176, 255, .32), transparent 60%),
    radial-gradient(800px 420px at 88% 12%, rgba(45, 212, 178, .28), transparent 62%),
    linear-gradient(135deg, #0a1f3d 0%, #103b6e 42%, #1456b8 76%, #0e8f96 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 78%);
}
.hero-inner { position: relative; text-align: center; }
.hero-title { font-size: clamp(28px, 4.4vw, 46px); color: #fff; margin: 0 0 14px; letter-spacing: .5px; }
.hero-sub { font-size: clamp(16px, 2vw, 21px); font-weight: 600; color: #d8ecff; margin-bottom: 14px; }
.hero-text { max-width: 760px; margin: 0 auto 26px; color: rgba(226, 242, 255, .82); font-size: 14.5px; line-height: 1.9; }
.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 76px); margin: 6px 0 28px; }
.stat b { display: block; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; color: #fff; letter-spacing: .5px; }
.stat span { font-size: 13px; color: rgba(214, 236, 255, .78); }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-hint { margin: 18px 0 0; font-size: 12.5px; color: rgba(200, 226, 250, .72); }

/* 快捷分类 */
.quick-cats { background: #fff; border-bottom: 1px solid var(--line); }
.quick-inner { display: flex; align-items: center; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.quick-inner::-webkit-scrollbar { display: none; }
.quick-label { flex: none; font-size: 13px; color: var(--muted); margin-right: 4px; }
.quick-chip {
  flex: none; padding: 6px 13px; border-radius: 999px; background: #f2f7fd;
  color: #355273; font-size: 13px; border: 1px solid #e6eff9;
}
.quick-chip:hover { background: #e8f2ff; color: var(--brand); border-color: #cfe1fb; }

/* ---------------------------------------------------------------- 展示区 */
.showcase { padding: 38px 0 6px; }
.showcase + .showcase { padding-top: 22px; }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.showcase-head h2 { font-size: 25px; margin: 0 0 4px; }
.showcase-sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.showcase-more { flex: none; font-size: 13.5px; color: var(--brand); border: 1px solid #cfe1fb; background: #fff; padding: 6px 14px; border-radius: 999px; }
.showcase-more:hover { background: #eef5ff; }
.showcase-notice {
  margin: 10px 0 18px; padding: 10px 14px; border-radius: 10px;
  background: #fff8ec; border: 1px solid #ffe6c2; color: #8a5a13; font-size: 13px; line-height: 1.7;
}
.showcase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.showcase-grid.dense { grid-template-columns: repeat(10, 1fr); gap: 12px; }
.shot {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  background: #eef4fb; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.vip-tag {
  position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ff7a45, #ff4d4f); color: #fff; font-size: 11px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,77,79,.35);
}
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px;
  font-size: 11.5px; color: #fff; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(6, 24, 46, .72));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dense .shot-cap { font-size: 10.5px; padding: 16px 6px 6px; }
.dense .vip-tag { font-size: 9px; padding: 1px 5px; top: 5px; right: 5px; }

/* ---------------------------------------------------------------- 核心功能 */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.sec-head h2 { font-size: 26px; margin: 0 0 8px; }
.sec-head p { color: var(--muted); font-size: 14px; margin: 0; }
.features { padding: 56px 0 48px; background: linear-gradient(180deg, #f9fbfe, #eef5fc); border-top: 1px solid #e8f0fa; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; display: flex; flex-direction: column;
  transition: .2s; position: relative; overflow: hidden;
}
.tool-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: 0; transition: .2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfe1fb; }
.tool-card:hover::before { opacity: 1; }
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tool-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: linear-gradient(135deg, #eaf3ff, #eafaf7);
}
.tool-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: #eef5ff; color: #2f6fbf; }
.tool-badge.vip { background: linear-gradient(135deg, #fff1e8, #ffe9e9); color: #d9480f; }
.tool-card h3 { font-size: 17px; margin: 0 0 8px; }
.tool-card p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-cta { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.tool-cta span { display: inline-block; transition: transform .2s; }
.tool-card:hover .tool-cta span { transform: translateX(4px); }

/* ---------------------------------------------------------------- FAQ */
.faq { padding: 54px 0 44px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: #9bb0c6; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { color: var(--brand); }
.faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

/* ---------------------------------------------------------------- 文章 */
.articles { padding: 12px 0 56px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; transition: .2s;
}
.article-card:hover { box-shadow: var(--shadow); border-color: #d7e6fb; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #8ba0b5; margin-bottom: 10px; flex-wrap: wrap; }
.article-tag { background: #edf5ff; color: #2f6fbf; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; }
.article-card h3 { font-size: 16.5px; margin: 0 0 8px; line-height: 1.5; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--brand); }
.article-card p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-more { margin-top: auto; font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- CTA / 页脚 */
.cta-band { background: linear-gradient(120deg, #0f4fb3, #0e8f96); color: #fff; padding: 40px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.cta-inner p { color: rgba(230,245,255,.82); margin: 0; font-size: 13.5px; }
.cta-actions { display: flex; gap: 12px; }

.site-foot { background: #0b1c30; color: #b9cadd; padding: 44px 0 0; }
.foot-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 13px; line-height: 1.8; color: #93a9c0; margin: 0 0 10px; max-width: 340px; }
.foot-note { color: #6f869d !important; font-size: 12px !important; }
.foot-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.foot-col a, .foot-col span { display: block; font-size: 13px; color: #93a9c0; margin-bottom: 9px; }
.foot-col a:hover { color: #7fd8ff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.foot-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #7d93aa; }
.filings { display: flex; gap: 14px; flex-wrap: wrap; }
.filings a { color: #7d93aa; }
.filings a:hover { color: #9fe1ff; }
.admin-entry { opacity: .6; }

.to-top {
  position: fixed; right: 20px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-lg);
  font-size: 18px; z-index: 40; border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 通用页面 */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #8ba0b5; padding: 18px 0 4px; }
.crumbs a { color: #64748b; }
.crumbs a:hover { color: var(--brand); }
.simple-page { padding: 28px 0 64px; max-width: 900px; }
.simple-page h1 { font-size: 26px; margin: 10px 0 18px; }
.simple-page .prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; font-size: 14px; line-height: 1.95; color: #3d4c60; }
.simple-page .prose h2 { font-size: 17px; margin: 22px 0 10px; }
.simple-page .prose h2:first-child { margin-top: 0; }
.simple-page .prose ul { padding-left: 20px; }
.simple-page .prose li { margin-bottom: 8px; }

/* 列表 / 搜索 */
.tools-page { padding: 10px 0 64px; }
.tools-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 10px 0 18px; }
.tools-head h1 { font-size: 26px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 14px; }
.tool-search { display: flex; gap: 8px; }
.tool-search input {
  width: min(360px, 62vw); padding: 10px 16px; border-radius: 999px; border: 1px solid #d7e4f2;
  background: #fff; font-size: 14px; outline: none;
}
.tool-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,104,227,.12); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.chip { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #45607c; font-size: 13px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:hover { border-color: #b8d4f8; color: var(--brand); }
.chip.on:hover { color: #fff; }
.search-tip { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.empty-box { background: #fff; border: 1px dashed #d5e3f2; border-radius: var(--radius); padding: 44px 20px; text-align: center; color: var(--muted); }

/* 教程列表 */
.tutorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.tutorial-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tutorial-card:hover { border-color: #cfe1fb; box-shadow: var(--shadow); }
.tutorial-card img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.tutorial-card b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.tutorial-card em { font-style: normal; font-size: 12px; color: var(--muted); }

/* 文章页 */
.article-page { padding: 10px 0 60px; max-width: 860px; }
.article-page h1 { font-size: 28px; line-height: 1.4; margin: 8px 0 10px; }
.article-page .meta { color: #8ba0b5; font-size: 12.5px; display: flex; gap: 12px; margin-bottom: 22px; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; font-size: 15px; line-height: 2.05; color: #33445a; }
.article-body p { margin: 0 0 16px; }
.article-body h3 { font-size: 17px; margin: 24px 0 10px; }
.article-body img { border-radius: 10px; margin: 12px 0; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pager a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: #45607c; }
.pager a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 会员价格 */
.pricing-page { padding: 20px 0 64px; }
.pricing-page h1 { font-size: 28px; margin: 0 0 8px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
.price-card.recommend { border-color: var(--brand); box-shadow: 0 18px 44px rgba(22,104,227,.16); transform: translateY(-4px); }
.rec-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.price-card h2 { font-size: 18px; margin: 0 0 6px; }
.price-val { font-size: 32px; font-weight: 800; color: var(--brand); margin: 6px 0 2px; }
.price-val small { font-size: 13px; color: var(--muted); font-weight: 400; }
.price-days { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.price-features { list-style: none; padding: 0; margin: 0 0 22px; font-size: 13.5px; color: #3d4c60; }
.price-features li { padding: 6px 0; border-bottom: 1px dashed #eef3f9; }
.price-features li::before { content: "✓"; color: var(--brand-2); font-weight: 700; margin-right: 8px; }
.price-card .btn { margin-top: auto; }

/* 登录 / 注册 / 会员中心 */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 0 64px; }
.auth-card { width: min(100% - 40px, 460px); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: #52657c; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #d9e5f2; border-radius: 10px;
  font-size: 14px; outline: none; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,104,227,.1); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert.err { background: #fff1f0; border: 1px solid #ffd4d1; color: #c0392b; }
.alert.ok { background: #eefbf4; border: 1px solid #c5efd8; color: #157347; }
.member-head { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 18px; }
.avatar { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.member-head h1 { margin: 0 0 4px; font-size: 20px; }
.member-head .badge { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: #fff4e8; color: #d9480f; }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.member-card h3 { font-size: 15px; margin: 0 0 8px; }
.member-card p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* 表单页（联系） */
.form-page { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.form-page .field textarea { min-height: 140px; resize: vertical; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  .nav-a, .sub-toggle { padding: 7px 7px; font-size: 13px; }
  .head-actions .head-link { display: none; }
  .head-btn { padding: 6px 12px; font-size: 12.5px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid.dense { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1024px) {
  .nav-burger { display: block; }
  .head-actions { margin-left: auto; }
  .nav-panel {
    position: fixed; inset: 66px 0 auto 0; background: #fff; padding: 10px 16px 20px;
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: .2s; max-height: calc(100vh - 66px); overflow: auto; z-index: 55;
  }
  .nav-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid #f1f6fb; }
  .nav-a, .sub-toggle { width: 100%; justify-content: space-between; padding: 12px 4px; font-size: 14px; border-radius: 0; }
  .sub-menu { position: static; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 0 8px 12px; display: none; }
  .nav-item.open .sub-menu { display: block; animation: none; }
  .showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .showcase-grid.dense { grid-template-columns: repeat(5, 1fr); }
  .article-grid, .pricing-grid, .tutorial-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-main { grid-template-columns: 1fr 1fr; }
  .price-card.recommend { transform: none; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 28px); }
  .head-inner { height: 60px; gap: 10px; }
  .brand-name { font-size: 16px; }
  .nav-panel { inset: 60px 0 auto 0; max-height: calc(100vh - 60px); }
  .hero { padding: 46px 0 42px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-text { font-size: 13.5px; }
  .showcase-head { align-items: flex-start; }
  .showcase-head h2 { font-size: 20px; }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .showcase-grid.dense { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .vip-tag { font-size: 9px; padding: 1px 5px; top: 5px; right: 5px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card { padding: 16px; }
  .article-grid, .pricing-grid, .tutorial-grid { grid-template-columns: 1fr; }
  .cta-inner { text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .foot-main { grid-template-columns: 1fr; gap: 22px; }
  .foot-bottom-inner { justify-content: center; text-align: center; }
  .tools-head { align-items: stretch; }
  .tool-search input { width: 100%; }
  .tool-search { width: 100%; }
  .tool-search .btn { flex: none; }
  .member-grid { grid-template-columns: 1fr; }
  .article-body { padding: 20px 18px; font-size: 14px; }
  .article-page h1 { font-size: 22px; }
  .notice-text { white-space: normal; }
}
@media (max-width: 480px) {
  .head-actions { display: flex; margin-left: auto; gap: 4px; }
  .head-actions .head-link { display: inline-flex; padding: 4px; font-size: 12px; }
  .head-actions .head-btn { padding: 5px 10px; font-size: 12px; white-space: nowrap; }
  .brand-name { font-size: 15px; }
  .hero-title { font-size: 24px; }
  .hero-actions .btn { width: 100%; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid.dense { grid-template-columns: repeat(3, 1fr); }
  .dense .shot-cap { display: none; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11.5px; }
  .to-top { display: none; }
}

/* ---------------------------------------------------------------- 补充：表单两列 / 教程分类 / 文章翻页 */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-page .field { margin-bottom: 14px; }
.form-page .field label { display: block; font-size: 12.5px; color: #52657c; margin-bottom: 5px; }
.form-page .field input, .form-page .field select, .form-page .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #d9e5f2; border-radius: 10px;
  font: inherit; font-size: 14px; background: #fff; outline: none;
}
.form-page .field input:focus, .form-page .field textarea:focus, .form-page .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,104,227,.1);
}
.tutorial-cat { font-size: 19px; margin: 26px 0 12px; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 13px; }
.article-nav a { max-width: 46%; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }

/* ================= 首页 5 组工具分区（v1.0.8） ================= */
.features.grouped{padding:26px 0 56px}
.tool-group{margin-top:34px;scroll-margin-top:90px}
.tool-group:first-of-type{margin-top:10px}
.group-head{display:flex;align-items:center;gap:14px;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 20px rgba(17,46,90,.05);margin-bottom:16px}
.group-ico{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;font-size:21px;background:linear-gradient(135deg,#eaf3ff,#e7fbf8)}
.group-head h3{margin:0;font-size:17.5px;color:var(--ink);display:flex;align-items:center;gap:8px}
.group-head h3 small{font-size:11.5px;font-weight:500;color:#6b7f95;background:#f1f6fc;border-radius:99px;padding:2px 8px}
.group-head p{margin:3px 0 0;font-size:12.5px;color:var(--muted)}
.group-more{margin-left:auto;font-size:12.5px;color:var(--brand);white-space:nowrap;font-weight:600}
.tool-group .feature-grid{margin-top:0}

@media (max-width:768px){
  .hero{padding:34px 0 30px}
  .hero-title{font-size:26px;line-height:1.32}
  .hero-sub{font-size:14px;margin-top:8px}
  .hero-text{font-size:13px;line-height:1.8;margin-top:8px}
  .hero-stats{grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
  .hero-stats .stat b{font-size:24px}
  .hero-stats .stat span{font-size:11.5px}
  .hero-actions{gap:10px;margin-top:20px}
  .hero-actions .btn{flex:1 1 46%;padding:12px 14px;font-size:13.5px}
  .hero-hint{font-size:11.5px}
  .quick-cats{padding:10px 0}
  .quick-inner{gap:8px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .quick-label{flex:0 0 auto;font-size:11.5px}
  .quick-chip{flex:0 0 auto;font-size:12px;padding:6px 12px}
  .features.grouped{padding:18px 0 40px}
  .group-head{gap:10px;padding:12px 14px;border-radius:13px}
  .group-ico{width:36px;height:36px;flex-basis:36px;font-size:18px}
  .group-head h3{font-size:15.5px}
  .group-head p{font-size:11.5px;line-height:1.55}
  .group-more{font-size:11.5px;padding:4px 0}
  .tool-group{margin-top:24px;scroll-margin-top:76px}
  .tool-group .feature-grid{grid-template-columns:1fr 1fr;gap:10px}
  .tool-card{padding:14px 14px 12px}
  .tool-card h3{font-size:14.5px}
  .tool-card p{font-size:12px}
}

@media (max-width:480px){
  .hero-title{font-size:23px}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%}
  .group-head{flex-wrap:wrap}
  .group-more{margin-left:46px}
  .tool-group .feature-grid{grid-template-columns:1fr}
  .tool-card{flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
  .tool-card .tool-top{flex:0 0 auto;margin:0}
  .tool-card h3{margin:0;flex:1 1 auto}
  .tool-card p{display:none}
  .tool-card .tool-cta{flex:0 0 auto;margin:0;font-size:12px}
}

/* ================= 首页广告轮播 + 公告（v1.0.9） ================= */
.ad-hero{padding:18px 0 6px;background:transparent}
.ad-carousel{position:relative;border-radius:18px;overflow:hidden;box-shadow:0 14px 40px rgba(17,46,90,.13);background:#0f2a4a}
.ad-track{display:flex;transition:transform .5s cubic-bezier(.22,.61,.36,1);will-change:transform}
.ad-slide{flex:0 0 100%;display:block;position:relative;aspect-ratio:1200/420;overflow:hidden}
.ad-slide img{width:100%;height:100%;object-fit:cover;display:block}
.ad-text{display:flex;flex-direction:column;justify-content:center;height:100%;padding:0 8%;background:linear-gradient(120deg,#0f3a6e,#0fa3a3);color:#fff}
.ad-text b{font-size:clamp(20px,3.4vw,34px)}
.ad-text i{font-style:normal;margin-top:8px;font-size:clamp(12px,1.6vw,16px);opacity:.9}
.ad-nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;border:0;background:rgba(10,25,45,.42);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center;backdrop-filter:blur(4px)}
.ad-nav.prev{left:12px}.ad-nav.next{right:12px}
.ad-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:6px}
.ad-dots button{width:7px;height:7px;padding:0;border-radius:99px;border:0;background:rgba(255,255,255,.45);cursor:pointer;transition:.25s}
.ad-dots button.on{width:18px;background:#fff}
.notice-bar{background:#f0f7ff;border-bottom:1px solid #dbeaf9}
.notice-inner{display:flex;align-items:center;gap:8px;min-height:42px;font-size:12.5px;color:#2c5c8f}
.notice-text{flex:1;line-height:1.6}
.notice-close{border:0;background:none;color:#7d95ad;font-size:18px;cursor:pointer;padding:0 4px}
@media(max-width:768px){
  .ad-hero{padding:10px 0 2px}
  .ad-carousel{border-radius:14px}
  .ad-nav{display:none}
  .ad-dots{bottom:7px;gap:5px}
  .notice-inner{font-size:12px;padding:6px 0}
}

.nav-auth{display:none}
@media(max-width:1024px){
  .nav-auth{display:flex;gap:10px;padding:16px 4px 4px;margin-top:8px;border-top:1px solid #eef4fb}
  .nav-auth .btn{flex:1;text-align:center;padding:10px 12px;font-size:13.5px}
}
@media(max-width:480px){.brand-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
