/* Very Cool Kits 前台样式：极简、大留白、单强调色。--accent 由布局内联注入。 */
:root {
  --accent: #0A84FF;
  --ink: #111;
  --ink-2: #555;
  --ink-3: #999;
  --line: #e8e8e8;
  --bg: #fff;
  --bg-alt: #f7f8fa;
  --radius: 14px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; font-family: inherit; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 品牌标 */
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.02em; }

/* 导航 */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 提示条 */
.flash { position: fixed; top: calc(var(--nav-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 60; padding: 10px 18px; border-radius: 10px; font-size: 14px; background: #111; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); max-width: calc(100% - 32px); }
.flash-success { background: #1a7f4b; }
.flash-error { background: #c0392b; }
.flash-warning { background: #b7791f; }

main { padding-top: var(--nav-h); }

/* 首页：全屏分屏 */
.page-home main { padding-top: 0; }
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; text-align: center; padding: 96px 24px 64px; }
.hero-mark { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 26px; background: var(--accent); color: #fff; font-weight: 800; font-size: 34px; letter-spacing: -.03em; margin-bottom: 28px; box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -.03em; }
.hero-slogan { margin: 18px auto 0; font-size: clamp(17px, 2vw, 22px); color: var(--ink-2); max-width: 640px; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--ink-3); font-size: 22px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.section { padding: 96px 24px; display: flex; align-items: center; }
.section-inner { max-width: 1200px; width: 100%; margin: 0 auto; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; margin-bottom: 40px; text-align: center; }
.section-more { text-align: center; margin-top: 32px; }
.section-cta { text-align: center; }
.cta-text { color: var(--ink-2); font-size: 18px; margin: -20px 0 28px; }

@media (min-width: 1024px) {
  html.page-home { scroll-snap-type: y proximity; }
  .page-home .snap { min-height: 100vh; scroll-snap-align: start; }
}

/* 网格与卡片 */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.08); border-color: transparent; }
.card-cover { aspect-ratio: 16 / 10; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { font-size: 48px; font-weight: 800; color: color-mix(in srgb, var(--accent) 60%, #fff); }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: 18px; }
.card-body p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.card-kind { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.cat-card { display: block; padding: 32px 28px; border-radius: var(--radius); background: var(--bg-alt); position: relative; transition: background .2s, transform .2s; }
.cat-card:hover { background: color-mix(in srgb, var(--accent) 8%, #fff); transform: translateY(-3px); }
.cat-card h3 { font-size: 24px; margin-top: 8px; }
.cat-card p { color: var(--ink-2); margin-top: 8px; }
.cat-count { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }

.tool-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; position: relative; }
.tool-card .card-body { padding: 0; flex: 1; }
.tool-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.tool-icon img { width: 32px; height: 32px; }
.tool-arrow { color: var(--ink-3); font-size: 26px; }

/* 内页 */
.page { padding: 56px 24px 96px; }
.page-inner { max-width: 1200px; margin: 0 auto; }
.page-inner.narrow { max-width: 760px; }
.page-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; margin-bottom: 12px; }
.page-lead { color: var(--ink-2); font-size: 17px; margin-bottom: 36px; }
.crumb { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }
.crumb a:hover { color: var(--ink); }
.empty { color: var(--ink-3); text-align: center; padding: 64px 0; }
.page-title + .grid { margin-top: 32px; }

.prose { font-size: 17px; line-height: 1.8; color: #222; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose a { color: var(--accent); }
.prose img { border-radius: 10px; margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }

/* 产品详情 */
.detail-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.detail-cover { aspect-ratio: 1 / 1; border-radius: 24px; background: var(--bg-alt); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-intro h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--ink-2); margin-top: 12px; }
.detail-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.detail-qr { margin: 28px 0 0; }
.detail-qr img { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 12px; }
.detail-qr figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 48px; scroll-snap-type: x mandatory; }
.gallery img { height: 420px; width: auto; border-radius: 16px; flex-shrink: 0; scroll-snap-align: start; border: 1px solid var(--line); }

/* 表单 */
.form label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form textarea, .form select,
.tool-box input[type="text"], .tool-box textarea, .tool-box select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); transition: border-color .15s; }
.form input:focus, .form textarea:focus, .tool-box input:focus, .tool-box textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form .btn { margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-form { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 48px; }
.message-form label:first-of-type { margin-top: 0; }

/* 留言列表 */
.message { padding: 22px 0; border-bottom: 1px solid var(--line); }
.message header { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.message time { color: var(--ink-3); font-size: 13px; }
.message p { color: #222; }
.message-reply { margin-top: 12px; padding: 12px 16px; background: var(--bg-alt); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.message-reply span { color: var(--accent); font-weight: 600; }
.pagination { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 36px; color: var(--ink-3); font-size: 14px; }
.pagination a { color: var(--ink); }

/* 工具页 */
.tool-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tool-box label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.tool-box label:first-child { margin-top: 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.tool-hint { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.tool-result { margin-top: 18px; padding: 14px 16px; background: var(--bg-alt); border-radius: 10px; font-size: 15px; line-height: 1.8; min-height: 24px; word-break: break-all; }
.tool-result:empty { display: none; }
.tool-now { margin-bottom: 8px; color: var(--ink-2); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; margin-top: 12px; }
.field-row label { margin: 0; }
.color-preview { height: 120px; border-radius: 12px; border: 1px solid var(--line); background: var(--accent); margin-bottom: 8px; }
input[type="color"] { width: 56px; height: 40px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 48px 24px; color: var(--ink-3); font-size: 14px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--ink); }

/* 进场动效 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* 平板 */
@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 24px; }
  .detail-head { grid-template-columns: 1fr; gap: 28px; }
  .detail-cover { max-width: 360px; }
  .gallery img { height: 320px; }
}

/* 手机：简化版 */
@media (max-width: 639px) {
  :root { --nav-h: 56px; }
  .nav-inner { padding: 0 16px; }
  .brand-name { display: none; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; font-size: 16px; }
  .hero { min-height: 60vh; padding: 80px 20px 48px; }
  .hero-mark { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; margin-bottom: 18px; }
  .hero-actions .btn-ghost { display: none; }  /* 手机只留主按钮 */
  .hero-scroll { display: none; }
  .section { padding: 48px 20px; }
  .section-title { margin-bottom: 24px; }
  .grid { gap: 14px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cat-card { padding: 22px; }
  .cat-count { font-size: 30px; }
  .card-kind { display: none; }
  .tool-card { padding: 14px 16px; gap: 12px; }
  .tool-icon { width: 42px; height: 42px; font-size: 20px; }
  .tool-card .card-body p { font-size: 13px; }
  .page { padding: 32px 20px 64px; }
  .page-lead { font-size: 15px; margin-bottom: 24px; }
  .gallery { display: none; }  /* 手机不显示截图轮播，只留封面 */
  .detail-cover { max-width: 200px; border-radius: 18px; }
  .tool-box, .message-form { padding: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 6px; }
  .footer { padding: 32px 20px; }
  .footer-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
