/* 油神 — YouTube-inspired red / black / white, vidIQ-style site header. */
:root {
  --bg: #0f0f0f;
  --surface: #181818;
  --text: #f5f5f5;
  --muted: #aaa;
  --quiet: #909090;
  --line: #303030;
  --brand-red: #ff0033;
  --action-red: #e6002e;
  --accent: #ff7089;
  --accent-hover: #cf0029;
  --accent-soft: #35151c;
}
body { background: var(--bg); }
::selection { background: #b80025; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible { outline-color: #ff7089; }
button, input, select { accent-color: var(--action-red); }
.button.primary, .search-box .button, .skip { background: var(--action-red); border-color: #f22a50; color: #fff; }
.button.primary:hover, .search-box .button:hover { background: var(--accent-hover); border-color: #ff315a; box-shadow: 0 5px 22px #ff00331a; }
.hero-actions .primary { box-shadow: 0 0 30px #ff003322, inset 0 1px 0 #fff2; }
.button:not(.primary):hover { background: #292929; border-color: #555; }
.search-box:focus-within { border-color: #ef4c6c; box-shadow: 0 0 0 3px #ff003316; }
.chip.active, .chip:hover { background: #35151c; border-color: #763242; color: #ffbac8; }
.tab.active { color: #ff8da4; border-color: var(--brand-red); }
.icon-btn.saved { background: #38151e; border-color: #6b2e3d; color: #ff9bb0; }
.icon-btn.saved svg { fill: #672336; }
.cover-save.saved { background: var(--action-red); color: #fff; }
.cover-save.saved svg { fill: #fff2; }
.bar, .bars span { background: linear-gradient(180deg, #ff335c, #b90025); }
.pager button.active { background: #511a29; color: #ffd2dc; border-color: #813448; }
.text-link:hover { color: #ff8fa6; }
.mini-label { color: #ffb3c4; background: #411722; }
.section-heading h2 svg, .saved-note svg { color: #f68198; }
.compare-dock { border-color: #75404c; }
#toast { background: #242424; border-color: #626262; }

/* Reference proportions: 66px single row, 24px side inset, pill auth buttons. */
.site-header { height: 66px; background: #0b0b0bf5; border-bottom: 1px solid #ffffff0b; }
.header-inner { max-width: none; padding: 0 24px; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 8px; }
.youshen-mark { display: block; width: 38px; height: 27px; color: var(--brand-red); flex-shrink: 0; }
.site-brand strong { display: block; font-size: 27px; font-weight: 850; letter-spacing: -.9px; line-height: 1; color: #fff; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 29px; margin-left: auto; height: 100%; width: 936px; flex: 0 1 936px; }
.site-nav>a, .site-nav .nav-trigger { color: #b7b7c2; font-size: 14px; font-weight: 400; white-space: nowrap; }
.site-nav>a { padding: 0; min-height: 44px; }
.site-nav>a:hover, .site-nav>a[aria-current], .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: #fff; }
.header-actions { gap: 8px; flex-shrink: 0; }
.header-login { min-width: 72px; height: 37px; padding: 0 15px; background: #181818; border: 1px solid #232323; border-radius: 25px; font-size: 13px; color: #f5f5f5; }
.header-login:hover { background: #2a2a2a; border-color: #454545; }
.header-cta { min-width: 144px; border-radius: 25px; min-height: 37px; padding: 5px 13px 5px 6px; gap: 7px; font-size: 13px; font-weight: 500; }
.signup-symbol { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--action-red); }
.signup-symbol svg { display: block; width: 13px; height: 13px; fill: currentColor; stroke-width: 1px; margin-left: 1px; }
.site-menu { background: #202020; border-color: #414141; color: #ddd; }

.nav-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; min-height: 44px; }
.nav-trigger svg { width: 12px; height: 12px; color: #888; transition: transform .18s; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel { position: absolute; top: 57px; left: -20px; width: 345px; padding: 9px; border: 1px solid #3b3b3b; border-radius: 14px; background: #171717; box-shadow: 0 20px 55px #0009; }
.nav-panel[hidden] { display: none; }
.site-nav .nav-panel>a { padding: 13px 12px; display: flex; align-items: center; gap: 12px; border-radius: 9px; white-space: normal; }
.site-nav .nav-panel>a:hover { background: #282828; }
.nav-feature-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #302024; border: 1px solid #54323a; color: #ff94aa; flex-shrink: 0; }
.nav-feature-icon svg { width: 17px; height: 17px; }
.nav-panel strong { display: block; font-size: 13px; font-weight: 550; color: #efefef; }
.nav-panel small { display: block; font-size: 11px; line-height: 1.8; color: #a0a0a0; margin-top: 3px; }
.nav-panel>a>svg { width: 14px; height: 14px; margin-left: auto; color: #858585; }

/* Quiet neutral surfaces leave the red identity clear. */
.hero-news>span:first-child { color: #ff9db1; }
.hero-news { background: #101010ee; }
.home-hero:before { background: linear-gradient(180deg,#0f0f0f4d 0%,#0f0f0f85 25%,#0f0f0fe6 60%,#0f0f0f 94%),linear-gradient(90deg,#0f0f0f60,#0f0f0f55 45%,#0f0f0f60); }
.tool-feature { background: linear-gradient(140deg,#1d1d1d,#141414 75%); border-color: #333; }
.tool-feature:hover { border-color: #75515a; box-shadow: 0 12px 36px #0004; }
.tool-copy { background: #161616; }
.tool-visual:after { background: linear-gradient(transparent,#161616); }
.tool-icon { color: #ddd; background: #252525; border-color: #3d3d3d; }
.tool-feature:hover .tool-arrow { color: #ff809c; }
.mock-search>span, .home-ranking-foot { color: #ff9fb4; }
.mock-tag { background: #351b22; border-color: #75404d; color: #ffb4c5; }
.mock-chips span { background: #262626; border-color: #414141; color: #bbb; }
.keyword-origin { background: #282828; border-color: #555; }
.keyword-origin svg { color: #ff849e; }
.keyword-cloud span { background: #202020; border-color: #3f3f3f; }
.mock-notebook>span, .workflow-top>span { color: #ff95ad; }
.floating-play { background: #d4002bcc; border-color: #ff7994; color: #fff; }
.floating-play svg { fill: #fff; }
.ranking-showcase { background: #151515; border-color: #2e2e2e; }
.home-ranking { background: #191919; border-color: #3b3b3b; }
.home-ranking-head>span:last-child { background: #282828; border-color: #4a4a4a; color: #bbb; }
.home-rank-row:hover { background: #272727; }
.home-rank-number { color: #f092a6; }
.home-case { background: #191919; border-color: #363636; }
.home-case:hover { border-color: #815560; }
.home-case-image>span { background: #131313cc; }
.workflow-grid a:hover h3 { color: #ff8da6; }
.home-join { border-color: #513039; background: radial-gradient(ellipse at 50% -10%,#6e122750,#151515 70%); }
.join-symbol { border: 0; background: transparent; box-shadow: none; width: 58px; height: 43px; border-radius: 0; }
.join-symbol .youshen-mark { width: 56px; height: 40px; }
.plan-member { background: linear-gradient(150deg,#3e1822,#1b1b1b 65%); border-color: #8a3d4e; box-shadow: 0 10px 55px #680c2420; }
.plan-member .plan-label { color: #ffafc1; }
.plan-card li svg { color: #ef809b; }
.site-footer { background: #111; border-color: #2d2d2d; }
.site-footer .youshen-mark { width: 37px; height: 26px; }
.site-footer .site-brand strong { font-size: 26px; }

@media(max-width:1250px) {
  .header-inner { gap: 22px; padding: 0 22px; }
  .site-nav { gap: 20px; }
  .site-nav>a, .site-nav .nav-trigger { font-size: 12px; }
  .site-brand strong { font-size: 25px; }
  .youshen-mark { width: 34px; height: 24px; }
  .header-actions { gap: 7px; }
}
@media(max-width:1150px) {
  .header-inner { justify-content: space-between; padding: 0 20px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .site-menu { display: grid; width: 39px; height: 39px; }
  .site-nav { display: none; }
  .menu-open .site-nav { width: auto; flex: none; display: flex; position: absolute; top: 65px; right: 0; left: 0; height: auto; max-height: calc(100dvh - 65px); overflow-y: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px 20px 20px; margin: 0; background: #171717; border-bottom: 1px solid #494949; box-shadow: 0 20px 40px #0007; }
  .menu-open .site-nav>a, .site-nav .nav-trigger { min-height: 45px; font-size: 14px; }
  .menu-open .site-nav>a { padding: 12px; border-bottom: 1px solid #343434; }
  .nav-dropdown { display: block; height: auto; border-bottom: 1px solid #343434; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 12px; }
  .nav-panel { position: static; width: 100%; margin: 0 0 10px; border-radius: 9px; background: #101010; border-color: #363636; box-shadow: none; }
  .site-nav .nav-panel>a { padding: 11px; border: 0; }
  .menu-open .site-nav .nav-panel a>svg { margin-left: auto; }
}
@media(max-width:767px) {
  .site-header { height: 65px; }
  .header-inner { padding: 0 17px; gap: 14px; }
  .site-brand { gap: 7px; }
  .site-brand strong { font-size: 25px; letter-spacing: -.9px; }
  .youshen-mark { width: 34px; height: 24px; }
  .header-actions { gap: 8px; }
  .header-login { min-width: 43px; height: 35px; padding: 0 10px; font-size: 11px; }
  .header-cta { min-width: 0; min-height: 35px; padding: 5px 12px; font-size: 11px; }
  .signup-symbol { display: none; }
  .site-menu { width: 35px; height: 35px; }
  .site-menu svg { width: 18px; height: 18px; }
  .menu-open .site-nav { top: 64px; }
  .home-hero:before { background: linear-gradient(180deg,#0f0f0f55 0%,#0f0f0f75 25%,#0f0f0fee 56%,#0f0f0f 87%),linear-gradient(90deg,#0f0f0f88,#0f0f0f44,#0f0f0f88); }
}
@media(prefers-reduced-motion:reduce) { .nav-trigger svg { transition: none; } }
