/* ============================================================
   鹿小鹿（北京）科贸有限公司 官网样式
   风格依据：旧站 luxiaolu.xin（阿里云万小智模板）
   白/浅灰底 + 深蓝灰文字 + 橘色主色 + 深棕点缀，三栏卡片、流程条、底部 CTA
   ============================================================ */

:root {
  --brand: #EE7A1A;          /* 旧站主橘 rgb(238 122 26) */
  --brand-bright: #FF8A2B;
  --brand-deep: #C2410C;     /* 白底上的橘色小字，保证对比度 */
  --brand-soft: #FFF7ED;     /* 旧站浅橘底 */
  --brown: #3B2118;          /* 产品卡左半张深棕 */
  --ink: #111827;            /* 旧站主文字 */
  --ink-2: #374151;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .07);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

/* 键盘焦点必须可见 */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--brown); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 10px;
  font-weight: 700; font-size: 15px; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
/* 橘底 + 深棕字：亮橘上白字对比度不足，改用深字保证可读性，同时呼应产品卡深棕 */
.btn-primary { background: var(--brand); color: var(--brown); box-shadow: 0 8px 20px rgba(238, 122, 26, .26); }
.btn-primary:hover { background: var(--brand-bright); box-shadow: 0 12px 26px rgba(238, 122, 26, .34); }
.btn-ghost { border-color: #D6DBE0; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.text-link { color: var(--brand-deep); font-weight: 700; font-size: 15px; }
.text-link:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(17, 24, 39, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; object-position: center 28%;
  border: 2px solid var(--brand); background: var(--brand-soft);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 17px; letter-spacing: .02em; }
.brand-text small { font-size: 11px; color: var(--ink-3); }

.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.nav-links > a:not(.btn) { color: var(--ink-2); transition: color .2s ease; }
.nav-links > a:not(.btn):hover { color: var(--brand-deep); }
.nav-toggle { display: none; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; min-height: 620px; background: #fff; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 62% at 88% 12%, rgba(238, 122, 26, .13), transparent 72%),
    radial-gradient(42% 52% at 4% 92%, rgba(238, 122, 26, .07), transparent 72%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
  align-items: center; gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px);
}
.eyebrow { color: var(--brand-deep); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.22; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--brand); }
.hero-desc { max-width: 580px; margin-top: 20px; color: var(--ink-2); font-size: clamp(15px, 1.35vw, 17px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-tags li {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--brand-deep); background: var(--brand-soft); border: 1px solid #FBE3C8;
}

/* 吉祥物徽章 + 产品实拍叠放 */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.mascot-badge {
  position: absolute; top: -6px; right: 2%; z-index: 2;
  width: clamp(112px, 12vw, 156px); height: clamp(112px, 12vw, 156px);
  border-radius: 50%; object-fit: cover; object-position: center 30%;
  border: 5px solid #fff; box-shadow: 0 12px 30px rgba(59, 33, 24, .18);
  background: var(--brand-soft);
}
.product-shot {
  width: 100%; margin: 42px 0 0; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(59, 33, 24, .16);
  transform: rotate(-2deg);
}
.product-shot img { width: 100%; height: auto; border-radius: 10px; }
.product-shot figcaption { margin-top: 10px; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2, .about-grid h2, .contact h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.32; letter-spacing: -.01em; }
.section-desc { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- 三大业务线 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.biz-card {
  display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--brand);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.biz-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.biz-no { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: .08em; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 12px; font-weight: 700; white-space: nowrap; }
.biz-card h3 { font-size: clamp(21px, 2.1vw, 25px); }
.biz-lead { margin-top: 10px; color: var(--ink-2); font-size: 15px; min-height: 78px; }
.feature-list { margin-top: 20px; display: grid; gap: 16px; }
.feature-list li { padding-left: 14px; border-left: 3px solid #FBD5AE; }
.feature-list strong { display: block; font-size: 15px; }
.feature-list span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.biz-card .text-link { margin-top: auto; padding-top: 26px; }

/* ---------- 产品实拍 + 步骤 ---------- */
.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature-photo { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-photo img { width: 100%; height: auto; border-radius: 10px; }
.feature-photo figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-3); }
.feature-steps { display: grid; gap: 16px; }
.feature-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.step-no {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: var(--brown); font-weight: 800; font-size: 15px;
}
.feature-steps h3 { font-size: 16px; }
.feature-steps p { margin-top: 2px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }

/* ---------- 合作模式 ---------- */
.solution { background: var(--brand-soft); }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow-grid li { padding: 22px 20px; background: #fff; border: 1px solid #F6DEC3; border-top: 3px solid var(--brand); border-radius: 12px; }
.flow-no { font-size: 13px; font-weight: 800; color: var(--brand-deep); letter-spacing: .08em; }
.flow-grid h3 { margin-top: 10px; font-size: 17px; }
.flow-grid p { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.stat-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 32px; padding: 22px 0; background: #fff; border: 1px solid #F6DEC3; border-radius: 14px; }
.stat-bar li { text-align: center; padding: 0 12px; border-right: 1px solid var(--line); }
.stat-bar li:last-child { border-right: 0; }
.stat-bar strong { display: block; color: var(--brand-deep); font-size: clamp(17px, 2vw, 22px); }
.stat-bar span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }

/* ---------- 适用场景 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-card { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-size: 20px; font-weight: 800; }
.case-card h3 { font-size: 19px; }
.case-card p { margin-top: 8px; color: var(--ink-2); font-size: 14px; min-height: 48px; }
.case-card .text-link { display: inline-block; margin-top: 18px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.about-grid p { margin-top: 16px; color: var(--ink-2); }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.about-facts > div { padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.about-facts dt { font-size: 13px; color: var(--ink-3); }
.about-facts dd { margin-top: 4px; font-size: 16px; font-weight: 800; }
.license-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.license-box summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; }
.license-box summary::-webkit-details-marker { display: none; }
.license-box summary:hover { color: var(--brand-deep); }
.license-box[open] summary { border-bottom: 1px solid var(--line); }
.license-box img { width: 100%; height: auto; padding: 16px; }
.license-box p { padding: 0 22px 18px; font-size: 13px; color: var(--ink-3); }
.address-card { margin-top: 20px; padding: 22px; background: var(--brand-soft); border: 1px solid #F6DEC3; border-radius: var(--radius); }
.address-card h3 { font-size: 16px; color: var(--brand-deep); }
.address-card p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- 底部 CTA + 联系 ---------- */
.contact { background: var(--brown); color: #fff; padding: clamp(64px, 8vw, 96px) 0; }
.contact .eyebrow { color: var(--brand-bright); }
.contact p:not(.eyebrow) { margin-top: 16px; color: rgba(255, 255, 255, .78); max-width: 500px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-list li { padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; }
.contact-list span { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.contact-list strong { display: block; margin-top: 4px; font-size: 15px; }
.contact-list .placeholder { color: rgba(255, 255, 255, .55) !important; font-weight: 600 !important; }
.contact-list strong a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list strong a:hover { color: var(--brand-bright); }
.contact-list .qr-item { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-list .qr-item img { width: 108px; height: 108px; flex: none; padding: 6px; background: #fff; border-radius: 10px; }
.contact-list .qr-item small { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ---------- 页脚 ---------- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand span:last-child { display: flex; flex-direction: column; line-height: 1.5; }
.footer-brand strong { font-size: 15px; }
.footer-brand small { font-size: 12px; color: var(--ink-3); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-3); }
.footer-meta .placeholder { color: #9CA3AF; }
.footer-meta a { color: var(--brand-deep); font-weight: 700; }

/* ---------- 入场动画（渐进增强） ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 16px; font-size: 14px; }
}

@media (max-width: 900px) {
  .hero-inner, .feature-grid, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .product-shot { max-width: 560px; margin-left: auto; margin-right: auto; }
  .biz-lead { min-height: 0; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 10px;
    background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px clamp(20px, 5vw, 40px) 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links .btn { margin-top: 14px; }
  .biz-grid, .case-grid { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .stat-bar li:nth-child(2) { border-right: 0; }
}

@media (max-width: 480px) {
  .flow-grid, .contact-list, .about-facts { grid-template-columns: 1fr; }
  .mascot-badge { width: 104px; height: 104px; }
  .hero-tags li { font-size: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .biz-card, .case-card { transition: none; }
}
