/* Kai Kitchenlife — New Website Stylesheet
   B2B kitchenware manufacturer | SEO + GEO optimized static site */

:root {
  --brand: #ea6302;
  --brand-dark: #cb5500;
  --accent: #fcc526;
  --ink: #333333;
  --cream: #faf5e9;
  --gray-bg: #f6f7f9;
  --gray-border: #e2e6ea;
  --text: #555555;
  --text-light: #999999;
  --white: #ffffff;
  --footer-text: #fffff1;
  --green-check: #1e9e6a;
  --max-width: 1140px;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; display: block; }
.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.header-cta {
  background: var(--brand); color: #fff !important;
  padding: 10px 22px; border-radius: var(--radius); font-weight: 600;
}
.header-cta:hover { background: var(--brand-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--cream);
  background-image: url('../images/hero-pattern.svg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  color: var(--ink); padding: 84px 0 72px;
}
.hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 18px; font-weight: 800; }
.hero h1 .accent { color: var(--brand); }
.hero .sub { font-size: 19px; color: var(--text); max-width: 640px; margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.badge {
  background: #fff; border: 1px solid var(--gray-border);
  padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--text);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; transition: all .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: rgba(0,0,0,.05); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--gray-bg); padding: 28px 0; border-bottom: 1px solid var(--gray-border); }
.trust-items { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.trust-item { text-align: center; flex: 1; min-width: 140px; }
.trust-item .num { font-size: 28px; font-weight: 800; color: var(--ink); }
.trust-item .label { font-size: 14px; color: var(--text-light); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-gray { background: var(--gray-bg); }
.section-title { font-size: 32px; font-weight: 800; color: var(--ink); margin-bottom: 12px; text-align: center; }
.section-sub { text-align: center; color: var(--text-light); max-width: 680px; margin: 0 auto 48px; font-size: 17px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.cat-card {
  border: 1px solid var(--gray-border); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: all .25s;
}
.cat-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.cat-card-body { padding: 28px 24px; }
.cat-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.cat-card p { color: var(--text-light); font-size: 15px; margin-bottom: 16px; }
.cat-card .link { font-weight: 600; }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.process-step {
  background: #fff; border: 1px solid var(--gray-border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; position: relative;
}
.process-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.process-step h4 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-border); border-radius: var(--radius);
  margin-bottom: 14px; background: #fff; overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px; font-weight: 600; color: var(--ink); cursor: pointer;
  font-size: 17px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--brand); font-size: 22px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--text-light); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-border); }
.spec-table th { background: var(--ink); color: #fff; font-weight: 600; }
.spec-table tr:nth-child(even) td { background: var(--gray-bg); }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { color: var(--ink); margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; color: var(--text-light); }
.contact-info strong { color: var(--text); }
.inquiry-form { background: var(--gray-bg); padding: 36px; border-radius: var(--radius); }
.inquiry-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-border);
  border-radius: var(--radius); margin-bottom: 18px; font-size: 15px; font-family: inherit;
}
.inquiry-form textarea { min-height: 120px; resize: vertical; }
.inquiry-form button {
  background: var(--brand); color: #fff; border: none; padding: 14px 36px;
  border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; width: 100%;
}
.inquiry-form button:hover { background: var(--brand-dark); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-card { border: 1px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.blog-card-body { padding: 24px; }
.blog-card .date { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.blog-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 15px; color: var(--text-light); }
.article { max-width: 780px; margin: 0 auto; }
.article h2 { color: var(--ink); margin: 36px 0 14px; font-size: 26px; }
.article h3 { color: var(--ink); margin: 28px 0 10px; font-size: 20px; }
.article p, .article li { margin-bottom: 14px; }
.article ul, .article ol { padding-left: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin-bottom: 36px; }
.footer-grid .footer-logo { color: var(--accent); font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.footer-grid .footer-logo span { color: #fff; }
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 17px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--footer-text); font-size: 15px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.25); padding-top: 24px; text-align: center; font-size: 14px; }
.social-icons { display: flex; gap: 14px; justify-content: center; margin-top: 14px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; opacity: .85; transition: all .2s; }
.social-icons a:hover { opacity: 1; border-color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }

/* ---------- Floating contact ---------- */
.float-contact {
  position: fixed; right: 20px; bottom: 20px; z-index: 99;
  display: flex; flex-direction: column; gap: 10px;
}
.float-contact a {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.float-contact a:hover { background: var(--brand-dark); text-decoration: none; }
.float-contact a svg { width: 24px; height: 24px; display: block; }

/* ---------- WeChat QR modal ---------- */
.wechat-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.wechat-modal[hidden] { display: none; }
.wechat-modal-box { background: #fff; border-radius: 12px; padding: 30px 30px 22px; text-align: center; position: relative; max-width: 300px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.wechat-modal-box img { width: 220px; height: 220px; object-fit: contain; background: #fff; }
.wechat-modal-box p { margin: 12px 0 0; color: var(--text); font-size: 14px; }
.wechat-modal-close { position: absolute; top: 6px; right: 14px; font-size: 28px; cursor: pointer; color: #999; line-height: 1; }
.wechat-modal-close:hover { color: var(--ink); }

/* ---------- Breadcrumb ---------- */
/* ---------- Section line-art decorations ---------- */
.section { position: relative; overflow: hidden; }
.section .container { position: relative; z-index: 1; }
.sec-decor { position: absolute; z-index: 0; opacity: .5; pointer-events: none; color: #d8cbb2; }
.sec-decor svg { width: 100%; height: 100%; display: block; }
.cat-icon { width: 52px; height: 52px; margin-bottom: 14px; color: var(--brand); }
.cat-icon svg { width: 100%; height: 100%; display: block; }
.stars { color: #F5A623; font-size: 18px; letter-spacing: 2px; margin: 0 0 10px; }
.decor-tr { top: 26px; right: 4%; width: 110px; height: 110px; }
.decor-tl { top: 26px; left: 4%; width: 110px; height: 110px; }
.decor-br { bottom: 26px; right: 4%; width: 100px; height: 100px; }
.decor-bl { bottom: 26px; left: 4%; width: 100px; height: 100px; }
@media (max-width: 768px) {
  .decor-tr, .decor-tl, .decor-br, .decor-bl { width: 64px; height: 64px; opacity: .35; }
}
.breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-light); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background-color: var(--cream); background-image: url('../images/pattern-scatter.svg'); background-size: 520px auto; color: var(--ink); padding: 56px 0 48px; }
.page-hero h1 { font-size: 36px; margin-bottom: 12px; }
.page-hero p { color: var(--text); font-size: 18px; max-width: 700px; }

/* ---------- Cert badges ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 32px 0; }
.cert-badge {
  border: 2px solid var(--brand); color: var(--brand); font-weight: 800;
  padding: 10px 22px; border-radius: var(--radius); font-size: 15px; letter-spacing: 1px;
}

/* ---------- Testimonials ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.reviews-grid .cat-card-body { padding: 20px 16px; }
.reviews-grid .quote { font-size: 14px; line-height: 1.65; }
.reviews-grid .quote::before { font-size: 22px; }
.reviews-grid .quote-meta { font-size: 12px; }
.reviews-grid .stars { font-size: 15px; }
@media (max-width: 1100px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.quote { font-style: italic; font-size: 16px; color: var(--text); margin-bottom: 14px; line-height: 1.7; }
.quote::before { content: "\201C"; color: var(--brand); font-size: 28px; font-weight: 800; margin-right: 4px; }
.quote-meta { font-size: 13px; color: var(--text-light); font-weight: 600; margin-bottom: 0; }

/* ---------- Product cards (auto-generated by tools/build-products.py) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 36px 0 8px; }
.product-card { border: 1px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: all .25s; }
.product-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--gray-bg); display: block; }
.product-card-img { position: relative; }
.stock-badge { position: absolute; top: 10px; left: 10px; background: #1e9e4f; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.product-card-body { padding: 16px 18px 20px; }
.product-model { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 1.5px; margin-bottom: 6px; }
.product-card h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.product-spec { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.product-pending { display: block; text-align: center; padding: 40px 20px; border: 1px dashed var(--gray-border); border-radius: var(--radius); color: var(--text-light); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero { background-image: none; }
  .main-nav { display: none; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
}
