/* =========================================================
 * 酷舍科技 · 全站样式 style.css
 * 主题：暗夜东方 · 温柔的智能（墨黑 / 竹青 / 暖灯琥珀 / 金）
 * ======================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  --bg-ink: #0a0e0c;
  --bg-deep: #070a09;
  --bg-panel: #111714;
  --bg-panel-2: #161d19;
  --bamboo: #2f4a3f;
  --bamboo-soft: #4a6b5a;
  --amber: #e8b06b;
  --amber-bright: #f3cf94;
  --gold: #c9a14a;
  --gold-soft: rgba(201, 161, 74, 0.35);
  --ink-text: #ece7dc;
  --ink-muted: #9aa39a;
  --line: rgba(201, 161, 74, 0.18);

  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-ink);
  color: var(--ink-text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* 竹叶暗纹水印 */
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(47, 74, 63, 0.35), transparent 45%),
                    radial-gradient(circle at 85% 75%, rgba(47, 74, 63, 0.25), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0 0 0.6em; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(92%, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }
.muted { color: var(--ink-muted); }
.gold { color: var(--amber); }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; z-index: 1; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--amber); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); border: 0; margin: 56px 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .cn { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.14em; }
.brand .en { font-size: 0.7rem; letter-spacing: 0.42em; color: var(--amber); }
.topnav { display: flex; gap: 28px; align-items: center; }
.topnav a { font-size: 0.92rem; color: var(--ink-muted); position: relative; padding: 4px 0; transition: color var(--ease) 0.3s; }
.topnav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--amber); transition: width var(--ease) 0.35s; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink-text); }
.topnav a:hover::after, .topnav a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink-text); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
/* 实景背景图（傍晚竹林）：WebP 优先、JPEG 兜底，缓慢推镜 */
.hero-bg { position: absolute; inset: -3%; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block;
  transform-origin: 54% 62%; animation: heroDrift 30s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.03); } to { transform: scale(1.09); } }
/* Canvas 只承载「下雨」附加效果，screen 混合让雨丝提亮背景 */
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; mix-blend-mode: screen; }
.hero-glow { position: absolute; left: 52%; bottom: 24%; width: 42vmin; height: 42vmin; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(243, 207, 148, 0.32), rgba(232, 176, 107, 0.12) 42%, transparent 68%);
  filter: blur(6px); animation: breathe 6s ease-in-out infinite; z-index: 3; pointer-events: none; }
@keyframes breathe { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
.hero-content { position: relative; z-index: 4; text-align: center; padding: 0 6%; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.hero-content .kicker { font-size: 0.82rem; letter-spacing: 0.4em; color: var(--amber); margin-bottom: 22px; }
.hero-content h1 { font-size: clamp(2rem, 6vw, 4.4rem); line-height: 1.25; margin-bottom: 24px; }
.hero-content h1 .thin { font-weight: 400; color: var(--ink-text); opacity: 0.9; }
.hero-content .sub { max-width: 620px; margin: 0 auto 34px; color: #cfd6cd; font-size: clamp(1rem, 2.2vw, 1.18rem); }
.hero-content .whisper { margin-top: 40px; font-family: var(--serif); color: var(--ink-muted); font-size: 0.95rem; letter-spacing: 0.12em; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 999px;
  font-size: 0.95rem; letter-spacing: 0.06em; cursor: pointer; border: 1px solid transparent; transition: all var(--ease) 0.35s; }
.btn-primary { background: linear-gradient(135deg, var(--amber-bright), var(--amber)); color: #241a0c; font-weight: 500;
  box-shadow: 0 10px 30px rgba(232, 176, 107, 0.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(232, 176, 107, 0.32); }
.btn-ghost { border-color: var(--gold-soft); color: var(--ink-text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-bright); background: rgba(232, 176, 107, 0.06); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 声音开关 */
.sound-toggle { position: absolute; right: 4%; bottom: 26px; z-index: 5; background: rgba(17,23,20,0.7);
  border: 1px solid var(--line); color: var(--ink-muted); border-radius: 999px; padding: 8px 16px; font-size: 0.8rem; cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center; transition: all var(--ease) 0.3s; }
.sound-toggle:hover { color: var(--amber-bright); border-color: var(--gold-soft); }
.sound-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); }
.sound-toggle.on .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ---------- 业务卡片（含家庭浅色背景图） ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.biz-card { display: block; position: relative; padding: 34px 28px; border-radius: 16px; min-height: 232px;
  background-color: var(--bg-panel); border: 1px solid var(--line);
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
  transition: transform var(--ease) 0.45s, border-color var(--ease) 0.45s, box-shadow var(--ease) 0.45s; overflow: hidden; }
/* 浅色背景图：上部透出明亮家居画面，下部过渡到墨色面板，保证文字可读 */
.biz-card .biz-overlay { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(16,22,19,0.30) 0%, rgba(16,22,19,0.10) 26%, rgba(14,19,16,0.82) 58%, rgba(10,14,12,0.94) 82%, rgba(10,14,12,0.97) 100%);
  transition: background var(--ease) 0.45s; }
.biz-card:hover .biz-overlay { background: linear-gradient(180deg, rgba(16,22,19,0.20) 0%, rgba(16,22,19,0.04) 26%, rgba(14,19,16,0.76) 58%, rgba(10,14,12,0.90) 82%, rgba(10,14,12,0.94) 100%); }
.biz-card .biz-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.biz-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 80% 0%, rgba(232,176,107,0.14), transparent 55%); opacity: 0; transition: opacity var(--ease) 0.45s; pointer-events: none; }
.biz-card:hover { transform: translateY(-8px); border-color: var(--gold-soft); box-shadow: 0 24px 50px rgba(0,0,0,0.5); }
.biz-card:hover::after { opacity: 1; }
.biz-card .idx { font-family: var(--serif); font-size: 0.9rem; color: var(--amber-bright); letter-spacing: 0.2em; text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.biz-card h3 { font-size: 1.3rem; margin: 14px 0 10px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.biz-card p { color: #eef1ec; font-size: 0.95rem; margin-bottom: 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.biz-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.biz-card .tags span { font-size: 0.74rem; color: #f0ece2; border: 1px solid rgba(255,255,255,0.26); border-radius: 999px; padding: 3px 10px; background: rgba(10,14,12,0.42); backdrop-filter: blur(2px); }
.biz-card .go { margin-top: 20px; color: var(--amber-bright); font-size: 0.88rem; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }

/* ---------- 合作生态墙（首页底部 3 个圆角矩形） ---------- */
.partner-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.pc-card { position: relative; padding: 30px 28px 32px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2)); overflow: hidden; }
.pc-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0.7; }
.pc-head { display: flex; align-items: center; gap: 12px; transform: translateY(-4px); }
.pc-diamond { color: var(--gold); font-size: 0.95rem; line-height: 1; filter: drop-shadow(0 0 6px rgba(201,161,74,0.5)); }
.pc-head h3 { font-size: 1.18rem; margin: 0; letter-spacing: 0.04em; }
.pc-note { margin: 12px 0 20px; color: var(--ink-muted); font-size: 0.9rem; }
/* 品牌 LOGO 图片位：统一尺寸（240×96 画布），浅色底衬托彩色商标 */
.brand-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-tile { flex: 0 0 auto; display: grid; place-items: center; width: 132px; height: 66px; padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.34); border-radius: 12px;
  background: linear-gradient(160deg, #fdfcf8, #f0ece2); box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: border-color var(--ease) 0.35s, background var(--ease) 0.35s, transform var(--ease) 0.35s, box-shadow var(--ease) 0.35s; }
.brand-tile img { display: block; width: 100%; height: 100%; object-fit: contain;
  opacity: 0.96; transition: opacity var(--ease) 0.35s; }
.brand-tile:hover { border-color: var(--gold); background: linear-gradient(160deg, #ffffff, #f7f3ea);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.34); }
.brand-tile:hover img { opacity: 1; }

/* ---------- 内页 ---------- */
.page-hero { padding: clamp(72px, 11vw, 150px) 0 clamp(36px, 6vw, 72px); position: relative; z-index: 1; }
.page-hero .eyebrow { font-size: 0.8rem; letter-spacing: 0.32em; color: var(--amber); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.page-hero .lead { max-width: 680px; color: var(--ink-muted); font-size: clamp(1rem, 2.2vw, 1.15rem); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { padding: 30px 28px; border-radius: 16px; background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2)); border: 1px solid var(--line); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); color: var(--amber); font-size: 0.85rem; letter-spacing: 0.2em; display: block; margin-bottom: 12px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 1.6em; }
.prose h3 { color: var(--amber-bright); font-size: 1.15rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; color: var(--ink-muted); }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink-text); font-weight: 500; }

/* 时间轴 */
.timeline { position: relative; margin-top: 20px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold-soft), transparent); }
.tl-item { position: relative; padding: 0 0 30px 8px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 13px; height: 13px; border: 1px solid var(--amber); background: var(--bg-ink); transform: rotate(45deg); }
.tl-item .year { font-family: var(--serif); color: var(--amber); font-size: 1.1rem; }
.tl-item p { margin: 4px 0 0; color: var(--ink-muted); }

/* 流程/步骤 */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,23,20,0.5); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); color: var(--amber); font-size: 1.3rem; display: block; margin-bottom: 10px; }

/* 生态墙：合作网络（等宽网格 · 每个 Logo 占位尺寸完全一致） */
.eco-groups { display: grid; gap: 30px; }
.eco-group h4 { font-size: 1rem; color: var(--amber-bright); margin: 0 0 16px; letter-spacing: 0.06em; }
.eco-group .brand-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.eco-group .brand-tile { width: auto; height: 94px; padding: 10px 16px; }

/* 联系 */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.contact-card { padding: 30px 28px; border-radius: 16px; background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2)); border: 1px solid var(--line); }
.contact-card .k { font-size: 0.78rem; letter-spacing: 0.24em; color: var(--amber); margin-bottom: 10px; }
.contact-card .v { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-text); word-break: break-all; }
.contact-card a.v:hover { color: var(--amber-bright); }
.notice { margin-top: 28px; padding: 18px 22px; border-left: 2px solid var(--amber); background: rgba(232,176,107,0.06); color: var(--ink-muted); border-radius: 0 12px 12px 0; font-size: 0.92rem; }

/* 相关链接 */
.related { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.related a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 0.85rem; color: var(--ink-muted); transition: all var(--ease) 0.3s; }
.related a:hover { border-color: var(--gold-soft); color: var(--amber-bright); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 40px; position: relative; z-index: 1; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 0.95rem; color: var(--ink-text); margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: var(--ink-muted); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--amber-bright); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-muted); font-size: 0.82rem; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .eco-group .brand-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topnav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: rgba(10,14,12,0.98);
    border-bottom: 1px solid var(--line); padding: 8px 0 16px; transform: translateY(-120%); transition: transform var(--ease) 0.4s; }
  .topnav.open { transform: translateY(0); }
  .topnav a { padding: 14px 6%; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 640px) {
  .eco-group .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .eco-group .brand-tile { height: 84px; padding: 8px 12px; }
}
@media (max-width: 480px) { .partner-showcase { grid-template-columns: 1fr; } }

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg img { animation: none; transform: scale(1.03); }
  .hero-glow { animation: none; }
}
