/* Sihao Smart Home Furniture - concise B2B visual system */
:root {
  --ink: #1f2522;
  --ink-soft: #3d4540;
  --paper: #ffffff;
  --canvas: #f5f3ef;
  --canvas-strong: #ece8e1;
  --wood: #b8946e;
  --brand: #176b4b;
  --brand-dark: #0f5238;
  --muted: #68716a;
  --line: #ddd9d2;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 12px 34px rgba(24, 30, 26, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
body.site-modal-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
.site-wrap, .nav-container, .section-container, .container { width: min(100% - 40px, 1200px); margin-inline: auto; }

/* Navigation */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97) !important; border-bottom: 1px solid var(--line); padding: 0 !important; box-shadow: none !important; backdrop-filter: blur(12px); }
.nav-container { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; flex-direction: column; color: var(--ink) !important; text-decoration: none; min-width: 230px; }
.nav-logo strong { font-size: 17px; line-height: 1.25; letter-spacing: 0; }
.nav-logo small { color: var(--muted); font-size: 10px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex !important; align-items: center; gap: 18px !important; margin: 0 0 0 auto !important; padding: 0 !important; list-style: none; }
.nav-links a { color: var(--ink-soft) !important; font-size: 13px !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--brand) !important; }
.lang-switch { appearance: none; background: var(--paper) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; border-radius: var(--radius) !important; padding: 8px 30px 8px 10px !important; font-size: 12px !important; font-weight: 600; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%) !important; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50% !important; background-size: 5px 5px, 5px 5px !important; background-repeat: no-repeat !important; }

/* Shared sections and buttons */
.home-section { padding: 88px 0; }
.home-section.alt { background: var(--canvas); }
.home-section.dark { background: var(--ink); color: var(--white); }
.section-kicker { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 0 0 14px !important; color: var(--ink) !important; font-size: clamp(30px, 3.5vw, 46px) !important; line-height: 1.12 !important; letter-spacing: 0; }
.dark .section-title { color: var(--white) !important; }
.section-subtitle { max-width: 720px; margin: 0; color: var(--muted) !important; font-size: 16px; }
.dark .section-subtitle { color: rgba(255,255,255,.66) !important; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 36px; }
.head-row .section-subtitle { max-width: 560px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px !important; border: 1px solid transparent; border-radius: var(--radius) !important; font-size: 14px !important; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.btn:hover { transform: none; text-decoration: none; }
.btn-primary { background: var(--brand) !important; border-color: var(--brand) !important; color: var(--white) !important; box-shadow: none !important; }
.btn-primary:hover { background: var(--brand-dark) !important; border-color: var(--brand-dark) !important; }
.btn-outline { background: transparent !important; border-color: #b7b6b0 !important; color: var(--ink) !important; }
.btn-outline:hover { border-color: var(--ink) !important; background: rgba(31,37,34,.04) !important; }
.dark .btn-outline, .hero-dark .btn-outline { border-color: rgba(255,255,255,.5) !important; color: var(--white) !important; }

/* Hero: copy left, one real product right */
.hero.hero-split { min-height: auto !important; padding: 84px 0 72px !important; background: var(--canvas) !important; color: var(--ink) !important; display: block !important; }
.hero:not(.hero-split) { min-height: 360px !important; padding: 92px 20px !important; background: var(--canvas-strong) !important; color: var(--ink) !important; display: grid !important; place-items: center !important; text-align: center; }
.hero:not(.hero-split) h1 { margin: 0 0 12px; font-size: clamp(36px,4.5vw,54px); line-height: 1.08; }
.hero:not(.hero-split) p { max-width: 760px; margin: 0 auto; color: var(--muted); }
.hero-split .hero-inner { width: min(100% - 40px, 1200px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr); align-items: center; gap: 58px; text-align: left; }
.hero-copy .eyebrow { margin: 0 0 16px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { max-width: 680px; margin: 0 0 16px !important; color: var(--ink) !important; font-size: clamp(42px, 5.1vw, 68px) !important; line-height: 1.02 !important; letter-spacing: 0; }
.hero-subtitle { margin: 0 0 30px !important; color: var(--ink-soft) !important; font-size: clamp(20px, 2.2vw, 30px) !important; line-height: 1.25; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-visual { min-height: 520px; display: grid; place-items: center; padding: 28px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.hero-visual img { width: 100%; max-height: 520px; object-fit: contain; }

/* Six product series */
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.series-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.series-card:hover { border-color: #a9aaa4; box-shadow: var(--shadow); text-decoration: none; }
.series-media { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; background: #f8f7f4; overflow: hidden; }
.series-media img { width: 100%; height: 100%; object-fit: contain; }
.series-copy { padding: 20px 22px 22px; }
.series-copy h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.series-copy p { min-height: 44px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.series-link { color: var(--brand); font-size: 13px; font-weight: 700; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: start; }
.about-copy p { max-width: 760px; margin: 0 0 16px; color: var(--ink-soft); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-item { min-height: 132px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stat-item strong { display: block; font-size: 30px; line-height: 1.1; }
.stat-item span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }

/* Factory flow */
.factory-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: stretch; }
.factory-photo { min-height: 420px; overflow: hidden; }
.factory-photo img { width: 100%; height: 100%; object-fit: cover; }
.process-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.process-item { min-height: 104px; padding: 18px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.process-item b { display: block; margin-bottom: 5px; color: var(--white); font-size: 14px; }
.process-item span { color: rgba(255,255,255,.58); font-size: 12px; }
.process-index { display: block; margin-bottom: 10px; color: var(--wood); font-size: 11px; font-weight: 700; letter-spacing: .12em; }

/* Why SIHAO */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-item { min-height: 190px; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.why-item b { display: block; margin-bottom: 12px; font-size: 17px; }
.why-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* OEM and projects */
.oem-projects { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.oem-copy > p { color: var(--muted); }
.oem-list { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.oem-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.oem-list b { color: var(--ink); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-card { display: block; border: 1px solid var(--line); background: var(--paper); text-decoration: none; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 14px; background: #f8f7f4; }
.project-card span { display: block; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }

/* Contact and footer */
.contact .section-container { display: grid; grid-template-columns: .72fr 1.28fr; gap: 54px; align-items: start; }
.contact-links { display: grid; gap: 10px; margin-top: 24px; }
.contact-links a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.contact-links span { color: var(--muted); }
.contact-form { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.enhanced-contact { width: 100%; max-width: none; }
.enhanced-contact .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.enhanced-contact input, .enhanced-contact textarea { width: 100%; padding: 12px 13px; border: 1px solid #d7d4cd; border-radius: 4px; background: #fff; color: var(--ink); outline: none; }
.enhanced-contact input:focus, .enhanced-contact textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,107,75,.1); }
.enhanced-contact textarea { min-height: 122px; resize: vertical; }
.enhanced-contact .file-label { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 13px; text-align: left; }
.enhanced-contact input[type=file] { padding: 9px; background: #fafaf8; color: var(--ink-soft); }
.enhanced-contact button[type=submit] { width: 100%; min-height: 48px; border: 0; border-radius: var(--radius); background: var(--brand); color: var(--white); font-weight: 700; cursor: pointer; }
.enhanced-contact button[type=submit]:hover { background: var(--brand-dark); }
.footer { padding: 56px 0 24px; background: var(--ink); color: rgba(255,255,255,.68); }
.footer-grid { width: min(100% - 40px, 1200px); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; }
.footer h4 { margin: 0 0 14px; color: var(--white); font-size: 14px; }
.footer p { margin: 0; font-size: 13px; }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 13px; }
.footer-note { width: min(100% - 40px, 1200px); margin: 42px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.footer-note a { color: rgba(255,255,255,.68); }

/* Product detail pages */
.breadcrumb { width: min(100% - 40px, 1200px); margin: 0 auto; padding: 18px 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.product-showcase { width: min(100% - 40px, 1200px); margin: 10px auto 34px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap: 42px; align-items: stretch; }
.product-media { min-height: 520px; display: grid; place-items: center; padding: 28px; background: #f8f7f4; border: 1px solid var(--line); }
.product-media img { width: 100%; max-height: 520px; object-fit: contain; }
.product-summary { display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.product-summary .section-kicker { margin-bottom: 10px; }
.product-summary h1 { margin: 0 0 12px; font-size: clamp(34px,4vw,50px); line-height: 1.06; }
.product-summary .product-lead { margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.product-core-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 26px; }
.core-spec { padding: 13px 14px; border: 1px solid var(--line); background: var(--paper); }
.core-spec span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.core-spec b { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; }
.product-detail-body { width: min(100% - 40px, 1200px); margin: 0 auto 80px; display: grid; gap: 18px; }
.product-panel { border: 1px solid var(--line); background: var(--paper); }
.product-panel summary { padding: 18px 20px; cursor: pointer; font-weight: 700; }
.product-panel[open] summary { border-bottom: 1px solid var(--line); }
.product-panel .panel-content { padding: 20px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.spec-table th, .spec-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.spec-table th { width: 28%; color: var(--ink-soft); background: var(--canvas); font-weight: 600; }
.faq { display: grid; gap: 10px; }
.faq-item { padding: 14px 16px; border: 1px solid var(--line); background: #fbfaf8; }
.faq-item h4 { margin: 0 0 5px; font-size: 14px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 13px; }
.product-detail-cta { padding: 44px 20px; background: var(--ink); color: var(--white); text-align: center; }
.product-detail-cta h2 { margin: 0 0 10px; font-size: clamp(26px,3vw,38px); }
.product-detail-cta p { margin: 0 auto 22px; color: rgba(255,255,255,.62); }

/* Root language selector */
.language-page { min-height: 100vh; display: grid; place-items: center; padding: 36px 20px; background: var(--canvas); }
.language-panel { width: min(100%, 860px); padding: 52px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.language-brand { margin: 0 0 8px; font-size: clamp(30px,4vw,48px); line-height: 1.12; }
.language-sub { margin: 0 0 34px; color: var(--muted); }
.language-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.language-card { display: block; padding: 24px 20px; border: 1px solid var(--line); background: #faf9f7; color: var(--ink); text-decoration: none; }
.language-card:hover { border-color: var(--brand); background: var(--paper); text-decoration: none; }
.language-card strong { display: block; font-size: 18px; }
.language-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.language-more { display: flex; gap: 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.language-more a { color: var(--muted); text-decoration: none; }
.language-foot { margin-top: 40px; color: var(--muted); font-size: 12px; }

/* English legacy category pages */
.section { width: min(100% - 40px, 1200px); margin: 0 auto; padding: 62px 0; }
.section h2 { margin: 0 0 18px; font-size: clamp(28px,3vw,40px); }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.product-card { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: none; }
.product-info { padding: 18px; }
.product-img { height: 290px; padding: 18px !important; background: #f8f7f4 !important; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-specs { color: var(--muted); font-size: 13px; }
.btn-inquire { background: var(--brand) !important; color: var(--white) !important; }
.feature-card, .features { display: none !important; }
.faq-item { background: var(--paper); }

/* Responsive */
@media (max-width: 1100px) {
  .nav-container { flex-wrap: wrap; padding: 12px 0; }
  .nav-links { order: 3; width: 100%; margin: 0 !important; overflow-x: auto; padding-bottom: 3px !important; }
  .lang-switch { margin-left: auto; }
  .hero-split .hero-inner, .about-grid, .factory-layout, .oem-projects, .contact .section-container, .product-showcase { grid-template-columns: 1fr 1fr; gap: 34px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .series-grid, .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .site-wrap, .nav-container, .section-container, .container, .footer-grid, .footer-note, .hero-split .hero-inner, .breadcrumb, .product-showcase, .product-detail-body { width: min(100% - 28px, 1200px); }
  .nav-container { min-height: auto; gap: 10px; }
  .nav-logo { min-width: 0; flex: 1; }
  .nav-logo strong { font-size: 14px; }
  .lang-switch { padding: 7px 27px 7px 9px !important; font-size: 11px !important; }
  .home-section { padding: 64px 0; }
  .head-row { display: block; }
  .head-row .section-subtitle { margin-top: 12px; }
  .hero.hero-split { padding: 54px 0 50px !important; }
  .hero-split .hero-inner, .about-grid, .factory-layout, .oem-projects, .contact .section-container, .product-showcase { grid-template-columns: 1fr; }
  .hero-visual { min-height: 350px; padding: 18px; }
  .hero-visual img { max-height: 380px; }
  .series-grid, .project-grid, .why-grid, .process-list, .product-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { margin-top: 28px; }
  .factory-photo { min-height: 300px; }
  .product-media { min-height: 340px; padding: 18px; }
  .product-media img { max-height: 380px; }
  .enhanced-contact .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-note { display: block; }
  .language-panel { padding: 34px 24px; }
  .language-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 38px !important; }
  .hero-subtitle { font-size: 19px !important; }
  .hero-cta .btn { flex: 1; }
  .series-grid, .project-grid, .why-grid, .process-list, .stat-grid, .product-core-specs, .product-grid { grid-template-columns: 1fr; }
  .series-media { aspect-ratio: 5 / 4; }
  .contact-form { padding: 16px; }
}
