:root {
    --paper: #f4efe5;
    --paper-light: #faf7f0;
    --ink: #19201d;
    --muted: #70766f;
    --line: #dcd5c7;
    --accent: #da4b31;
    --accent-dark: #a72e1f;
    --green: #355f51;
    --white: #fffdfa;
    --shadow: 0 22px 60px rgba(46, 39, 29, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; min-width: 320px; color: var(--ink);
    background: linear-gradient(rgba(54,48,39,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(54,48,39,.025) 1px, transparent 1px), var(--paper);
    background-size: 28px 28px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.gate-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.entry-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overflow: hidden; color: var(--white); background: #17231f; transition: opacity .5s ease, visibility .5s ease; }
.entry-gate[hidden] { display: none; }
.entry-gate.is-leaving { opacity: 0; visibility: hidden; }
.entry-gate::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.entry-gate::after { content: "0033"; position: absolute; right: -2vw; bottom: -12vw; color: rgba(255,255,255,.025); font-size: clamp(240px, 38vw, 620px); font-weight: 800; letter-spacing: -.12em; line-height: 1; }
.gate-glow { position: absolute; border-radius: 999px; filter: blur(4px); opacity: .75; }
.gate-glow-one { top: -20%; left: -10%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(218,75,49,.34), transparent 67%); }
.gate-glow-two { right: -8%; bottom: -18%; width: 720px; height: 720px; background: radial-gradient(circle, rgba(199,165,95,.21), transparent 68%); }
.gate-card { position: relative; z-index: 1; width: min(100%, 520px); padding: 58px 56px 46px; border: 1px solid rgba(255,255,255,.16); background: rgba(19,33,28,.74); box-shadow: 0 36px 100px rgba(0,0,0,.34); backdrop-filter: blur(20px); animation: gate-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gate-in { from { opacity: 0; transform: translateY(22px); } }
.gate-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 36px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-weight: 800; letter-spacing: -2px; }
.gate-mark span { color: #e17058; }
.eyebrow { margin: 0 0 14px; color: #b9ad93; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.gate-card h1 { margin: 0; font-size: clamp(42px, 8vw, 68px); font-weight: 700; letter-spacing: -.07em; line-height: 1.12; }
.gate-description { max-width: 330px; margin: 24px 0 36px; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.8; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 17px 20px; border: 0; color: #fff; background: var(--accent); cursor: pointer; transition: background .2s, transform .2s; }
.primary-button span { font-size: 22px; transition: transform .2s; }
.primary-button:hover { background: #ed5c41; transform: translateY(-2px); }
.primary-button:hover span { transform: translateX(4px); }
.gate-note { margin: 26px 0 0; color: rgba(255,255,255,.32); font-size: 11px; letter-spacing: .08em; }

.page-shell { width: min(100% - 32px, 980px); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 96px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-badge { padding: 8px 10px; color: #fff; background: var(--accent); font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.header-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.header-meta span { color: var(--green); font-weight: 700; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 40px 72px; align-items: center; padding: 86px 0 66px; }
.hero::after { content: ""; position: absolute; top: 42px; right: -40px; width: 150px; height: 150px; border: 1px solid #d4c4a7; border-radius: 50%; opacity: .55; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(46px, 6.2vw, 72px); font-weight: 800; letter-spacing: -.08em; line-height: 1.04; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p:last-child { max-width: 470px; margin: 26px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4baf7e; box-shadow: 0 0 0 5px rgba(75,175,126,.13); }
.domain-focus { position: relative; z-index: 1; padding: 27px 30px 25px; border: 1px solid #263f36; color: #fff; background: var(--green); box-shadow: 0 24px 60px rgba(29,55,47,.18); }
.domain-focus-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .08em; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; color: #b9dfc8; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #70d89f; box-shadow: 0 0 0 4px rgba(112,216,159,.12); }
.primary-domain { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 7px; color: #fff; text-decoration: none; }
.primary-domain small { color: #e3a896; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.primary-domain strong { font-size: clamp(31px, 4.5vw, 50px); letter-spacing: -.055em; line-height: 1; }
.primary-domain > span { font-size: 26px; transition: transform .2s; }
.primary-domain:hover > span { transform: translate(4px, -4px); }
.domain-focus > p { margin: 20px 0 0; color: rgba(255,255,255,.5); font-size: 11px; }
.domain-actions { position: relative; z-index: 2; grid-column: 2; }
.domain-actions::before { content: ""; position: absolute; inset: -26px; z-index: -1; border: 1px solid rgba(218,75,49,.2); border-radius: 50%; transform: rotate(-8deg); }
.entry-button { position: relative; z-index: 2; display: flex; gap: 18px; align-items: center; width: 100%; min-height: 112px; padding: 25px 28px; border: 0; color: #fff; background: linear-gradient(135deg, #e75b40, #c93d28); text-align: left; cursor: pointer; box-shadow: 0 22px 46px rgba(193,53,34,.28); transition: transform .25s, box-shadow .25s, filter .25s; }
.entry-button:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 30px 60px rgba(193,53,34,.36); filter: saturate(1.08); }
.entry-button-icon { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 25px; }
.entry-button small { display: block; margin-bottom: 4px; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 400; letter-spacing: .08em; }
.entry-button span:last-child { font-size: 21px; font-weight: 800; }
.copy-button { min-width: 132px; padding: 0 20px; border: 1px solid var(--green); color: var(--green); background: transparent; cursor: pointer; transition: color .2s, background .2s; }
.copy-button:hover { color: #fff; background: var(--green); }

.domain-panel { padding: 32px; border: 1px solid #2c433b; color: #fff; background: #1b2a25; box-shadow: 0 28px 70px rgba(32,43,39,.14); }
.domain-panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.domain-panel-heading > div { display: flex; align-items: baseline; gap: 12px; }
.domain-panel-heading h2 { margin: 0; font-size: 23px; }
.domain-panel-heading > span { color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .08em; }
.domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.domain-card { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; min-width: 0; padding: 18px 17px; color: #fff; background: #1b2a25; text-decoration: none; transition: background .2s; }
.domain-card:hover, .domain-card.is-primary { background: #29473d; }
.domain-number { color: #df715b; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.domain-detail { min-width: 0; }
.domain-detail small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .12em; }
.domain-detail strong { display: block; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.domain-arrow { color: rgba(255,255,255,.44); font-size: 18px; transition: transform .2s; }
.domain-card:hover .domain-arrow { transform: translateX(4px); }
.domain-tip { margin: 17px 0 0; color: rgba(255,255,255,.36); font-size: 11px; text-align: center; }

.notice { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); background: rgba(255,253,250,.6); overflow: hidden; }
.notice-label { flex: 0 0 auto; padding: 4px 8px; color: #fff; background: var(--accent); font-size: 10px; font-weight: 700; }
.notice-window { overflow: hidden; }
.notice-window p { width: max-content; margin: 0; color: var(--muted); font-size: 12px; animation: ticker 18s linear infinite; }
@keyframes ticker { from { transform: translateX(40%); } to { transform: translateX(-100%); } }

.panel { margin-top: 20px; padding: 34px; border: 1px solid var(--line); background: rgba(255,253,250,.84); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-heading > div { display: flex; align-items: baseline; gap: 12px; }
.section-index { color: var(--accent); font-family: Georgia, serif; font-size: 13px; font-style: italic; }
.section-heading h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.section-heading > span, .text-button { color: #9a9488; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.text-button { padding: 7px 0; border: 0; border-bottom: 1px solid #a7a093; background: transparent; cursor: pointer; }
.text-button:hover { color: var(--accent); border-color: var(--accent); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick-grid a { position: relative; min-height: 116px; padding: 22px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, color .2s; }
.quick-grid a::after { content: "↗"; position: absolute; right: 14px; top: 12px; color: #bdb5a7; opacity: 0; transform: translate(-4px,4px); transition: .2s; }
.quick-grid a:hover { color: #fff; background: var(--green); }
.quick-grid a:hover::after { color: #fff; opacity: 1; transform: none; }
.quick-grid b { display: block; font-size: 16px; }
.quick-grid span { display: block; margin-top: 12px; color: #9b9488; font-size: 10px; letter-spacing: .1em; }
.quick-grid a:hover span { color: rgba(255,255,255,.55); }

.favorites-list { display: flex; flex-wrap: wrap; gap: 10px; min-height: 42px; align-items: center; }
.empty-state { margin: 0; color: #999286; font-size: 13px; }
.favorite-item { display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper-light); }
.favorite-item a { padding: 10px 7px 10px 14px; font-size: 13px; text-decoration: none; }
.favorite-item button { padding: 10px 12px; border: 0; color: #a8a093; background: transparent; cursor: pointer; }
.favorite-item button:hover { color: var(--accent); }

.directory-list { border-top: 1px solid var(--line); }
.directory-row { display: grid; grid-template-columns: 100px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.category { padding: 22px 0; color: var(--green); font-weight: 700; }
.directory-row div { display: grid; grid-template-columns: repeat(3, 1fr); }
.directory-row a { padding: 22px 14px; color: var(--muted); font-size: 13px; text-align: center; text-decoration: none; transition: color .2s, background .2s; }
.directory-row a:hover { color: var(--accent); background: #f5efe5; }

.tools-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tools-grid a { display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 17px 8px; color: var(--muted); font-size: 12px; text-decoration: none; transition: color .2s, transform .2s; }
.tools-grid a:hover { color: var(--accent); transform: translateY(-3px); }
.tools-grid span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: var(--paper-light); font-size: 14px; font-weight: 700; }
.tools-grid a:hover span { color: #fff; border-color: var(--accent); background: var(--accent); }

.site-footer { padding: 64px 0 40px; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.05em; }
.site-footer > p { margin: 8px 0 28px; font-size: 12px; }
.site-footer > div:last-child { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; }
.site-footer a { text-decoration: none; }

.favorite-dialog { width: min(calc(100% - 32px), 460px); padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--paper-light); box-shadow: 0 30px 90px rgba(24,32,29,.25); }
.favorite-dialog::backdrop { background: rgba(20,29,26,.66); backdrop-filter: blur(4px); }
.favorite-dialog form { padding: 30px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.dialog-heading h3 { margin: 0; font-size: 25px; }
.dialog-heading button { border: 0; color: var(--muted); background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
.favorite-dialog label { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; }
.favorite-dialog input { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); outline: none; color: var(--ink); background: #fff; }
.favorite-dialog input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(53,95,81,.1); }
.form-error { min-height: 20px; margin: 8px 0; color: var(--accent-dark); font-size: 11px; }
.dialog-submit { width: 100%; padding: 14px; border: 0; color: #fff; background: var(--green); cursor: pointer; }
.dialog-submit:hover { background: #284f43; }

@media (max-width: 720px) {
    body { background-size: 22px 22px; }
    .page-shell { width: 100%; }
    .site-header { min-height: 70px; padding: 0 18px; background: rgba(244,239,229,.92); backdrop-filter: blur(12px); }
    .brand-name { font-size: 15px; }
    .header-meta { flex-direction: column; align-items: flex-end; gap: 0; }
    .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 42px 18px 22px; overflow: hidden; }
    .hero::after { right: -28px; top: 18px; width: 100px; height: 100px; }
    .hero h1 { max-width: 100%; font-size: clamp(44px, 13vw, 58px); }
    .hero-copy > p:last-child { margin-top: 18px; font-size: 13px; line-height: 1.8; }
    .domain-focus { padding: 24px 20px 22px; }
    .primary-domain { grid-template-columns: 1fr auto; gap: 6px; }
    .primary-domain small { grid-column: 1 / -1; }
    .primary-domain strong { font-size: clamp(34px, 10.2vw, 48px); }
    .domain-actions { width: 100%; margin-top: 8px; }
    .domain-actions::before { inset: -14px; }
    .entry-button { width: 100%; min-height: 104px; padding: 23px 22px; }
    .copy-button { min-height: 48px; background: rgba(255,255,255,.28); }
    .domain-panel { padding: 27px 18px 22px; border-right: 0; border-left: 0; }
    .domain-panel-heading { align-items: center; }
    .domain-panel-heading h2 { font-size: 21px; }
    .domain-grid { grid-template-columns: 1fr; }
    .domain-card { min-height: 70px; padding: 14px 15px; }
    .domain-detail strong { font-size: 18px; }
    .notice { margin: 14px 12px 0; }
    .panel { margin: 14px 12px 0; padding: 24px 18px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid a { min-height: 96px; }
    .directory-row { grid-template-columns: 64px 1fr; }
    .directory-row div { grid-template-columns: repeat(2, 1fr); }
    .directory-row a { padding: 16px 8px; }
    .directory-row a:last-child { grid-column: span 2; }
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer { padding: 52px 18px 32px; }
    .site-footer > div:last-child { flex-direction: column; gap: 8px; }
}
@media (max-width: 460px) {
    .entry-gate { padding: 14px; }
    .entry-gate::before { inset: 8px; }
    .gate-card { padding: 40px 26px 32px; }
    .gate-mark { width: 62px; height: 62px; margin-bottom: 28px; }
    .gate-card h1 { font-size: clamp(42px, 13vw, 54px); }
    .gate-description { margin: 20px 0 30px; font-size: 13px; }
    .section-heading > span { display: none; }
    .notice-window p { animation-duration: 14s; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
