/* 微商水印相机 - 全站样式 */
:root {
  --brand: #4f6ef7;
  --brand-dark: #3b53d8;
  --brand-light: #eef1ff;
  --accent: #7b4ff7;
  --text: #1c2233;
  --text-soft: #5a6272;
  --line: #e6e9f2;
  --bg: #f6f8fc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(28, 34, 51, .07);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }

.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
}

nav.main-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--text-soft); margin-left: auto; margin-right: 18px; }
nav.main-nav a:hover { color: var(--brand); }
nav.main-nav a.active { color: var(--brand); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .18s; font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* 首屏 */
.hero {
  background: linear-gradient(160deg, #f2f5ff 0%, #fbf8ff 55%, var(--bg) 100%);
  padding: 68px 0 60px;
  text-align: center;
}
.hero h1 { font-size: 40px; line-height: 1.3; margin: 0 0 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.sub { font-size: 17px; color: var(--text-soft); max-width: 700px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { margin-top: 30px; color: var(--text-soft); font-size: 14px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.hero-badges span::before { content: "✓ "; color: #22b07d; font-weight: 700; }

/* 通用区块 */
section.block { padding: 62px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin: 0 0 10px; font-size: 27px; letter-spacing: -.3px; }
.section-desc { text-align: center; color: var(--text-soft); margin: 0 auto 40px; max-width: 660px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 12px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-light);
  color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--bg); border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--text-soft); font-size: 14px; }

details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "＋"; float: right; color: var(--brand); font-weight: 700; }
details.faq[open] summary::after { content: "－"; }
details.faq p { margin: 12px 0 0; color: var(--text-soft); font-size: 15px; }

/* 工具页 */
.tool-head { text-align: center; padding: 44px 0 8px; }
.tool-head h1 { font-size: 30px; margin: 0 0 10px; }
.tool-head p { color: var(--text-soft); margin: 0 auto; max-width: 680px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; padding: 28px 0 64px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { padding: 15px 20px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-body { padding: 20px; }

.dropzone {
  border: 2px dashed #c6cde0; border-radius: var(--radius); background: #fafbff;
  padding: 46px 20px; text-align: center; cursor: pointer; transition: .18s;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-light); }
.dropzone strong { display: block; font-size: 17px; margin-bottom: 6px; }
.dropzone span { color: var(--text-soft); font-size: 14px; }

.stage { position: relative; background: repeating-conic-gradient(#f0f2f7 0% 25%, #fff 0% 50%) 50% / 20px 20px; border-radius: 10px; padding: 12px; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.stage canvas { max-width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.stage.drawing canvas { cursor: crosshair; }

.hint { color: var(--text-soft); font-size: 13.5px; margin: 10px 0 0; }
.hint.center { text-align: center; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input[type="text"], .field input[type="number"], .field select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff;
}
.field input[type="color"] { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.field input[type="range"] { width: 100%; accent-color: var(--brand); }
.field .val { float: right; color: var(--text-soft); font-weight: 400; font-size: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; cursor: pointer; color: var(--text-soft); transition: .15s; user-select: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--brand); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }

.note { background: var(--brand-light); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #3d4a86; }

.region-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; color: var(--text-soft); }
.region-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.region-list button { border: none; background: none; color: #e05252; cursor: pointer; font-size: 13px; }

footer.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; color: var(--text-soft); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site-footer a:hover { color: var(--brand); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  nav.main-nav { display: none; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 40px; }
}
