/* QQ个性签名网 (www.qqhao8.com) - Modern Local Stylesheet */
:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-soft: #f0f6fc;
  --border: #e3ecf5;
  --border-strong: #cddceb;
  --ink: #0f2942;
  --ink-2: #3b536b;
  --ink-3: #6b8096;
  --brand: #1684d6;
  --brand-dark: #1169ad;
  --brand-soft: #e9f5ff;
  --teal: #0d9488;
  --amber: #d97706;
  --rose: #e11d48;
  --violet: #7c3aed;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(15, 41, 66, 0.06);
  --shadow-hover: 0 12px 30px rgba(22, 132, 214, 0.12);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  width: 230px;
  flex-shrink: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.header-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 132, 214, 0.12);
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}

.header-search button {
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search button:hover {
  background: var(--brand-dark);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 14px 0 18px;
  box-shadow: 0 12px 24px rgba(15, 41, 66, 0.08);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
}

.mobile-search button {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav-item {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

.mobile-nav-item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Announcement Banner */
.announce-bar {
  background: linear-gradient(90deg, #e7f4ff 0%, #f1f8ff 50%, #eaf6ff 100%);
  border-bottom: 1px solid #d5e9fb;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.announce-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.announce-tag {
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.announce-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-cta:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 132, 214, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-ghost {
  background: var(--surface-soft);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: #e1effb;
  color: var(--ink);
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 8px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
}

.btn-chip:hover {
  background: var(--brand-dark);
}

.btn-chip.is-copied {
  background: #10b981;
}

.btn-chip-soft {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.btn-chip-soft:hover {
  background: #dceefb;
}

/* Hero */
.hero-section {
  background: radial-gradient(circle at 12% 18%, rgba(24, 160, 232, 0.12), transparent 44%),
              radial-gradient(circle at 88% 20%, rgba(23, 105, 176, 0.09), transparent 40%),
              #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 46px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-copy, .hero-preview-panel {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-accent {
  color: var(--brand);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 560px;
}

.hero-search-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-bottom: 14px;
}

.hero-search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.hero-search-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 132, 214, 0.14);
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
}

.hot-tags-label {
  color: var(--ink-3);
}

.hot-tags a {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-2);
  transition: all 0.16s ease;
}

.hot-tags a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.hot-tags-center {
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Preview Widget & Mockup Cards */
.hero-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.widget-tabs {
  display: flex;
  gap: 4px;
  background: #e9f1f9;
  padding: 3px;
  border-radius: 10px;
}

.widget-tab {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 8px;
  cursor: pointer;
}

.widget-tab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 6px rgba(15, 41, 66, 0.08);
}

.widget-shuffle {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.widget-shuffle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.mockup-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.mockup-card.mockup-qq {
  border-top: 4px solid #1684d6;
}

.mockup-card.mockup-wechat {
  border-top: 4px solid #07c160;
}

.mockup-card.mockup-douyin {
  background: #161823;
  color: #f8fafc;
  border-color: #2a2d3d;
  border-top: 4px solid #fe2c55;
}

.mockup-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mockup-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18a0e8, #1769b0);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-wechat .mockup-avatar {
  border-radius: 10px;
  background: linear-gradient(135deg, #07c160, #059669);
}

.mockup-douyin .mockup-avatar {
  background: linear-gradient(135deg, #fe2c55, #25f4ee);
}

.mockup-name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-lv {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.mockup-wechat .mockup-lv {
  background: #e6f9ef;
  color: #059669;
}

.mockup-douyin .mockup-lv {
  background: rgba(254, 44, 85, 0.2);
  color: #ff6b8a;
}

.mockup-meta {
  font-size: 12px;
  color: var(--ink-3);
}

.mockup-douyin .mockup-meta {
  color: #94a3b8;
}

.mockup-sig-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.mockup-douyin .mockup-sig-box {
  background: rgba(255, 255, 255, 0.06);
}

.mockup-sig-label {
  display: inline-block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.mockup-douyin .mockup-sig-label {
  color: #94a3b8;
}

.mockup-sig-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
}

.mockup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.mockup-douyin .mockup-foot {
  color: #94a3b8;
}

.mockup-inline-btns {
  display: flex;
  gap: 6px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 17px;
  color: var(--brand-dark);
}

.hero-stat span {
  font-size: 12px;
  color: var(--ink-3);
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
}

.section-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.section-more:hover {
  text-decoration: underline;
}

.section-center-cta {
  text-align: center;
  margin-top: 28px;
}

.platform-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-link {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--brand-dark);
  transition: background 0.16s ease;
}

.pill-link:hover {
  background: var(--brand);
  color: #fff;
}

/* Category Cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #b7d7f3;
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cat-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand);
}

.accent-sky .cat-dot { background: #0284c7; }
.accent-teal .cat-dot { background: #0d9488; }
.accent-amber .cat-dot { background: #d97706; }
.accent-indigo .cat-dot { background: #4f46e5; }
.accent-rose .cat-dot { background: #e11d48; }
.accent-violet .cat-dot { background: #7c3aed; }
.accent-slate .cat-dot { background: #475569; }
.accent-coral .cat-dot { background: #ea580c; }

.cat-count {
  font-size: 12px;
  color: var(--ink-3);
  background: var(--bg);
  padding: 2px 9px;
  border-radius: 999px;
}

.cat-name {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}

.cat-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* Signature Cards */
.sig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sig-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-width: 0;
}

.section-alt .sig-card {
  background: #fbfdff;
}

.sig-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #b7d7f3;
}

.sig-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-qq { background: #e6f4ff; color: #0b69b5; }
.badge-wechat { background: #e8faf0; color: #058a4b; }
.badge-douyin { background: #fff0f3; color: #d61f47; }
.badge-all { background: #f1f5f9; color: #334155; }

.sig-cat-link {
  font-size: 12.5px;
  color: var(--ink-3);
}

.sig-cat-link:hover {
  color: var(--brand);
}

.sig-text {
  margin: 0 0 10px;
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.sig-text a:hover {
  color: var(--brand);
}

.sig-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

.sig-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}

.sig-actions {
  display: flex;
  gap: 6px;
}

.sig-meta {
  font-size: 12px;
  color: var(--ink-3);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(120deg, #0f2942 0%, #155387 60%, #188ad8 100%);
  color: #fff;
  border-radius: 18px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 14px 32px rgba(15, 41, 66, 0.18);
}

.promo-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
}

.promo-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.35;
}

.promo-copy p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
}

.promo-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.promo-banner .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.promo-banner .btn-primary:hover {
  background: #eaf5ff;
}

.promo-banner .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.promo-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Articles Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.article-cover {
  padding: 20px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
}

.cover-ocean  { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); }
.cover-sky    { background: linear-gradient(135deg, #0284c7, #0f2942); }
.cover-teal   { background: linear-gradient(135deg, #0d9488, #0f766e); }
.cover-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cover-indigo { background: linear-gradient(135deg, #4f46e5, #3730a3); }
.cover-rose   { background: linear-gradient(135deg, #f43f5e, #be123c); }
.cover-violet { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.cover-slate  { background: linear-gradient(135deg, #334155, #0f172a); }
.cover-coral  { background: linear-gradient(135deg, #fb7185, #ea580c); }

.cover-platform {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.cover-cat {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 8px;
}

.cover-title {
  font-size: 17px;
  line-height: 1.4;
  margin-top: 4px;
}

.article-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.45;
}

.article-title a:hover {
  color: var(--brand);
}

.article-summary {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  flex: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Platform Guide Cards */
.platform-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.guide-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.guide-card code {
  background: var(--surface-soft);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--brand-dark);
}

/* Page Banner & Breadcrumb */
.page-banner {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.page-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.32;
}

.page-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 760px;
}

.platform-tips-box {
  margin-top: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.tips-limit {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.tips-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.tips-list li + li {
  margin-top: 4px;
}

/* Filter Bar */
.filter-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.filter-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding-top: 5px;
  flex-shrink: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-chip.is-active {
  background: var(--brand);
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  color: var(--ink-2);
}

.page-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.page-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.page-ellipsis {
  padding: 0 6px;
  color: var(--ink-3);
}

/* Detail Pages (Signature & Article) */
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 10px;
}

.detail-meta-link {
  color: var(--brand);
  font-weight: 500;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.detail-main, .detail-side, .article-content-card {
  min-width: 0;
}

.detail-hero-card, .variants-card, .side-card, .article-content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.variants-card {
  margin-top: 20px;
}

.detail-quote {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink);
  padding: 20px;
  background: var(--bg);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  word-break: break-word;
}

.detail-analysis {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-2);
}

.detail-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-3);
}

.tag-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.variants-card h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.variant-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
}

.variant-info {
  min-width: 0;
}

.variant-label {
  display: inline-block;
  font-size: 11.5px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 1px 7px;
  border-radius: 5px;
  margin-bottom: 4px;
}

.variant-text {
  display: block;
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}

.side-card + .side-card {
  margin-top: 18px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 16.5px;
}

.side-card-highlight {
  background: linear-gradient(160deg, #f0f8ff, #ffffff);
  border-color: #c7e2fb;
}

.side-card-highlight p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.compat-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.compat-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}

.compat-list li:last-child {
  border-bottom: none;
}

.ok { color: #059669; }
.warn { color: #d97706; }

.side-cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-cat-links a {
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-2);
}

.side-cat-links a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.side-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-article-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.side-article-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-article-list a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.side-article-list a:hover {
  color: var(--brand);
}

.side-article-list span {
  font-size: 12px;
  color: var(--ink-3);
}

/* Article Prose */
.article-lead-box {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--surface-soft);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.article-prose h2 {
  margin: 26px 0 12px;
  font-size: 19px;
  color: var(--ink);
}

.article-prose p {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.inline-sig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 10px;
  background: #f8fbff;
  border: 1px solid #dfeefb;
  border-left: 3px solid var(--brand);
  border-radius: 10px;
}

.inline-sig-text {
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 500;
  color: var(--ink) !important;
  word-break: break-word;
}

.inline-sig-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.article-footer-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.art-nav-link {
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.art-nav-link:hover {
  border-color: var(--brand);
}

.art-nav-next {
  text-align: right;
}

.art-nav-dir {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.art-nav-link strong {
  font-size: 14px;
  color: var(--ink);
}

/* Studio Page */
.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.studio-controls-card, .studio-preview-card, .studio-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.studio-list-card {
  margin-top: 20px;
}

.studio-controls-card h2, .studio-card-head h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.studio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.studio-card-head h2 {
  margin: 0;
}

.char-meter {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  white-space: nowrap;
}

.control-block {
  margin-bottom: 18px;
}

.control-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-pill {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.opt-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.opt-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.control-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.studio-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
}

.studio-input:focus {
  border-color: var(--brand);
}

.studio-submit-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.studio-result-item:hover {
  border-color: #b7d7f3;
}

.studio-result-item.is-selected {
  background: #eef7ff;
  border-color: var(--brand);
}

.studio-result-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  word-break: break-word;
}

.text-link {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}

/* Symbols Page */
.composer-card, .symbol-group-card, .about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.composer-head h2 {
  margin: 0;
  font-size: 18px;
}

.composer-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 12px;
  outline: none;
}

.composer-textarea:focus {
  border-color: var(--brand);
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.symbol-group-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.symbol-group-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.symbol-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.symbol-btn {
  min-width: 48px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.symbol-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.template-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.template-pre {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}

.template-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* About Table & Empty State */
.about-card h2 {
  margin: 22px 0 10px;
  font-size: 19px;
}

.about-card h2:first-child {
  margin-top: 0;
}

.about-card p {
  margin: 0 0 12px;
  color: var(--ink-2);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0 18px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14px;
}

.info-table th, .info-table td {
  padding: 11px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.info-table th {
  background: var(--surface-soft);
  color: var(--ink);
}

.empty-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 46px 24px;
  text-align: center;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.notfound-code {
  font-size: 56px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}

.search-page-form {
  margin-top: 16px;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: #0f2942;
  color: #cbd5e1;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 20px 34px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-beian a {
  color: #cbd5e1;
}

.footer-beian a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Preview Modal */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.preview-modal[hidden] {
  display: none;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 41, 66, 0.56);
}

.preview-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 41, 66, 0.3);
}

.preview-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-dialog-head h3 {
  margin: 0;
  font-size: 17px;
}

.preview-close {
  border: none;
  background: var(--bg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink-2);
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.preview-tab {
  border: none;
  background: transparent;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.preview-tab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 6px rgba(15, 41, 66, 0.08);
}

.preview-stage {
  margin-bottom: 16px;
}

.preview-dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-dialog-actions .btn {
  flex: 1;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 200;
  background: #0f2942;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(15, 41, 66, 0.3);
  max-width: calc(100vw - 32px);
  text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header-search {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sig-grid, .article-grid, .platform-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout, .studio-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    height: 60px;
  }
  .site-logo {
    height: 36px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .announce-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero-section {
    padding: 28px 0 34px;
  }
  .hero-title {
    font-size: 27px;
  }
  .hero-lead {
    font-size: 14.5px;
  }
  .hero-search-form {
    flex-direction: column;
  }
  .hero-search-form button {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-widget {
    padding: 14px;
  }
  .hero-widget-head {
    flex-direction: column;
    align-items: stretch;
  }
  .widget-tabs {
    justify-content: space-between;
  }
  .widget-tab {
    flex: 1;
    padding: 6px 4px;
    font-size: 12px;
  }
  .section {
    padding: 32px 0;
  }
  .section-title {
    font-size: 21px;
  }
  .page-title {
    font-size: 22px;
  }
  .cat-grid, .sig-grid, .article-grid, .platform-guide-grid, .template-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
  }
  .promo-copy h2 {
    font-size: 20px;
  }
  .promo-actions {
    width: 100%;
  }
  .promo-actions .btn {
    flex: 1;
  }
  .inline-sig-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-footer-nav {
    grid-template-columns: 1fr;
  }
  .art-nav-next {
    text-align: left;
  }
  .detail-quote {
    font-size: 19px;
    padding: 14px;
  }
  .detail-hero-card, .variants-card, .side-card, .article-content-card, .studio-controls-card, .studio-preview-card, .studio-list-card, .composer-card, .symbol-group-card, .about-card {
    padding: 16px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
