﻿/* 用途：BoxApp Seller AI 中文主界面。手机单列优先，电脑端切为输入/结果双栏。 */
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #fff6ea;
  --ink: #211913;
  --muted: #6d5d52;
  --line: #e7d8ca;
  --orange: #e96320;
  --orange-dark: #b84210;
  --orange-soft: #ffeadb;
  --green: #226a45;
  --green-soft: #e7f5ec;
  --red: #b52d25;
  --red-soft: #fdecea;
  --shadow: 0 18px 50px rgba(85, 49, 25, 0.09);
  --radius: 22px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 187, 111, 0.28), transparent 28rem),
    radial-gradient(circle at 94% 16%, rgba(214, 236, 205, 0.45), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 4px solid rgba(233, 99, 32, 0.22);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.025em; }
.page-shell { width: min(100%, 1240px); margin: 0 auto; padding: 0 20px 48px; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 -20px; padding: 14px 20px;
  border-bottom: 1px solid rgba(206, 187, 172, 0.72);
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid; width: 44px; height: 44px; place-items: center;
  border-radius: 13px; background: linear-gradient(145deg, #f47b2d, #c84b13);
  box-shadow: 0 5px 0 #9f360b; color: white; font-weight: 900; font-size: 20px;
}
.brand strong { display: block; font-size: 16px; line-height: 1.2; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.top-nav a { color: #5d4a3e; text-decoration: none; }
.top-nav a:hover { color: var(--orange-dark); }
.locale-pill { padding: 6px 10px; border: 1px solid #d9c8b9; border-radius: 999px; color: #7b6759; font-size: 12px; background: #fff; }
.language-toggle { flex: 0 0 auto; min-width: 52px; min-height: 38px; font-weight: 800; cursor: pointer; }
.hero {
  display: grid; gap: 30px; align-items: center;
  min-height: 620px; padding: 74px 0 52px;
}
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { margin-bottom: 20px; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.055em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { max-width: 670px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center;
  padding: 11px 18px; border: 2px solid transparent; border-radius: 13px;
  text-decoration: none; font-weight: 800; cursor: pointer; transition: transform 150ms ease, background 150ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.6; }
.button-primary { border-color: #7f2c0b; background: var(--orange); color: white; box-shadow: 0 5px 0 #a4390c; }
.button-primary:hover:not(:disabled) { background: #d45216; }
.button-secondary { border-color: #dfb697; background: #fff3e6; color: #8d340e; }
.button-quiet { border-color: var(--line); background: #fff; color: var(--ink); }
.text-link { color: var(--orange-dark); font-weight: 800; text-decoration: none; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 28px; color: #53604f; font-size: 13px; font-weight: 700; }
.hero-card {
  padding: 24px; border: 2px solid #3c2b21; border-radius: 27px;
  background: #fffdf8; box-shadow: 12px 14px 0 #e5c8b3, var(--shadow); transform: rotate(1.2deg);
}
.sample-topline { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.sample-dot { width: 9px; height: 9px; border-radius: 50%; background: #5dad78; }
.sample-status { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.hero-card h2 { font-size: 32px; }
.sample-subtitle { color: var(--muted); }
.hero-card ul { padding-left: 19px; color: #4d4037; }
.hero-card li { margin: 7px 0; }
.sample-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.sample-keywords span { padding: 4px 8px; border-radius: 7px; background: #f0eee8; color: #63584e; font-size: 11px; font-weight: 700; }
.sample-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #897568; font-size: 11px; }
.workspace { padding: 66px 0 30px; scroll-margin-top: 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 48px); }
.quota-badge { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.tool-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.6); }
.tool-tab { min-height: 48px; border: 0; border-radius: 11px; background: transparent; color: #715e50; font-weight: 800; cursor: pointer; }
.tool-tab span { margin-right: 5px; color: #aa8c79; font-size: 11px; }
.tool-tab.is-active { background: var(--ink); color: white; box-shadow: 0 4px 12px rgba(33, 25, 19, 0.16); }
.tool-tab.is-active span { color: #ffb27e; }
.workspace-grid { display: grid; gap: 16px; align-items: start; }
.panel { padding: 22px; border: 1px solid rgba(210, 190, 174, 0.8); border-radius: var(--radius); background: rgba(255, 253, 249, 0.94); box-shadow: var(--shadow); }
.form-heading, .result-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.form-kicker { display: block; margin-bottom: 4px; color: var(--orange-dark); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.form-heading h3, .result-toolbar h3 { margin: 0; font-size: 23px; }
.example-button, .copy-button { min-height: 36px; padding: 5px 10px; border: 1px solid #dcc5b3; border-radius: 9px; background: #fff; color: #80533b; font-size: 12px; font-weight: 800; cursor: pointer; }
.copy-button:disabled { opacity: 0.45; cursor: not-allowed; }
.tool-form label { display: grid; gap: 7px; margin-bottom: 14px; color: #4e4037; font-size: 13px; font-weight: 800; }
.field-grid { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%; padding: 12px 13px; border: 1.5px solid #d9c8ba; border-radius: 11px;
  background: white; color: var(--ink); font-weight: 500;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); }
.generate-button { width: 100%; margin-top: 3px; }
.form-footnote { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: #8a7567; font-size: 11px; }
.result-panel { min-height: 520px; background: #fffaf3; }
.result-empty { display: grid; place-items: center; min-height: 390px; padding: 30px; text-align: center; color: var(--muted); }
.result-empty h4 { margin: 16px 0 6px; color: var(--ink); font-size: 20px; }
.result-empty p { max-width: 360px; margin: 0; }
.result-illustration { display: grid; width: 82px; height: 82px; place-items: center; border: 2px solid #dfc7b5; border-radius: 24px; background: #fff; box-shadow: 7px 7px 0 #efd6c3; color: var(--orange); font-size: 30px; font-weight: 900; }
.result-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.result-section:first-child { padding-top: 0; }
.result-section:last-child { border-bottom: 0; }
.result-section h4 { margin-bottom: 9px; color: #6a4b38; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.result-main { margin: 0; color: #352921; font-size: 17px; font-weight: 800; line-height: 1.55; }
.result-copy { margin: 0; color: #4b3e35; white-space: pre-wrap; }
.result-list { margin: 0; padding-left: 20px; color: #4b3e35; }
.result-list li { margin: 7px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 5px 8px; border-radius: 8px; background: #edf1eb; color: #48614c; font-size: 12px; }
.notes { padding: 12px 14px; border-radius: 12px; background: #fff1d6; color: #76501c; font-size: 12px; }
.notes ul { margin: 5px 0 0; padding-left: 18px; }
.status-box { display: none; margin-top: 15px; padding: 11px 13px; border-radius: 11px; font-size: 13px; }
.status-box.is-visible { display: block; }
.status-box.loading { background: #fff1e4; color: #8b3c14; }
.status-box.success { background: var(--green-soft); color: var(--green); }
.status-box.error { background: var(--red-soft); color: var(--red); }
.how-it-works { padding: 70px 0 25px; scroll-margin-top: 90px; }
.steps-grid { display: grid; gap: 12px; }
.steps-grid article, .price-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 249, 0.78); }
.steps-grid article > span { color: var(--orange); font-size: 13px; font-weight: 900; }
.steps-grid h3 { margin: 18px 0 7px; font-size: 19px; }
.steps-grid p, .price-card p { margin: 0; color: var(--muted); font-size: 14px; }
.pricing { padding: 70px 0 25px; scroll-margin-top: 90px; }
.pricing-grid { display: grid; gap: 12px; }
.price-card { display: flex; flex-direction: column; gap: 16px; }
.price-card.featured { border: 2px solid var(--orange); background: #fff6ed; }
.plan-name { color: var(--orange-dark); font-size: 13px; font-weight: 900; }
.price-card strong { font-size: 36px; line-height: 1; }
.price-card small { font-size: 13px; font-weight: 700; color: var(--muted); }
.price-card .button { margin-top: auto; }
.pricing-note { margin-top: 15px; color: #8a7567; font-size: 12px; }
.waitlist-section {
  display: grid; gap: 22px; align-items: center; margin-top: 70px; padding: 28px;
  border: 2px solid #3a2b22; border-radius: 24px; background: #fff3df; box-shadow: 10px 10px 0 #ecd2bd;
}
.waitlist-section h2 { margin-bottom: 7px; font-size: 30px; }
.waitlist-section p { margin: 0; color: var(--muted); }
.waitlist-form { display: grid; gap: 9px; }
.waitlist-form input { min-height: 50px; }
.site-footer { display: grid; gap: 18px; margin-top: 62px; padding-top: 24px; border-top: 1px solid var(--line); color: #7c685a; font-size: 13px; }
.site-footer p { margin: 5px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.footer-links a { text-decoration: none; }
.footer-legal { font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); transform: translateX(-50%); font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (min-width: 700px) {
  .hero { grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr); padding-top: 88px; }
  .field-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .waitlist-section { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); }
  .waitlist-form { grid-template-columns: minmax(0, 1fr) auto; }
  .site-footer { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .workspace-grid { grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr); }
  .result-panel { position: sticky; top: 88px; }
}
@media (max-width: 699px) {
  .page-shell { padding-inline: 14px; }
  .site-header { margin-inline: -14px; padding-inline: 14px; }
  .top-nav { display: none; }
  .hero { min-height: auto; padding: 46px 0 28px; }
  .hero-card { transform: none; box-shadow: 7px 8px 0 #e5c8b3, var(--shadow); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .tool-tabs { grid-template-columns: 1fr; }
  .tool-tab { min-height: 43px; text-align: left; padding-inline: 13px; }
  .panel { padding: 17px; border-radius: 18px; }
  .result-panel { min-height: 420px; }
  .result-empty { min-height: 300px; }
  .waitlist-section { padding: 20px; }
  .toast { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 品牌档案：保存品牌语气、政策和默认平台，减少重复输入。 */
.brand-profile-card { margin-bottom: 13px; border: 1px solid #dfc8b6; border-radius: 17px; background: #fff9f0; overflow: hidden; }
.brand-profile-toggle { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.profile-icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #2e2119; color: #ffb37f; font-weight: 900; }
.profile-toggle-copy { min-width: 0; flex: 1; }
.profile-toggle-copy strong { display: block; font-size: 15px; }
.profile-toggle-copy small { display: block; margin-top: 2px; overflow: hidden; color: #796558; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-toggle-action { flex: 0 0 auto; color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.brand-profile-panel { padding: 16px; border-top: 1px solid #ead8c9; background: #fffdfa; }
.brand-profile-panel textarea { min-height: 78px; }
.profile-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.profile-save-status { color: var(--green); font-size: 12px; font-weight: 700; }
.profile-save-status.is-error { color: var(--red); }

/* 自动检查：确定性规则结果单独显示，和模型生成的合规提醒区分。 */
.audit-box { margin-top: 15px; padding: 13px 14px; border: 1px solid #cdd8ca; border-radius: 13px; background: #f1f7ef; }
.audit-box.audit-yellow { border-color: #e7c985; background: #fff6dc; }
.audit-box.audit-red { border-color: #e5aaa5; background: #fdecea; }
.audit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.audit-head strong { font-size: 13px; }
.audit-score { padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: 11px; font-weight: 900; }
.audit-box p { margin: 7px 0 0; color: #5f625b; font-size: 12px; }
.audit-flags { display: grid; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.audit-flags li { display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: start; color: #5b4538; font-size: 12px; }
.audit-severity { padding: 1px 6px; border-radius: 5px; background: #fff; font-size: 10px; font-weight: 900; }
.audit-severity.high { color: var(--red); }
.audit-severity.medium { color: #8a5a11; }
@media (max-width: 699px) {
  .brand-profile-toggle { align-items: flex-start; }
  .profile-toggle-action { max-width: 66px; text-align: right; }
  .profile-toggle-copy small { white-space: normal; }
}


/* 批量商品工具：支持 Excel/CSV 粘贴、结果卡片和 CSV 导出。 */
.result-actions { display: flex; gap: 7px; }
.batch-help { margin: 2px 0 11px; padding: 10px 12px; border-radius: 10px; background: #f4eee7; color: #6c584a; font-size: 12px; line-height: 1.55; }
.batch-help strong, .batch-help span { display: block; }
.batch-help span { margin-top: 2px; font-family: Consolas, monospace; }
.batch-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 12px; }
.small-button { min-height: 38px; padding: 6px 10px; font-size: 12px; }
.batch-preview { color: #716052; font-size: 12px; font-weight: 700; }
.batch-limit-note { margin: 0 0 13px; color: #897568; font-size: 11px; }
.batch-summary { margin-bottom: 13px; padding: 12px 14px; border-radius: 12px; background: #eef5eb; color: #36523e; font-size: 13px; }
.batch-item { margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.batch-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.batch-item-head strong { font-size: 14px; }
.batch-item-head small { color: #8a7567; font-size: 11px; }
.batch-item details { margin-top: 9px; }
.batch-item summary { cursor: pointer; color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.batch-item .result-section { padding: 10px 0; }
.batch-item .result-main { font-size: 14px; }
.batch-item .result-copy, .batch-item .result-list { font-size: 12px; }
.batch-item-error { color: var(--red); }
@media (min-width: 980px) {
  .workspace-grid.batch-mode { grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1.28fr); }
}
@media (max-width: 699px) {
  .result-actions { flex-wrap: wrap; }
  .batch-item-head { flex-direction: column; }
}
