/* ============================================================
   home.css — 首页落地页（2026-11-05 支持 4 主题）
   ⚠ 只在 index.html（body.home）和业务页加载。
   2026-11-05：移除 body.home / body.biz 的强制配色，改为响应 tokens.css 主题。
   ============================================================ */

/* ---------- 主题特定样式（覆盖 body.home/body.biz） ---------- */
/* lingtu：关闭全局装饰层，深色导航 */
html[data-theme="lingtu"] body.home::before,
html[data-theme="lingtu"] body.home::after,
html[data-theme="lingtu"] body.biz::before,
html[data-theme="lingtu"] body.biz::after { display: none; }

html[data-theme="lingtu"] body.home .nav,
html[data-theme="lingtu"] body.biz .nav {
  background: rgba(18, 18, 18, .86);
  backdrop-filter: blur(12px);
}
html[data-theme="lingtu"] body.home .nav.scrolled,
html[data-theme="lingtu"] body.biz .nav.scrolled {
  border-bottom-color: var(--border);
}

/* day/breeze/lake：浅色导航 */
html[data-theme="day"] body.home .nav,
html[data-theme="day"] body.biz .nav,
html[data-theme="breeze"] body.home .nav,
html[data-theme="breeze"] body.biz .nav,
html[data-theme="lake"] body.home .nav,
html[data-theme="lake"] body.biz .nav {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

/* 顶栏主导航（对齐灵图：logo 右侧 6 项，当前页高亮） */
.hp-navlinks { display: flex; align-items: center; gap: 24px; margin-left: 22px; }
.hp-navlinks a { font-size: 13.5px; color: var(--text-dim); padding: 6px 2px; white-space: nowrap; transition: color .15s; }
.hp-navlinks a:hover { color: var(--text); }
.hp-navlinks a.on { color: var(--text); font-weight: 600; }
@media (max-width: 1100px) { .hp-navlinks { display: none; } }

/* ============================================================
   2. 落地页容器
   ============================================================ */
.hp { display: block; width: 100%; }
.hp-sec { width: 100%; }
.hp-inner { max-width: 1200px; margin: 0 auto; padding: 96px 28px; }
.hp-kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-2); letter-spacing: .5px; margin-bottom: 14px; }
.hp-h2 { font-size: 34px; font-weight: 600; color: var(--text); line-height: 1.25; margin-bottom: 12px; }
.hp-h2 em { font-style: normal; color: var(--brand-2); }
.hp-lead { font-size: 16px; color: var(--text-dim); max-width: 640px; line-height: 1.75; }
.hp-sec.center { text-align: center; }
.hp-sec.center .hp-lead { margin: 0 auto; }
.hp-sec.center .hp-h2 { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============================================================
   3. 屏1 · Hero（复刻灵图首屏）
   ============================================================ */
.hp-hero { position: relative; padding: 88px 28px 72px; text-align: center; overflow: hidden; }
.hp-hero::before { /* 顶部主题色柔光 */
  content: ""; position: absolute; inset: -30% -10% auto; height: 560px;
  background: radial-gradient(50% 60% at 50% 0%, var(--brand-dim), transparent 70%);
  pointer-events: none;
}
.hp-h1 { font-size: 56px; font-weight: 500; color: var(--text); line-height: 1.2; letter-spacing: .5px; position: relative; }
.hp-h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-hero .hp-sub { font-size: 18px; color: var(--text-dim); margin: 20px auto 34px; max-width: 680px; line-height: 1.7; }
.hp-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: none;
  padding: 15px 40px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: .5px;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .2s, box-shadow .2s, background .2s; }
.hp-btn:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 16px 44px color-mix(in srgb, var(--brand) 50%, transparent); }
.hp-btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); box-shadow: none; }
.hp-btn.ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* 产品控制台面板（Hero 下方大面板：左侧工具按钮列 + 右侧产品图网格） */
.hp-console { position: relative; max-width: 1080px; margin: 60px auto 0; background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 250px 1fr; gap: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.hp-ctools { display: flex; flex-direction: column; gap: 8px; }
.hp-ctool { display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; border: 1px solid transparent;
  border-radius: 12px; padding: 13px 16px; color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: .15s; }
.hp-ctool .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--border-dim); display: grid; place-items: center; font-size: 17px; flex: none; }
.hp-ctool:hover { background: var(--bg-hover, rgba(127,127,127,0.06)); color: var(--text); }
.hp-ctool.active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--text); }
.hp-ctool.active .ico { background: var(--brand-soft); }
/* 占位按钮（本地工具不足时保持视觉完整）：整体压暗 + 右挂「即将上线」小标 */
.hp-ctool.soon { opacity: .55; }
.hp-ctool.soon:hover { opacity: .85; color: var(--text-dim); background: var(--bg-hover, rgba(255,255,255,0.04)); }
.hp-ctool .soon-t { font-style: normal; margin-left: auto; font-size: 10.5px; color: var(--text-faint);
  border: 1px solid var(--border); padding: 2px 7px; border-radius: 999px; flex: none; }
.hp-cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hp-citem { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; background: #202028;
  border: 1px solid var(--border-dim); }
.hp-citem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-citem .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 10px; font-size: 12px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); }
.hp-tag { position: absolute; top: -14px; left: 30px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 40%, transparent); }
.hp-tag::before { content: "✦"; font-size: 11px; }

/* ============================================================
   4. 屏2 · 价值主张（快/多/好/省 竖排大字 + 三流程卡）
   ============================================================ */
.hp-value .hp-inner { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.hp-bigwords { display: flex; flex-direction: column; gap: 2px; }
.hp-bigwords .w { font-size: 88px; font-weight: 700; line-height: 1.05; color: var(--text); letter-spacing: 2px; }
.hp-bigwords .w.hl { color: var(--brand-2); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 12px; }
.hp-bigwords .hp-lead { margin-top: 20px; font-size: 15px; }
.hp-flow { display: flex; align-items: center; gap: 0; }
.hp-fcard { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.hp-fcard .img { aspect-ratio: 1/1.15; background: #202028; }
.hp-fcard .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-fcard .t { padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--text); }
.hp-fcard .d { padding: 0 16px 16px; font-size: 12.5px; color: var(--text-faint); line-height: 1.6; }
.hp-farrow { flex: none; width: 40px; color: var(--brand-2); font-size: 24px; text-align: center; }

/* ============================================================
   5. 屏3 · AI 图案提取（左图墙 + 右文案）
   ============================================================ */
.hp-split .hp-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hp-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-mosaic .m { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #202028; }
.hp-mosaic .m img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-mosaic .m.big { grid-row: span 2; aspect-ratio: 1; }
.hp-mosaic .m { aspect-ratio: 1; }
.hp-points { list-style: none; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.hp-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-dim); line-height: 1.6; }
.hp-points li .dot { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font-size: 12px; margin-top: 1px; }

/* ============================================================
   6. 屏4 · 套图裂变 / 多联画（三联大横卡）
   ============================================================ */
.hp-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.hp-tcard { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: transform .2s, box-shadow .2s; }
.hp-tcard:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.hp-tcard .img { aspect-ratio: 16/10; background: #202028; overflow: hidden; }
.hp-tcard .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hp-tcard:hover .img img { transform: scale(1.05); }
.hp-tcard .badge { position: absolute; top: 14px; left: 14px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.hp-tcard .t { padding: 16px 18px 6px; font-size: 16px; font-weight: 600; color: var(--text); }
.hp-tcard .d { padding: 0 18px 18px; font-size: 13px; color: var(--text-faint); line-height: 1.6; }

/* ============================================================
   7. 屏5 · AI 印花设计（T恤 mockup 横排卡墙）
   ============================================================ */
.hp-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; }
.hp-wall .card { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.hp-wall .card .img { aspect-ratio: 3/4; background: #202028; }
.hp-wall .card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-wall .card .t { padding: 13px 15px; font-size: 14px; font-weight: 600; color: var(--text); }

/* ============================================================
   8. 屏6 · 批量上架（左工具面板 + 右文案）
   ============================================================ */
.hp-console2 { background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.hp-console2 .rowhead { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding-bottom: 6px; }
.hp-console2 .rowhead .d { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.hp-console2 .rowhead .d.r { background: #e2545c; }
.hp-console2 .col { background: var(--card); border: 1px solid var(--border-dim); border-radius: 12px; padding: 16px; }
.hp-console2 .col .cl { font-size: 12px; color: var(--text-faint); margin-bottom: 12px; }
.hp-console2 .col .it { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; background: var(--bg-hover, rgba(127,127,127,0.05)); margin-bottom: 8px; font-size: 13px; color: var(--text-dim); }
.hp-console2 .col .it .ico { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); display: grid; place-items: center; font-size: 13px; flex: none; }

/* ============================================================
   9. 屏7 · 侵权检测（大图说明）
   ============================================================ */
.hp-ipbox { margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); position: relative; background: var(--surface); }
.hp-ipbox .scan { height: 380px; background: radial-gradient(60% 80% at 50% 20%, var(--brand-dim), transparent 70%); display: grid; place-items: center; }
.hp-ipbox .scan .ring { width: 220px; height: 220px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--brand) 50%, transparent);
  display: grid; place-items: center; font-size: 46px; animation: hpSpin 18s linear infinite; }
@keyframes hpSpin { to { transform: rotate(360deg); } }
.hp-ipbox .scan .ring .core { font-size: 46px; animation: hpSpin 18s linear infinite reverse; }
.hp-ipbox .bar { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.hp-ipbox .bar .st { font-size: 13px; color: var(--text-dim); }
.hp-ipbox .bar .pill { margin-left: auto; background: var(--brand-soft); color: var(--brand-2); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; }

/* ============================================================
   10. 屏9 · 了解更多（三卡） + 屏10 评价墙
   ============================================================ */
.hp-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.hp-more .card { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: .2s; }
.hp-more .card:hover { border-color: var(--brand); transform: translateY(-3px); }
.hp-more .card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.hp-more .card .t { font-size: 16px; font-weight: 600; color: var(--text); }
.hp-more .card .d { font-size: 13px; color: var(--text-faint); margin-top: 3px; }

.hp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.hp-rev { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.hp-rev .r { font-size: 14px; color: var(--text-dim); line-height: 1.75; }
.hp-rev .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.hp-rev .av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.hp-rev .nm { font-size: 14px; font-weight: 600; color: var(--text); }
.hp-rev .role { font-size: 12px; color: var(--text-faint); }

/* ============================================================
   11. 屏11 · 底部 CTA
   ============================================================ */
.hp-cta-sec { text-align: center; padding: 110px 28px; position: relative; overflow: hidden; }
.hp-cta-sec::before { content: ""; position: absolute; inset: -10% -10% auto; height: 420px;
  background: radial-gradient(50% 70% at 50% 0%, var(--brand-dim), transparent 70%); pointer-events: none; }
.hp-cta-sec h2 { font-size: 40px; font-weight: 600; color: var(--text); position: relative; }
.hp-cta-sec .hp-lead { margin: 16px auto 34px; }

/* ============================================================
   12. 屏12 · Footer 深黑多列
   ============================================================ */
body.home .footer { background: var(--bg); border-top: 1px solid var(--border); position: relative; overflow: hidden; }
body.home .footer-mark { opacity: .04; }
body.home .footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 28px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; }
body.home .footer h4 { color: var(--text); font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
body.home .footer a { display: block; color: var(--text-faint); font-size: 13.5px; padding: 5px 0; transition: color .15s; }
body.home .footer a:hover { color: var(--text); }
body.home .beian-bar { max-width: 1200px; margin: 0 auto; padding: 20px 28px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 12.5px; }

/* ============================================================
   13. 业务页（diy / business / openapi / about / blog）
   作用域 body.biz：2026-11-05 支持 4 主题，不再强制深黑。
   ============================================================ */

/* 业务页头（简版 Hero） */
.biz-hero { padding: 72px 28px 48px; text-align: center; position: relative; overflow: hidden; }
.biz-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 420px;
  background: radial-gradient(50% 60% at 50% 0%, var(--brand-dim), transparent 70%); pointer-events: none; }
.biz-hero .hp-h1 { font-size: 42px; }
.biz-hero .hp-sub { font-size: 16px; color: var(--text-dim); margin: 16px auto 0; max-width: 620px; }
.biz-main { max-width: 1080px; margin: 0 auto; padding: 24px 28px 90px; }

/* 来图定制：流程步骤卡 */
.hp-steprow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.hp-stepcard { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.hp-stepcard .no { font-size: 13px; font-weight: 700; color: var(--brand-2); letter-spacing: 1px; }
.hp-stepcard .t { font-size: 16px; font-weight: 600; color: var(--text); }
.hp-stepcard .d { font-size: 13px; color: var(--text-faint); line-height: 1.65; flex: 1; }
.hp-stepcard .go { font-size: 13px; color: var(--brand-2); font-weight: 600; margin-top: 8px; }

/* 博客：分类胶囊 + 文章列表 */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 26px; }
.blog-tab { background: transparent; border: 1px solid var(--border-strong); color: var(--text-dim); font-size: 13px; padding: 8px 18px; border-radius: 999px; transition: .15s; }
.blog-tab:hover { color: var(--text); border-color: var(--border-strong); }
.blog-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.hp-post { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; transition: .15s; }
.hp-post:hover { border-color: var(--brand); transform: translateY(-2px); }
.hp-post .pt { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.hp-post .ps { display: block; font-size: 13px; color: var(--text-faint); margin-top: 5px; }
.hp-post .pd { display: block; font-size: 12px; color: var(--text-faint); margin-top: 10px; opacity: .8; }

/* 信息区块（openapi/about/business 共用） */
.biz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.biz-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.biz-card .ico { font-size: 26px; }
.biz-card .t { font-size: 15.5px; font-weight: 600; color: var(--text); margin-top: 12px; }
.biz-card .d { font-size: 13px; color: var(--text-faint); line-height: 1.7; margin-top: 6px; }
.biz-code { background: #17171d; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; font-family: Consolas, monospace; font-size: 12.8px; color: #c9ccd6; line-height: 1.8; overflow-x: auto; white-space: pre; margin-top: 30px; }
.biz-code .k { color: #e8b4b7; }
.biz-code .s { color: #9fd6a8; }

@media (max-width: 900px) {
  .hp-steprow { grid-template-columns: 1fr 1fr; }
  .biz-cards { grid-template-columns: 1fr; }
  .biz-hero .hp-h1 { font-size: 30px; }
}
@media (max-width: 600px) {
  .hp-steprow { grid-template-columns: 1fr; }
  .biz-main { padding: 16px 20px 70px; }
}

/* ============================================================
   落地页响应式
   ============================================================ */
@media (max-width: 1000px) {
  .hp-h1 { font-size: 40px; }
  .hp-console { grid-template-columns: 1fr; }
  .hp-cgrid { grid-template-columns: repeat(4, 1fr); }
  .hp-value .hp-inner, .hp-split .hp-inner { grid-template-columns: 1fr; gap: 40px; }
  .hp-bigwords { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .hp-bigwords .w { font-size: 52px; }
  .hp-flow { flex-direction: column; gap: 18px; }
  .hp-farrow { transform: rotate(90deg); }
  .hp-triptych, .hp-more, .hp-reviews { grid-template-columns: 1fr; }
  .hp-wall { grid-template-columns: repeat(2, 1fr); }
  .hp-console2 { grid-template-columns: 1fr; }
  body.home .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hp-inner { padding: 64px 20px; }
  .hp-h1 { font-size: 32px; }
  .hp-cgrid { grid-template-columns: repeat(2, 1fr); }
  .hp-wall { grid-template-columns: 1fr 1fr; }
  body.home .footer-inner { grid-template-columns: 1fr; }
}


/* Footer 主题适配 */
html[data-theme="lingtu"] body.home .footer {
  background: #0d0d10;
}
html[data-theme="day"] body.home .footer,
html[data-theme="breeze"] body.home .footer,
html[data-theme="lake"] body.home .footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
