/* 手机优先的白色 / 天空浅蓝主题。装饰图标使用项目自带的本地 SVG。 */
html { background: var(--bg-body); }
body {
    margin: 0;
    background: linear-gradient(180deg, #edf8fe 0, #ffffff 480px, #f3faff 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", sans-serif;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    min-height: 100vh;
}
body > section, body > .container, .app-header {
    width: min(1160px, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
}
.page-shell { width: min(920px, calc(100% - 24px)) !important; max-width: 920px !important; margin: 0 auto; }
.text-neon, .header-title { color: var(--primary-deep); font-weight: 700; }
.text-light, .text-dark { color: var(--text) !important; }
.bg-dark { background-color: var(--bg-body) !important; }
.border-neon { border-color: var(--border) !important; }
.card, .modal-content {
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.app-header {
    margin-top: 12px;
    margin-bottom: 12px;
    min-height: 62px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.header-logo { width: 42px; height: 42px; max-height: 42px; padding: 3px; object-fit: cover; border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--border); }
.header-title { min-width: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.btn-neon, .btn-welfare, .my-btn, .prize-row-btn {
    color: var(--primary-deep) !important;
    background: var(--primary-light) !important;
    border: 1px solid #b9dff2 !important;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color .18s, border-color .18s;
}
.btn-neon:hover, .btn-neon:active, .btn-neon:focus-visible,
.btn-welfare:hover, .btn-welfare:active, .my-btn:hover, .prize-row-btn:hover {
    color: var(--primary-deep) !important;
    background: #cceafa !important;
    border-color: #85c5e5 !important;
}
.btn-outline-neon, .my-btn-outline { color: var(--primary) !important; background: #fff !important; border: 1px solid #99cfe8 !important; border-radius: 12px; }
.btn-outline-neon:hover, .my-btn-outline:hover { color: var(--primary-deep) !important; background: var(--surface-alt) !important; }
.form-control { border-radius: 12px; padding: 8px 14px; }
.search-box input { border-radius: 20px; }
.captcha-img { width: 100px; height: 38px; cursor: pointer; border-radius: 8px; border: 1px solid var(--border); }
#mainCarousel { padding: 4px; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
#mainCarousel .carousel-inner { border-radius: 16px !important; background: var(--surface-alt); }
.carousel-inner img { height: clamp(160px, 35vw, 360px); object-fit: cover; border-radius: 16px; }
#marqueeSection > div { min-height: 40px; color: var(--text); background: #fff !important; border: 1px solid var(--border) !important; }
#marqueeSection .bi-megaphone { color: var(--primary) !important; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.three-card-row .card-three,
.three-card-row .col-4:nth-child(1) .card-three,
.three-card-row .col-4:nth-child(2) .card-three,
.three-card-row .col-4:nth-child(3) .card-three {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color .18s, background-color .18s;
}
.three-card-row .card-three:hover { border-color: #99cfe8; background: #f8fcff; }
.three-card-row .card-three p { color: var(--primary-deep); font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; }
.three-card-row .card-three i { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: var(--primary); background: var(--surface-alt); border-radius: 16px; }
.ai-icon {
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 28%;
    vertical-align: middle;
}
.ai-icon::before {
    content: '';
    position: absolute;
    inset: 22%;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.ai-icon-1, .three-card-row .col-4:nth-child(1) .ai-feature-icon { --icon: url('/bootstrap-icons-1.11.0/play-circle-fill.svg'); }
.ai-icon-2, .three-card-row .col-4:nth-child(2) .ai-feature-icon { --icon: url('/bootstrap-icons-1.11.0/briefcase-fill.svg'); }
.ai-icon-3, .three-card-row .col-4:nth-child(3) .ai-feature-icon { --icon: url('/bootstrap-icons-1.11.0/layers-fill.svg'); }
.ai-icon-4 { --icon: url('/bootstrap-icons-1.11.0/house-door-fill.svg'); }
.ai-icon-5 { --icon: url('/bootstrap-icons-1.11.0/gift.svg'); }
.ai-icon-6 { --icon: url('/bootstrap-icons-1.11.0/wrench.svg'); }
.ai-icon-7 { --icon: url('/bootstrap-icons-1.11.0/headset.svg'); }
.ai-icon-8 { --icon: url('/bootstrap-icons-1.11.0/person-fill.svg'); }
.ai-feature-icon { width: 56px; height: 56px; }
.ai-welfare-icon { width: 52px; height: 52px; }
.card-welfare { background: linear-gradient(110deg, #fff, #edf8fe); border-color: var(--border); }
.card-welfare .text-warning { color: var(--primary) !important; }
.welfare-link-title { color: var(--primary-deep); font-size: 1.1rem; }
.welfare-arrow { color: var(--primary); }
.section-heading { margin: 24px 0 16px; }
.section-kicker { color: var(--primary); font-size: .66rem; font-weight: 700; letter-spacing: .18em; }
.section-heading h2 { margin: 5px 0 0; color: var(--text); font-size: 1.18rem; font-weight: 700; }
.section-heading h2 span { color: var(--text-muted); font-size: .78rem; font-weight: 400; }
#navTabs { gap: 8px; padding: 6px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.nav-cat-btn { color: var(--text-muted); background: transparent; border: 1px solid transparent; border-radius: 11px; padding: 6px 14px; font-size: .82rem; font-weight: 600; }
.nav-cat-btn:hover { color: var(--primary-deep); background: var(--surface-alt); }
.nav-cat-btn.active { color: var(--primary-deep); background: var(--primary-light); border-color: #b9dff2; }
#navGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.col-nav { width: auto; padding: 0; min-width: 0; }
.col-nav > a { display: block; height: 100%; }
.nav-card { min-height: 112px; height: 100%; display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 16px 12px; transition: border-color .18s, background-color .18s; }
.nav-card:hover, .nav-card:active { border-color: #99cfe8; background: #f8fcff; }
.nav-card-img-wrap { flex: 0 0 auto; width: 60px; height: 60px; margin: 0; padding: 3px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 16px; }
.nav-card-img-wrap img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; background: #fff; }
.nav-card-content { flex: 1 1 auto; min-width: 0; }
.nav-card-title { color: var(--text); font-size: .94rem; font-weight: 700; line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-card-subtitle { margin-top: 5px; color: var(--text-muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-card-enter { flex: 0 0 auto; color: var(--primary-deep); background: var(--primary-light); border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px; font-size: .7rem; white-space: nowrap; }
.bottom-nav {
    left: 50% !important;
    bottom: 0 !important;
    transform: translateX(-50%);
    width: min(920px, 100%);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    background: #fff;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -3px 16px rgba(40,117,158,.06);
    z-index: 1000;
}
.bottom-nav a { flex: 1 1 0; min-width: 0; color: var(--text-muted); padding: 4px 0; border-radius: 12px; line-height: 1.15; }
.bottom-nav a .ai-icon { display: block; width: 34px; height: 34px; margin: 0 auto 3px; color: inherit; background: transparent; }
.bottom-nav a small { display: block; font-size: .7rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--primary-deep); background: var(--surface-alt); }
.bottom-nav a.active .ai-icon { background: var(--primary-light); }
.bottom-nav a > i { color: inherit; }
.bottom-nav a > br { display: none; }
.bottom-nav a > i + br + small { margin-top: 5px; }
.page-hero-strip, .tools-header, .service-header {
    color: var(--primary-deep) !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.page-hero-strip { min-height: 80px; padding: 12px 16px; }
.tools-header, .service-header { width: min(920px, calc(100% - 24px)); height: 66px !important; margin: 12px auto 0; padding: 0 16px !important; display: flex; align-items: center; gap: 10px; font-size: 1.15rem !important; font-weight: 700; }
.page-title { display: flex; align-items: center; color: var(--primary-deep) !important; font-weight: 700; }
.page-title-icon { width: 48px; height: 48px; margin-right: 6px; }
.points-chip { color: var(--primary-deep) !important; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 30px; padding: 8px 12px; }
#prizeList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prize-row { height: 106px !important; margin-bottom: 0 !important; padding: 14px !important; background: #fff !important; border: 1px solid var(--border) !important; border-radius: 16px !important; box-shadow: var(--shadow); }
.prize-row-img { width: 60px !important; height: 60px !important; background: var(--surface-alt) !important; border: 1px solid var(--border); border-radius: 14px !important; }
.prize-row-name { color: var(--text); }
.prize-row-desc { color: var(--text-muted) !important; }
.prize-card { border-radius: 16px; }
.prize-card .card-img-top { border-radius: 16px 16px 0 0; }
.tool-card, .tool-panel, .link-card, .service-hero, .service-link-card, .my-card { color: var(--text) !important; background: #fff !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow); }
.tool-card { min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px !important; }
.tool-card:hover, .tool-card.active { color: var(--primary-deep) !important; border-color: #99cfe8 !important; background: var(--surface-alt) !important; box-shadow: none !important; }
.tool-card i, .link-card-icon i, .service-link-icon i { color: var(--primary) !important; }
.tool-panel { min-height: 176px; border-radius: 16px !important; }
#resultBox { color: var(--text); background: var(--surface-alt) !important; border: 1px solid var(--border); }
.link-card { border-radius: 14px !important; }
.link-card:active, .service-link-card:active { background: var(--surface-alt) !important; }
.link-card-icon, .service-link-icon { background: var(--primary-light) !important; }
.service-hero { min-height: 250px; padding: 28px 16px !important; border-radius: 18px !important; }
.service-hero-icon { width: 96px !important; height: 96px !important; margin-bottom: 10px !important; background: var(--surface-alt) !important; box-shadow: none !important; }
.service-hero-icon .ai-icon { width: 96px; height: 96px; }
.service-hero-icon i { color: var(--primary) !important; }
.service-link-card { padding: 16px !important; border-radius: 16px !important; }
.card-header { color: var(--text); background: transparent; border-color: var(--border); }
.card-header button { color: var(--text) !important; background: transparent !important; }
.my-card { padding: 18px !important; border-radius: 16px !important; }
.my-card-header { color: var(--primary-deep) !important; }
.my-card-header i, .my-points { color: var(--primary) !important; }
.my-share-link input { color: var(--text) !important; background: var(--surface-alt) !important; border-color: var(--border) !important; }
.log-item { border-color: var(--border) !important; }
.my-login-icon { width: 112px; height: 112px; }
.auth-icon { width: 96px; height: 96px; }
.table-dark { --bs-table-bg: #fff; --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
.pagination .page-link { padding: 4px 10px; font-size: .85rem; }
.welfare-badge { display: inline-block; color: var(--primary-deep); background: var(--primary-light); border: 1px solid var(--border); border-radius: 12px; padding: 8px 30px; font-size: 1.05rem; font-weight: 600; letter-spacing: 4px; }
.welfare-title { color: var(--primary-deep); font-size: 1.4rem; font-weight: 700; }
code { color: var(--primary-deep); }
@media (max-width: 760px) {
    .app-header { min-height: 56px; border-radius: 16px; }
    .header-logo { width: 38px; height: 38px; }
    .header-title { font-size: 1.08rem; }
    .page-shell { width: 100% !important; }
    #navGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .nav-card { min-height: 146px; flex-direction: column; justify-content: center; gap: 7px; padding: 13px 8px; text-align: center; }
    .nav-card-content { max-width: 100%; flex: 0 1 auto; }
    .nav-card-subtitle { margin-top: 3px; }
    .nav-card-enter { padding: 5px 9px; }
    .page-hero-strip { min-height: 74px; padding: 9px 12px; border-radius: 16px; }
    .page-title { font-size: 1.08rem; }
    .page-title-icon { width: 44px; height: 44px; margin-right: 4px; }
    .points-chip { padding: 6px 9px; font-size: .72rem; }
    #prizeList { grid-template-columns: 1fr; }
    .tools-header, .service-header { height: 60px !important; border-radius: 16px; }
    .tool-card { min-height: 80px; padding: 9px 4px !important; }
    .tool-card i { font-size: 1.4rem !important; }
    .service-hero { min-height: 230px; }
}
@media (max-width: 380px) {
    .header-title { font-size: .98rem; }
    #btnCopyShare { font-size: .72rem !important; }
    .nav-card-title { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    #marqueeText { animation: none !important; }
}
