:root {
    color-scheme: dark;
    --bg: #14171c;
    --panel: #23272f;
    --panel-soft: rgba(35, 39, 47, .78);
    --border: #383d47;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --gold: #fbbf24;
    --gold-deep: #b8860b;
    --gold-classic: #d4af37;
    --max: 1280px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 8%, rgba(212, 175, 55, .055), transparent 28%),
        linear-gradient(180deg, #171b21 0%, var(--bg) 46%, #181c22 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }

.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa7c11 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: 0 0 auto; }
.icon-large { width: 1.35em; height: 1.35em; }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: rgba(20, 23, 28, .90);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: #fff; font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.header-actions, .hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }

.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:focus-visible, .model-chat-btn:focus-visible, .policy-links button:focus-visible, .chat-close:focus-visible, .modal-close:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
}
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-large { padding: 15px 28px; font-size: 18px; }
.btn-compact { padding: 10px 24px; font-size: 13px; }
.btn-dark { background: #27272a; border-color: rgba(251, 191, 36, .45); color: #fbbf24; }
.btn-dark:hover { background: #3f3f46; border-color: #fbbf24; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%); color: #050505; }
.btn-gold:hover { background: linear-gradient(135deg, #e5be38 0%, #d4af37 100%); transform: translateY(-1px); box-shadow: 0 0 18px rgba(212, 175, 55, .28); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 138px 16px 82px;
    text-align: center;
    background: radial-gradient(ellipse at top, #343945 0%, #20242b 42%, #14171c 78%);
}
.hero-inner { max-width: 920px; position: relative; z-index: 1; }
.eyebrow { display: block; margin-bottom: 16px; color: #fbbf24; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.hero h1 { margin: 0 0 22px; color: #fff; font-size: clamp(38px, 6vw, 64px); line-height: 1.15; font-weight: 850; letter-spacing: -.02em; }
.hero-copy { max-width: 760px; margin: 0 auto 31px; color: #a1a1aa; font-size: clamp(17px, 2vw, 20px); line-height: 1.8; }

.features-section { padding: 64px 0; border-block: 1px solid #303540; background: #1b1f26; }
.features-grid { max-width: 1152px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { padding: 28px 24px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(39,44,53,.92), rgba(31,35,42,.88)); text-align: center; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.feature-icon { width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fbbf24; background: rgba(251, 191, 36, .1); font-size: 22px; }
.feature-card h2 { margin: 0 0 9px; color: #fff; font-size: 20px; }
.feature-card p { margin: 0; color: #a1a1aa; font-size: 14px; line-height: 1.75; }

.models-section { padding: 80px 0; }
.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading h2, .process-wrap > h2, .cta-section h2 { margin: 0 0 10px; color: #fff; font-size: 30px; line-height: 1.25; }
.section-heading p, .cta-section p { margin: 0; color: #a1a1aa; line-height: 1.7; }
.model-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.model-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #23272f; }
.model-image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.model-card:hover .model-image { transform: scale(1.045); }
.model-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,.94), rgba(0,0,0,.25) 55%, transparent);
}
.model-name { margin: 0 0 3px; color: #fff; font-size: 16px; font-weight: 800; }
.model-type { margin: 0; color: #fbbf24; font-size: 12px; line-height: 1.5; }
.model-chat-btn { margin-top: 9px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; color: #fff; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; transition: background .18s ease, color .18s ease; }
.model-chat-btn:hover { background: #fbbf24; color: #050505; }

.process-section { padding: 64px 0; border-top: 1px solid #303540; background: #1b1f26; }
.process-wrap { max-width: 896px; text-align: center; }
.process-wrap > h2 { margin-bottom: 38px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process-card { padding: 25px; border: 1px solid var(--border); border-radius: 14px; background: #242932; }
.step { margin-bottom: 8px; color: #fbbf24; font-size: 21px; font-weight: 800; }
.process-card h3 { margin: 0 0 8px; color: #fff; font-size: 16px; }
.process-card p { margin: 0; color: #a1a1aa; font-size: 14px; line-height: 1.65; }

.cta-section { padding: 66px 16px; text-align: center; background: linear-gradient(to bottom, #262b34, #181c22); }
.cta-section p { margin-bottom: 28px; }

.site-footer { padding: 32px 0; border-top: 1px solid #303540; background: #15191f; color: #8b9099; text-align: center; font-size: 12px; }
.footer-inner { max-width: 1152px; }
.footer-inner p { margin: 7px 0; }
.company-name { color: #a1a1aa; font-size: 14px; font-weight: 700; }
.footer-icon { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 4px; fill: #fbbf24; }
.copyright { padding-top: 5px; color: #52525b; }
.policy-links { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 3px; }
.policy-links button { border: 0; padding: 3px 0; color: #a1a1aa; background: none; font-size: 12px; }
.policy-links button:hover { color: #fff; text-decoration: underline; }


.chat-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 4999;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(251, 191, 36, .55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f5c542 0%, #b8860b 100%);
    box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 0 5px rgba(251,191,36,.08);
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.chat-launcher:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 38px rgba(0,0,0,.5), 0 0 0 6px rgba(251,191,36,.12);
}
.chat-launcher:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 4px;
}
.chat-launcher svg {
    width: 30px;
    height: 30px;
    fill: #050505;
}
.chat-launcher-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 13px;
    height: 13px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #22c55e;
}
.chat-launcher.is-hidden {
    opacity: 0;
    transform: scale(.8);
    pointer-events: none;
}

.chat-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 5000;
    width: min(390px, calc(100vw - 36px));
    height: min(650px, calc(100vh - 36px));
    overflow: hidden;
    border: 1px solid #34343a;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.58);
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}
.chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.chat-panel-head { height: 44px; padding: 0 10px 0 15px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #20242b; border-bottom: 1px solid #383d47; }
.chat-panel-head strong { font-size: 14px; letter-spacing: .02em; }
.chat-close, .modal-close { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #a1a1aa; background: transparent; font-size: 26px; line-height: 1; }
.chat-close:hover, .modal-close:hover { color: #fff; background: #27272a; }
.chat-frame { width: 100%; height: calc(100% - 44px); border: 0; display: block; background: #fff; }

.policy-modal { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; padding: 18px; background: rgba(20, 23, 28, .90); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .18s ease; }
.policy-modal.is-open { opacity: 1; }
.policy-dialog { width: min(680px, 100%); max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #454b56; border-radius: 18px; background: #23272f; box-shadow: var(--shadow); transform: translateY(8px) scale(.99); transition: transform .18s ease; }
.policy-modal.is-open .policy-dialog { transform: translateY(0) scale(1); }
.policy-head, .policy-foot { background: #1a1e24; }
.policy-head { padding: 14px 17px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.policy-head h2 { margin: 0; color: #fff; font-size: 18px; }
.policy-content { padding: 24px; overflow-y: auto; color: #d1d5db; font-size: 14px; line-height: 1.8; outline: none; }
.policy-content h3 { margin: 18px 0 7px; color: #fff; font-size: 16px; }
.policy-content h3:first-child { margin-top: 0; }
.policy-content p { margin: 0; }
.policy-foot { padding: 13px 17px; border-top: 1px solid var(--border); text-align: right; }
.modal-open { overflow: hidden; }

@media (max-width: 900px) {
    .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .features-grid, .process-grid { grid-template-columns: 1fr; }
    .features-grid { gap: 18px; }
    .process-grid { gap: 16px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 24px, var(--max)); }
    .header-inner { min-height: 68px; gap: 9px; }
    .brand { font-size: 18px; letter-spacing: .09em; }
    .header-actions { gap: 7px; }
    .btn-small { padding: 9px 11px; font-size: 12px; gap: 6px; }
    .hero { padding: 116px 12px 64px; }
    .hero h1 { font-size: clamp(34px, 11vw, 48px); }
    .hero-copy { font-size: 16px; }
    .btn-large { width: min(280px, 100%); padding: 14px 21px; font-size: 16px; }
    .hero-actions { gap: 10px; }
    .features-section, .process-section { padding: 52px 0; }
    .models-section { padding: 62px 0; }
    .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .model-info { padding: 10px; }
    .model-name { font-size: 15px; }
    .model-chat-btn { padding: 7px 8px; }
    .section-heading h2, .process-wrap > h2, .cta-section h2 { font-size: 26px; }
    
.chat-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 4999;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(251, 191, 36, .55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f5c542 0%, #b8860b 100%);
    box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 0 5px rgba(251,191,36,.08);
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.chat-launcher:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 38px rgba(0,0,0,.5), 0 0 0 6px rgba(251,191,36,.12);
}
.chat-launcher:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 4px;
}
.chat-launcher svg {
    width: 30px;
    height: 30px;
    fill: #050505;
}
.chat-launcher-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 13px;
    height: 13px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #22c55e;
}
.chat-launcher.is-hidden {
    opacity: 0;
    transform: scale(.8);
    pointer-events: none;
}

.chat-panel { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); height: min(72vh, 620px); border-radius: 16px; }
    .policy-dialog { max-height: 88vh; }
    .policy-content { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
