/* ============ KING YIN Furniture — Shared Styles ============ */
:root{
  --navy:#101012; --navy-2:#1b1b1e;
  --blue:#2e2e30; --blue-light:#f0f0f1;
  --wood:#141416; --wood-light:#f2f2f2;
  --ink:#1a1a1c; --sub:#5c5c5e; --line:#e4e4e6;
  --bg:#fafafa; --card:#ffffff;
  --green:#0e9663;
  --radius:14px;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:"Segoe UI","Helvetica Neue",Arial,"Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.7; font-size:16px;
}
img{max-width:100%;display:block;}
a{color:var(--blue);text-decoration:none;}
.container{max-width:1100px;margin:0 auto;padding:0 24px;}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:68px;}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;color:var(--navy);letter-spacing:.5px;}
.logo .mark{
  width:34px;height:34px;border-radius:8px;
  background:linear-gradient(135deg,var(--navy),var(--blue));
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:15px;font-weight:800;
}
.logo .mark-img{
  width:34px;height:34px;border-radius:8px;object-fit:cover;object-position:center 18%;
  display:block;box-shadow:0 1px 4px rgba(16,36,63,.25);
}
.logo span.accent{color:#8a8a8a;}
.main-nav{display:flex;gap:28px;align-items:center;}
.main-nav a{color:var(--ink);font-weight:600;font-size:15px;position:relative;padding:6px 0;}
.main-nav a:hover,.main-nav a.active{color:var(--blue);}
.main-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--blue);border-radius:2px;}
.nav-cta{
  background:#131315;color:#fff !important;padding:12px 34px;border-radius:10px;
  white-space:nowrap;line-height:1.4;min-width:172px;text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.nav-cta:hover{background:#000;}
.nav-cta.active::after{display:none;}
.nav-toggle{display:none;background:none;border:none;font-size:26px;color:var(--navy);cursor:pointer;}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:
    linear-gradient(100deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.64) 48%, rgba(8,8,8,.3) 100%),
    url("../images/hero.jpg") center 65%/cover no-repeat;
  color:#fff;padding:110px 0 120px;
}
.hero .kicker{
  display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);
  border-radius:20px;padding:4px 16px;font-size:13px;letter-spacing:1px;margin-bottom:20px;
}
.hero h1{font-size:42px;line-height:1.25;max-width:720px;margin-bottom:18px;}
.hero p.lead{font-size:18px;opacity:.9;max-width:640px;margin-bottom:32px;}
.btn{display:inline-block;padding:14px 30px;border-radius:10px;font-weight:700;font-size:15px;transition:.2s;}
.btn-primary{background:#131315;color:#fff;}
.btn-primary:hover{background:#333;}
.btn-outline{border:2px solid rgba(255,255,255,.6);color:#fff;margin-left:12px;}
.btn-outline:hover{background:rgba(255,255,255,.12);}
.btn-blue{background:#131315;color:#fff;}
.btn-blue:hover{background:#333;}

/* ---------- Trust bar ---------- */
.trust{background:var(--navy);color:#fff;padding:26px 0;}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:center;}
.trust-item b{display:block;font-size:22px;color:#fff;}
.trust-item span{font-size:13px;opacity:.85;}

/* ---------- Sections ---------- */
section.block{padding:70px 0;}
section.block.alt{background:#fff;}
.sec-head{text-align:center;max-width:680px;margin:0 auto 44px;}
.sec-head .eyebrow{color:var(--wood);font-weight:700;letter-spacing:2px;font-size:13px;text-transform:uppercase;}
.sec-head h2{font-size:30px;margin:6px 0 10px;color:var(--navy);}
.sec-head p{color:var(--sub);}

/* ---------- Cards ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;box-shadow:0 1px 4px rgba(20,40,80,.05);transition:.2s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(20,40,80,.1);}
.card .icon{
  width:52px;height:52px;border-radius:12px;background:var(--blue-light);
  display:flex;align-items:center;justify-content:center;font-size:26px;margin-bottom:16px;
}
.card h3{font-size:18px;color:var(--navy);margin-bottom:8px;}
.card p{color:var(--sub);font-size:14.5px;}
.card ul{margin-top:10px;padding-left:18px;}
.card li{font-size:14px;color:var(--sub);margin:4px 0;}
.card .more{display:inline-block;margin-top:14px;font-weight:700;font-size:14px;}

/* ---------- Steps ---------- */
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.step{text-align:center;padding:22px 12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);}
.step .num{
  width:38px;height:38px;margin:0 auto 12px;border-radius:50%;
  background:var(--wood);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.step h4{font-size:15px;color:var(--navy);margin-bottom:4px;}
.step p{font-size:12.5px;color:var(--sub);}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(135deg,#131315,#2c2c2e);color:#fff;padding:64px 0;text-align:center;}
.cta-band h2{font-size:28px;margin-bottom:12px;}
.cta-band p{opacity:.85;max-width:560px;margin:0 auto 28px;}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{background:linear-gradient(135deg,#131315,#2c2c2e);color:#fff;padding:64px 0;}
.page-hero h1{font-size:34px;margin-bottom:8px;}
.page-hero p{opacity:.85;max-width:640px;}

/* ---------- Story / About ---------- */
.story-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;}
.story-grid .photo{
  background:linear-gradient(135deg,#ececec,#f7f7f7);border-radius:var(--radius);
  min-height:320px;overflow:hidden;border:1px solid var(--line);
}
.story-grid .photo .photo-img{
  width:100%;height:100%;min-height:320px;object-fit:cover;object-position:center 22%;display:block;
}
.badge-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.badge-list span{
  background:var(--wood-light);color:#1a1a1c;border:1px solid #e0e0e0;
  padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;
}

/* ---------- Forms ---------- */
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:36px;box-shadow:0 2px 10px rgba(20,40,80,.06);}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.field{margin-bottom:18px;}
.field label{display:block;font-weight:600;font-size:14px;margin-bottom:6px;color:var(--navy);}
.field label .req{color:var(--wood);}
.field input,.field select,.field textarea{
  width:100%;padding:12px 14px;border:1px solid #cfd9e4;border-radius:8px;
  font-size:15px;font-family:inherit;background:#fbfcfe;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue);background:#fff;}
.form-note{font-size:12.5px;color:var(--sub);margin-top:10px;}

/* ---------- Contact quick cards ---------- */
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:34px;}
.quick-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;gap:18px;align-items:flex-start;}
.quick-card .icon{flex:0 0 52px;height:52px;border-radius:12px;background:#f0f0f1;color:#131315;display:flex;align-items:center;justify-content:center;font-size:24px;}
.quick-card h3{font-size:16px;color:var(--navy);margin-bottom:4px;}
.quick-card p{font-size:14px;color:var(--sub);word-break:break-all;}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:#c9d6e6;padding:54px 0 24px;margin-top:0;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:34px;margin-bottom:34px;}
.site-footer h4{color:#fff;font-size:15px;margin-bottom:14px;}
.site-footer a{color:#c9d6e6;display:block;font-size:14px;margin:6px 0;}
.site-footer a:hover{color:#fff;}
.site-footer p{font-size:14px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.14);padding-top:20px;text-align:center;font-size:13px;opacity:.7;}

/* ---------- WhatsApp float ---------- */
.wa-float{
  position:fixed;right:22px;bottom:22px;z-index:200;
  width:58px;height:58px;border-radius:50%;
  background:#25d366;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(37,211,102,.45);transition:.2s;
}
.wa-float:hover{transform:scale(1.08);}
.wa-float svg{width:30px;height:30px;fill:#fff;}

/* ---------- Blog index ---------- */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.post-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;transition:.2s;
}
.post-card:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(0,0,0,.09);}
.post-card .thumb{
  height:132px;background:linear-gradient(135deg,#141416,#3c3c3f);
  display:flex;align-items:center;justify-content:center;font-size:38px;color:#fff;
}
.post-card .body{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1;}
.post-card .tag{
  align-self:flex-start;background:#f1f1f2;color:#3a3a3c;border:1px solid #e2e2e4;
  font-size:11.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;
  padding:3px 10px;border-radius:12px;margin-bottom:12px;
}
.post-card h3{font-size:17px;line-height:1.45;color:var(--navy);margin-bottom:8px;}
.post-card p{font-size:14px;color:var(--sub);flex:1;}
.post-meta{font-size:12.5px;color:#909092;margin-top:14px;}

/* Topic filter chips */
.filter-bar{display:flex;flex-wrap:wrap;gap:10px;margin:-8px 0 28px;}
.filter-bar .chip{
  background:#fff;border:1px solid var(--line);color:#3a3a3c;
  font-size:13px;font-weight:600;padding:8px 16px;border-radius:20px;
  cursor:pointer;transition:.15s;font-family:inherit;
}
.filter-bar .chip:hover{border-color:#b8b8ba;color:#131315;}
.filter-bar .chip.is-on{background:#131315;border-color:#131315;color:#fff;}

/* ---------- Blog article ---------- */
.breadcrumb{font-size:13px;color:#8e8e90;margin-bottom:16px;}
.breadcrumb a{color:#8e8e90;}
.breadcrumb a:hover{color:#131315;}
.article-wrap{max-width:820px;margin:0 auto;}
.article{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:56px 60px 52px;box-shadow:0 1px 4px rgba(0,0,0,.04);
  font-size:16.5px;
}
.article h1{font-size:33px;line-height:1.28;letter-spacing:-.3px;color:#131315;margin-bottom:16px;}
.article .article-meta{
  font-size:13px;color:#8e8e90;padding-bottom:24px;margin-bottom:32px;
  border-bottom:1px solid var(--line);
}
.article > p:first-of-type{font-size:18px;line-height:1.8;color:#3a3a3c;}

/* headings — 大留白分隔，避免整页糊成一块 */
.article h2{
  font-size:23px;line-height:1.4;color:#131315;
  margin:62px 0 20px;padding-top:36px;border-top:1px solid #eeeff0;
}
.article h2:first-of-type{margin-top:44px;}
.article h3{
  font-size:17.5px;color:#131315;margin:36px 0 10px;
  padding-left:15px;position:relative;
}
.article h3::before{
  content:"";position:absolute;left:0;top:.4em;width:3px;height:1em;
  background:#131315;border-radius:2px;
}

.article p{margin:0 0 21px;line-height:1.85;color:#2c2c2e;}
.article ul,.article ol{margin:0 0 24px;padding-left:24px;}
.article li{margin:11px 0;line-height:1.78;color:#2c2c2e;padding-left:3px;}
.article li::marker{color:#a3a3a5;}
.article li > ul,.article li > ol{margin:10px 0 4px;}
.article strong{color:#131315;}
.article a{text-decoration:underline;text-underline-offset:2px;text-decoration-color:#c8c8ca;}
.article a:hover{text-decoration-color:#131315;}

/* tables — 深色表头 + 斑马纹 + 圆角 */
.article table{
  width:100%;border-collapse:separate;border-spacing:0;
  margin:30px 0 32px;font-size:14.5px;line-height:1.65;
  border:1px solid #e2e2e4;border-radius:10px;
  background:#fff;
}
.article thead th:first-child{border-top-left-radius:9px;}
.article thead th:last-child{border-top-right-radius:9px;}
.article tbody tr:last-child td:first-child{border-bottom-left-radius:9px;}
.article tbody tr:last-child td:last-child{border-bottom-right-radius:9px;}
.article thead th{
  background:#141416;color:#fff;text-align:left;
  font-size:12px;font-weight:600;letter-spacing:.9px;text-transform:uppercase;
  padding:13px 16px;border:none;
}
.article th,.article td{padding:13px 16px;border:none;border-bottom:1px solid #ececee;vertical-align:top;color:#2c2c2e;}
.article th{font-weight:700;color:#131315;text-align:left;background:#f6f6f7;}
.article tbody tr:last-child td,.article tbody tr:last-child th{border-bottom:none;}
.article tbody tr:nth-child(even) td{background:#fbfbfc;}
.article tbody tr:hover td{background:#f4f4f5;}
.article td:first-child{font-weight:600;color:#131315;}
.article table caption{
  caption-side:top;text-align:left;font-size:12.5px;color:#8e8e90;
  padding-bottom:9px;letter-spacing:.4px;
}

.article blockquote{
  border-left:3px solid #131315;background:#f7f7f8;
  padding:18px 24px;margin:26px 0;color:#3c3c3f;border-radius:0 8px 8px 0;
}
.article blockquote p{margin:0;font-size:15.5px;line-height:1.8;}
.callout{
  background:#f8f8f9;border:1px solid var(--line);border-left:4px solid #131315;
  border-radius:8px;padding:20px 24px;margin:30px 0;
}
.callout p{margin:6px 0 0;font-size:15px;line-height:1.8;}
.callout b{display:block;margin-bottom:6px;font-size:15.5px;}
.callout p:last-child{margin-bottom:0;}
.toc{background:#fafafa;border:1px solid var(--line);border-radius:10px;padding:22px 26px;margin:30px 0 8px;}
.toc b{display:block;font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:#8e8e90;margin-bottom:12px;}
.toc ol{margin:0 0 0 20px;}
.toc li{margin:7px 0;font-size:14.5px;line-height:1.6;}
.toc a{text-decoration:none;color:#3a3a3c;}
.toc a:hover{color:#131315;text-decoration:underline;}
.author-box{
  display:flex;gap:18px;align-items:flex-start;background:#fafafa;
  border:1px solid var(--line);border-radius:var(--radius);padding:24px 26px;margin-top:46px;
}
.author-box img{width:56px;height:56px;border-radius:50%;object-fit:cover;object-position:center 18%;flex:0 0 56px;}
.author-box p{font-size:13.5px;color:var(--sub);margin:4px 0 0;}
.author-box b{font-size:15px;color:#131315;}
.article-foot{margin-top:32px;padding-top:24px;border-top:1px solid var(--line);}
.article-foot .btn{margin-right:10px;}

/* ---------- Responsive ---------- */
@media(max-width:880px){
  .hero h1{font-size:32px;}
  .trust-grid{grid-template-columns:repeat(2,1fr);}
  .grid-3,.grid-4{grid-template-columns:1fr;}
  .grid-2{grid-template-columns:1fr;}
  .steps{grid-template-columns:repeat(2,1fr);}
  .story-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .post-grid{grid-template-columns:1fr;}
  .article{padding:34px 22px 30px;font-size:16px;}
  .article h1{font-size:26px;}
  .article > p:first-of-type{font-size:17px;}
  .article h2{font-size:21px;margin:44px 0 16px;padding-top:28px;}
  .article h3{font-size:17px;}
  .article table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:13.5px;}
  .article th,.article td{padding:11px 13px;}
  .author-box{flex-direction:column;}
  .main-nav{
    display:none;position:absolute;top:68px;left:0;right:0;
    background:#fff;flex-direction:column;padding:18px 24px;gap:14px;
    border-bottom:1px solid var(--line);box-shadow:0 10px 24px rgba(20,40,80,.1);
  }
  .main-nav.open{display:flex;}
  .nav-toggle{display:block;}
}
