:root {
  --yellow: #ffca28;
  --yellow-deep: #f0a900;
  --cream: #fff8e9;
  --ink: #1c2732;
  --muted: #6f7880;
  --navy: #17232e;
  --teal: #159b87;
  --coral: #ff725d;
  --blue: #5d7df6;
  --line: #e9e5dc;
  --paper: #fffdf9;
  --shadow: 0 18px 50px rgba(45, 51, 56, .09);
  --soft-shadow: 0 8px 24px rgba(45, 51, 56, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at 82% -10%, rgba(255, 202, 40, .22), transparent 28rem),
    radial-gradient(circle at 35% 100%, rgba(21, 155, 135, .09), transparent 30rem),
    #f5f3ee;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 30px 22px 24px;
  color: #fff;
  background: linear-gradient(165deg, #1d2c37 0%, #111b23 72%, #0c141b 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
  box-shadow: 12px 0 35px rgba(17, 28, 36, .12);
}
.sidebar::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  left: -110px;
  bottom: 70px;
  background: rgba(255, 202, 40, .08);
}
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 38px; position: relative; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffe05b, #ffb800);
  color: #16222b;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 190, 0, .25);
  transform: rotate(-3deg);
}
.brand strong { display: block; font-size: 19px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 4px; color: #97a4ac; font-size: 11px; }
.sidebar nav { display: grid; gap: 8px; position: relative; }
.nav-item {
  border: 0;
  background: transparent;
  color: #abb6bd;
  text-align: left;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: .2s ease;
}
.nav-item span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffd953;
  background: rgba(255,255,255,.06);
  font-weight: 800;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-item.active { color: #1a2630; background: linear-gradient(135deg, #ffe472, #ffc928); font-weight: 800; box-shadow: 0 10px 26px rgba(255, 196, 22, .2); }
.nav-item.active span { color: #182630; background: rgba(255,255,255,.5); }
.sidebar-foot {
  margin-top: auto;
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: #b7c0c5;
  background: rgba(255,255,255,.04);
  font-size: 11px;
}
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d9a927; margin-right: 8px; box-shadow: 0 0 0 4px rgba(217,169,39,.12); }
.status-dot.ok { background: #45d3a0; box-shadow: 0 0 0 4px rgba(69,211,160,.12); }
.status-dot.bad { background: #ff7266; }

main { margin-left: 248px; min-height: 100vh; padding: 0 42px 72px; }
.topbar { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 4px 0 0; font-size: 30px; letter-spacing: -.03em; }
.eyebrow { margin: 0; color: #a36f00; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.top-actions, .action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.outline-button, .primary-button, .hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border-radius: 13px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.outline-button { border: 1px solid rgba(28,39,50,.1); background: rgba(255,255,255,.72); color: var(--ink); box-shadow: 0 6px 20px rgba(48,53,57,.05); backdrop-filter: blur(12px); }
.outline-button:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--soft-shadow); }
.primary-button { border: 0; background: linear-gradient(135deg, #ffdb4b, #ffb915); color: #202923; box-shadow: 0 8px 18px rgba(237, 171, 0, .2); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(237,171,0,.28); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.chatgpt-button { font-family: inherit; }
.action-row > * { flex: 1 1 150px; }

.view { display: none; }
.view.active { display: block; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero {
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 46px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(130deg, #ffda50 0%, #ffc128 50%, #ff8d62 120%);
  box-shadow: 0 24px 58px rgba(219, 151, 12, .2);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(rgba(31,41,46,.25) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero::after { content: ""; position: absolute; width: 280px; height: 280px; border: 45px solid rgba(255,255,255,.16); border-radius: 50%; right: -95px; top: -120px; }
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.hero h2 { margin: 15px 0 12px; font-size: clamp(32px, 3.3vw, 50px); line-height: 1.18; letter-spacing: -.055em; }
.hero p { margin: 0 0 24px; color: rgba(28,39,50,.72); line-height: 1.8; font-size: 14px; max-width: 520px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 12px; color: #244239; background: rgba(255,255,255,.62); font-size: 11px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.hero-button { border: 0; color: #fff; background: var(--navy); box-shadow: 0 12px 24px rgba(23,35,46,.2); }
.hero-button:hover { transform: translateY(-2px); }
.hero-visual { width: 250px; min-height: 210px; position: relative; z-index: 2; display: grid; place-items: center; flex: 0 0 auto; }
.budget-ring { width: 190px; height: 172px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--ink); background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.8); border-radius: 27px; box-shadow: 0 24px 50px rgba(89,56,15,.17); transform: rotate(3deg); }
.budget-ring span, .budget-ring small { color: #7a756a; font-size: 11px; }
.budget-ring strong { margin: 5px 0; font-size: 42px; letter-spacing: -.05em; }
.floating-label { position: absolute; top: 3px; left: 4px; padding: 9px 12px; color: #fff; background: var(--teal); border-radius: 12px; font-size: 11px; font-weight: 800; box-shadow: 0 10px 20px rgba(21,155,135,.22); transform: rotate(-6deg); }
.floating-label.second { top: auto; left: auto; right: 2px; bottom: 3px; color: var(--ink); background: #fff0b1; transform: rotate(5deg); }

.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0; }
.flow-grid article { position: relative; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--soft-shadow); overflow: hidden; }
.flow-grid article::after { content: "→"; position: absolute; right: 11px; top: 10px; color: #c7c1b6; }
.flow-grid article:last-child::after { content: "✓"; color: var(--teal); }
.flow-grid b { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; color: #7c5c00; background: #fff1b3; border-radius: 13px; font-size: 12px; }
.flow-grid article:nth-child(2) b { color: #176d62; background: #daf4ee; }
.flow-grid article:nth-child(3) b { color: #5c5fa7; background: #e9e9ff; }
.flow-grid article:nth-child(4) b { color: #a64f42; background: #ffe3de; }
.flow-grid span { align-self: end; font-weight: 900; font-size: 13px; }
.flow-grid small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.stat-grid.small { grid-template-columns: repeat(3, 1fr); }
.stat-card, .panel { border: 1px solid rgba(255,255,255,.82); background: rgba(255,253,249,.9); box-shadow: var(--soft-shadow); }
.stat-card { position: relative; min-height: 146px; padding: 20px; border-radius: 20px; overflow: hidden; }
.stat-card::after { content: "样"; position: absolute; right: 15px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #916d08; background: #fff0ac; font-size: 12px; font-weight: 900; }
.stat-card:nth-child(2)::after { content: "转"; color: #19756a; background: #d8f3ee; }
.stat-card:nth-child(3)::after { content: "保"; color: #a85548; background: #ffe0da; }
.stat-card:nth-child(4)::after { content: "费"; color: #545eaa; background: #e4e6ff; }
.stat-card > span { color: var(--muted); font-size: 12px; }
.stat-card > strong { display: block; margin: 15px 0 7px; font-size: 29px; letter-spacing: -.04em; }
.stat-card > small { color: #91989d; font-size: 10px; line-height: 1.5; }

.two-column { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.panel { padding: 24px; border-radius: 22px; }
.panel-head, .section-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.panel h3 { margin: 5px 0 16px; font-size: 19px; }
.score { padding: 7px 12px; color: #765700; background: #fff0a9; border-radius: 999px; font-weight: 900; font-size: 12px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-top: 1px dashed #e4dfd4; font-size: 13px; line-height: 1.5; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 0; flex: 0 0 auto; accent-color: var(--teal); }
.warning-panel { position: relative; color: #fff; background: linear-gradient(145deg, #1c9c8b, #167666); border: 0; overflow: hidden; }
.warning-panel::after { content: "¥"; position: absolute; right: -5px; bottom: -38px; color: rgba(255,255,255,.1); font-size: 150px; font-weight: 900; }
.warning-panel .eyebrow { color: #c7fff4; }
.warning-panel p:not(.eyebrow) { position: relative; z-index: 1; color: rgba(255,255,255,.78); line-height: 1.8; font-size: 13px; }
.warning-panel .primary-button { position: relative; z-index: 1; margin-top: 8px; }

.section-intro { margin: 8px 0 24px; align-items: end; }
.section-intro h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -.035em; }
.section-intro p:not(.eyebrow) { color: var(--muted); margin: 9px 0 0; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; padding: 23px; border: 1px solid rgba(255,255,255,.85); border-radius: 23px; background: linear-gradient(155deg, #fffdf9, #fff7dd); box-shadow: var(--soft-shadow); overflow: hidden; transition: .2s ease; }
.product-card:nth-child(2) { background: linear-gradient(155deg, #fffdf9, #e8f8f4); }
.product-card:nth-child(3) { background: linear-gradient(155deg, #fffdf9, #eeeefe); }
.product-card::after { content: "⌂"; position: absolute; right: 18px; top: 20px; color: rgba(28,39,50,.13); font-size: 35px; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .tag { display: inline-block; border-radius: 999px; background: rgba(255,255,255,.68); padding: 6px 10px; font-size: 10px; color: #6e6c65; font-weight: 800; }
.product-card h3 { margin: 22px 0 7px; font-size: 20px; }
.product-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.price-row { display: flex; justify-content: space-between; margin: 22px 0 13px; }
.price-row small { display: block; color: #8d918e; font-size: 10px; }
.price-row strong { font-size: 18px; }
.risk-list { padding: 14px 0 0; border-top: 1px dashed rgba(28,39,50,.15); font-size: 11px; color: #8c6c30; line-height: 1.5; }

.calculator-grid, .ai-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(340px,.88fr); gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid.compact { gap: 12px; }
.form-stack, .dialog-form { display: grid; gap: 15px; }
label { color: #515a60; font-size: 12px; font-weight: 800; }
input, textarea, select { display: block; width: 100%; margin-top: 8px; border: 1px solid transparent; border-radius: 12px; background: #f5f3ed; padding: 13px 14px; color: var(--ink); outline: none; transition: .18s ease; }
textarea { min-height: 92px; resize: vertical; }
input:hover, textarea:hover, select:hover { background: #f1efe8; }
input:focus, textarea:focus, select:focus { border-color: #eab91a; background: #fff; box-shadow: 0 0 0 4px rgba(255,202,40,.15); }
.result-card { position: relative; color: #fff; border-radius: 24px; padding: 31px; background: linear-gradient(150deg, #1b2934 0%, #17252e 52%, #116b62 140%); box-shadow: 0 22px 50px rgba(23,35,46,.18); overflow: hidden; }
.result-card::after { content: ""; position: absolute; width: 180px; height: 180px; border: 32px solid rgba(255,255,255,.04); border-radius: 50%; right: -70px; top: -70px; }
.result-card .eyebrow { color: #7ee5d5; }
.result-card > span { display: block; margin-top: 28px; color: #aebac0; font-size: 12px; }
.result-card > strong { display: block; color: #ffdc4e; font-size: 47px; margin: 8px 0 23px; letter-spacing: -.05em; }
.result-row { position: relative; z-index: 1; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; font-size: 13px; }
.result-row.highlight { color: #ffdc4e; }
.fine-print { color: #90a0a7; font-size: 10px; line-height: 1.6; }
.output-panel { min-height: 480px; background: linear-gradient(160deg, #fffdf9, #fff9e9); }
.output-panel pre { min-height: 390px; margin: 0; padding: 18px; white-space: pre-wrap; word-break: break-word; color: #49535a; background: rgba(255,255,255,.72); border: 1px dashed #ded7c8; border-radius: 14px; font-family: inherit; font-size: 12px; line-height: 1.85; }
.text-button, .close-button { border: 0; background: transparent; color: #8a6800; cursor: pointer; font-weight: 800; }
.text-button:hover { color: #c88d00; }

.table-wrap { background: rgba(255,253,249,.92); border: 1px solid rgba(255,255,255,.82); border-radius: 22px; box-shadow: var(--soft-shadow); overflow: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid #eeeae1; font-size: 12px; }
th { color: #687179; background: #f5f2e9; }
dialog { width: min(470px,calc(100% - 30px)); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 26px 80px rgba(17,27,35,.25); }
dialog::backdrop { background: rgba(17,27,35,.64); backdrop-filter: blur(3px); }
.dialog-form { padding: 27px; background: var(--paper); }
.close-button { font-size: 24px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 40; padding: 13px 18px; color: #fff; background: #19252e; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; font-size: 12px; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .sidebar { width: 90px; padding: 25px 13px; }
  .brand { justify-content: center; }
  .brand div, .nav-item:not(.active) { font-size: 0; }
  .brand-mark { width: 48px; height: 48px; }
  .nav-item { justify-content: center; padding: 10px; }
  .nav-item span { font-size: 16px; }
  .sidebar-foot { display: none; }
  main { margin-left: 90px; padding: 0 26px 60px; }
  .stat-grid, .product-grid { grid-template-columns: repeat(2,1fr); }
  .two-column, .calculator-grid, .ai-layout { grid-template-columns: 1fr; }
  .hero h2 { font-size: 38px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 80px; }
  .sidebar { inset: auto 8px 8px; width: auto; height: 68px; padding: 7px 8px; display: block; border-radius: 20px; box-shadow: 0 14px 40px rgba(17,27,35,.28); }
  .brand, .sidebar-foot { display: none; }
  .sidebar nav { display: flex; justify-content: space-around; gap: 2px; overflow: hidden; }
  .nav-item, .nav-item:not(.active) { display: grid; justify-items: center; gap: 1px; padding: 6px 4px; font-size: 0; flex: 1 1 0; min-width: 0; }
  .nav-item span { width: 29px; height: 29px; font-size: 16px; }
  .nav-item.active::after { content: attr(data-label); font-size: 9px; }
  main, .view, .hero, .topbar { min-width: 0; max-width: 100%; }
  main { margin: 0; padding: 0 14px 26px; }
  .topbar { min-height: 108px; align-items: flex-start; padding-top: 20px; }
  .topbar h1 { font-size: 24px; }
  .topbar > div:first-child { min-width: 0; }
  .top-actions { justify-content: flex-end; flex: 0 0 150px; width: 150px; min-width: 0; }
  .top-actions .outline-button { width: 100%; min-height: 35px; padding: 7px 9px; font-size: 10px; white-space: nowrap; }
  .hero { min-height: 360px; align-items: flex-start; padding: 28px 23px; }
  .hero h2 { font-size: 32px; }
  .hero-visual { position: absolute; width: 160px; min-height: 125px; right: 12px; bottom: 12px; }
  .budget-ring { width: 132px; height: 112px; border-radius: 20px; }
  .budget-ring strong { font-size: 29px; }
  .floating-label { padding: 6px 8px; font-size: 8px; }
  .flow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .flow-grid article { padding: 13px; min-width: 0; grid-template-columns: 38px minmax(0,1fr); }
  .flow-grid span, .flow-grid small { min-width: 0; overflow-wrap: anywhere; }
  .stat-grid, .stat-grid.small { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .stat-card { min-height: 132px; padding: 16px; }
  .stat-card > strong { font-size: 23px; }
  .two-column, .form-grid, .calculator-grid, .ai-layout { grid-template-columns: 1fr; }
  .section-intro { align-items: flex-start; }
  .section-intro h2 { font-size: 23px; }
  .product-grid { grid-template-columns: 1fr; }
  .panel { padding: 19px; }
  .action-row > * { flex-basis: 100%; }
  .output-panel { min-height: 330px; }
  .output-panel pre { min-height: 250px; }
  .toast { left: 15px; right: 15px; bottom: 88px; text-align: center; }
}

@media (max-width: 390px) {
  .nav-item, .nav-item:not(.active) { padding: 6px; }
  .hero { min-height: 385px; }
  .stat-grid, .stat-grid.small { grid-template-columns: 1fr; }
  .top-actions { flex-basis: 140px; width: 140px; }
  .top-actions .outline-button { font-size: 9px; }
}

.mini-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.output-panel > pre { min-height: 230px; max-height: 330px; overflow: auto; }
.publish-ready { margin-top: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(145deg, #f1fbf8, #e6f6f2); border: 1px solid #cce9e2; }
.publish-ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.publish-ready-head h4 { margin: 5px 0 0; font-size: 17px; }
.publish-ready-head > span { padding: 6px 9px; border-radius: 999px; color: #257568; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; }
.publish-ready label { display: block; margin-top: 12px; }
.publish-ready textarea { min-height: 165px; background: rgba(255,255,255,.78); }
.publish-ready input { background: rgba(255,255,255,.78); }
.publish-ready .form-grid { grid-template-columns: 1fr 1fr 1fr; }
.publish-button { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #172b34, #116f65); box-shadow: 0 10px 24px rgba(17,111,101,.2); cursor: pointer; font-weight: 900; transition: .18s ease; }
.publish-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17,111,101,.27); }
.helper-text { display: block; margin-top: 10px; color: #6d817d; font-size: 10px; line-height: 1.6; }
.mobile-tip { display: none; }
.inline-help { margin: 0 2px; padding: 0; border: 0; color: #087d6c; background: transparent; cursor: pointer; font-weight: 900; text-decoration: underline; }
.install-steps { margin: 0; padding-left: 22px; color: #4f5a60; font-size: 13px; line-height: 2; }
.path-box { padding: 12px; border-radius: 11px; color: #36524d; background: #eef8f5; border: 1px dashed #bedfd7; font-size: 11px; line-height: 1.6; word-break: break-all; user-select: all; }
@media (max-width: 720px) {
  .mini-actions { justify-content: flex-start; }
  .publish-ready { padding: 16px; }
  .publish-ready .form-grid { grid-template-columns: 1fr; }
  .publish-ready-head { display: block; }
  .publish-ready-head > span { display: inline-block; margin-top: 8px; }
  .top-actions a { display: none; }
  .top-actions { flex: 0 0 auto; width: auto; }
  .desktop-tip { display: none; }
  .mobile-tip { display: inline; }
}

.pdd-analyzer { display: grid; grid-template-columns: 64px 1fr 1.5fr .7fr; gap: 16px; align-items: end; margin: 0 0 22px; padding: 22px; border: 1px solid #f1d8c8; border-radius: 24px; color: var(--ink); background: linear-gradient(135deg, #fffdf7 0%, #fff7eb 56%, #ffede1 100%); box-shadow: 0 18px 42px rgba(133,78,43,.12); }
.pdd-mark { align-self: center; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 19px; color: #fff; background: linear-gradient(145deg, #e84539, #f45f43); font-size: 24px; font-weight: 900; box-shadow: 0 10px 25px rgba(171,49,38,.22); transform: rotate(-4deg); }
.pdd-copy { align-self: center; }
.pdd-copy .eyebrow { color: #b83a2e; }
.pdd-copy h3 { margin: 5px 0; font-size: 18px; }
.pdd-copy p { margin: 0; color: #765f54; font-size: 10px; line-height: 1.6; }
.pdd-shop-actions { grid-column: 3 / -1; align-self: center; display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.pdd-shop-actions a { padding: 10px 13px; border: 1px solid #efb9a8; border-radius: 999px; color: #a53128; background: rgba(255,255,255,.88); font-size: 11px; font-weight: 800; text-decoration: none; }
.pdd-shop-actions a:hover { background: #fff; border-color: #de7b66; }
.pdd-analyzer label { color: #433b37; }
.pdd-analyzer input, .pdd-analyzer textarea { color: var(--ink); background: rgba(255,255,255,.94); }
.pdd-link-button { min-height: 45px; border: 0; border-radius: 13px; padding: 10px 13px; color: #fff; background: linear-gradient(135deg, #d93b31, #ed5a3f); cursor: pointer; font-size: 11px; font-weight: 900; box-shadow: 0 8px 20px rgba(173,51,41,.18); }
.pdd-analyze-button { min-height: 45px; border: 0; border-radius: 13px; padding: 10px 15px; color: #33280b; background: linear-gradient(135deg, #ffd838, #ffc727); cursor: pointer; font-size: 12px; font-weight: 900; box-shadow: 0 8px 20px rgba(180,127,0,.16); }
.pdd-status { grid-column: 3 / -1; padding: 9px 12px; border-radius: 11px; color: #665048; background: rgba(225,91,63,.09); font-size: 10px; }
.pdd-upload-field { grid-column: 1 / 3; min-height: 112px; display: grid !important; grid-template-columns: 50px 1fr; align-content: center; column-gap: 13px; padding: 16px; border: 1px dashed #df9f89; border-radius: 17px; background: rgba(255,255,255,.76); cursor: pointer; }
.pdd-upload-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pdd-upload-field .upload-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: #e74a3c; font-size: 26px; font-weight: 500; }
.pdd-upload-field strong { align-self: end; font-size: 13px; }
.pdd-upload-field small { align-self: start; color: #7b645a; font-size: 10px; line-height: 1.5; }
.pdd-image-preview { grid-column: 3 / -1; min-height: 112px; display: grid; grid-template-columns: repeat(6, minmax(58px, 1fr)); gap: 8px; align-items: center; padding: 10px; border: 1px solid #f0d8ca; border-radius: 17px; background: rgba(255,255,255,.76); overflow: hidden; }
.pdd-image-preview span { grid-column: 1 / -1; text-align: center; color: #877269; font-size: 11px; }
.pdd-image-preview figure { position: relative; min-width: 0; margin: 0; aspect-ratio: 1; overflow: hidden; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; background: #fff; }
.pdd-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.pdd-image-preview em { position: absolute; right: 4px; bottom: 4px; padding: 2px 5px; border-radius: 7px; color: #fff; background: rgba(20,25,30,.72); font-size: 9px; font-style: normal; }
.pdd-ocr-field { grid-column: 1 / -2; }
.pdd-ocr-field textarea { min-height: 118px; resize: vertical; }
.pdd-ocr-button { grid-column: -2 / -1; align-self: end; min-height: 45px; border: 0; border-radius: 13px; padding: 10px 15px; color: #fff; background: linear-gradient(135deg, #223646, #142632); cursor: pointer; font-size: 12px; font-weight: 900; }
.pdd-progress { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; padding: 9px 12px; border-radius: 12px; background: #fff3e9; }
.pdd-progress[hidden] { display: none; }
.pdd-progress span { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: linear-gradient(90deg,#e64b3d var(--ocr-progress,0%),#efd8ce var(--ocr-progress,0%)); transition: background .2s ease; }
.pdd-progress b { grid-column: 1 / -1; color: #70584f; font-size: 10px; }
.pdd-result-field { grid-column: 1 / -2; }
.pdd-result-field textarea { min-height: 86px; resize: vertical; }
.pdd-read-button { grid-column: -2 / -1; align-self: end; min-height: 45px; border: 1px solid #dca897; border-radius: 13px; padding: 10px 15px; color: #953027; background: #fff; cursor: pointer; font-size: 12px; font-weight: 900; }
@media (max-width: 1120px) {
  .pdd-analyzer { grid-template-columns: 58px 1fr 1fr; }
  .pdd-copy { grid-column: 2 / -1; }
  .pdd-shop-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pdd-link-field { grid-column: 1 / 3; }
  .pdd-price-field { grid-column: 3; }
  .pdd-link-button, .pdd-upload-field, .pdd-image-preview, .pdd-ocr-field, .pdd-ocr-button, .pdd-progress, .pdd-analyze-button, .pdd-status, .pdd-result-field, .pdd-read-button { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .pdd-analyzer { grid-template-columns: 52px 1fr; padding: 18px; gap: 13px; }
  .pdd-mark { width: 50px; height: 50px; border-radius: 16px; }
  .pdd-copy { grid-column: 2; }
  .pdd-shop-actions { grid-column: 1 / -1; justify-content: stretch; }
  .pdd-shop-actions a { flex: 1; text-align: center; }
  .pdd-link-field, .pdd-price-field, .pdd-link-button, .pdd-upload-field, .pdd-image-preview, .pdd-ocr-field, .pdd-ocr-button, .pdd-progress, .pdd-analyze-button, .pdd-status, .pdd-result-field, .pdd-read-button { grid-column: 1 / -1; }
  .pdd-image-preview { grid-template-columns: repeat(3, 1fr); }
}
