:root {
  --bg: #fff8ef;
  --ink: #20140e;
  --muted: #776b63;
  --card: rgba(255,255,255,.82);
  --line: rgba(64, 37, 22, .12);
  --accent: #ff6a2a;
  --accent-2: #ffc14d;
  --green: #16735f;
  --shadow: 0 24px 70px rgba(69, 38, 18, .14);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 193, 77, .42), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(255, 106, 42, .22), transparent 30%),
    radial-gradient(circle at 75% 75%, rgba(22, 115, 95, .15), transparent 28%),
    linear-gradient(180deg, #fff8ef, #fff3e4 58%, #fffaf5);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.nav {
  width: min(1180px, calc(100% - 36px));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  position: sticky;
  top: 16px;
  z-index: 10;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; color: white; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #ff944c);
  box-shadow: 0 10px 24px rgba(255,106,42,.25);
}
.brand strong { display:block; font-size: 16px; }
.brand span { display:block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.nav-link { padding: 10px 18px; border-radius: 999px; background: #20140e; color: white; font-weight: 700; }
main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.07fr .93fr;
  gap: 44px;
  align-items: center;
  padding: 68px 0 42px;
}
.pill {
  display: inline-flex; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255,255,255,.55); color: var(--green);
  font-weight: 800; font-size: 14px;
}
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.03; margin: 22px 0; letter-spacing: -2.4px; }
.hero-copy p { color: #5c4f46; font-size: 18px; max-width: 650px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 24px; }
.primary-btn, .ghost-btn, .submit-btn {
  border: none; cursor: pointer; border-radius: 18px; transition: transform .18s ease, box-shadow .18s ease;
}
.primary-btn { padding: 15px 24px; background: var(--ink); color: white; font-weight: 900; box-shadow: var(--shadow); }
.ghost-btn { padding: 15px 22px; background: rgba(255,255,255,.65); border: 1px solid var(--line); font-weight: 800; }
.primary-btn:hover, .ghost-btn:hover, .submit-btn:hover { transform: translateY(-2px); }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.trust-row span { background: rgba(255,255,255,.55); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; font-size: 13px; }
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(18px); transform: rotate(1deg);
}
.window-bar { display: flex; gap: 8px; margin-bottom: 24px; }
.window-bar span { width: 12px; height: 12px; background: #f1c8a8; border-radius: 50%; }
.hero-card h3 { margin: 0; font-size: 28px; }
.muted { color: var(--muted); margin-top: 4px; }
.mini-list { display: grid; gap: 14px; margin: 24px 0; }
.mini-list div { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff8ee; border: 1px solid var(--line); border-radius: 18px; }
.mini-list b { width: 30px; height: 30px; border-radius: 10px; background: var(--accent-2); display:grid; place-items:center; }
.copy-demo { width: 100%; border: none; border-radius: 16px; padding: 14px; background: var(--accent); color: white; font-weight: 900; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 80px; }
.feature-grid article { background: rgba(255,255,255,.58); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.feature-grid span { color: var(--accent); font-weight: 900; }
.feature-grid h3 { margin: 8px 0; }
.feature-grid p { color: var(--muted); margin: 0; font-size: 14px; }
.generator { padding: 20px 0 80px; }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title p { color: var(--accent); font-weight: 900; margin: 0; }
.section-title h2 { font-size: clamp(30px, 4vw, 48px); margin: 8px 0 0; letter-spacing: -1px; }
.tool-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.tab { border: 1px solid var(--line); background: rgba(255,255,255,.62); border-radius: 999px; padding: 11px 16px; cursor: pointer; color: #5c4f46; font-weight: 800; }
.tab.active { background: var(--ink); color: white; }
.generator-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start;
  background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 34px; padding: 18px; box-shadow: var(--shadow);
}
form, .result-panel { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 26px; padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 800; color: #3a2a20; font-size: 14px; }
input, textarea, select {
  width: 100%; margin-top: 7px; border: 1px solid var(--line); background: #fffaf4; border-radius: 15px; padding: 13px 14px; outline: none; color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: rgba(255,106,42,.55); box-shadow: 0 0 0 4px rgba(255,106,42,.10); }
textarea { min-height: 96px; resize: vertical; }
.form-grid label:nth-child(7) { grid-column: span 2; }
.advanced-line { display: flex; justify-content: space-between; margin: 14px 0; }
.advanced-line button { border: none; background: transparent; color: var(--green); font-weight: 900; cursor: pointer; }
.submit-btn { width: 100%; padding: 16px 18px; background: linear-gradient(135deg, var(--accent), #ff9553); color: white; font-weight: 900; box-shadow: 0 18px 32px rgba(255,106,42,.18); }
.submit-btn small { display:block; opacity:.84; font-weight:600; margin-top:2px; }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.result-panel { min-height: 622px; display:flex; flex-direction:column; }
.result-head { display:flex; justify-content:space-between; gap: 12px; align-items:center; margin-bottom: 14px; }
.result-head p { margin:0; color: var(--accent); font-weight:900; font-size: 13px; }
.result-head h3 { margin:2px 0 0; }
.result-head button { border:1px solid var(--line); background:#fff8ee; border-radius: 999px; padding: 9px 13px; cursor:pointer; font-weight:900; }
.result-head button:disabled { opacity:.45; cursor:not-allowed; }
.result { flex:1; white-space: pre-wrap; background: #fffaf4; border:1px solid var(--line); border-radius: 20px; padding: 18px; overflow:auto; color:#2a1c14; }
.result.empty { color: var(--muted); display:grid; place-items:center; text-align:center; }
.loading { flex:1; display:grid; place-items:center; text-align:center; color:var(--muted); }
.hidden { display:none!important; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255,106,42,.16); border-top-color: var(--accent); animation: spin .85s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.service-box { margin-top: 14px; padding: 14px; background: #f4fff9; border:1px solid rgba(22,115,95,.16); border-radius: 18px; }
.service-box b { display:block; color: var(--green); }
.service-box span { display:block; color:#596b63; font-size: 14px; margin-top: 4px; }
footer { text-align:center; color: var(--muted); padding: 30px 18px 50px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color:white; padding: 10px 16px; border-radius: 999px; opacity:0; pointer-events:none; transition:.22s; z-index:99; }
.toast.show { opacity:1; transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) {
  .hero, .generator-card { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; min-height: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { transform: none; }
}
@media (max-width: 620px) {
  .nav { width: min(100% - 20px, 1180px); }
  main { width: min(100% - 20px, 1180px); }
  .brand span { display:none; }
  .nav-link { padding: 9px 13px; }
  h1 { letter-spacing: -1.2px; }
  .feature-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid label:nth-child(7) { grid-column: auto; }
  form, .result-panel { padding: 16px; }
}
