:root {
    --bg: #08101f;
    --surface: #101a2e;
    --surface-soft: #152139;
    --text: #f8fafc;
    --muted: #9aa9c1;
    --line: rgba(148, 163, 184, 0.18);
    --rose: #fb7185;
    --rose-soft: rgba(251, 113, 133, 0.14);
    --teal: #5e8b7e;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 78% 2%, rgba(251,113,133,.12), transparent 28rem), radial-gradient(circle at 8% 28%, rgba(94,139,126,.12), transparent 26rem), var(--bg); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .7rem 1rem; color: #08101f; background: #fff; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.tool-header { height: 68px; padding: 0 clamp(1rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(8,16,31,.78); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { display: block; width: auto; height: 112px; }
.tool-label { color: var(--muted); font-size: .84rem; transition: color .18s ease; }
.tool-label:hover { color: #fff; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.breadcrumbs { padding: 1.25rem 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: .5rem; color: #4b5c75; content: "/"; }
.breadcrumbs a:hover { color: #fff; }
.hero { min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); padding: 3.5rem 0 5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; color: #fda4af; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 1.8rem; height: 1px; background: currentColor; content: ""; }
.hero h1, .category-hero h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 1.04; letter-spacing: -.05em; }
.hero h1 em { color: var(--rose); font-style: normal; }
.hero-copy > p { max-width: 35rem; margin: 1.6rem 0 0; color: var(--muted); font-size: 1.05rem; }
.scenario-panel { padding: clamp(1.4rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: 1.5rem; background: linear-gradient(145deg, rgba(21,33,57,.96), rgba(12,22,40,.96)); box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.panel-heading { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.panel-heading > span, .section-index { color: var(--rose); font: 700 .75rem ui-monospace, monospace; letter-spacing: .12em; }
.panel-heading h2 { margin: -.25rem 0 .1rem; font-size: 1.5rem; }
.panel-heading p, .section-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.selectors { display: grid; gap: .9rem; }
.selectors label { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; color: var(--muted); font-size: .84rem; }
select { width: 100%; padding: .85rem 2.4rem .85rem 1rem; color: #fff; border: 1px solid var(--line); border-radius: .8rem; outline: 0; background: #0b1527; }
select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.primary-button, .secondary-button { min-height: 48px; border: 0; border-radius: .8rem; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.primary-button { width: 100%; margin-top: 1.25rem; padding: .85rem 1.2rem; color: #1d0c13; background: linear-gradient(135deg, #fda4af, #fb7185); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.status { min-height: 1.4rem; margin: .65rem 0 0; color: #fda4af; font-size: .78rem; text-align: center; }
.section-block { scroll-margin-top: 1.5rem; padding: 4rem 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-heading > div { display: flex; align-items: center; gap: 1rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.text-button { padding: .5rem 0; color: #fda4af; border: 0; background: transparent; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.quote-card { min-width: 0; display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.1rem; background: linear-gradient(155deg, rgba(21,33,57,.94), rgba(12,22,40,.94)); }
.quote-card:hover { border-color: rgba(251,113,133,.42); }
.quote-meta { display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .72rem; }
.quote-meta span:first-child { color: #fda4af; }
.quote-text { min-height: 5.8rem; margin: 1.1rem 0 1.4rem; color: #e5eaf2; font-size: .96rem; line-height: 1.85; overflow-wrap: anywhere; }
.copy-button { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .55rem .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: .7rem; background: rgba(255,255,255,.03); }
.copy-button:hover, .copy-button.copied { color: #fff; border-color: var(--teal); background: rgba(94,139,126,.16); }
.copy-button:disabled { cursor: wait; opacity: .72; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.category-card { min-height: 260px; display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(16,26,46,.72); }
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-card > span { color: var(--accent); font: 700 .7rem ui-monospace, monospace; }
.category-card h3 { margin: 2.2rem 0 .65rem; font-size: 1.25rem; }
.category-card p { margin: 0 0 1rem; color: var(--muted); font-size: .78rem; }
.category-card strong { margin-top: auto; color: var(--accent); font-size: .76rem; }
.category-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.25rem; }
.category-pill { min-height: 40px; padding: .55rem 1rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.category-pill:hover, .category-pill.active { color: #fff; border-color: var(--rose); background: var(--rose-soft); }
.secondary-button { display: block; margin: 1.4rem auto 0; padding: .75rem 1.2rem; color: #fff; border: 1px solid var(--line); background: var(--surface-soft); }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 2rem 0 5rem; }
.content-grid article { padding: 1.4rem; border-left: 2px solid var(--teal); background: rgba(16,26,46,.56); }
.content-grid span { color: #86b5a7; font-size: .72rem; }
.content-grid h2 { margin: .5rem 0; font-size: 1.08rem; }
.content-grid p { margin: 0; color: var(--muted); font-size: .84rem; }
.content-grid a { display: inline-block; margin-top: .8rem; color: #fda4af; font-size: .84rem; }
.category-hero { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 1.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 17%, #101a2e), #0b1527 62%); }
.category-hero::after { position: absolute; right: -8rem; top: -10rem; width: 25rem; height: 25rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 50%; content: ""; }
.category-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.category-hero > p { max-width: 42rem; color: var(--muted); }
.category-hero .primary-button { position: relative; width: auto; color: #08101f; background: var(--accent); }
.link-nav { margin: 1.5rem 0 0; }
.category-content { grid-template-columns: repeat(2, 1fr); }
.tool-footer { padding: 2.5rem 1rem; color: var(--muted); border-top: 1px solid var(--line); text-align: center; font-size: .78rem; }
.tool-footer p { margin: .25rem 0; }
.tool-footer a { display: inline-block; margin-top: .8rem; color: #fff; }
.tool-footer .footer-product-link { margin-top: 0; color: var(--muted); }
.tool-footer .footer-product-link:hover { color: #fff; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 2.5rem 0 4rem; }
    .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-card:last-child { grid-column: span 2; min-height: 190px; }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .tool-header { height: 60px; }
    .brand img { height: 100px; }
    .shell { width: min(100% - 1.25rem, 1180px); }
    .breadcrumbs { padding: .9rem 0; }
    .hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
    .hero-copy > p { font-size: .95rem; }
    .scenario-panel { border-radius: 1rem; }
    .selectors label { grid-template-columns: 1fr; gap: .35rem; }
    .section-block { padding: 3rem 0; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .quote-grid { grid-template-columns: 1fr; }
    .quote-text { min-height: auto; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card, .category-card:last-child { grid-column: auto; min-height: 210px; }
    .category-hero { padding: 2rem 1.3rem; border-radius: 1rem; }
    .category-hero h1 { font-size: 2.7rem; }
    .category-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
    .category-pill { flex: 0 0 auto; }
}

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