:root {
    --ink: #17211b;
    --muted: #66736b;
    --paper: #f7f7f3;
    --surface: #ffffff;
    --line: #dfe5dd;
    --green: #1c6048;
    --green-dark: #124333;
    --mint: #dcece3;
    --coral: #cf5e4a;
    --coral-soft: #f8e4de;
    --yellow: #f2c75c;
    --shadow: 0 18px 50px rgba(23, 33, 27, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 247, 242, .94);
    border-bottom: 1px solid rgba(223, 229, 221, .9);
    backdrop-filter: blur(14px);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 21px;
}
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; color: #445149; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--green); font-weight: 700; }

.hero {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 72px;
    padding: 64px 0 56px;
}

.eyebrow { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: 64px; line-height: 1.08; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: 40px; line-height: 1.2; letter-spacing: 0; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: 0; }
.lead { max-width: 660px; color: var(--muted); font-size: 18px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--green); box-shadow: 0 9px 22px rgba(28, 96, 72, .2); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { color: var(--green); background: var(--surface); border-color: #bfcac2; }
.btn-quiet { min-height: 38px; padding: 0 13px; color: var(--muted); background: transparent; border-color: var(--line); }
.btn-block { width: 100%; }

.hero-visual {
    position: relative;
    min-height: 472px;
    overflow: hidden;
    background: var(--green-dark);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 36px 36px;
}
.figure {
    position: absolute;
    inset: 32px 80px 0;
    border: 1px solid rgba(255,255,255,.25);
    border-bottom: 0;
}
.figure::before {
    content: "";
    position: absolute;
    left: 50%; top: 42px;
    width: 76px; height: 76px;
    transform: translateX(-50%);
    border: 3px solid #fff;
    border-radius: 50%;
}
.figure::after {
    content: "";
    position: absolute;
    left: 50%; top: 120px;
    width: 172px; height: 270px;
    transform: translateX(-50%);
    border: 3px solid #fff;
    border-radius: 48% 48% 20% 20%;
    clip-path: polygon(18% 0, 82% 0, 100% 68%, 69% 68%, 66% 100%, 34% 100%, 31% 68%, 0 68%);
}
.scan-line { position: absolute; left: 44px; right: 44px; top: 49%; height: 2px; background: var(--yellow); box-shadow: 0 0 18px var(--yellow); }
.visual-label { position: absolute; padding: 8px 11px; color: #fff; background: rgba(18,67,51,.85); border: 1px solid rgba(255,255,255,.25); border-radius: 4px; font-size: 12px; }
.visual-label.one { top: 96px; right: 26px; }
.visual-label.two { bottom: 96px; left: 24px; }
.visual-stat { position: absolute; right: 24px; bottom: 24px; width: 166px; padding: 14px; color: var(--ink); background: var(--yellow); border-radius: 6px; }
.visual-stat strong { display: block; font-size: 25px; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 30px 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--green); font-size: 28px; }
.metric span { color: var(--muted); font-size: 13px; }

.section { padding: 76px 0; }
.section-white { background: var(--surface); }
.section-head { max-width: 710px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card, .panel, .result-card, .course-card, .look-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.service-card { position: relative; min-height: 230px; padding: 26px; overflow: hidden; }
.service-card::after { content: attr(data-index); position: absolute; right: 18px; bottom: -18px; color: #eef2ed; font: 800 86px/1 Georgia, serif; }
.service-card p { color: var(--muted); }
.service-card .link { position: absolute; left: 26px; bottom: 24px; z-index: 1; color: var(--green); font-weight: 800; }
.tag { display: inline-flex; padding: 5px 9px; margin-bottom: 18px; color: var(--green); background: var(--mint); border-radius: 4px; font-size: 12px; font-weight: 800; }

.page-hero { padding: 56px 0 38px; border-bottom: 1px solid var(--line); }
.page-hero .crumb { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.page-hero p { max-width: 720px; color: var(--muted); }
.content { padding: 36px 0 76px; }
.panel { padding: 28px; box-shadow: 0 12px 34px rgba(23,33,27,.05); }
.panel + .panel { margin-top: 20px; }

.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.upload-box {
    position: relative;
    min-height: 250px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    background: #f7f9f6;
    border: 1px dashed #aebbb1;
    border-radius: 7px;
    cursor: pointer;
    text-align: center;
}
.upload-box input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-content { z-index: 1; padding: 28px; }
.upload-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--green); background: var(--mint); border-radius: 50%; font-size: 24px; }
.privacy-note, .notice { margin-top: 18px; padding: 14px 16px; color: #526058; background: #eef3ee; border-left: 3px solid var(--green); font-size: 13px; }

.progress-overlay { display: none; position: fixed; inset: 0; z-index: 99; place-items: center; background: rgba(18, 31, 23, .72); }
.progress-overlay.show { display: grid; }
.progress-box { width: min(420px, calc(100% - 40px)); padding: 30px; color: #fff; background: var(--green-dark); border-radius: 8px; text-align: center; }
.progress-track { height: 7px; overflow: hidden; margin-top: 18px; background: rgba(255,255,255,.18); border-radius: 8px; }
.progress-bar { width: 0; height: 100%; background: var(--yellow); transition: width .35s ease; }

.report-layout { display: grid; grid-template-columns: 310px 1fr; gap: 22px; }
.score-panel { padding: 28px; color: #fff; background: var(--green-dark); border-radius: 8px; }
.score-ring { width: 156px; aspect-ratio: 1; display: grid; place-items: center; margin: 24px auto; border: 11px solid rgba(255,255,255,.16); border-top-color: var(--yellow); border-right-color: var(--yellow); border-radius: 50%; }
.score-ring strong { font-size: 44px; }
.score-ring span { font-size: 13px; }
.result-card { padding: 24px; }
.result-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-row span { color: var(--muted); }
.severity { color: #9d4b38; font-weight: 800; }

.course-card { overflow: hidden; }
.course-cover { min-height: 138px; display: flex; align-items: flex-end; padding: 20px; color: #fff; background: var(--green-dark); }
.course-card:nth-child(2n) .course-cover { background: #a84f3d; }
.course-card:nth-child(3n) .course-cover { color: var(--ink); background: var(--yellow); }
.course-body { padding: 20px; }
.course-meta { display: flex; justify-content: space-between; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.done { background: #e9efe9; color: var(--green); border-color: #b8c9bd; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 800; }
.field input, .field select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bdc7bf;
    border-radius: 5px;
    outline: none;
}
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,96,72,.1); }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.choice span { min-height: 48px; display: grid; place-items: center; padding: 8px; border: 1px solid #bdc7bf; border-radius: 5px; text-align: center; cursor: pointer; }
.choice input:checked + span { color: var(--green); background: var(--mint); border-color: var(--green); font-weight: 800; }

.palette { display: flex; gap: 8px; margin: 18px 0; }
.swatch { width: 42px; height: 42px; border-radius: 5px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn { min-height: 38px; padding: 0 14px; color: var(--muted); background: transparent; border: 1px solid #bdc7bf; border-radius: 5px; cursor: pointer; }
.filter-btn.active { color: #fff; background: var(--green); border-color: var(--green); }
.look-card { overflow: hidden; }
.look-visual { min-height: 190px; position: relative; background: #dce8df; }
.look-visual::before { content: ""; position: absolute; width: 78px; height: 78px; left: calc(50% - 39px); top: 20px; background: #f0bd9e; border-radius: 50%; }
.look-visual::after { content: ""; position: absolute; width: 120px; height: 98px; left: calc(50% - 60px); bottom: 0; background: var(--green); border-radius: 42px 42px 0 0; }
.look-card:nth-child(2n) .look-visual { background: var(--coral-soft); }
.look-card:nth-child(2n) .look-visual::after { background: var(--coral); }
.look-card:nth-child(3n) .look-visual { background: #f7edcf; }
.look-card:nth-child(3n) .look-visual::after { background: #363d51; }
.look-body { padding: 20px; }
.price { color: var(--coral); font-weight: 800; }
.hidden { display: none !important; }

.timeline { position: relative; padding-left: 28px; border-left: 1px solid #b9c6bc; }
.timeline-item { position: relative; padding: 0 0 30px 12px; }
.timeline-item::before { content: ""; position: absolute; left: -35px; top: 7px; width: 13px; height: 13px; background: var(--green); border: 3px solid var(--paper); border-radius: 50%; }
.timeline-item p { color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.member { padding: 18px; background: #f7f9f6; border-radius: 6px; }
.member strong { display: block; }
.member span { color: var(--muted); font-size: 13px; }

.site-footer { padding: 36px 0; color: #d9e3dc; background: #14261d; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-note { max-width: 620px; color: #aebdb3; font-size: 12px; }
.site-footer .brand-mark { background: var(--yellow); color: var(--ink); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; max-width: 340px; padding: 13px 16px; color: #fff; background: var(--green-dark); border-radius: 6px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Editorial visual layer */
.home-hero {
    position: relative;
    min-height: 620px;
    height: min(760px, calc(100vh - 120px));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #26312f url("images/posture-training.jpg") center 58% / cover no-repeat;
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 29, 23, .58);
}
.home-hero-content { position: relative; z-index: 1; }
.hero-kicker { margin-bottom: 20px; color: #f5cf67; font-size: 13px; font-weight: 800; }
.home-hero h1 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif; font-size: 76px; font-weight: 500; }
.home-hero h1 span { color: #f5cf67; font-style: italic; }
.hero-slogan { margin-bottom: 18px; font-size: 30px; font-weight: 800; }
.hero-copy { max-width: 620px; color: rgba(255,255,255,.82); font-size: 17px; }
.btn-accent { color: var(--ink); background: #f5cf67; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.btn-accent:hover { background: #ffdc7c; }
.btn-ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-points { display: flex; gap: 22px; margin-top: 44px; color: rgba(255,255,255,.74); font-size: 12px; }
.hero-points span { position: relative; padding-left: 14px; }
.hero-points span::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: #f5cf67; border-radius: 50%; }
.photo-credit { position: absolute; z-index: 1; right: 20px; bottom: 14px; margin: 0; color: rgba(255,255,255,.48); font-size: 10px; }

.visual-story-section { background: #ead8d2; }
.visual-story { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; }
.story-images { position: relative; min-height: 590px; }
.story-main { position: absolute; left: 0; top: 0; width: 72%; height: 520px; object-fit: cover; object-position: center top; border-radius: 4px; box-shadow: 0 22px 55px rgba(52,35,30,.18); }
.story-small { position: absolute; right: 0; bottom: 0; width: 48%; height: 300px; object-fit: cover; border: 10px solid #ead8d2; border-radius: 4px; }
.story-copy .eyebrow { color: #8f3f32; }
.story-copy > p:not(.eyebrow) { color: #66524d; }
.story-quote { margin-top: 36px; padding: 20px 0 0 24px; border-left: 3px solid var(--coral); }
.story-quote strong, .story-quote span { display: block; }
.story-quote strong { margin-bottom: 5px; font: italic 24px Georgia, serif; }
.story-quote span { color: #6e5a55; font-size: 13px; }

.service-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgba(23,33,27,.1); border-color: transparent; }
.service-card:nth-child(1) { background: #f1f7f3; }
.service-card:nth-child(2) { background: #f8ece8; }
.service-card:nth-child(2) .tag { color: #8f3f32; background: #f3d7cf; }
.service-card:nth-child(3) { background: #f8f2dd; }
.service-card:nth-child(3) .tag { color: #6d571a; background: #efe1a7; }
.service-card:nth-child(4) { background: #eef1f7; }
.service-card:nth-child(4) .tag { color: #384d76; background: #d9e0ee; }

.page-hero {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background-color: #26312f;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 0;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(16, 29, 23, .64); }
.page-hero .shell { position: relative; z-index: 1; padding-bottom: 42px; }
.page-hero .crumb, .page-hero p { color: rgba(255,255,255,.78); }
.page-hero .eyebrow { color: #f5cf67; }
.page-hero h1 { margin-bottom: 12px; font-size: 54px; }
.page-hero--posture, .page-hero--project { background-image: url("images/posture-training.jpg"); background-position: center 58%; }
.page-hero--beauty { background-image: url("images/hero-portrait.jpg"); background-position: center 31%; }
.page-hero--fashion { background-image: url("images/style-editorial.jpg"); background-position: center 42%; }
.page-hero--career { background-image: url("images/wardrobe.jpg"); background-position: center 38%; }

.panel, .result-card, .course-card, .look-card { box-shadow: 0 10px 28px rgba(23,33,27,.055); }
.panel { border-top: 3px solid transparent; }
.panel:hover { border-top-color: var(--yellow); }
.course-card { transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover, .look-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(23,33,27,.1); }
.photo-course { position: relative; min-height: 190px; background: #26312f url("images/posture-training.jpg") center / cover no-repeat !important; }
.photo-course::before { content: ""; position: absolute; inset: 0; background: rgba(15,31,24,.4); }
.photo-course h3 { position: relative; z-index: 1; }
.look-photo::before, .look-photo::after { display: none; }
.look-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.look-card:hover .look-photo img { transform: scale(1.035); }
.look-card { transition: transform .2s ease, box-shadow .2s ease; }

.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 21px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 900px) {
    .nav { position: relative; }
    .nav-toggle { display: grid; place-items: center; }
    .nav-links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: var(--shadow); }
    .nav-links.open { display: grid; }
    .nav-links a { padding: 10px 12px; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
    .hero-visual { min-height: 410px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .report-layout { grid-template-columns: 1fr; }
    .visual-story { grid-template-columns: 1fr; gap: 42px; }
    .story-images { min-height: 540px; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 28px, 1160px); }
    .nav { min-height: 64px; }
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }
    .home-hero { min-height: 600px; height: calc(100vh - 96px); background-position: 61% center; }
    .home-hero::before { background: rgba(12, 28, 21, .66); }
    .home-hero h1 { font-size: 49px; }
    .hero-slogan { font-size: 24px; }
    .hero-copy { max-width: 335px; font-size: 15px; }
    .hero-points { gap: 13px; margin-top: 34px; }
    .photo-credit { display: none; }
    .hero { padding: 34px 0 42px; }
    .hero-visual { min-height: 330px; }
    .figure { inset: 25px 48px 0; }
    .visual-label { display: none; }
    .metric-strip, .grid-2, .grid-3, .grid-4, .upload-grid, .form-grid, .choice-grid, .team { grid-template-columns: 1fr; }
    .metric { border-right: 0; border-bottom: 1px solid var(--line); }
    .metric:last-child { border-bottom: 0; }
    .section { padding: 54px 0; }
    .page-hero { padding-top: 38px; }
    .panel { padding: 20px; }
    .upload-box { min-height: 210px; }
    .result-row { grid-template-columns: 1fr; gap: 4px; }
    .footer-grid { display: block; }
    .footer-note { margin-top: 20px; }
    .visual-story-section { padding-top: 46px; }
    .story-images { min-height: 420px; }
    .story-main { width: 78%; height: 370px; }
    .story-small { width: 49%; height: 215px; border-width: 7px; }
    .page-hero { min-height: 330px; }
    .page-hero h1 { font-size: 38px; }
}
