/* 小蓝拼豆工坊 · 站点样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #141a25;
  --sub: #5b6b7f;
  --line: #e2e8f0;
  --bg: #f5f7fa;
  --card: #ffffff;
  --blue: #2f6fd0;
  --blue2: #3b82f6;
  --pink: #e3567f;
  --gold: #c9941f;
  --mint: #14b8a6;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Microsoft YaHei','PingFang SC','Noto Sans SC',system-ui,sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 40; height: 58px; background: rgba(20,26,37,.96); color: #e6edf5; display: flex; align-items: center; gap: 16px; padding: 0 22px; backdrop-filter: blur(8px); }
.top .brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.top .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,#f472b6,#2f6fd0); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.top .name { font-family: 'Noto Serif SC','STSong',serif; font-size: 18px; letter-spacing: 1.5px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 13.5px; }
.top nav a { color: #9fb0c3; }
.top nav a:hover { color: #fff; }
.top .cta { background: #f59e0b; color: #3b2200; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 9px; }
.top .menu-btn { display: none; background: none; border: 0; color: #e6edf5; font-size: 20px; cursor: pointer; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 11px; font-size: 14.5px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.btn.primary:hover { background: #275fae; }
.btn.pink { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }

/* 首页 */
.hero { padding: 64px 0 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--blue); background: #e8f0fd; border: 1px solid #cddffa; padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-family: 'Noto Serif SC','STSong',serif; font-size: 48px; line-height: 1.24; margin: 20px 0 16px; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p { color: var(--sub); font-size: 15.5px; line-height: 1.85; max-width: 560px; }
.hero .acts { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0d1524; box-shadow: 0 30px 60px -34px rgba(20,26,37,.5); }
.hero .shot img { display: block; width: 100%; }
.stats { display: flex; gap: 30px; margin-top: 25px; flex-wrap: wrap; }
.stat b { font-family: 'Noto Serif SC','STSong',serif; font-size: 25px; display: block; }
.stat span { font-size: 12.5px; color: var(--sub); }

section { padding: 52px 0; }
.sec-head { margin-bottom: 24px; }
.sec-head .no { font-size: 12.5px; color: var(--blue); letter-spacing: 2px; font-weight: 700; }
.sec-head h2 { font-family: 'Noto Serif SC','STSong',serif; font-size: 30px; margin-top: 8px; }
.sec-head p { color: var(--sub); font-size: 14.5px; margin-top: 10px; line-height: 1.8; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; }
.card .ic { width: 36px; height: 36px; border-radius: 10px; background: #e8f0fd; color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.card h3 { font-size: 16px; margin: 13px 0 8px; }
.card p { font-size: 13.5px; color: var(--sub); line-height: 1.8; }

/* 定价 */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; position: relative; }
.price.hot { border-color: #f0b8c8; box-shadow: 0 24px 50px -32px rgba(227,86,127,.55); }
.price .badge { position: absolute; top: -12px; left: 22px; background: var(--pink); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.price h3 { font-size: 16px; }
.price .num { font-family: 'Noto Serif SC','STSong',serif; font-size: 40px; margin: 12px 0 4px; }
.price .num small { font-size: 14px; color: var(--sub); font-family: inherit; }
.price ul { list-style: none; margin: 14px 0 20px; }
.price li { font-size: 13.5px; color: #334155; padding: 4px 0 4px 20px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.price .sub { font-size: 12px; color: #8496aa; margin-top: 10px; line-height: 1.7; }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq details { border-top: 1px solid var(--line); padding: 15px 20px; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-size: 14.5px; font-weight: 700; }
.faq p { font-size: 13.5px; color: var(--sub); line-height: 1.85; margin-top: 9px; }

.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 13px 18px; font-size: 13px; line-height: 1.85; }

footer.site-foot { background: #141a25; color: #8496aa; padding: 34px 0; font-size: 12.5px; line-height: 2; }
footer.site-foot b { color: #cbd5e1; }
footer.site-foot a { color: #a8bcc9; }

/* ============ 工作台 studio ============ */
body.studio { overflow: hidden; }
.app { height: calc(100vh - 58px); display: grid; grid-template-columns: 330px minmax(0,1fr) 300px; min-height: 0; }
.app-left { background: #fff; border-right: 1px solid var(--line); overflow: auto; padding: 16px 16px 30px; }
.app-main { display: flex; flex-direction: column; min-width: 0; background: #eef2f7; }
.app-right { background: #fff; border-left: 1px solid var(--line); overflow: auto; padding: 16px; }
.side-title { font-size: 12px; color: #8b9aab; letter-spacing: 1.5px; font-weight: 700; margin: 18px 0 10px; }
.side-title:first-child { margin-top: 0; }
.drop { border: 2px dashed #c7d5e6; border-radius: 14px; padding: 26px 14px; text-align: center; color: var(--sub); font-size: 13px; cursor: pointer; background: #f8fafc; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--blue2); background: #eef6ff; }
.drop b { color: var(--blue); }
.fileBtn { display: block; }
.field { margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; font-size: 12.5px; color: #5b6b7f; margin-bottom: 6px; }
.field label b { color: var(--blue); font-variant-numeric: tabular-nums; }
.field input[type=range] { width: 100%; accent-color: var(--blue); }
.field select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: #fff; color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; margin: 9px 0; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--blue); }
.samples { display: flex; gap: 8px; flex-wrap: wrap; }
.samples button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 10px; font-size: 12.5px; cursor: pointer; color: #334155; }
.samples button:hover { border-color: var(--blue2); color: var(--blue); }
.genRow { display: flex; gap: 8px; margin-top: 14px; }
.genRow .btn { flex: 1; }

.toolbar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.tabs { display: flex; gap: 6px; }
.tabs button { border: 1px solid var(--line); background: #f8fafc; border-radius: 9px; padding: 7px 13px; font-size: 13px; cursor: pointer; color: #475569; }
.tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.toolbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.preview-wrap { flex: 1; position: relative; min-height: 0; display: grid; place-items: center; padding: 14px; overflow: hidden; }
#canvas2d { max-width: 100%; max-height: 100%; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px -24px rgba(20,26,37,.4); display: block; }
#canvas3d { width: 100%; height: 100%; border-radius: 12px; display: none; background: #0d1524; }
.hintbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(20,26,37,.72); color: #cbd5e1; font-size: 12px; padding: 6px 14px; border-radius: 999px; pointer-events: none; }

.legend { margin-top: 6px; }
.legend .row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #eef2f7; font-size: 12.5px; }
.legend .sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); flex: none; }
.legend .code { color: #8b9aab; width: 34px; font-variant-numeric: tabular-nums; }
.legend .nm { flex: 1; color: #334155; }
.legend .ct { color: #5b6b7f; font-variant-numeric: tabular-nums; }
.total { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 12.5px; color: #5b6b7f; line-height: 1.9; }
.total b { color: var(--ink); font-size: 15px; }
.unlock { margin-top: 14px; }
.unlock input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; margin-bottom: 8px; }
.unlock .btn { width: 100%; }
.buybox { background: #fff7fb; border: 1px solid #f6c9d8; border-radius: 12px; padding: 13px 14px; font-size: 12.5px; color: #7a4a5b; line-height: 1.85; margin-top: 14px; }
.buybox b { color: var(--pink); }
.locked-tip { font-size: 12px; color: #b45309; background: #fef3c7; border-radius: 8px; padding: 6px 9px; margin-top: 8px; display: none; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero h1 { font-size: 36px; }
  .cards, .price-grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; height: calc(100vh - 58px); }
  .app-left { max-height: 38vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-right { max-height: 32vh; border-left: 0; border-top: 1px solid var(--line); }
  .top nav { display: none; }
  .top .menu-btn { display: block; margin-left: auto; }
}
