/*
 * [INPUT]: MagicPath GeneratedComponent.css 完整设计 token、布局栅格与卡片视觉系统，附加统计横幅/广告预留位/信任页排版规则。
 * [OUTPUT]: 4FunPuzzle 首页（/）与三信任页（/about/、/privacy/、/contact/）样式表。
 * [POS]: public 静态 CSS 资产，严格零外链字体请求以适配 script-src/style-src 'self' CSP。
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */
html, body { margin: 0; }
.fp-site { --ink: #182B2C; --muted: #657470; --paper: #F8F8F3; --surface: #FFFFFF; --line: #D9E1DB; --coral: #EE6B4B; --forest: #225E55; --lime: #E8F2B5; color: var(--ink); background: var(--paper); min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.fp-site * { box-sizing: border-box; }
.fp-site button { font: inherit; cursor: pointer; }
.fp-site button:focus-visible, .fp-site a:focus-visible { outline: 3px solid #D8784B; outline-offset: 3px; }
.fp-width { max-width: 1170px; padding: 0 28px; margin: 0 auto; }

.fp-header { background: rgba(248, 248, 243, .98); border-bottom: 1px solid var(--line); }
.fp-head-inner { height: 56px; display: flex; align-items: center; gap: 45px; }
.fp-logo { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 20px; font-weight: 850; letter-spacing: -1.2px; line-height: 1; color: var(--ink); text-decoration: none; }
.fp-logo-light { font-weight: 550; }
.fp-mark { width: 34px; height: 34px; flex: none; display: block; }
.fp-mark-small { width: 26px; height: 26px; }
.fp-header nav { display: flex; align-items: center; gap: 5px; }
.fp-header nav a { border: 0; background: none; color: #626F69; font-size: 13px; font-weight: 670; padding: 9px 13px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.fp-header nav a.active { color: var(--ink); background: #E9EEE8; }
.fp-header nav a:hover { color: var(--forest); }
.fp-head-note { margin-left: auto; font-size: 11px; letter-spacing: .03em; color: #96A39B; font-style: italic; }
.preview { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6E5835; background: #F5ECD4; border: 1px solid #DFCFA3; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }

.analytics-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.analytics-settings[hidden] { display: none; }
.analytics-settings p { margin: 0; margin-right: auto; }
.analytics-settings button { min-height: 36px; padding: 6px 14px; border-radius: 8px; border: 1px solid #C8D3CA; background: #EFF3EC; color: var(--ink); font-size: 13px; font-weight: 700; }
#analytics-allow { background: var(--forest); border-color: var(--forest); color: #FFFDF7; }
.analytics-settings button:disabled { opacity: .45; cursor: not-allowed; }

.fp-hero { padding: 38px 0 33px; border-bottom: 1px solid var(--line); }
.fp-eyebrow, .fp-tiny-overline { font-weight: 850; color: var(--forest); font-size: 10px; letter-spacing: .17em; }
.fp-eyebrow { display: flex; align-items: center; gap: 8px; }
.fp-eyebrow-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--coral); transform: rotate(-12deg); }
.fp-hero-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }
.fp-hero h1 { font-weight: 850; letter-spacing: -2.9px; line-height: 1.1; font-size: clamp(34px, 4vw, 54px); margin: 0; }
.fp-hero h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 500; letter-spacing: -3px; }
.fp-hero-sign { font-size: 12px; line-height: 1.85; color: #73817A; text-align: right; }
.fp-hero-sign b { color: var(--forest); font-size: 11px; font-weight: 800; white-space: nowrap; }
.fp-hero p { color: #65736E; font-size: 14px; line-height: 1.45; margin: 13px 0 0; }

.fp-library-top, .fp-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.fp-library-top { padding: 34px 0 18px; }
.fp-library-sub { color: #748179; font-size: 12px; margin: 0; }
.fp-site h2 { font-size: 26px; letter-spacing: -1.2px; margin: 5px 0 0; line-height: 1.13; font-weight: 820; }
.fp-count { font-family: ui-monospace, Consolas, monospace; font-weight: 500; font-size: 12px; border: 1px solid #CDD9D0; color: #587369; letter-spacing: 0; padding: 2px 6px; border-radius: 5px; vertical-align: top; margin-left: 9px; }

.fp-daily-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 11px 15px; background: var(--surface); border: 1px solid #D5DED5; border-radius: 12px; box-shadow: 0 2px 0 #E7EAE3; }
.fp-daily-bar.is-complete { background: var(--lime); border-color: #C5D67D; box-shadow: 0 2px 0 #D9E59D; }
.fp-daily-head { display: flex; align-items: center; gap: 8px; }
.fp-daily-label { font-size: 10px; font-weight: 850; letter-spacing: .14em; color: var(--forest); }
.fp-daily-count { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 800; color: var(--ink); background: #EDF2EC; border: 1px solid #CDD8CF; padding: 2px 8px; border-radius: 999px; }
.fp-daily-bar.is-complete .fp-daily-count { background: #FFFDF7; border-color: #B6C96E; }
.fp-daily-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fp-daily-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid #D4DDD5; background: var(--paper); color: #4A5A54; font-size: 12px; font-weight: 720; text-decoration: none; }
.fp-daily-pill:hover { border-color: var(--forest); color: var(--forest); }
.fp-daily-dot { width: 7px; height: 7px; border-radius: 50%; background: #C2CEC5; flex: none; }
.fp-daily-pill.is-solved { background: #E3F0E7; border-color: #9CC7AE; color: #194D41; }
.fp-daily-bar.is-complete .fp-daily-pill.is-solved { background: #FFFDF7; border-color: #8FB99E; }
.fp-daily-pill.is-solved .fp-daily-dot { background: var(--forest); }
.fp-daily-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--forest); color: #FFFDF7; font-size: 12px; font-weight: 760; text-decoration: none; white-space: nowrap; }
.fp-daily-cta:hover { background: #1B4E46; }
.fp-daily-bar.is-complete .fp-daily-cta { background: var(--ink); }

.fp-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; }
.fp-filters button { height: 31px; padding: 0 14px; font-size: 12px; color: #60716B; border: 1px solid #D6DED6; background: transparent; border-radius: 999px; font-weight: 670; }
.fp-filters button.on { background: var(--ink); color: white; border-color: var(--ink); }
.fp-filters button:not(.on):hover { background: #EBF0E8; }

.fp-cardgrid { display: grid; gap: 16px; }
.fp-cardgrid.a1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fp-cardgrid.catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.fp-gamecard { min-width: 0; display: grid; grid-template-columns: 44% 56%; overflow: hidden; background: white; border: 1px solid #D8DED6; border-radius: 15px; box-shadow: 0 3px 0 #E6E9E2; min-height: 238px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.fp-cardgrid.catalog .fp-gamecard { display: block; min-height: 0; }
.fp-gamecard:hover { border-color: #94B7A7; }
.fp-gamecard.is-solved-today { border-color: #9BC4AD; }
.fp-gamecard:hover .fp-round-arrow { transform: translateX(2px); }
.fp-cardart { min-width: 0; overflow: hidden; }
.fp-cardgrid.catalog .fp-cardart { height: 153px; }
.fp-cardcopy { padding: 20px 21px 18px; min-width: 0; display: flex; flex-direction: column; }
.fp-cardgrid.catalog .fp-cardcopy { min-height: 183px; padding: 16px; }
.fp-card-cats { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 760; color: #57756B; }
.fp-status { font-size: 9px; font-weight: 800; letter-spacing: .03em; color: #488D74; white-space: nowrap; }
.fp-status.is-solved { color: #1A5A4A; background: #E3F0E7; padding: 2px 6px; border-radius: 999px; }
.fp-cardcopy h3 { font-size: 28px; font-weight: 850; letter-spacing: -1.2px; line-height: 1.1; margin: 21px 0 9px; }
.fp-cardgrid.catalog .fp-cardcopy h3 { font-size: 23px; margin: 14px 0 8px; }
.fp-cardcopy p { color: #66736F; font-size: 13px; line-height: 1.48; max-width: 230px; margin: 0; }
.fp-cardgrid.catalog .fp-cardcopy p { font-size: 12px; }
.fp-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; }
.fp-edition { font-size: 11px; font-weight: 750; color: #687971; }
.fp-cardgrid.catalog .fp-edition { font-size: 10px; }
.fp-round-arrow { width: 37px; height: 37px; border: 1px solid #D0DAD2; background: var(--coral); color: white; border-color: var(--coral); border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .15s ease; }

.fp-visual { height: 100%; min-height: 184px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fp-cardgrid.catalog .fp-visual { min-height: 153px; }
.fp-v-queens { background: #B6DAD1; background-image: radial-gradient(circle at 13% 10%, #D8EBE3 0, transparent 56%); }
.fp-v-tango { background: #F3DFB1; }
.fp-mini-tango { display: grid; grid-template-columns: repeat(4, 1fr); width: 166px; aspect-ratio: 1; border: 3px solid #876E45; background: white; transform: rotate(5deg); box-shadow: 4px 6px 0 #AC91663D; }
.fp-mini-tango span { border: 1px solid #E4D4B2; display: grid; place-items: center; font-size: 27px; }
.fp-mini-tango .sun { color: #E3AA3E; }
.fp-mini-tango .moon { color: #60718B; }
.fp-v-pips { background: #DCE8DC; }
.fp-mini-pips { display: grid; grid-template-columns: repeat(4, 1fr); width: 176px; height: 126px; border: 2.5px solid #2A4B44; border-radius: 6px; background: white; transform: rotate(-5deg); box-shadow: 4px 6px 0 rgba(34, 94, 85, .18); overflow: hidden; }
.fp-mini-pips span { border: 1px solid rgba(42, 75, 68, .22); display: flex; align-items: flex-start; justify-content: flex-start; padding: 3px 4px; font-size: 11px; font-weight: 850; color: #182B2C; }
.fp-pips-tile { position: absolute; right: 16px; bottom: 14px; width: 68px; height: 34px; transform: rotate(9deg); filter: drop-shadow(2px 4px 0 rgba(24, 43, 44, .18)); }
.fp-pips-tile svg { width: 100%; height: 100%; display: block; }
.fp-v-math { background: #F2E4C8; background-image: radial-gradient(circle at 92% 15%, #FCEBCD 0, transparent 55%); }
.fp-mini-queens { display: grid; grid-template-columns: repeat(6, 1fr); width: 174px; height: 174px; border: 3px solid #2E5651; border-radius: 5px; box-shadow: 4px 7px 0 #276A6129; transform: rotate(-6deg); overflow: hidden; }
.fp-mini-queens span { display: flex; align-items: center; justify-content: center; border: 1px solid #426C634D; font: 23px Georgia; color: #153B39; }
.qc0 { background: #E5C5B5; }
.qc1 { background: #D4DDAE; }
.qc2 { background: #C3DCD5; }
.qc3 { background: #C4D2E7; }
.qc4 { background: #E4C8DF; }
.qc5 { background: #E6D7A8; }
.fp-caption-stamp { position: absolute; left: 18px; bottom: 13px; font-size: 8px; font-weight: 850; letter-spacing: .15em; color: #2F655A; transform: rotate(-6deg); }
.fp-mini-math { display: grid; grid-template-columns: repeat(5, 1fr); width: 192px; height: 192px; transform: rotate(-4deg); background: #FFFDF3; border: 2px solid #B9AC91; box-shadow: 5px 7px 0 #B8996B36; border-radius: 5px; overflow: hidden; }
.fp-mini-math span { border: 1px solid #D9CDB3; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #7B6D57; }
.fp-mini-math span.number { color: #263D38; background: #FDFCF6; font-size: 19px; }
.fp-math-tile { position: absolute; background: white; bottom: 25px; right: 25px; width: 43px; height: 43px; display: grid; place-items: center; font-size: 20px; font-weight: 850; border: 1px solid #D5BA8A; box-shadow: 2px 4px 0 #CDB48C; border-radius: 8px; transform: rotate(12deg); }
.fp-math-tile.second { right: 10px; bottom: 70px; transform: rotate(-12deg); }

.fp-ondeck { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 15px; padding: 14px 18px; background: #F1F3ED; border: 1px dashed #CBD7CE; border-radius: 10px; font-size: 12px; color: #687A73; }
.fp-ondeck-label { font-weight: 850; color: #47766A; letter-spacing: .13em; font-size: 9px; margin-right: 6px; }
.fp-ondeck b { font-weight: 810; color: #3B5750; }
.fp-dotsep { color: #C2CAC3; }
.fp-ondeck-sub { margin-left: auto; }

.fp-solvers { margin: 37px 0 0; }
.fp-section-heading { margin-bottom: 16px; }
.fp-section-heading p { color: #748179; font-size: 12px; margin: 0; }
.fp-solver-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fp-solver-card { display: flex; text-align: left; align-items: center; gap: 14px; background: #FFFFFF; border: 1px solid #D9E0D9; border-radius: 12px; padding: 16px; min-height: 87px; color: var(--ink); box-shadow: 0 2px 0 #E7EAE3; text-decoration: none; }
.fp-solver-card:hover { border-color: #94B7A7; }
.fp-solver-symbol { width: 49px; height: 49px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #E2EEE4; color: #275D53; font: 25px Georgia, serif; }
.fp-solver-symbol.solver-1 { background: #F7E9CF; color: #8A6330; }
.fp-solver-symbol.solver-2 { background: #E4EDF7; color: #28548A; }
.fp-solver-copy { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.fp-solver-copy b { font-size: 15px; letter-spacing: -.2px; }
.fp-solver-copy small { font-size: 11px; color: #74837A; line-height: 1.35; }
.fp-solver-card svg { color: #6D8277; flex: none; }

.fp-ad-slot { margin: 28px 0 0; min-height: 90px; display: flex; align-items: center; justify-content: center; background: #F1F3ED; border: 1px dashed #CBD7CE; border-radius: 12px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.fp-ad-slot:empty { display: none; }

.fp-about { display: grid; grid-template-columns: 1fr 1.8fr; gap: 25px; padding: 32px 0; margin-top: 42px; border-top: 1px solid #D9E0D7; }
.fp-about-sign { display: flex; gap: 10px; align-items: center; font-weight: 820; font-size: 18px; letter-spacing: -.5px; }
.fp-about p { margin: 0; color: #66776D; font-size: 13px; line-height: 1.68; }
.fp-seo { background: #EDF1E9; border-radius: 12px; padding: 24px 27px; display: grid; grid-template-columns: 155px 1fr 24px; gap: 16px; align-items: start; margin-bottom: 45px; }
.fp-seo > span { font-size: 10px; letter-spacing: .13em; font-weight: 850; color: #668475; }
.fp-seo strong { font-size: 15px; }
.fp-seo p { max-width: 680px; font-size: 12px; line-height: 1.75; color: #708176; margin: 6px 0 0; }
.fp-seo a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.fp-seo svg { color: #698478; }

.fp-doc { padding: 32px 0 48px; }
.fp-doc-card { background: var(--surface); border: 1px solid #D8DED6; border-radius: 15px; padding: 28px; max-width: 780px; box-shadow: 0 3px 0 #E6E9E2; }
.fp-doc-card h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1.6px; line-height: 1.12; margin: 10px 0 14px; }
.fp-doc-card h2 { font-size: 20px; letter-spacing: -.5px; margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid #E5EBE3; }
.fp-doc-card p, .fp-doc-card li { font-size: 14px; line-height: 1.68; color: #4A5A54; }
.fp-doc-card ul { padding-left: 20px; margin: 10px 0; }
.fp-doc-card a { color: var(--forest); font-weight: 670; }
.fp-doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fp-pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: #FFFDF7 !important; text-decoration: none; font-size: 13px; font-weight: 750; }
.fp-pill-btn.secondary { background: #EFF3ED; color: var(--ink) !important; border: 1px solid #D0DAD2; }

.fp-footer { border-top: 1px solid #DCE3DD; padding: 19px 0 25px; font-size: 11px; color: #8B9990; }
.fp-footer > .fp-width { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.fp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fp-footer a { color: #66776D; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.fp-footer a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 960px) {
  .fp-cardgrid.a1 .fp-gamecard { grid-template-columns: 41% 59%; }
  .fp-cardgrid.catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-cardgrid.catalog .fp-cardcopy { min-height: 160px; }
  .fp-solver-grid { grid-template-columns: 1fr; }
  .fp-head-note { display: none; }
}
@media (max-width: 620px) {
  .fp-width { padding: 0 16px; }
  .fp-head-inner { height: 52px; gap: 10px; justify-content: space-between; }
  .fp-logo { font-size: 17px; letter-spacing: -1px; }
  .fp-mark { height: 29px; width: 29px; }
  .fp-header nav { gap: 0; }
  .fp-header nav a { font-size: 11px; padding: 7px 6px; }
  .fp-hero { padding: 23px 0 21px; }
  .fp-eyebrow { font-size: 8px; }
  .fp-hero-line { display: block; margin-top: 9px; }
  .fp-hero h1 { font-size: 28px; letter-spacing: -1.4px; line-height: 1.15; }
  .fp-hero h1 em { letter-spacing: -2px; }
  .fp-hero-sign { display: none; }
  .fp-hero p { font-size: 12px; margin-top: 8px; line-height: 1.4; }
  .fp-library-top { padding: 23px 0 14px; display: block; }
  .fp-library-sub { margin-top: 6px; }
  .fp-site h2 { font-size: 23px; }
  .fp-daily-bar { gap: 8px; padding: 11px 12px; }
  .fp-daily-head { width: 100%; justify-content: space-between; }
  .fp-daily-cta { width: 100%; margin-left: 0; justify-content: center; }
  .fp-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; margin-bottom: 12px; scrollbar-width: none; }
  .fp-filters button { flex: none; padding: 0 12px; }
  .fp-cardgrid.a1, .fp-cardgrid.catalog { grid-template-columns: 1fr; gap: 12px; }
  .fp-gamecard, .fp-cardgrid.catalog .fp-gamecard { display: grid; grid-template-columns: 41% 59%; min-height: 175px; border-radius: 12px; }
  .fp-cardgrid.catalog .fp-cardart { height: auto; }
  .fp-cardcopy, .fp-cardgrid.catalog .fp-cardcopy { padding: 12px 13px; min-height: 0; }
  .fp-cardcopy h3, .fp-cardgrid.catalog .fp-cardcopy h3 { font-size: 21px; margin: 10px 0 5px; }
  .fp-cardcopy p, .fp-cardgrid.catalog .fp-cardcopy p { font-size: 11px; line-height: 1.4; }
  .fp-card-cats { font-size: 9px; }
  .fp-status { font-size: 7px; }
  .fp-edition, .fp-cardgrid.catalog .fp-edition { font-size: 9px; line-height: 1.2; }
  .fp-round-arrow { width: 29px; height: 29px; }
  .fp-card-foot { padding-top: 9px; }
  .fp-visual, .fp-cardgrid.catalog .fp-visual { min-height: 175px; }
  .fp-mini-queens { width: 120px; height: 120px; border-width: 2px; }
  .fp-mini-queens span { font-size: 17px; }
  .fp-mini-tango { width: 126px; }
  .fp-mini-tango span { font-size: 19px; }
  .fp-mini-pips { width: 126px; height: 92px; }
  .fp-mini-pips span { font-size: 9px; padding: 2px; }
  .fp-pips-tile { width: 50px; height: 25px; right: 10px; bottom: 16px; }
  .fp-mini-math { width: 131px; height: 131px; }
  .fp-mini-math span { font-size: 11px; }
  .fp-mini-math span.number { font-size: 13px; }
  .fp-math-tile { width: 26px; height: 26px; font-size: 13px; bottom: 22px; right: 9px; }
  .fp-math-tile.second { bottom: 54px; right: 7px; }
  .fp-caption-stamp { font-size: 6px; bottom: 12px; left: 8px; }
  .fp-ondeck { font-size: 11px; gap: 6px; }
  .fp-ondeck-label { width: 100%; margin-bottom: 2px; }
  .fp-ondeck-sub { width: 100%; margin-left: 0; }
  .fp-solvers { margin-top: 30px; }
  .fp-section-heading { display: block; }
  .fp-section-heading p { margin-top: 7px; }
  .fp-solver-grid { grid-template-columns: 1fr; gap: 9px; }
  .fp-solver-card { min-height: 71px; padding: 10px; }
  .fp-solver-symbol { width: 43px; height: 43px; }
  .fp-about { display: block; padding: 24px 0; margin-top: 28px; }
  .fp-about p { margin-top: 12px; }
  .fp-seo { grid-template-columns: 1fr 24px; padding: 19px; gap: 8px; margin-bottom: 22px; }
  .fp-seo > span { grid-column: 1 / -1; }
  .fp-doc-card { padding: 18px; }
  .fp-footer > .fp-width { display: block; }
  .fp-footer > .fp-width > span { display: block; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-site * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
