:root {
    --ink: #1c1915;
    --muted: #6d6256;
    --pine: #1d4636;
    --pine-2: #2f6a52;
    --brass: #a57c45;
    --paper: #fbf7f0;
    --sand: #efe4d2;
    --line: rgba(28, 25, 21, 0.12);
    --shadow: 0 30px 70px rgba(48, 36, 18, 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(900px 420px at 0% -10%, rgba(111, 154, 132, 0.38), transparent 55%),
        radial-gradient(700px 360px at 100% 0%, rgba(165, 124, 69, 0.22), transparent 50%),
        linear-gradient(180deg, #f6f0e4 0%, var(--sand) 46%, #e6d8c2 100%);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 16px 0 0;
}
.nav {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 64px;
    padding: 8px 8px 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(251, 247, 240, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(48, 36, 18, 0.08);
    backdrop-filter: blur(16px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--pine);
    color: #f6f0e4;
    font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.quiet {
    color: var(--muted);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
}
.nav-links a.quiet:hover { background: rgba(29, 70, 54, 0.06); color: var(--ink); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--pine);
    color: #f7f2e8;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.btn:hover { background: var(--pine-2); }
.btn.light {
    background: transparent;
    color: var(--pine);
    border: 1px solid rgba(29, 70, 54, 0.22);
    box-shadow: none;
}
.btn.light:hover { background: rgba(29, 70, 54, 0.06); }

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    align-items: center;
    padding: 72px 0 28px;
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--brass);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
}
h1 {
    margin: 0;
    font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
    font-size: clamp(46px, 6.4vw, 78px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.lead { margin: 18px 0 0; max-width: 34em; color: var(--muted); font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.stage { display: grid; place-items: center; }
.phone {
    width: min(320px, 100%);
    padding: 12px;
    border-radius: 42px;
    background: linear-gradient(180deg, #2a241c, #14110e);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen {
    border-radius: 32px;
    min-height: 520px;
    padding: 28px 22px 24px;
    background:
        radial-gradient(120px 80px at 80% 0%, rgba(165, 124, 69, 0.45), transparent 70%),
        linear-gradient(180deg, #245744, #16382c 70%);
    color: #f6f0e4;
    display: flex;
    flex-direction: column;
}
.notch {
    width: 92px;
    height: 8px;
    margin: 0 auto 28px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.35);
}
.app-icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f3d7a1, #a57c45 55%, #6d4b22);
    color: #fffaf2;
    font-family: "Songti SC", "STSong", serif;
    font-size: 36px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}
.screen h2 { margin: 18px 0 6px; font-size: 28px; font-family: "Songti SC", "STSong", serif; }
.screen p { margin: 0; color: rgba(246, 240, 228, 0.78); font-size: 14px; }
.fake-btn {
    margin-top: auto;
    min-height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #f6f0e4;
    color: #1d4636;
    font-weight: 800;
}
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(246, 240, 228, 0.12);
    font-size: 12px;
}

.section { padding: 54px 0 10px; }
.section-head { max-width: 640px; margin-bottom: 22px; }
h3 {
    margin: 0;
    font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -0.03em;
}
.sub { margin: 8px 0 0; color: var(--muted); }

.features { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 14px; }
.feature {
    min-height: 220px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(251, 247, 240, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 30px rgba(48, 36, 18, 0.05);
}
.feature.wide { background: var(--pine); color: #f6f0e4; }
.feature.wide p { color: rgba(246, 240, 228, 0.78); }
.feature strong { display: block; margin: 28px 0 8px; font-size: 22px; font-family: "Songti SC", "STSong", serif; }
.feature p { margin: 0; color: var(--muted); }
.index-no { font-size: 13px; letter-spacing: 0.16em; color: var(--brass); font-weight: 800; }
.feature.wide .index-no { color: #e7c98a; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode {
    border-radius: 32px;
    padding: 28px;
    min-height: 240px;
}
.mode h3 { margin-top: 12px; }
.mode.remote { background: #17382c; color: #f6f0e4; }
.mode.remote p { color: rgba(246, 240, 228, 0.78); }
.mode.fixed { background: var(--paper); border: 1px solid var(--line); }
.mode p { margin: 8px 0 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step {
    padding: 18px 16px 20px;
    border-radius: 24px;
    background: rgba(251, 247, 240, 0.66);
    border-top: 2px solid var(--brass);
}
.step b { display: block; margin: 10px 0 6px; font-size: 16px; }
.step span { color: var(--muted); font-size: 14px; }

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

.mask {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(22, 18, 14, 0.52);
    backdrop-filter: blur(8px);
}
.mask[hidden] { display: none; }
.dialog {
    width: min(460px, 100%);
    background: var(--paper);
    border-radius: 28px;
    padding: 26px 24px 22px;
    box-shadow: var(--shadow);
    position: relative;
}
.dialog h2 {
    margin: 0 0 16px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 32px;
    letter-spacing: -0.03em;
}
.close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--sand);
    cursor: pointer;
    font-size: 20px;
}
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: #efe6d8;
    margin-bottom: 6px;
}
.tabs button {
    border: 0;
    min-height: 40px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}
.tabs button.on { background: var(--pine); color: #f7f2e8; }
.dialog label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.dialog input {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 0 14px;
    background: #fff;
    outline: none;
}
.dialog input:focus { border-color: var(--pine-2); box-shadow: 0 0 0 4px rgba(47, 106, 82, 0.12); }
.dialog .btn { width: 100%; margin-top: 18px; }
.pane[hidden] { display: none; }
.msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.msg.error { background: #f3ddd0; color: #6d3b22; }
.msg.ok { background: #e3efe7; color: var(--pine); }
body.modal-open { overflow: hidden; }

.studio { width: min(1080px, calc(100% - 32px)); margin: 28px auto 56px; display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.sheet {
    background: var(--paper);
    border-radius: 32px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}
.sheet h1 { font-size: clamp(32px, 4vw, 46px); margin: 8px 0; }
.meta { color: var(--muted); margin: 0 0 18px; }
.sheet label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.sheet input[type="text"], .sheet input[type="url"], .sheet input[type="password"] {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 0 14px;
    background: #fff;
    outline: none;
}
.sheet input:focus { border-color: var(--pine-2); box-shadow: 0 0 0 4px rgba(47, 106, 82, 0.12); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.choices label {
    margin: 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.choices input { margin-right: 6px; }
.choices label:has(input:checked) { border-color: var(--pine); background: #eef6f1; }
.choices > div { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.choices > div .btn { margin-top: 12px; }
.file {
    margin-top: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(29, 70, 54, 0.35);
    background: #fff;
}
.hint { color: var(--muted); font-size: 13px; }
.bar { height: 8px; margin-top: 14px; border-radius: 99px; background: #efe6d8; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--pine); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.preview-card .screen { min-height: 460px; }
.preview-card .app-icon { overflow: hidden; padding: 0; }
.preview-card .app-icon img { width: 100%; height: 100%; object-fit: cover; }
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(246, 240, 228, 0.14);
    font-size: 12px;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8d8d8d; display: block; }
.status.on i { background: #b7e3c8; }

@media (max-width: 900px) {
    .hero, .features, .modes, .steps, .studio, .choices { grid-template-columns: 1fr; }
    .nav-links a.quiet { display: none; }
    .hero { padding-top: 36px; }
    .screen { min-height: 420px; }
}
