/* Flowizard 官网共用样式 —— 米白复古羊皮纸风，与 App「复古羊皮纸」主题同源
   默认永远米白浅色；深色（darkOak 深橡木）仅在右上角按钮手动切换后启用，
   选择存入 localStorage（键 fw-theme）。无依赖、无构建，改完直接上传即可 */

:root {
  /* 复古羊皮纸（App classicParchment 主题色值） */
  --accent: #c8965e;        /* 古铜金 */
  --accent-deep: #a5713a;   /* 深古铜，用于按钮与描边 */
  --accent-ink: #8a5c2c;    /* 更深铜棕，hover/描边 */
  --accent-soft: #f0e2cf;   /* 浅羊皮纸 */
  --green: #6b8f5b;         /* 苔藓绿 */
  --text: #2e231a;          /* 深棕墨色 */
  --muted: #6a5848;
  --faint: #97876f;
  --bg: #f5ede0;            /* 米白纸面 */
  --card: #fbf5ea;
  --card-alt: #ede3d0;
  --border: #cfbfa2;
  --shadow: rgba(61, 43, 31, 0.12);
  --btn-text: #fff8ec;
  --link: #a5713a;
  --radius: 14px;
  --maxw: 760px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
}

/* 深橡木（App darkOak 主题色值）—— 仅手动切换后生效 */
:root[data-theme="dark"] {
  --accent: #d5a45d;
  --accent-deep: #c08a42;
  --accent-ink: #e0b978;
  --accent-soft: #3a2a1b;
  --green: #86a56c;
  --text: #f2e7d5;
  --muted: #cdb79a;
  --faint: #957c63;
  --bg: #0f0a06;
  --card: #1b120b;
  --card-alt: #26190f;
  --border: #4e3622;
  --shadow: rgba(0, 0, 0, 0.4);
  --btn-text: #241708;
  --link: #d5a45d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 50% -120px, rgba(200, 150, 94, 0.14), transparent 65%),
    var(--bg);
  line-height: 1.75;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(1100px 480px at 50% -120px, rgba(213, 164, 93, 0.10), transparent 65%),
    var(--bg);
}

/* 链接色统一走 --link 变量：仅元素选择器，避免盖过 .btn-primary 的文字色 */
a { color: var(--link); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
header.site { border-bottom: 1px solid var(--border); background: var(--bg); }
.nav-row { display: flex; align-items: center; gap: 18px; padding: 14px 20px; flex-wrap: wrap; font-size: 15px; }
.brand {
  font-family: var(--serif);
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  font-size: 19px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}
.brand-icon { width: 26px; height: 26px; margin-right: 8px; transform: translateY(-1px); }
.nav-row .spacer { flex: 1; }
.nav-row a { text-decoration: none; color: var(--muted); }
.nav-row a:not(.btn):hover { color: var(--accent-deep); }
:root[data-theme="dark"] .nav-row a:not(.btn):hover { color: var(--accent); }

/* 右上角深浅色切换按钮：铜边圆形，浅色显示月亮、深色显示太阳 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--accent-deep);
  cursor: pointer;
  box-shadow: 0 1px 3px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
:root[data-theme="dark"] .theme-toggle { box-shadow: 0 1px 3px var(--shadow); color: var(--accent); }
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* 按钮：古铜底、奶油字、铜棕描边 */
.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--btn-text);
  border: 1px solid var(--accent-ink);
  box-shadow: 0 2px 6px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 10px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-sm { padding: 7px 16px; font-size: 14px; }

/* 首页 Hero */
.hero { text-align: center; padding: 76px 20px 56px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.3;
  letter-spacing: 1px;
  margin: 0 0 18px;
}
.hero .lead { color: var(--muted); font-size: 17px; max-width: 580px; margin: 0 auto 30px; }
.hero .note { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* Hero 下的藏品架：直接展示 App 背包里的手绘藏品 */
.treasure-row { display: flex; justify-content: center; align-items: flex-end; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.treasure-row img {
  width: 52px; height: 52px; object-fit: contain;
  filter: drop-shadow(0 3px 4px var(--shadow));
  transition: transform 0.2s ease;
}
.treasure-row img:nth-child(odd) { transform: rotate(-3deg) translateY(3px); }
.treasure-row img:nth-child(even) { transform: rotate(2.5deg); }
.treasure-row img:hover { transform: rotate(0) translateY(-4px) scale(1.08); }

/* 区块 */
section { padding: 56px 0 8px; }
.section-title {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* 功能卡片：羊皮纸卡面 + 复古双线框 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: 0 2px 8px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
:root[data-theme="dark"] .card { box-shadow: 0 2px 8px var(--shadow); }
.card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
  opacity: 0.7;
}
.card .icon { line-height: 1; }
.card .icon img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 3px var(--shadow)); }
.card h3 { font-family: var(--serif); letter-spacing: 0.5px; margin: 12px 0 6px; font-size: 17.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* 价格卡片 */
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 2px 8px var(--shadow); }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
:root[data-theme="dark"] .tag { color: var(--accent); }
.price-line { font-family: var(--serif); font-size: 19px; font-weight: 700; margin: 4px 0 10px; }
ul.checks { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
ul.checks li { padding-left: 24px; position: relative; margin: 7px 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.card .sub { color: var(--muted); font-size: 14.5px; margin: 8px 0; }
.fine { color: var(--faint); font-size: 13px; text-align: center; margin: 20px auto 0; max-width: 560px; }

/* 活动横幅：宝箱 + 羊皮纸告示 */
.banner {
  position: relative;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 2px 8px var(--shadow);
}
.banner-icon { width: 46px; height: 46px; object-fit: contain; vertical-align: -12px; margin-right: 10px; filter: drop-shadow(0 2px 3px var(--shadow)); }
.banner h2 { font-family: var(--serif); letter-spacing: 0.5px; font-size: 22px; margin: 0 0 14px; }
.banner p { color: var(--muted); font-size: 15px; margin: 8px auto; max-width: 560px; }
.banner .hint { font-size: 13.5px; color: var(--faint); }

/* 法律 / 支持页 */
article.legal h1 { font-family: var(--serif); letter-spacing: 1px; font-size: 30px; margin: 40px 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.notice {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  margin: 18px 0 30px;
}
.topic h2 {
  font-family: var(--serif);
  letter-spacing: 0.5px;
  font-size: 19px;
  margin: 30px 0 8px;
  display: flex;
  align-items: center;
}
.topic h2 img { width: 30px; height: 30px; object-fit: contain; margin-right: 10px; filter: drop-shadow(0 2px 2px var(--shadow)); }
.topic p, .topic li { color: var(--muted); font-size: 15px; }
.topic ul { padding-left: 20px; margin: 8px 0; }
article.legal h2 { font-size: 20px; margin: 34px 0 10px; }
article.legal p, article.legal li { font-size: 15.5px; }
article.legal ul { padding-left: 20px; }
article.legal .back { display: inline-block; margin-top: 40px; font-size: 14.5px; }

/* 页脚（含备案号，法规要求展示并链接工信部） */
footer.site { border-top: 1px solid var(--border); padding: 34px 0 44px; text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 60px; }
footer.site a { color: var(--muted); text-decoration: none; margin: 0 6px; }
footer.site a:hover { color: var(--accent-deep); }
:root[data-theme="dark"] footer.site a:hover { color: var(--accent); }
footer.site .copyright { margin-top: 8px; }
footer.site .icp { display: block; margin-top: 8px; }
