/* Palette and look of g-pcb.com; light only. */
:root {
    --bg: #f6f5f2;
    --surface: #ffffff;
    --ink: #17191c;
    --muted: #5c636d;
    --line: #e3e1dc;
    --copper: #c8693a;
    --copper-dark: #9c4c24;
    --green: #1f7a46;
    --dark: #121417;
    --radius: 14px;
    --max: 1160px;
    --gut: 16px;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    overflow-wrap: break-word;
}
html[lang="zh-Hans"] body {
    font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { hyphens: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 720px) { :root { --gut: 24px; } }

/* header */
header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(246, 245, 242, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
nav a:hover { color: var(--ink); }

.langs { position: relative; margin-left: auto; }
nav + .langs { margin-left: 0; }
.langs summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--muted); background: var(--surface); user-select: none;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs[open] summary { color: var(--ink); border-color: var(--copper); }
.langs ul {
    position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 168px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 22, 26, .14);
}
.langs li a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.langs li a:hover { background: var(--bg); }
.langs li a[aria-current="page"] { color: var(--copper-dark); font-weight: 600; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
    padding: 14px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; line-height: 1.3;
    border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
a.btn:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-soon {
    color: var(--copper-dark); background: rgba(200, 105, 58, .08); border: 1px dashed rgba(200, 105, 58, .55); cursor: default;
}
.btn-wa { background: #1fa855; color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, .3); }
.btn-wa:hover { background: #178a45; }
.btn svg { width: 20px; height: 20px; flex: none; }
.badge {
    display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--copper-dark); background: rgba(200, 105, 58, .12);
}

/* hero */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--copper-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; margin: 12px 0 18px; letter-spacing: -.02em; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 46em; margin: 0 0 40px; }

/* steps strip */
.strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 40px; }
.strip a {
    display: flex; flex-direction: column; gap: 4px; text-decoration: none;
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
    font-size: 14px; line-height: 1.3;
}
.strip a span { color: var(--copper-dark); font-size: 12px; font-weight: 700; }
.strip a:hover { border-color: var(--copper); }

/* step rows */
.step { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; padding: 28px 0; }
.steps .step:nth-child(even) { grid-template-columns: 1.6fr 1fr; }
.steps .step:nth-child(even) .shot { order: -1; }
.step h3 { font-size: 24px; line-height: 1.25; margin: 10px 0 10px; }
.step p { color: var(--muted); margin: 0; }
.step .num {
    display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.shot {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 22, 26, .12); background: var(--surface);
}
.shot.wide { margin-bottom: 32px; }
a.shot { display: block; cursor: zoom-in; }

/* machine control */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.point h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.point p { margin: 0; color: var(--muted); font-size: 15px; }

/* renders band */
.band { background: var(--dark); color: #e9e7e3; }
.band .section-lead { color: #a8adb4; }
.renders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.renders figure { margin: 0; }
.renders img { border-radius: 12px; background: #2a2d31; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.renders figcaption { color: #a8adb4; font-size: 15px; margin-top: 10px; }

/* comparison */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--muted); background: var(--bg); }
.compare thead th:nth-child(2) { color: var(--copper-dark); }
.compare tbody th { font-weight: 600; width: 46%; }
.compare td { width: 27%; color: var(--muted); }
.mk { font-weight: 600; white-space: nowrap; }
.mk.yes { color: var(--green); }
.mk.no { color: #9aa0a8; font-weight: 400; }
.mk.first {
    display: inline-block; padding: 2px 10px; border-radius: 999px; white-space: normal;
    color: var(--copper-dark); background: rgba(200, 105, 58, .12);
}

/* requirements */
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card li { margin: 6px 0; }

/* download and contact */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.split + .split { margin-top: 18px; }
.split h2 { margin-bottom: 8px; }
.split p { margin: 0 0 8px; color: var(--muted); }
.split .cta { margin: 0; flex-direction: column; align-items: stretch; justify-self: end; width: min(100%, 300px); }

/* faq */
details:not(.langs) {
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
}
details:not(.langs) summary { cursor: pointer; font-weight: 600; }
details:not(.langs) p { color: var(--muted); margin: 10px 0 0; }

footer { padding: 32px 0 44px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

.notfound { padding: 96px 0; }
.notfound h1 { font-size: 64px; margin: 0 0 8px; }

@media (max-width: 1120px) {
    nav { display: none; }
}
@media (max-width: 900px) {
    section { padding: 56px 0; }
    .hero { padding: 40px 0; }
    .hero .wrap, .step, .steps .step:nth-child(even), .needs, .split { grid-template-columns: 1fr; }
    .hero .wrap, .step { gap: 24px; }
    .steps .step:nth-child(even) .shot { order: 0; }
    .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split .cta { justify-self: start; }
    .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .section-lead { margin-bottom: 32px; }
}
@media (max-width: 600px) {
    .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .points, .renders { grid-template-columns: 1fr; }
    .cta .btn { width: 100%; }
    .brand { font-size: 17px; }
    .lead, .section-lead { font-size: 17px; }
    .step h3 { font-size: 21px; }
    .compare th, .compare td { padding: 12px; }
    .compare thead th:first-child { display: none; }
    .compare, .compare tbody, .compare tr { display: block; }
    .compare thead { display: none; }
    .compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
    .compare tbody tr:last-child { border-bottom: 0; }
    .compare tbody th { grid-column: 1 / -1; width: auto; border: 0; padding-bottom: 4px; }
    .compare td { width: auto; border: 0; padding-top: 4px; }
    .compare td::before { content: attr(data-col); display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
}
