/* 玄隐科技 · 酒旅行业数字运营平台 — 墨金设计语言 */
:root {
  --ink-0: #0a0d13;
  --ink-1: #0e1219;
  --ink-2: #141926;
  --paper: #f2f6fd;
  --paper-card: #ffffff;
  --brand: #4E7DF8;
  --brand-bright: #7CC0FF;
  --brand-dim: rgba(93, 140, 252, .35);
  --txt-dark: #e9e6dd;
  --txt-dark-muted: #97a0b2;
  --txt-light: #232833;
  --txt-light-muted: #5d6575;
  --line-dark: rgba(233, 230, 221, .12);
  --line-light: rgba(35, 40, 51, .12);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--ink-0); color: var(--txt-dark); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .04em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: linear-gradient(135deg, #4353F0, #38A0FC); color: #fff; box-shadow: 0 8px 26px rgba(67, 110, 250, .32); }
.btn-ghost { border: 1px solid var(--brand-dim); color: var(--brand-bright); }
.btn-ghost:hover { background: rgba(93, 140, 252, .08); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10, 13, 19, .82); backdrop-filter: blur(14px); border-bottom-color: var(--line-dark); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-bright); }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--txt-dark); line-height: 1.15; }
.brand-text em { display: block; font-style: normal; font-family: var(--sans); font-size: 10px; letter-spacing: .38em; color: var(--txt-dark-muted); font-weight: 400; }
.site-nav { margin-left: auto; display: flex; gap: 26px; }
.site-nav a { font-size: 14.5px; color: var(--txt-dark-muted); transition: color .2s; }
.site-nav a:hover { color: var(--brand-bright); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--brand-bright); margin: 4px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(93,140,252,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(93,140,252,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(93,140,252,.16), transparent 62%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; }
.eyebrow { font-size: 13px; letter-spacing: .22em; color: var(--brand); margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.22; margin-bottom: 24px; }
.brand-line { color: var(--brand-bright); position: relative; white-space: nowrap; }
.brand-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: linear-gradient(90deg, rgba(93,140,252,.35), transparent); }
.lede { color: var(--txt-dark-muted); font-size: 17px; max-width: 540px; margin-bottom: 34px; }
.lede b { color: var(--txt-dark); font-weight: 600; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; }
.hero-badges li { font-size: 13px; color: var(--brand-bright); border: 1px solid var(--brand-dim); border-radius: 999px; padding: 6px 16px; background: rgba(93,140,252,.05); }

/* flywheel visual */
.flywheel { position: relative; width: 100%; max-width: 430px; aspect-ratio: 1; margin-left: auto; }
.fw-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 148px; height: 148px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: radial-gradient(circle at 30% 25%, #1d2433, #10141d); border: 1px solid var(--brand-dim); color: var(--brand-bright); box-shadow: 0 0 60px rgba(93,140,252,.12); }
.fw-core span { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.flywheel::before { content: ""; position: absolute; inset: 34px; border: 1px dashed rgba(93,140,252,.25); border-radius: 50%; animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fw-node { position: absolute; width: 178px; padding: 14px 16px; border-radius: 12px; background: rgba(20, 25, 38, .88); border: 1px solid var(--line-dark); backdrop-filter: blur(6px); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.fw-node i { font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--brand); }
.fw-node b { display: block; font-size: 15px; margin: 3px 0 2px; }
.fw-node s { display: block; text-decoration: none; font-size: 12px; color: var(--txt-dark-muted); }
.fw-n1 { top: 0; left: 50%; transform: translateX(-50%); }
.fw-n2 { top: 50%; right: 0; transform: translateY(-50%); }
.fw-n3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.fw-n4 { top: 50%; left: 0; transform: translateY(-50%); }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--ink-1); }
.section-ink { background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); }
.section-kicker { font-size: 13px; letter-spacing: .22em; color: var(--brand); margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.section-sub { color: var(--txt-dark-muted); max-width: 640px; font-size: 16.5px; margin-bottom: 54px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px 30px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--brand-dim); transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brand-bright); background: rgba(93,140,252,.1); border: 1px solid var(--brand-dim); margin-bottom: 22px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--txt-dark-muted); font-size: 14.5px; }

/* products: paper section */
#products { background: var(--paper); color: var(--txt-light); }
#products .section-sub { color: var(--txt-light-muted); }
.product-card { position: relative; background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 38px 34px 32px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(35, 40, 51, .1); }
.pc-index { position: absolute; top: 18px; right: 22px; font-family: var(--serif); font-size: 44px; font-weight: 700; color: rgba(93,140,252,.28); line-height: 1; }
.product-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--txt-light); }
.product-card p { color: var(--txt-light-muted); font-size: 15px; margin-bottom: 18px; }
.pc-tags { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; }
.pc-tags li { font-size: 12.5px; color: #2f5fd0; background: rgba(93,140,252,.14); border-radius: 999px; padding: 4px 14px; }

/* AI */
.ai-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.ai-list { display: grid; gap: 18px; }
.ai-item { border-left: 2px solid var(--brand-dim); padding: 6px 0 6px 26px; }
.ai-item h3 { font-size: 19px; margin-bottom: 6px; color: var(--brand-bright); }
.ai-item p { color: var(--txt-dark-muted); font-size: 15px; }

/* PMS steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-no { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; color: #fff; background: linear-gradient(135deg, #4353F0, #38A0FC); margin-bottom: 14px; }
.step h4 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--txt-dark-muted); }
.pms-note { margin-top: 26px; font-size: 13.5px; color: var(--brand); letter-spacing: .06em; }

/* value */
.value-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.value-list { list-style: none; display: grid; gap: 14px; }
.value-list li { display: flex; align-items: baseline; gap: 18px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 20px 24px; }
.value-list b { color: var(--brand-bright); font-size: 16.5px; white-space: nowrap; }
.value-list span { color: var(--txt-dark-muted); font-size: 14.5px; }

/* about */
.about-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; background: var(--ink-1); border: 1px solid var(--brand-dim); border-radius: 20px; padding: 56px; position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; inset: auto -80px -120px auto; width: 340px; height: 340px; background: radial-gradient(circle, rgba(93,140,252,.14), transparent 65%); }
.about-text h2 { font-size: 30px; margin-bottom: 16px; color: var(--brand-bright); }
.about-text p { color: var(--txt-dark-muted); font-size: 15.5px; }
.about-contact { position: relative; }
.about-contact h3 { font-size: 20px; margin-bottom: 10px; }
.about-contact p { color: var(--txt-dark-muted); font-size: 14.5px; margin-bottom: 22px; }
.contact-loc { margin-top: 16px; font-size: 13px; letter-spacing: .2em; color: var(--brand); }

/* footer */
.site-footer { background: var(--ink-0); border-top: 1px solid var(--line-dark); padding: 46px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: var(--txt-dark-muted); font-size: 13.5px; }
.footer-brand .brand-mark { color: var(--brand-bright); }
.footer-brand em { font-style: normal; color: var(--txt-dark); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: var(--txt-dark-muted); }
.footer-links a:hover { color: var(--brand-bright); }
.footer-copy { font-size: 12.5px; color: var(--txt-dark-muted); }
.icp-link { color: inherit; text-decoration: none; }
.icp-link:hover { color: var(--brand-bright); text-decoration: underline; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .flywheel::before { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .ai-row, .value-row, .about-card { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: rgba(10,13,19,.97); backdrop-filter: blur(12px); padding: 10px 24px 22px; border-bottom: 1px solid var(--line-dark); display: none; }
  body.menu-open .site-nav { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .theme-toggle { margin-left: auto; }
}
@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-card { padding: 36px 26px; }
  .brand-line { white-space: normal; }
}

/* ---------- GEO content blocks ---------- */
.def-section { padding-bottom: 40px; }
.def-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.def-text p { color: var(--txt-dark-muted); font-size: 15.5px; margin-bottom: 14px; }
.def-text b { color: var(--brand-bright); }
.def-facts { list-style: none; display: grid; gap: 10px; }
.def-facts li { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 10px; padding: 13px 18px; font-size: 14px; color: var(--txt-dark); }
.def-facts b { display: inline-block; min-width: 3.5em; color: var(--brand-bright); font-weight: 600; }

.table-wrap { overflow-x: auto; margin-bottom: 26px; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.geo-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.geo-table caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--brand-bright); padding: 18px 22px 12px; }
.geo-table th, .geo-table td { padding: 13px 22px; border-top: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.geo-table thead th { color: var(--txt-dark); font-size: 13.5px; letter-spacing: .05em; background: rgba(93, 140, 252, .06); }
.geo-table tbody th { color: var(--brand-bright); font-weight: 600; white-space: nowrap; }
.geo-table td { color: var(--txt-dark-muted); }
.geo-table td:last-child { color: var(--txt-dark); }

.step-no { width: auto !important; height: auto !important; border-radius: 999px !important; padding: 4px 14px !important; font-size: 13px !important; letter-spacing: .08em; }

.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: 12px; padding: 0 24px; }
.faq-item summary { cursor: pointer; list-style: none; position: relative; padding: 18px 34px 18px 0; font-family: var(--serif); font-weight: 700; font-size: 16.5px; color: var(--txt-light); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #2f5fd0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--txt-light-muted); font-size: 14.5px; padding-bottom: 20px; }
.faq-item ul { list-style: disc; color: var(--txt-light-muted); font-size: 14.5px; padding: 0 0 20px 22px; display: grid; gap: 6px; }
.faq-item p a { color: #2f5fd0; border-bottom: 1px dashed var(--brand-dim); }

.ref-line { margin-top: 18px; font-size: 13.5px; color: var(--txt-dark-muted); }
.ref-line a { color: var(--brand-bright); border-bottom: 1px dashed var(--brand-dim); }
.meta-line { margin-top: 26px; text-align: center; font-size: 13px; letter-spacing: .08em; color: var(--txt-dark-muted); }

@media (max-width: 1020px) { .def-grid { grid-template-columns: 1fr; } }

/* ---------- theme toggle (light / dark) ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 10px; background: transparent; color: var(--brand-bright); cursor: pointer; transition: border-color .2s, color .2s; margin-left: 6px; }
.theme-toggle:hover { border-color: var(--brand-dim); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* light theme overrides */
:root[data-theme="light"] {
  --ink-0: #eef2f8;
  --ink-1: #ffffff;
  --ink-2: #f5f8fd;
  --txt-dark: #1a2233;
  --txt-dark-muted: #5a6678;
  --brand-bright: #2f5fd0;
  --line-dark: rgba(35, 40, 51, .12);
}
:root[data-theme="light"] #products { background: #e7eef9; }
:root[data-theme="light"] .site-header.scrolled { background: rgba(238, 242, 248, .85); border-bottom-color: var(--line-light); }
:root[data-theme="light"] .fw-core { background: radial-gradient(circle at 30% 25%, #dbe6fb, #c4d4f5); border-color: var(--line-light); box-shadow: 0 0 60px rgba(93, 140, 252, .1); }
:root[data-theme="light"] .fw-node { background: rgba(255, 255, 255, .94); border-color: var(--line-light); box-shadow: 0 14px 34px rgba(35, 40, 51, .14); }
@media (max-width: 1020px) {
  :root[data-theme="light"] .site-nav { background: rgba(238, 242, 248, .98); border-bottom-color: var(--line-light); }
  :root[data-theme="light"] .site-nav a { border-bottom-color: var(--line-light); }
}
