/* 万亿软件主站 · 浅色科技风。theme.css 与 video 子站共用，这里在其后覆盖主站用到的变量。 */
:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --ink: #0b1220;
  --body-text: #4a5468;
  --muted: #6b7486;
  --line: #e4e7ee;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --surface-muted: #f1f3f8;
  --accent: #2d5bff;
  --accent-2: #7a4dff;
  --night: #0b1220;
  --night-2: #141d33;
  --night-text: #b9c2d6;
  --green: var(--ink);
  --gold: var(--accent);
  --gold2: #9db4ff;
  --cream: #ffffff;
  --dark-text: var(--night-text);
  --brand-text: #ffffff;
  --forest: linear-gradient(135deg, var(--night), var(--night-2));
  --input-bg: #ffffff;
  --input-line: #d6dbe6;
  --radius-button: 10px;
  --radius-card: 20px;
  --shadow: 0 1px 2px #0b12200a, 0 12px 32px #0b12200d;
  --shadow-lg: 0 2px 6px #0b12200f, 0 30px 70px #1b2b6622;
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.7; background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button, select, textarea, input { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; padding: 6px 12px; z-index: 20; background: var(--panel); }
.skip:not(:focus) { clip-path: inset(50%); }
.label { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 99px;
  font-size: .84rem; font-weight: 600; color: var(--ink); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pill b { padding: 1px 9px; border-radius: 99px; font-size: .76rem; color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* 顶栏 */
.masthead { position: sticky; top: 0; z-index: 10; background: #ffffffd9; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; gap: 10px; align-items: center; justify-self: start; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.wordmark { font-size: 1.05rem; font-weight: 750; line-height: 1.15; color: var(--ink); display: inline-flex; flex-direction: column; }
.wordmark span { font-size: .62rem; color: var(--muted); letter-spacing: .16em; margin-top: 3px; font-weight: 600; }
.masthead nav { display: flex; align-items: center; gap: 4px; }
.masthead nav a { position: relative; padding: 7px 14px; border-radius: 99px; font-size: .92rem; font-weight: 600; color: var(--body-text); white-space: nowrap; transition: background .15s, color .15s; }
.masthead nav a:hover { color: var(--ink); background: var(--surface-muted); }
.masthead nav a[aria-current] { color: var(--ink); background: var(--surface-muted); }
.header-action { justify-self: end; }

/* 按钮 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px;
  border: 1px solid transparent; border-radius: var(--radius-button); font-size: .94rem; font-weight: 650; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px #0b122026; }
.primary:hover { background: #1c2740; }
.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px #2d5bff40; }
.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
.secondary:hover { border-color: #c5cbd8; }
.on-dark { color: #fff; border-color: #ffffff33; background: #ffffff0f; }
.on-dark:hover { border-color: #ffffff80; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow::after { content: '→'; display: inline-block; transition: transform .15s; }
a:hover .arrow::after, a.arrow:hover::after { transform: translateX(3px); }

/* 首页主视觉 */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(#0b12200a 1px, transparent 1px), linear-gradient(90deg, #0b12200a 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; width: 900px; height: 600px; right: -200px; top: -180px;
  background: radial-gradient(closest-side, #2d5bff2e, transparent), radial-gradient(closest-side at 30% 70%, #7a4dff26, transparent);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; padding-block: clamp(48px, 6.5vw, 104px) clamp(44px, 5.5vw, 88px); }
.hero h1 { margin-top: 22px; font-size: clamp(2.4rem, 4.6vw, 4.3rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; color: var(--ink); }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-summary { max-width: 32rem; margin: 22px 0 32px; font-size: clamp(1rem, 1.3vw, 1.14rem); color: var(--body-text); }
.hero-visual { position: relative; padding-bottom: 34px; }
.hero-window { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-window img { width: 100%; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: .78rem; color: var(--muted); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e6ed; }
.window-bar span { margin-inline-start: 8px; }
.hero-phone {
  position: absolute; width: clamp(110px, 24%, 168px); left: -28px; bottom: 0; overflow: hidden;
  border: 5px solid var(--ink); border-radius: 22px; background: var(--ink); box-shadow: var(--shadow-lg);
}
.hero-phone img { border-radius: 16px; }
.hero-note { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: end; }

/* 产品矩阵 */
.section { padding-block: clamp(48px, 6.5vw, 100px); }
.section-head { margin-bottom: 34px; max-width: 44rem; }
.section-head .label { display: block; margin-bottom: 10px; }
.section-head > p:last-child { margin-top: 12px; color: var(--body-text); font-size: 1.04rem; }
h2, h3 { color: var(--ink); line-height: 1.25; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.65rem); letter-spacing: -.035em; font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; font-weight: 750; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-height: 280px;
  padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius-card); background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile p:not(.label) { color: var(--body-text); }
.tile .more { margin-top: auto; padding-top: 8px; font-weight: 650; color: var(--ink); display: inline-flex; gap: 6px; }
.tile-erp { grid-column: span 4; grid-row: span 2; background: var(--forest); border-color: transparent; color: #fff; }
.tile-erp h3, .tile-erp .more { color: #fff; }
.tile-erp p:not(.label) { color: var(--night-text); max-width: 30rem; }
.tile-erp .label { color: var(--gold2); }
.tile-erp figure { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff1f; box-shadow: 0 20px 50px #00000066; }
.tile-erp .more { margin-top: 18px; }
.tile-video { grid-column: span 2; background: linear-gradient(160deg, #fff6ee, #ffe9dc); border-color: #f7dccb; }
.tile-video .label { color: #c8562b; }
.tile-ai { grid-column: span 2; background: linear-gradient(160deg, #f1f4ff, #e6ecff); border-color: #d9e1fb; }
.tile-game { grid-column: span 3; }
.tile-contact { grid-column: span 3; background: linear-gradient(160deg, #f4f0ff, #ece5ff); border-color: #e0d6fb; }
.tile-contact .label { color: var(--accent-2); }
.tile-game img { border-radius: 12px; border: 1px solid var(--line); margin-top: 6px; }
.tile-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #ffffffb3; border: 1px solid #ffffff; box-shadow: var(--shadow); color: var(--ink); }
.tile-icon svg { width: 22px; height: 22px; }

/* ERP 功能 */
.product-section { border-top: 1px solid var(--line); background: var(--panel); }
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 4.5vw, 70px); padding-block: clamp(24px, 3vw, 40px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-warehouse .feature-copy { order: 2; }
.feature h3, .feature-pair h3 { max-width: 19ch; }
.feature-copy .label, .feature-pair .label { display: block; margin-bottom: 10px; }
.feature-copy > p:not(.label), .feature-pair p:not(.label) { color: var(--body-text); margin-top: 12px; }
.feature-list { display: grid; gap: 14px; margin-top: 22px; }
.feature-list div { padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); }
.feature-list dt { font-weight: 700; color: var(--ink); }
.feature-list dd { color: var(--body-text); }
.evidence { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.evidence img { width: 100%; }
.evidence figcaption { font-size: .78rem; border-top: 1px solid var(--line); color: var(--muted); padding: 8px 14px; background: #fbfcfe; }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.feature-pair article { padding: clamp(22px, 3vw, 38px); border-radius: var(--radius-card); }
.stock-card { background: var(--bg); border: 1px solid var(--line); }
.stock-card .evidence { margin-top: 22px; box-shadow: var(--shadow); }
.mobile-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 36%); align-items: center; gap: 18px; background: var(--forest); }
.mobile-card h3 { color: #fff; }
.mobile-card .label { color: var(--gold2); }
.feature-pair .mobile-card p:not(.label) { color: var(--night-text); }
.mobile-card img { border: 4px solid #ffffff; border-radius: 16px; }
.mobile-card figcaption { margin-top: 6px; text-align: center; font-size: .75rem; color: var(--night-text); }

/* 收尾号召 */
.cta { padding-block: clamp(40px, 6vw, 90px); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(30px, 5vw, 64px); border-radius: 28px; background: var(--forest); color: #fff;
}
.cta-card::after { content: ''; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 520px; height: 520px; background: radial-gradient(closest-side, #2d5bff55, transparent); }
.cta-card h2 { color: #fff; }
.cta-card p { color: var(--night-text); margin-top: 10px; }

/* 内页标题 */
.subhead { position: relative; overflow: hidden; isolation: isolate; background: var(--forest); color: #fff; }
.subhead::after { content: ''; position: absolute; z-index: -1; width: 700px; height: 500px; right: -120px; top: -200px; background: radial-gradient(closest-side, #2d5bff4d, transparent), radial-gradient(closest-side at 20% 80%, #7a4dff33, transparent); }
.subhead-inner { padding-block: clamp(44px, 5.5vw, 84px); }
.subhead .label { color: var(--gold2); }
.subhead h1 { margin-top: 12px; font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 800; color: #fff; }
.subhead h1 span { color: var(--gold2); }
.subhead p:last-child { color: var(--night-text); margin-top: 16px; max-width: 40rem; }

/* 工具与表单 */
.tool-grid, .contact-grid { display: grid; gap: 20px; align-items: start; }
.tool-grid { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
.contact-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.panel { padding: clamp(20px, 2.8vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); box-shadow: var(--shadow); }
.form-panel { display: grid; gap: 9px; }
.form-panel h2, .contact-info h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 9px; }
.form-panel label { font-weight: 650; }
.form-panel :is(input, textarea, select), .studio-output textarea {
  width: 100%; min-width: 0; padding: 10px 12px; background: var(--input-bg); border: 1px solid var(--input-line);
  border-radius: var(--radius-button); color: var(--ink); margin-bottom: 6px;
}
.form-panel textarea, .studio-output textarea { display: block; resize: vertical; }
.form-panel :is(input, textarea, select):focus-visible, .studio-output textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-panel > .button { justify-self: start; margin-top: 5px; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field-grid label { display: block; margin-bottom: 5px; }
.contact-info dl { display: grid; gap: 12px; margin-block: 18px; }
.contact-info dl > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.contact-info dt { font-weight: 650; }
.contact-info dd, .contact-info p, .feedback { color: var(--body-text); }
.contact-info a { text-decoration: underline; overflow-wrap: anywhere; }
.brief-result { margin-top: 12px; }
.brief-result textarea { margin: 7px 0 11px; }
.feedback { overflow-wrap: anywhere; }
.feedback:empty { margin: 0; }
.output-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; margin-bottom: 15px; }
.output-heading h3 { font-size: 1.25rem; }
.output-heading span { font-size: .84rem; color: var(--muted); }
.story-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.story-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.story-card h3 { font-size: 1rem; padding: 10px 10px 3px; }
.story-card p { padding: 0 10px 12px; font-size: .88rem; color: var(--body-text); }
.scene { aspect-ratio: 16 / 9; position: relative; isolation: isolate; display: grid; place-items: center; background: linear-gradient(135deg, #3b5bff, #1a2a6b); color: #fff; overflow: hidden; }
.scene::before { position: absolute; content: ''; z-index: -1; width: 30%; aspect-ratio: 4 / 5; border: 1px solid #ffffff66; border-radius: 6px; }
.scene-opening::before { transform: rotate(-18deg); }
.scene-detail { background: linear-gradient(135deg, #7a4dff, #2b1a6b); }
.scene-detail::before { width: 42%; transform: rotate(21deg) translate(50%, 10%); }
.scene-closing { background: linear-gradient(135deg, #1c2740, #0b1220); }
.scene-closing::before { width: 42%; aspect-ratio: 2 / 1; }
.scene span { font-weight: 650; font-size: .8rem; padding: 3px 10px; border-radius: 20px; background: #0b1220cc; }
.story-frames.vertical .scene { aspect-ratio: 9 / 16; }
.story-frames.cinema .scene { background: linear-gradient(135deg, #5a3d1e, #1d1710); }
.story-frames.daily .scene { background: linear-gradient(135deg, #3f8f7a, #1b3f37); }
.studio-output .feedback { margin-top: 13px; }
.studio-output .button { margin-top: 13px; }
.studio-output textarea { margin-top: 12px; }

/* AI 小游戏卡片 */
.game-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 3vw, 40px); align-items: center; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-card img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.game-info { display: grid; gap: 10px; justify-items: start; }
.game-info h3 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
.game-info p:not(.label) { color: var(--body-text); }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; padding: 0; list-style: none; }
.game-tags li { font-size: .82rem; padding: 2px 11px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }

.next-section { padding-block: clamp(36px, 5vw, 64px); background: var(--panel); border-top: 1px solid var(--line); }
.next-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.next-line h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.next-line p { color: var(--body-text); margin-top: 8px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-block: 34px 26px; }
.footer-top p { margin-top: 10px; color: var(--body-text); font-size: .86rem; }
.footer-top nav, .footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(14px, 3vw, 28px); }
.footer-top nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; color: var(--body-text); }
.footer-top nav a:hover, .footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { padding-block: 14px 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.police, .police a { display: inline-flex; align-items: center; gap: 6px; }
.seal { display: inline-block; width: 15px; height: 15px; border: 1px dashed #a3abbb; border-radius: 3px; }

@media (max-width: 1020px) {
  .tile-erp { grid-column: span 6; grid-row: auto; }
  .tile-video, .tile-ai { grid-column: span 3; }
}
@media (max-width: 950px) {
  .wrap { width: calc(100% - 48px); }
  .masthead nav a { padding-inline: 10px; }
  .tool-grid { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0; padding-top: 10px; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 2px; margin: 6px -6px 8px; }
  .masthead nav a { padding: 6px 8px; }
  .hero-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 40px 34px; }
  .hero h1 { font-size: clamp(2.3rem, 9.5vw, 3.6rem); }
  .hero-summary { margin: 16px 0 24px; }
  .hero-visual { padding-bottom: 24px; padding-inline-start: 18px; }
  .hero-phone { left: -4px; width: 26%; border-width: 4px; border-radius: 16px; }
  .hero-phone img { border-radius: 11px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-erp, .tile-video, .tile-ai, .tile-game, .tile-contact { grid-column: auto; min-height: 0; }
  .feature, .feature-pair, .contact-grid { grid-template-columns: 1fr; }
  .feature-warehouse .feature-copy { order: 0; }
  .next-line { align-items: flex-start; flex-direction: column; }
  .footer-top { display: grid; }
}
@media (max-width: 500px) {
  .story-frames { grid-template-columns: 1fr; }
  .story-card { display: grid; grid-template-columns: 29% 1fr; grid-template-rows: auto 1fr; }
  .story-card .scene { grid-row: 1 / 3; align-self: center; margin: 7px; border-radius: 5px; }
  .story-card h3, .story-card p { padding-inline: 11px; }
  .mobile-card { grid-template-columns: 1fr 34%; }
}
@media (max-width: 400px) {
  .masthead nav a { font-size: .82rem; padding-inline: 5px; }
  .header-action { min-height: 38px; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .tile, .game-card { transition: none; }
  .button:hover, .tile:hover, .game-card:hover { transform: none; }
}
