﻿/* =====================================================================
   Site B 鈥?CS Mahjong Manufacturing (industrial OEM/ODM)
   Palette: deep blue / steel / safety orange 路 clean sans
   ===================================================================== */
:root {
  --blue: #0b3c5d;
  --blue-2: #14507a;
  --ink: #1c2733;
  --muted: #5d6b7a;
  --orange: #f28c28;
  --line: #dbe2e9;
  --bg: #f4f6f8;
  --paper: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--orange); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* topbar */
.topbar { background: var(--blue); color: #cfe0ee; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; padding: 8px 22px; gap: 14px; flex-wrap: wrap; }
.topbar b { color: #fff; }

/* header */
header.site { background: var(--paper); border-bottom: 3px solid var(--blue); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 44px; height: 44px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.brand .name { font-size: 21px; font-weight: 800; letter-spacing: .02em; color: var(--ink); line-height: 1.1; }
.brand .name small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
nav.main ul { list-style: none; display: flex; gap: 26px; }
nav.main a { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.active { color: var(--blue); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; font-size: 18px; }

/* hero */
.hero { background: linear-gradient(rgba(11,60,93,.86), rgba(11,60,93,.9)), center/cover; color: #fff; padding: 84px 0 92px; }
.hero .tag { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.16; max-width: 21ch; margin-bottom: 18px; }
.hero p { font-size: 18px; color: #cfe0ee; max-width: 58ch; margin-bottom: 34px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-block; padding: 14px 30px; font-weight: 700; font-size: 15px; transition: .2s; border: 2px solid transparent; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.orange:hover { background: #d97716; color: #fff; }
.btn.line { border-color: #fff; color: #fff; }
.btn.line:hover { background: #fff; color: var(--blue); }
.btn.outline, .btn.ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn.outline:hover, .btn.ghost:hover { background: var(--blue); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-2); color: #fff; }

/* stats */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 28px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n { font-size: 30px; font-weight: 800; color: var(--blue); }
.stat .l { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* sections */
section.block { padding: 72px 0; }
.s-head { margin-bottom: 42px; }
.s-head .kicker { color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.s-head h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 6px; }
.s-head p { color: var(--muted); max-width: 74ch; margin-top: 8px; }

/* capability list */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 26px 22px; }
.cap .no { font-size: 13px; font-weight: 800; color: var(--orange); letter-spacing: .1em; }
.cap h3 { font-size: 18px; margin: 8px 0 8px; }
.cap p { font-size: 14.5px; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: .25s; }
.card:hover { border-color: var(--blue); box-shadow: 0 16px 34px -22px rgba(11,60,93,.45); }
.card .ph { aspect-ratio: 1; background: #eef1f4; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 15px; line-height: 1.45; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--blue); }
.price { font-size: 19px; font-weight: 800; color: var(--blue); }
.moq { font-size: 12.5px; color: var(--muted); }
.badge { display: inline-block; background: #e8f1f8; color: var(--blue); font-size: 11px; font-weight: 700; padding: 3px 8px; letter-spacing: .06em; }

/* breadcrumb / page head */
.crumb { font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.crumb a { color: var(--muted); }
.page-head { padding: 22px 0 36px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 38px); }
.page-head p { color: var(--muted); max-width: 76ch; margin-top: 8px; }

/* product detail */
.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding-bottom: 60px; }
.gallery .main { border: 1px solid var(--line); background: #fff; }
.gallery .main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gallery .thumbs img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); cursor: pointer; opacity: .7; }
.gallery .thumbs img:hover, .gallery .thumbs img.cur { opacity: 1; border-color: var(--orange); }
.pd-info h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.pd-price { font-size: 30px; font-weight: 800; color: var(--blue); margin: 12px 0 2px; }
.pd-price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.spec { list-style: none; margin: 16px 0 22px; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 22px; }
.variants .sw { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 6px 12px 6px 6px; margin: 0 8px 8px 0; background: #fff; font-size: 13px; }
.variants .sw img { width: 26px; height: 26px; object-fit: cover;  cursor: pointer; transition: transform .15s; cursor: pointer; transition: transform .15s; }
.variants .sw img:hover { transform: scale(1.12); }
.variants .sw img.cur { outline: 2px solid var(--orange); outline-offset: 1px; }
.desc-section h2 { font-size: 24px; margin: 34px 0 12px; border-left: 4px solid var(--orange); padding-left: 12px; }
.desc-section .bullets { list-style: none; margin: 12px 0; }
.desc-section .bullets li { padding-left: 24px; position: relative; margin-bottom: 9px; color: #3a4653; }
.desc-section .bullets li::before { content: '\25A0'; position: absolute; left: 0; top: 2px; color: var(--blue); font-size: 10px; }
.desc-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.desc-imgs img { border: 1px solid var(--line); }

/* tables */
table.attrs { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.attrs th, table.attrs td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.attrs th { background: #eaf0f5; width: 30%; color: var(--blue); }

/* faq */
details.faq { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
details.faq summary::after { content: '+'; position: absolute; right: 16px; color: var(--orange); font-size: 22px; font-weight: 400; }
details.faq[open] summary::after { content: '\2212'; }
details.faq .a { padding: 0 18px 15px; color: var(--muted); }

/* form */
.form-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.info-card { background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.info-card h3 { margin-bottom: 12px; }
.info-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
form.inquiry { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #d0342c; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #fbfcfd; padding: 11px 13px; font: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.field textarea { min-height: 130px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.err-note { background: #fdecea; border-left: 4px solid #d0342c; color: #7a2e2a; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 38px 0 8px; }
.pagination a, .pagination span { border: 1px solid var(--line); background: #fff; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.pagination .cur { background: var(--blue); border-color: var(--blue); color: #fff; }

/* footer */
footer.site { background: #12222e; color: #9fb1c1; margin-top: 76px; }
footer.site .cols { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 34px; padding: 50px 0 36px; }
footer.site h4 { color: #fff; margin-bottom: 13px; font-size: 15px; }
footer.site a { color: #9fb1c1; display: block; padding: 3px 0; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid #243748; padding: 16px 0; font-size: 12.5px; color: #71838f; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .caps { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pd, .form-wrap { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  body.nav-open nav.main { display: block; }
  nav.main ul { flex-direction: column; gap: 0; padding: 10px 22px; }
  nav.main ul li a { display: block; padding: 11px 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .caps, .cards, .grid2, .desc-imgs { grid-template-columns: 1fr; }
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
}
