/* 凯螺到家官网 - 主样式 */
:root {
  --orange: #ff6a13;
  --orange-dark: #e95700;
  --orange-light: #fff2e9;
  --ink: #1b2430;
  --ink-soft: #5a6675;
  --line: #e9edf2;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --dark: #141b24;
  --shadow: 0 18px 50px rgba(20, 27, 36, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 100px 0; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 700; transition: all .25s ease; white-space: nowrap;
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 19, .28); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--orange); }

/* 导航 */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 66px; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 27, 36, .07); border-color: var(--line); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 36px; height: 36px; object-fit: contain; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; letter-spacing: .5px; }
.brand-text small { font-size: 9px; color: #96a0ac; letter-spacing: 1.3px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 15px; color: #3d4754; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .3s; }

/* 首屏 */
.hero { position: relative; min-height: 470px; height: 58vh; max-height: 560px; overflow: hidden; padding-top: 66px; background: linear-gradient(115deg, #ff9147 0%, #ff6a13 52%, #f25405 100%); }
.hero-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px);
}
.hero-bg::before {
  content: ''; position: absolute; right: -120px; top: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.hero-bg::after {
  content: ''; position: absolute; right: 130px; bottom: -230px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 78% 45%, rgba(255, 255, 255, .18), transparent 45%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-copy { max-width: 640px; padding: 22px 0 30px; }
.hero-eyebrow { display: inline-block; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 2px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 4.6vw, 60px); line-height: 1.15; color: #fff; font-weight: 800; letter-spacing: 2px; margin-bottom: 12px; }
.hero h1 span { position: relative; display: inline-block; }
.hero h1 span::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 6px; height: 9px; background: rgba(255, 255, 255, .35); z-index: -1; border-radius: 6px; }
.hero-lead { color: rgba(255, 255, 255, .95); font-size: 16px; max-width: 540px; margin-bottom: 20px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { height: 46px; }
.hero-stats { display: flex; gap: 30px; margin-top: 26px; }
.hero-stats > div { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 3px; }
.hero-stats strong { font-size: 28px; line-height: 1; color: #fff; font-weight: 800; }
.hero-stats em { font-style: normal; font-size: 15px; color: #fff; font-weight: 700; }
.hero-stats span { grid-column: 1 / -1; color: rgba(255, 255, 255, .85); font-size: 13px; margin-top: 8px; }
.hero-mascot {
  position: absolute; right: 7%; bottom: 0; height: min(84%, 350px); width: auto;
  z-index: 3; pointer-events: none;
}
.hero-mascot img { height: 100%; width: auto; filter: drop-shadow(0 18px 26px rgba(120, 38, 0, .28)); animation: mascot-float 5s ease-in-out infinite; }
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 通用标题 */
.section-head { margin-bottom: 50px; }
.section-head.centered { text-align: center; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 3px; margin-bottom: 12px; }
.eyebrow.light { color: #ffb27c; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; font-weight: 800; margin-bottom: 14px; }
.section-desc { color: var(--ink-soft); font-size: 16px; max-width: 660px; margin-bottom: 0; }
.section-head.centered .section-desc { margin-left: auto; margin-right: auto; }
.section-head.light h2, .section-head.light .section-desc { color: #fff; }
.section-head.light .section-desc { color: #a9b4c1; }

/* 痛点 */
.pain { background: var(--bg-soft); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card { position: relative; background: #fff; border-radius: var(--radius); padding: 40px 34px 36px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.pain-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 27, 36, .12); }
.pain-card::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--orange), #ffb27c); }
.pain-icon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px; color: var(--orange); background: var(--orange-light); }
.pain-icon svg { width: 34px; height: 34px; }
.pain-no { position: absolute; top: 24px; right: 28px; font-size: 42px; font-weight: 800; color: #f4f5f7; }
.pain-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.pain-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }

/* 平台方案 */
.solution { background: var(--dark); color: #fff; }
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 60px; }
.solution-item { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.solution-no { font-size: 42px; line-height: 1; font-weight: 800; color: rgba(255, 138, 61, .35); min-width: 54px; }
.solution-item h3 { font-size: 20px; margin-bottom: 6px; }
.solution-item p { color: #a9b4c1; font-size: 15px; margin-bottom: 0; }

/* 品牌 IP 场景 */
.ip-section { background: #fff; }
.ip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ip-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.ip-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 27, 36, .14); }
.ip-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #ff9147; }
.ip-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s; }
.ip-card:hover img { transform: scale(1.04); }
.ip-card-text { padding: 18px 20px 22px; }
.ip-card h3 { font-size: 18px; margin-bottom: 4px; }
.ip-card p { color: var(--ink-soft); font-size: 13px; margin: 0; }

/* 产品矩阵 */
.matrix { background: #fff; overflow: hidden; }
.matrix-wrap { display: grid; grid-template-columns: 42% 58%; gap: 40px; align-items: center; }
.matrix-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.matrix-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 19, .16), transparent 68%); }
.matrix-visual img { position: relative; width: min(100%, 470px); filter: drop-shadow(0 30px 40px rgba(20, 27, 36, .18)); }
.float-tag { position: absolute; background: #fff; box-shadow: var(--shadow); border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--orange); }
.float-tag::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.tag-a { top: 90px; left: 0; }
.tag-b { bottom: 100px; right: 0; }
.matrix-list { margin-top: 10px; }
.matrix-item { display: flex; align-items: center; gap: 20px; padding: 18px 20px; border-radius: 12px; border: 1px solid transparent; transition: all .25s; cursor: default; }
.matrix-item + .matrix-item { margin-top: 6px; }
.matrix-item > span { font-size: 13px; font-weight: 800; color: #c5ccd5; }
.matrix-item h3 { font-size: 18px; margin-bottom: 2px; }
.matrix-item p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.matrix-item i { margin-left: auto; font-style: normal; color: #c5ccd5; font-size: 20px; }
.matrix-item:hover, .matrix-item.active { background: var(--orange-light); border-color: #ffddc6; }
.matrix-item:hover > span, .matrix-item.active > span, .matrix-item:hover i, .matrix-item.active i { color: var(--orange); }

/* 品类与合作品牌 */
.products { background: var(--bg-soft); }
.product-banner { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); padding: 32px; }
.product-banner img { width: 100%; max-height: 230px; object-fit: contain; }
.brand-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: center; margin-top: 34px; background: #fff; border-radius: var(--radius); padding: 26px 34px; }
.brand-row img { max-height: 54px; width: auto; margin: 0 auto; object-fit: contain; filter: saturate(.9); opacity: .9; transition: opacity .25s, filter .25s; }
.brand-row img:hover { opacity: 1; filter: none; }

/* 成果案例 */
.cases { background: linear-gradient(180deg, #141b24, #1c2632); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; }
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case-card:hover img { transform: scale(1.05); }
.case-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 22, .05) 20%, rgba(10, 15, 22, .88) 100%); }
.case-body { position: relative; padding: 36px; color: #fff; }
.case-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; margin-bottom: 16px; }
.case-body h3 { font-size: 26px; line-height: 1.35; margin-bottom: 10px; }
.case-body h3 em { font-style: normal; color: #ff9a54; font-size: 36px; }
.case-body p { color: #c5ced8; font-size: 14px; margin: 0; }
.ecosystem { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: center; margin-top: 70px; padding-top: 60px; border-top: 1px solid rgba(255, 255, 255, .1); }
.donut { width: 230px; height: 230px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: conic-gradient(var(--orange) 0 75%, #ffb13d 75% 90%, #667482 90% 100%); }
.donut-hole { width: 148px; height: 148px; border-radius: 50%; background: #1b2430; display: grid; place-content: center; text-align: center; color: #fff; }
.donut-hole strong { font-size: 18px; }
.donut-hole span { font-size: 12px; color: #9aa6b3; }
.eco-legend h3 { color: #fff; font-size: 22px; margin-bottom: 18px; }
.eco-legend p { color: #aab5c1; font-size: 15px; margin-bottom: 12px; }
.eco-legend b { color: #fff; margin-right: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot-1 { background: var(--orange); }
.dot-2 { background: #ffb13d; }
.dot-3 { background: #667482; }

/* 联系我们 */
.contact { background: #fff; }
.contact-panel { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; border-radius: 24px; overflow: hidden; background: linear-gradient(120deg, #ff7a24, #f45704); color: #fff; box-shadow: 0 24px 60px rgba(255, 106, 19, .25); }
.contact-info { padding: 64px 56px; }
.contact-info h2 { font-size: 38px; margin-bottom: 14px; }
.contact-lead { color: rgba(255, 255, 255, .9); max-width: 480px; margin-bottom: 30px; }
.contact-tel { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); }
.tel-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--orange); font-size: 19px; font-weight: 800; }
.contact-tel span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.contact-tel small { font-size: 12px; opacity: .85; }
.contact-tel strong { font-size: 22px; letter-spacing: .5px; }
.contact-meta { display: flex; gap: 40px; margin-top: 30px; font-size: 15px; }
.contact-meta p { margin: 0; }
.contact-meta span { opacity: .8; margin-right: 8px; }
.contact-visual { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 70%); }
.contact-ant { height: 210px; width: auto; position: relative; z-index: 2; filter: drop-shadow(0 14px 20px rgba(120, 38, 0, .25)); }
.contact-qr { width: 170px; height: 170px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; }
.contact-qr img { width: 100%; height: 100%; object-fit: cover; }

/* 页脚 */
.site-footer { background: #101720; color: #8e9aa7; padding: 54px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-logo { width: 44px; height: 44px; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; }
.footer-brand p { margin: 2px 0 0; font-size: 13px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.footer-links a:hover { color: var(--orange); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; margin: 0; font-size: 13px; text-align: center; }
.copyright a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.copyright a:hover { color: var(--orange); }
.gongan-beian { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; }
.gongan-beian img { width: 14px; height: 14px; }

/* 返回顶部 */
.back-top { position: fixed; right: 26px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 20px; box-shadow: 0 10px 26px rgba(255, 106, 19, .35); opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.back-top.show { opacity: 1; visibility: visible; }

/* 动效 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 1024px) {
  .section { padding: 78px 0; }
  .hero { min-height: 450px; }
  .hero-copy { max-width: 560px; }
  .ip-grid { grid-template-columns: repeat(2, 1fr); }
  .matrix-wrap { grid-template-columns: 38% 62%; gap: 20px; }
  .matrix-visual { min-height: 440px; }
  .contact-panel { grid-template-columns: 1fr 320px; }
  .contact-info { padding: 48px 40px; }
}
@media (max-width: 820px) {
  .container { width: min(100% - 36px, 700px); }
  .nav { position: absolute; top: 66px; left: 0; width: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: 0 16px 30px rgba(20, 27, 36, .1); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .hero { height: auto; min-height: 0; background: linear-gradient(135deg, #ff8a3d, var(--orange)); }
  .hero-bg, .hero::after { display: none; }
  .hero-inner { display: block; }
  .hero-copy { padding: 52px 0 30px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 16px; }
  .hero-mascot { display: none; }
  .hero-stats { gap: 24px; margin-top: 26px; position: relative; z-index: 2; }
  .hero-stats strong { font-size: 25px; }
  .pain-grid, .case-grid, .solution-grid { grid-template-columns: 1fr; }
  .matrix-wrap { grid-template-columns: 1fr; }
  .matrix-visual { min-height: 380px; order: 2; }
  .matrix-content { order: 1; }
  .matrix-visual img { width: 340px; }
  .float-tag { display: none; }
  .brand-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ecosystem { grid-template-columns: 1fr; gap: 34px; justify-items: center; text-align: center; }
  .eco-legend p { text-align: left; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-visual { height: 260px; }
  .contact-info { padding: 42px 34px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .brand-text strong { font-size: 17px; }
  .nav-actions .btn { padding: 0 14px; font-size: 13px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { flex-wrap: wrap; gap: 18px 26px; }
  .hero-stats strong { font-size: 24px; }
  .pain-card { padding: 32px 26px; }
  .ip-grid { gap: 12px; }
  .ip-card-text { padding: 14px 14px 18px; }
  .ip-card h3 { font-size: 15px; }
  .ip-card p { font-size: 12px; }
  .product-banner { padding: 16px; }
  .brand-row { grid-template-columns: repeat(2, 1fr); padding: 22px; }
  .case-card { min-height: 350px; }
  .case-body { padding: 26px; }
  .case-body h3 { font-size: 22px; }
  .contact-info h2 { font-size: 30px; }
  .contact-meta { flex-direction: column; gap: 8px; }
  .footer-links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
