/* 08 AI 陪伴玩具选购 · 糖果包装盒 / 圆润贴纸 */
.act-page, .act-modal, .act-toast {
    --act-bg: #fff5f0;
    --act-paper: #ffffff;
    --act-soft: #fdf0f4;
    --act-ink: #33253c;
    --act-sub: #86728f;
    --act-line: #f0dbe6;
    --act-brand: #e7548a;
    --act-brand-2: #b83768;
    --act-accent: #3b82c4;
    --act-accent-soft: #e7f2fd;
    --act-good: #3f8f68;
    --act-bad: #cf4b5c;
    --act-shadow: 0 14px 36px rgba(190, 90, 135, .13);
    --act-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --act-num: "Bahnschrift", "DIN Alternate", Consolas, monospace;
}
:root[data-theme="dark"] .act-page,
:root[data-theme="dark"] .act-modal,
:root[data-theme="dark"] .act-toast {
    --act-bg: #17121c;
    --act-paper: #211925;
    --act-soft: #2b1f31;
    --act-ink: #f5eaf4;
    --act-sub: #bca4c4;
    --act-line: #3d2d44;
    --act-brand: #ff9ec1;
    --act-brand-2: #ffc2da;
    --act-accent: #8dc5ff;
    --act-accent-soft: #1d2b3c;
    --act-good: #8dd8b0;
    --act-bad: #ff9c9c;
    --act-shadow: 0 14px 36px rgba(0, 0, 0, .42);
}
.act-page { background: var(--act-bg); color: var(--act-ink); font-family: var(--act-font); font-size: 15px; line-height: 1.78; }
.act-page * { box-sizing: border-box; }
.act-wrap { max-width: 1180px; margin: 0 auto; padding: 22px 22px 60px; }
.act-page .detail-breadcrumb { font-size: 13px; color: var(--act-sub); margin-bottom: 20px; }
.act-page .detail-breadcrumb a { color: var(--act-brand); text-decoration: none; }
.act-page .detail-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.act-page .detail-breadcrumb .current { color: var(--act-ink); }

.act-hero { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .62fr); gap: 26px; }
.act-hero-copy { background: var(--act-paper); border: 1px solid var(--act-line); border-radius: 22px; padding: 30px 32px 24px; box-shadow: var(--act-shadow); }
.act-kicker { display: inline-block; background: var(--act-accent-soft); color: var(--act-accent); font-size: 11.5px; letter-spacing: .12em; padding: 5px 14px; border-radius: 20px; font-weight: 700; }
.act-hero h1 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.28; margin: 15px 0 10px; font-weight: 800; letter-spacing: -.02em; }
.act-hero h1 em { display: block; font-style: normal; font-size: .52em; color: var(--act-brand); font-weight: 600; margin-top: 7px; }
.act-sub { color: var(--act-sub); font-size: 14.5px; margin: 0 0 20px; max-width: 64ch; }
.act-sub b { color: var(--act-brand-2); }
:root[data-theme="dark"] .act-sub b { color: var(--act-brand); }
.act-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.act-fact { background: var(--act-soft); border: 1px solid var(--act-line); border-radius: 16px; padding: 12px 14px; }
.act-fact span { display: block; font-size: 12px; color: var(--act-sub); }
.act-fact b { font-family: var(--act-num); font-size: 26px; line-height: 1.3; }
.act-fact i { font-style: normal; font-size: 11px; color: var(--act-sub); margin-left: 4px; }
.act-fact.is-main b { font-family: var(--act-font); font-size: 21px; color: var(--act-brand); }
.act-fact.is-main { background: linear-gradient(135deg, var(--act-brand), var(--act-brand-2)); border-color: transparent; }
.act-fact.is-main span, .act-fact.is-main i { color: rgba(255,255,255,.8); }
.act-fact.is-main b { color: #fff; }
:root[data-theme="dark"] .act-fact.is-main span, :root[data-theme="dark"] .act-fact.is-main i { color: rgba(23,18,28,.72); }
:root[data-theme="dark"] .act-fact.is-main b { color: #17121c; }
.act-hero-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 9px; align-items: end; border-top: 1px dashed var(--act-line); padding-top: 16px; }
.act-page label > span { display: block; font-size: 11.5px; color: var(--act-sub); margin-bottom: 4px; }
.act-page input, .act-page select, .act-page textarea { width: 100%; background: var(--act-soft); color: var(--act-ink); border: 1px solid var(--act-line); border-radius: 12px; padding: 8px 10px; font-size: 14px; font-family: var(--act-num); outline: none; }
.act-page select, .act-page textarea { font-family: var(--act-font); }
.act-page input:focus, .act-page select:focus, .act-page textarea:focus { border-color: var(--act-brand); box-shadow: 0 0 0 3px var(--act-soft); }
.act-go { background: var(--act-brand); color: #fff; border: 0; border-radius: 12px; padding: 10px 15px; font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.act-go:hover { filter: brightness(1.08); }
.act-err { color: var(--act-bad); font-size: 13px; margin: 10px 0 0; font-weight: 600; }

/* 玩具包装盒 */
.act-box { background: var(--act-paper); border: 1px solid var(--act-line); border-radius: 22px; padding: 14px; box-shadow: var(--act-shadow); display: flex; flex-direction: column; }
.act-box-lid { background: linear-gradient(120deg, var(--act-brand), var(--act-accent)); color: #fff; border-radius: 14px 14px 6px 6px; text-align: center; font-family: var(--act-num); font-size: 11px; letter-spacing: .24em; padding: 9px; font-weight: 700; }
.act-box-body { flex: 1; background: repeating-linear-gradient(45deg, var(--act-soft) 0 14px, var(--act-paper) 14px 28px); border: 2px dashed var(--act-line); border-radius: 0 0 14px 14px; margin-top: 6px; padding: 20px 16px 16px; text-align: center; position: relative; overflow: hidden; }
.act-box-window { width: 108px; height: 108px; margin: 0 auto 12px; border-radius: 50%; background: var(--act-paper); border: 5px solid var(--act-brand); display: flex; align-items: center; justify-content: center; font-size: 48px; box-shadow: inset 0 -8px 18px var(--act-soft); }
.act-box-body > b { display: block; font-size: 19px; }
.act-box-body > small { color: var(--act-sub); font-size: 12px; }
.act-box-ribbon { height: 8px; background: linear-gradient(90deg, var(--act-accent), var(--act-brand)); border-radius: 5px; margin: 14px -16px; }
.act-box-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.act-box-tags i { font-style: normal; font-size: 11px; background: var(--act-paper); border: 1px solid var(--act-line); border-radius: 12px; padding: 3px 9px; color: var(--act-sub); }

.act-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 22px; background: var(--act-paper); border: 1px dashed var(--act-line); border-radius: 16px; padding: 12px 16px; }
.act-quick > span { font-size: 12.5px; color: var(--act-sub); }
.act-quick button, .act-mini { background: var(--act-soft); color: var(--act-ink); border: 1px solid var(--act-line); border-radius: 20px; padding: 6px 13px; font-size: 12.5px; cursor: pointer; font-family: var(--act-font); }
.act-quick button:hover, .act-mini:hover { border-color: var(--act-brand); }
.act-quick button.is-main { background: var(--act-brand); color: #fff; border-color: var(--act-brand); font-weight: 700; }
:root[data-theme="dark"] .act-quick button.is-main { color: #17121c; }
.act-panel { background: var(--act-paper); border: 1px solid var(--act-line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--act-shadow); margin-bottom: 20px; min-width: 0; }
.act-panel-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.act-panel-head h2 { font-size: 18px; margin: 0; }
.act-panel-head small { color: var(--act-sub); font-size: 12px; }
.act-tag { width: 25px; height: 25px; border-radius: 50%; background: var(--act-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--act-num); font-size: 12px; font-weight: 800; }
:root[data-theme="dark"] .act-tag { color: #17121c; }
.act-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.act-type { background: var(--act-soft); border: 2px solid var(--act-line); border-radius: 16px; padding: 14px; cursor: pointer; transition: .15s; }
.act-type:hover { transform: translateY(-2px); }
.act-type.is-top { border-color: var(--act-brand); }
.act-type.is-picked { box-shadow: 0 0 0 3px var(--act-accent-soft); border-color: var(--act-accent); }
.act-type-ic { font-size: 27px; }
.act-type b { display: block; font-size: 15px; margin: 6px 0 2px; }
.act-type small { color: var(--act-sub); font-size: 11.5px; }
.act-type-score { font-family: var(--act-num); font-size: 23px; color: var(--act-brand); line-height: 1.4; }
.act-bar { height: 7px; background: var(--act-line); border-radius: 5px; overflow: hidden; margin: 6px 0 9px; }
.act-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--act-accent), var(--act-brand)); }
.act-type-meta { font-size: 12px; color: var(--act-sub); display: grid; gap: 3px; }
.act-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
.act-grid > * { min-width: 0; }
.act-checks { display: grid; gap: 8px; }
.act-check { display: flex; align-items: flex-start; gap: 9px; background: var(--act-soft); border: 1px solid var(--act-line); border-radius: 12px; padding: 9px 12px; cursor: pointer; font-size: 13px; }
.act-check.is-on { border-color: var(--act-good); }
.act-check input { width: auto; margin-top: 3px; }
.act-check b { font-size: 13px; }
.act-check span { display: block; font-size: 11.5px; color: var(--act-sub); }
.act-risk-meter { margin-top: 14px; }
.act-risk-meter > span { font-size: 12.5px; color: var(--act-sub); }
.act-risk-meter b { font-family: var(--act-num); font-size: 18px; color: var(--act-brand); }
.act-risk-track { height: 12px; background: var(--act-line); border-radius: 8px; overflow: hidden; margin: 6px 0; }
.act-risk-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--act-good), var(--act-accent), var(--act-bad)); transition: width .4s; }
.act-risk-meter small { color: var(--act-sub); font-size: 11.5px; }
.act-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.act-tl { background: var(--act-soft); border: 1px solid var(--act-line); border-radius: 12px; padding: 11px; text-align: center; }
.act-tl small { display: block; font-size: 11px; color: var(--act-sub); }
.act-tl b { font-family: var(--act-num); font-size: 19px; color: var(--act-brand); }
.act-scroll { overflow-x: auto; }
.act-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
.act-table th { text-align: left; color: var(--act-sub); font-size: 12px; font-weight: 600; padding: 8px; border-bottom: 1px solid var(--act-line); white-space: nowrap; }
.act-table td { padding: 7px 8px; border-bottom: 1px dashed var(--act-line); }
.act-table td input, .act-table td select { padding: 5px 7px; font-size: 13px; }
.act-table .num { font-family: var(--act-num); }
.act-note span { display: block; font-size: 12px; color: var(--act-sub); margin-bottom: 6px; }
.act-note-out { font-size: 13px; background: var(--act-soft); border-left: 3px solid var(--act-brand); padding: 8px 12px; margin-top: 10px; border-radius: 0 10px 10px 0; }
.act-note-out:empty { display: none; }
.act-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.act-btn { background: var(--act-brand); color: #fff; border: 1px solid var(--act-brand); border-radius: 12px; padding: 8px 15px; font-size: 13px; cursor: pointer; font-family: var(--act-font); }
.act-btn:hover { filter: brightness(1.12); }
:root[data-theme="dark"] .act-btn { color: #17121c; }
.act-del { background: none; border: 0; color: var(--act-bad); cursor: pointer; font-size: 17px; }

.act-modal[hidden] { display: none !important; }
.act-modal { position: fixed; inset: 0; z-index: 900; background: rgba(36, 20, 40, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.act-sheet { background: var(--act-paper); color: var(--act-ink); border-radius: 20px; padding: 26px; max-width: 460px; width: 100%; box-shadow: var(--act-shadow); border-top: 6px solid var(--act-brand); }
.act-sheet h3 { margin: 0 0 8px; font-size: 19px; }
.act-sheet p { color: var(--act-sub); font-size: 13px; }
.act-sheet code { display: block; background: var(--act-soft); border: 1px dashed var(--act-line); padding: 10px; font-size: 11.5px; word-break: break-all; border-radius: 10px; }
.act-sheet-actions { text-align: right; margin-top: 16px; }
.act-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); background: var(--act-brand-2); color: #fff; padding: 10px 20px; border-radius: 24px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 950; }
.act-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
    .act-hero, .act-grid { grid-template-columns: minmax(0, 1fr); }
    .act-hero-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .act-go { grid-column: span 2; }
    .act-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .act-wrap { padding: 14px 12px 40px; }
    .act-hero-copy { padding: 22px 18px; }
    .act-facts { grid-template-columns: minmax(0, 1fr); }
    .act-hero-form { grid-template-columns: minmax(0, 1fr); }
    .act-go { grid-column: span 1; }
    .act-types { grid-template-columns: minmax(0, 1fr); }
    .act-timeline { grid-template-columns: minmax(0, 1fr); }
    .act-table { min-width: 0; font-size: 12px; }
    .act-page input, .act-page select, .act-page textarea { font-size: 16px; }
}
@media print { .act-quick, .act-actions, .act-modal, .act-toast, .tskb { display: none !important; } }
