/* ============================================================
   WindX 本地演示 · 樣式
   配色取自原站觀感:深藍主色 + 亮藍點綴 + 淺藍白背景
   ============================================================ */

:root {
  --navy: #253d57;
  --navy-deep: #1a2c40;
  --blue-700: #496f96;
  --blue-500: #7195cc;
  --blue: #02a7f0;
  --blue-soft: #e3f4fd;
  --bg: #f8fdff;
  --panel: #eef2fb;
  --line: #dce9ee;
  --ink: #253d57;
  --muted: #5a7089;
  --pink: #ec808d;
  --gold: #f3ce78;
  --mint: #9fe3c9;
  --green: #52c41a;
  --amber: #faad14;
  --red: #e35d6a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(37, 61, 87, 0.06), 0 2px 8px rgba(37, 61, 87, 0.06);
  --shadow-md: 0 6px 24px rgba(37, 61, 87, 0.12);
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--blue-700); text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; }

[hidden] { display: none !important; }

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 40px); }

/* ---------- 頂部提示條 ---------- */
.notice-bar {
  background: linear-gradient(90deg, var(--navy), var(--blue-700));
  color: #eaf4ff;
  text-align: center;
  font-size: 13px;
  padding: 7px 16px;
}
.notice-bar strong { color: #ffd97a; font-weight: 600; }

/* ---------- 頭部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 253, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand-mark { display: inline-flex; }
.brand-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-500);
  margin-left: 5px;
}
.brand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #bfe6fb;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .brand-badge { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--navy); background: var(--panel); }
.nav-link.is-active { color: var(--navy); background: var(--panel); }
.nav-link--tool {
  color: #fff;
  background: var(--navy);
  margin-left: 8px;
}
.nav-link--tool:hover { background: var(--navy-deep); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue-700);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.icon-btn:hover { border-color: var(--blue-500); color: var(--navy); transform: translateY(-1px); }
.lang-btn {
  width: auto;
  min-width: 44px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
}
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 136px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(37, 61, 87, 0.16);
}
.lang-menu.is-open { display: block; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover { background: #eef6fc; color: var(--blue-700); }
.lang-menu button.is-current { color: var(--blue-700); font-weight: 700; }
.lang-menu button.is-current::after { content: "\2713"; font-size: 12px; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.menu-btn span {
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(2, 167, 240, 0.14), transparent 65%),
    radial-gradient(560px 300px at -10% 110%, rgba(113, 149, 204, 0.16), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 84px;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(100deg, var(--navy) 30%, var(--blue-700) 75%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 56ch;
  color: var(--muted);
  font-size: 16.5px;
  margin: 18px 0 26px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 7px 7px 7px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(2, 167, 240, 0.12);
}
.hero-search-icon { color: var(--blue-500); flex: none; }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}
.hero-search input::placeholder { color: #9db1c4; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 20px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue) 0%, #22b8f5 100%);
  box-shadow: 0 4px 14px rgba(2, 167, 240, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(2, 167, 240, 0.42); }

.hero-stats {
  display: flex;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: 13px; color: var(--muted); }

/* Hero 右側插畫 */
.hero-art {
  position: relative;
  min-height: 380px;
}
.hero-card {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: floaty 7s ease-in-out infinite;
}
.hero-card img { width: 100%; }
.hero-card--a { width: 72%; left: 0; top: 6%; transform: rotate(-3deg); }
.hero-card--b { width: 64%; right: 0; bottom: 4%; transform: rotate(2.5deg); animation-delay: -3.5s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.hero-chip {
  position: absolute;
  z-index: 2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  border-radius: 10px;
  padding: 7px 14px;
  box-shadow: var(--shadow-md);
}
.hero-chip--pdf { top: 0; right: 12%; background: var(--navy); }
.hero-chip--psd { bottom: 12%; left: 6%; background: var(--blue); animation: floaty 6s ease-in-out infinite; animation-delay: -2s; }

/* ---------- 區塊通用 ---------- */
.section { padding: 76px 0; }
.section--tinted { background: linear-gradient(180deg, var(--panel), #f3f8ff); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
}
.section-sub { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-weight: 600;
  color: var(--blue-700);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.link-more:hover { color: var(--blue); border-color: var(--blue-500); transform: translateX(2px); }

/* ---------- 資源卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}
.card-cover { position: relative; overflow: hidden; background: #f3f0e9; }
.card-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; padding: 10px; transition: transform 0.35s ease; }
.card:hover .card-cover img { transform: scale(1.03); }
.badge {
  position: absolute;
  top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 7px;
  color: #fff;
}
.badge-pdf, .badge-jpg, .badge-psd, .badge-psb, .badge-docx { left: 10px; background: var(--navy); }
.badge-make { right: 10px; background: #1f9d61; }
.badge-demo { right: 10px; background: var(--amber); color: #5c3d00; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
  flex: 1;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 11px;
}
.chip-region { color: var(--blue-700); background: var(--blue-soft); border: 1px solid #c8e8fa; }
.chip-type { color: #1f7a58; background: #e9fbf3; border: 1px solid #bfead8; }

.card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-size: 13px;
  color: #8ba6bd;
}
.card-more { font-weight: 600; color: var(--blue-700); }
.card:hover .card-more { color: var(--blue); }

.empty-tip {
  text-align: center;
  color: var(--muted);
  padding: 40px 0 8px;
  font-size: 15px;
}

/* ---------- 資源與使用邊界 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--blue-700);
  background: var(--blue-soft);
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature--alert { border-color: #f3c9ce; background: linear-gradient(180deg, #fff, #fff7f8); }
.feature--alert .feature-icon { color: var(--red); background: #fdeef0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq[open] { border-color: var(--blue-500); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-700);
  transition: transform 0.2s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 頁腳 ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #b8c9da;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 34px;
  padding: 56px 0 40px;
}
.footer-brand p { margin: 14px 0 10px; font-size: 14px; max-width: 34ch; }
.brand--light { color: #fff; }
.brand--light .brand-text em { color: #7fb3e8; }
.footer-mail { color: #7fd2ff; font-size: 14px; }
.footer-mail:hover { text-decoration: underline; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #cfe0ef;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.social-row a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-2px); }

.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 6px;
}
.footer-col a { color: #b8c9da; font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: #7fd2ff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 22px;
  font-size: 13px;
  color: #8ba3ba;
}
.footer-bottom p { margin: 0; }
.back-top { color: #7fd2ff; font-size: 13px; white-space: nowrap; }
.back-top:hover { text-decoration: underline; }

/* ---------- 入場動畫 ---------- */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.55s ease, translate 0.55s ease;
}
.reveal.is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
  .hero-card, .hero-chip--psd { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 40px; }
  .hero-art { min-height: 300px; max-width: 480px; }
  .menu-btn { display: flex; }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 33px);
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 16px;
    margin: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 14px; }
  .nav-link--tool { margin: 6px 0 0; text-align: center; }

  .grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   多頁面擴展:頁面頭 / 篩選器 / 詳情 / 定價 / 博客 / 表單
   ============================================================ */

/* ---------- 頁面頭與麪包屑 ---------- */
.page-hero {
  background:
    radial-gradient(620px 260px at 90% -20%, rgba(2, 167, 240, 0.12), transparent 65%),
    linear-gradient(180deg, #f3f8ff, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 44px 0 38px;
}
.page-hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--navy); }
.page-hero-sub { color: var(--muted); margin: 12px 0 0; max-width: 72ch; }
.page-hero-sub strong { color: var(--navy); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 16px; color: #8ba6bd; }
.crumbs a { color: var(--blue-700); }
.crumbs a:hover { color: var(--blue); }
.crumbs strong { color: var(--muted); font-weight: 600; }

.section--flush-top { padding-top: 40px; }

/* ---------- 篩選器 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.select {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 130px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2, 167, 240, 0.12); }
.select-kw { flex: 1 1 200px; min-width: 180px; }

.btn-ghost {
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }
.btn.is-locked, .btn[disabled] {
  background: #e4eef2;
  color: #8ba6bd;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.result-count { color: var(--muted); font-size: 14px; margin: 18px 2px; }
.empty-state {
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 20px;
}
.empty-state h2 { color: var(--navy); margin-bottom: 10px; }
.empty-state .btn { margin-top: 6px; }

/* ---------- 邊界聲明 ---------- */
.boundary-note {
  margin-top: 36px;
  background: #fff8e8;
  border: 1px solid #f0dfae;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: #6b5417;
}
.boundary-note--strong {
  background: #fdf1f2;
  border-color: #f0c8cd;
  color: #8a3743;
}

/* ---------- 目錄入口卡片 ---------- */
.catalog-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.catalog-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-700);
  margin-bottom: 6px;
}
.catalog-card-icon svg { width: 26px; height: 26px; }
.catalog-card h3 { font-size: 19px; color: var(--navy); }
.catalog-card p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.catalog-card-count { font-size: 13px; color: var(--blue-700); font-weight: 600; }
.catalog-card-go { font-weight: 700; color: var(--blue); }

/* ---------- 詳情頁 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.detail-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  background: #fff;
}
.detail-cover img { width: 100%; display: block; }
.detail-cover .badge { top: 12px; }
.detail-cover .badge-pdf, .detail-cover .badge-jpg, .detail-cover .badge-psd, .detail-cover .badge-psb { left: 12px; background: var(--navy); }
.detail-cover .badge-make { right: 12px; background: #1f9d61; }
.detail-cover .badge-demo { right: 12px; }
.detail-main h1 { font-size: clamp(22px, 2.8vw, 30px); color: var(--navy); }
.detail-desc { color: var(--muted); font-size: 15.5px; }
.chip-issuer { color: #6b5417; background: #fff8e8; border: 1px solid #f0dfae; }
.detail-h2 { font-size: 19px; color: var(--navy); margin: 30px 0 6px; }
.detail-note { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.field-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.field-list li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.detail-side { position: sticky; top: calc(var(--header-h) + 24px); }
.meta-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.meta-card h2 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.meta-card dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.meta-card dt { color: #8ba6bd; font-size: 13.5px; }
.meta-card dd { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; text-align: right; }
.dl-note { font-size: 13px; color: #8a3743; background: #fdf1f2; border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; }
.related { margin-top: 56px; }
.related h2 { font-size: 22px; color: var(--navy); margin-bottom: 20px; }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 定價 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card--hot { border-color: var(--blue); box-shadow: 0 10px 30px rgba(2, 167, 240, 0.18); }
.price-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
}
.price-card h2 { font-size: 18px; color: var(--navy); }
.price { font-size: 38px; font-weight: 800; color: var(--navy); margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.price span { font-size: 14px; font-weight: 500; color: #8ba6bd; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 14.5px; color: var(--muted); padding-left: 26px; position: relative; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}
.price-card li.is-off { color: #b6c6d4; }
.price-card li.is-off::before { content: "—"; color: #b6c6d4; }

/* ---------- 博客 ---------- */
.post-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  margin-bottom: 18px;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #8ba6bd; margin-bottom: 10px; }
.post-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }

.post-head h1 { font-size: clamp(24px, 3vw, 32px); color: var(--navy); margin: 10px 0 12px; }
.post-excerpt { color: var(--blue-700); font-size: 16px; margin: 0; }
.post-body { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 26px; }
.post-body p { color: #3c526b; font-size: 15.5px; line-height: 1.85; }
.post-body h3 { font-size: 18px; color: var(--navy); margin: 28px 0 10px; }
.post-body ul { padding-left: 22px; color: #3c526b; font-size: 15px; line-height: 1.8; }
.post-body li { margin-bottom: 6px; }
.post-foot { margin-top: 30px; border-top: 1px dashed var(--line); padding-top: 16px; }
.post-foot a { font-weight: 600; }

/* ---------- 通用正文頁(prose) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 20px; color: var(--navy); margin: 30px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #3c526b; font-size: 15px; line-height: 1.85; }
.prose ul { padding-left: 22px; color: #3c526b; font-size: 15px; line-height: 1.85; }
.prose li { margin-bottom: 6px; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.prose .boundary-note { margin-top: 26px; }
.muted { color: #8ba6bd; }

.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  flex: none;
}
.author-card h2 { margin: 0; font-size: 18px; color: var(--navy); }
.author-card p { margin: 2px 0 0; font-size: 13.5px; }

/* ---------- 聯繫表單 ---------- */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field span { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 167, 240, 0.12);
}
.form-tip { font-size: 13.5px; color: #8a3743; background: #fdf1f2; border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; }
.form-tip.is-ok { color: #1f7a58; background: #e9fbf3; }

/* ---------- WindX Make 界面示意 ---------- */
.make-mock {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.make-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  padding: 10px 16px;
}
.make-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.make-title { color: #fff; font-size: 13.5px; font-weight: 600; margin-left: 8px; }
.make-status { margin-left: auto; font-size: 12px; color: #ffd97a; border: 1px solid rgba(255, 217, 122, 0.4); border-radius: 999px; padding: 2px 10px; }
.make-body { display: grid; grid-template-columns: 180px minmax(0, 1fr) 190px; min-height: 340px; }
.make-panel { border-right: 1px solid var(--line); padding: 14px; background: #fbfeff; }
.make-panel:last-child { border-right: 0; border-left: 1px solid var(--line); }
.make-panel-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #8ba6bd; margin: 0 0 10px; text-transform: uppercase; }
.make-layer {
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 4px;
  cursor: default;
}
.make-layer.is-active { background: var(--blue-soft); color: var(--blue-700); font-weight: 600; }
.make-canvas { position: relative; padding: 18px; background: var(--panel); display: flex; align-items: center; }
.make-canvas img { border-radius: 8px; box-shadow: var(--shadow-sm); }
.make-overlay { position: absolute; inset: 18px; pointer-events: none; }
.make-box {
  position: absolute;
  border: 1.5px dashed var(--blue);
  background: rgba(2, 167, 240, 0.08);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.make-prop { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 7px 2px; border-bottom: 1px dashed var(--line); }
.make-prop b { color: var(--navy); }

/* ---------- 響應式(擴展組件) ---------- */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .make-body { grid-template-columns: 1fr; }
  .make-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .make-panel:last-child { border-left: 0; border-bottom: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 768px) {
  .catalog-cards { grid-template-columns: 1fr; }
  .related .grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filters .select { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
  .select-kw { flex-basis: 100%; }
}

/* ============================================================
   會員 / 賬戶 / 後臺管理(2026-10)
   ============================================================ */

.container--wide { width: min(1280px, 100% - 40px); }

.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 8px; }

/* ---- 定價頁擴展 ---- */
.cycle-switch {
  display: inline-flex; margin-top: 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
}
.cycle-opt {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 8px 20px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  font-family: inherit;
}
.cycle-opt.is-on { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.cycle-tag {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700;
  color: #5c3d00; background: var(--gold); border-radius: 999px; padding: 1px 8px;
}
.price-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 400; }
.vip-extra { margin-top: 44px; max-width: 820px; }
.vip-extra h2 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.vip-extra p, .vip-extra li { color: var(--muted); font-size: 14.5px; }
.vip-extra ul { margin: 8px 0 20px; padding-left: 20px; display: grid; gap: 6px; }
.price-card .btn { position: relative; z-index: 1; }

/* ---- 詳情頁下載價格 ---- */
.dl-price {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 0 10px; padding: 10px 12px; border: 1px dashed var(--line);
  border-radius: 10px; background: #fbfdff;
}
.dl-price span { font-size: 13px; color: var(--muted); }
.dl-price strong { font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.dl-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---- 彈窗 / 提示 ---- */
.wxs-modal-mask {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center;
  justify-content: center; background: rgba(26, 44, 64, 0.55); padding: 20px;
}
.wxs-modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  width: min(440px, 100%); padding: 24px;
}
.wxs-modal h3 { color: var(--navy); font-size: 18px; margin-bottom: 10px; }
.wxs-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 99;
  box-shadow: var(--shadow-md); max-width: 90vw; text-align: center;
}
.wxs-toast.is-err { background: var(--red); }
.wxs-toast:not(:empty) { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 賬戶頁 ---- */
.auth-card { max-width: 460px; margin-inline: auto; }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.auth-tab {
  border: 0; background: transparent; padding: 10px 18px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--muted); font-family: inherit;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.auth-tab.is-on { color: var(--navy); border-bottom-color: var(--blue); }
.auth-tip { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.auth-tip code { background: var(--panel); padding: 1px 6px; border-radius: 5px; }
.ref-banner {
  background: #e8f7fd; border: 1px solid rgba(2, 167, 240, .3); color: #0779aa;
  font-size: 12.5px; line-height: 1.55; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
}

.me-card { margin-top: 26px; }
.me-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.me-head h2 { color: var(--navy); font-size: 20px; }
.me-since { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.me-plan {
  font-size: 13px; font-weight: 700; color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.me-plan.is-paying { color: #0c6b93; background: var(--blue-soft); border-color: #b5e3f7; }
.quota-block { margin-top: 18px; }
.quota-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.quota-head strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.quota-bar {
  height: 9px; border-radius: 999px; background: var(--panel); overflow: hidden;
  border: 1px solid var(--line);
}
.quota-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #52c41a); transition: width 0.4s ease; }
.sub-block {
  margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px;
}
.sub-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 4px 0; }
.sub-row strong { color: var(--ink); }
.sub-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ---- 後臺管理 ---- */
.admin-login { max-width: 520px; margin-inline: auto; }
.admin-login h1 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 16px; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { color: var(--navy); font-size: 24px; }
.admin-head-actions { display: flex; gap: 10px; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.admin-tab {
  border: 0; background: transparent; padding: 11px 18px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--muted); font-family: inherit;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.admin-tab.is-on { color: var(--navy); border-bottom-color: var(--blue); }
.admin-card { padding: 20px 22px; margin-bottom: 18px; }
.admin-card h2 { color: var(--navy); font-size: 17px; margin-bottom: 12px; }
.admin-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.admin-search {
  flex: 1; max-width: 320px; padding: 9px 13px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.admin-search:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(2, 167, 240, 0.15); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.kpi span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.kpi strong { font-size: 24px; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 4px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.data-table th {
  text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; padding: 9px 12px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: #f7fbff; }
.cell-empty { color: var(--muted); text-align: center; padding: 22px !important; }
.cell-dim { font-size: 12px; color: var(--muted); }
.cell-ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cell-ops select {
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px;
  font-family: inherit; background: #fff; color: var(--ink);
}
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag-ok { color: #1f7a58; background: #e9fbf3; }
.tag-warn { color: #8a6116; background: #fff5dd; }
.tag-err { color: #b03a48; background: #fdeef0; }
.tag-dim { color: var(--muted); background: var(--panel); }

.plan-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fbfdff; }
.plan-card h3 { color: var(--navy); font-size: 15px; margin-bottom: 12px; }
.plan-edit-foot { display: flex; gap: 14px; align-items: flex-end; margin-top: 18px; flex-wrap: wrap; }
.form-tip { font-size: 13.5px; color: #8a3743; background: #fdf1f2; border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; }
.form-tip.is-ok { color: #1f7a58; background: #e9fbf3; }

/* ---- 會員/後臺響應式 ---- */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-edit { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .data-table { font-size: 12.5px; }
}

/* ---- docx 修改對照(詳情頁與製作臺共用) ---- */
.mods-section { margin-top: 26px; }
.mods-section h2 { font-size: 18px; color: var(--navy); margin: 0 0 6px; }
.mdx-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.mdx-head b { font-size: 13.5px; color: var(--navy); line-height: 1.4; }
.mdx-sub { font-size: 11.5px; color: var(--muted); }
.mdx-lead { font-size: 12.5px; color: var(--navy); margin: 0 0 8px; line-height: 1.55; }
.mdx-table-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mdx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mdx-table thead th {
  position: sticky; top: 0; background: #f6fafc; z-index: 1;
  text-align: left; font-size: 11px; color: var(--muted); font-weight: 600;
  padding: 6px 10px; border-bottom: 1px solid var(--line);
}
.mdx-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; word-break: break-word; }
.mdx-table tr:last-child td { border-bottom: 0; }
.mdx-idx { color: var(--muted); width: 24px; }
.mdx-old { color: #b0483f; background: #fdf3f2; }
.mdx-new { color: #1f7a58; background: #f0f9f4; }
.mdx-kind { font-style: normal; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.mdx-replace { background: rgba(224, 146, 32, 0.15); color: #b07908; }
.mdx-insert { background: rgba(31, 122, 88, 0.13); color: #1f7a58; }
.mdx-delete { background: rgba(176, 72, 63, 0.13); color: #b0483f; }
