/*
Theme Name: Nuanbang
Theme URI: https://example.com/nuanbang
Author: Nuanbang
Description: A comparison theme. Rankings, picks, experts, homepage copy, and images are edited in WordPress.
Version: 1.2.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: nuanbang
*/

:root {
    --paper: #eef4ff;
    --surface: #ffffff;
    --ink: #142033;
    --muted: #52627a;
    --buy: #ff5a1f;
    --buy-deep: #e63e08;
    --rank: #155eef;
    --star: #f5b400;
    --pros: #12b76a;
    --cons: #f04438;
    --bg: var(--paper);
    --line: #d5e2f5;
    --white: var(--surface);
    --navy: #0b1f44;
    --shadow: 0 10px 28px rgba(21, 94, 239, 0.08);
    --sans: "Segoe UI", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255, 90, 31, 0.12), transparent 60%),
        radial-gradient(800px 380px at -10% 0%, rgba(21, 94, 239, 0.16), transparent 55%),
        var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rank); }
h1, h2, h3, .footer-name, .score-ring span, .pick-rank span, .stats dt {
    font-family: var(--sans);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0.15em 0 0.3em; }
h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); margin: 0 0 0.35em; }
h3 { font-size: 1.2rem; margin: 0 0 0.2em; }
p { margin: 0 0 0.7em; }
button, input { font: inherit; color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--rank);
    color: white;
    padding: 8px 12px;
    z-index: 20;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rank); outline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(11, 31, 68, 0.05);
}
.header-bar { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { flex: 0 0 auto; }
.custom-logo-link { display: flex; }
.custom-logo { height: 48px; width: auto; }
.brand-text {
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: -0.04em;
}
.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--rank);
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 14px;
}
.site-nav { margin-left: auto; }
.site-nav .menu, .footer-nav .menu {
    display: flex;
    gap: 6px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
}
.site-nav a:hover { background: #e7efff; color: var(--rank); }
.footer-nav a { color: #d6e4ff; text-decoration: none; }
.footer-nav a:hover { color: white; }
.header-search input {
    width: 210px;
    border: 1px solid var(--line);
    background: #f7faff;
    border-radius: 999px;
    padding: 9px 14px;
}
.header-search input:focus { border-color: var(--rank); background: white; }

.hero {
    margin-top: 18px;
    padding: 28px 0 32px;
    background: linear-gradient(115deg, #0b1f44 0%, #155eef 52%, #ff6a3d 130%);
    color: white;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 36px; align-items: center; }
.hero h1, .hero .lede { color: white; }
.hero .kicker { color: #ffe08a; }
.hero-art img {
    width: 100%;
    border-radius: 22px;
    border: 4px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(11, 31, 68, 0.28);
}
.kicker {
    margin: 0 0 8px;
    color: var(--rank);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 42rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a, .tags li {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
}
.chips a:hover { background: white; color: var(--rank); }
.tags li {
    background: #eef4ff;
    border-color: var(--line);
    color: var(--rank);
    font-weight: 700;
}

.section { padding: 36px 0 8px; }
.section.tight { padding-top: 12px; }
.section-head { max-width: 680px; margin-bottom: 20px; }
.section-head p, .muted { color: var(--muted); }
.list-grid, .expert-grid { display: grid; gap: 18px; }
.list-grid { grid-template-columns: repeat(3, 1fr); }
.expert-grid { grid-template-columns: repeat(4, 1fr); }
.list-card, .expert-card, .note-list article, .side-card, .expert-quote, .faq-item, .empty, .table-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.list-card a, .expert-card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.list-card { overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.list-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(21, 94, 239, 0.14); }
.list-card img { width: 100%; height: 168px; object-fit: cover; }
.list-card-body, .list-card > a > div { padding: 16px 16px 18px; }
.card-cta {
    display: inline-flex;
    margin-top: 12px;
    background: var(--rank);
    color: white;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 800;
}
.list-card:hover .card-cta { background: #0f4ad0; }
.expert-card { padding: 12px; }
.expert-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.expert-card p, .list-card p { color: var(--muted); margin: 0; }

.band {
    margin: 36px 0 8px;
    padding: 40px 0;
    background: linear-gradient(180deg, #12306b 0%, var(--navy) 100%);
    color: white;
}
.band h2, .band p { color: inherit; }
.why-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.stats div { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 14px; }
.stats dt { font-size: 1.8rem; color: #ffe08a; }
.stats dd { margin: 4px 0 0; font-size: 0.9rem; color: #d6e4ff; }

.list-page { padding: 28px 0 56px; }
.list-intro {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 8px;
}
.list-intro-art img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.crumbs, .updated { color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--rank); text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.steps, .ranking { list-style: none; margin: 0; padding: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 8px; }
.steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
    align-items: start;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.steps span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rank);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
}
.ranking { display: grid; gap: 14px; margin-top: 18px; }
.pick-card {
    display: grid;
    grid-template-columns: 52px 140px minmax(0, 1fr) 196px;
    gap: 16px 18px;
    align-items: center;
    padding: 16px 16px 16px 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.pick-card.is-top {
    border-color: #ffc7ad;
    background: linear-gradient(180deg, #fff8f4 0%, #ffffff 42%);
    box-shadow: 0 14px 30px rgba(255, 90, 31, 0.12);
}
.pick-rank { display: flex; justify-content: center; }
.pick-rank span, .rank-label {
    display: inline-grid;
    place-items: center;
    background: var(--rank);
    color: white;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}
.pick-rank span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.05rem;
}
.pick-card.is-top .pick-rank span { background: var(--buy); }
.rank-label {
    min-width: 1.7rem;
    height: 1.45rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
}
.pick-media {
    width: 140px;
    height: 96px;
    display: grid;
    place-items: center;
    background: #f4f7ff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.pick-media a { display: grid; place-items: center; width: 100%; height: 100%; }
.pick-media img, .brand-logo {
    width: auto;
    max-width: 116px;
    max-height: 68px;
    object-fit: contain;
    background: transparent;
}
.media-fallback {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rank);
}
.pick-copy h3 a { color: var(--ink); text-decoration: none; }
.pick-copy h3 a:hover { color: var(--rank); }
.pick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 6px; }
.reviews, .tagline, .cons-line { color: var(--muted); }
.tagline { margin-bottom: 8px; }
.reviews { margin: 0; font-size: 0.88rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li {
    position: relative;
    padding-left: 22px;
    color: var(--ink);
}
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--pros);
    border-bottom: 2px solid var(--pros);
    transform: rotate(-45deg);
}
.cons-line { margin: 8px 0 0; font-size: 0.92rem; }
.cons-line strong { color: var(--cons); font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.text-link { font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.pick-side { display: grid; justify-items: center; gap: 6px; align-content: center; }
.pick-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pick-side .pick-actions, .review-actions { width: 100%; }
.btn, .btn-ghost, .btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    line-height: 1.2;
    border: 0;
}
.btn {
    background: var(--rank);
    color: white;
}
.btn:hover { background: #0f4ad0; }
.btn-ghost {
    background: transparent;
    color: var(--rank);
    padding-left: 0;
    padding-right: 0;
}
.btn-ghost:hover { text-decoration: underline; }
.btn-buy {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(180deg, #ff7a3d 0%, var(--buy) 100%);
    color: white;
    box-shadow: 0 10px 18px rgba(255, 90, 31, 0.28);
}
.btn-buy:hover { background: var(--buy-deep); }
.stars { margin: 0; color: var(--star); letter-spacing: 0.08em; font-size: 1.05rem; line-height: 1; }
.stars .off { color: #d5deee; }
.score-ring {
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    background: none;
    display: block;
}
.score-ring span {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    display: block;
    font-size: 2rem;
    color: var(--ink);
}
.score-label { margin: 0; color: var(--rank); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pros-cons { margin-top: 12px; }
.pros-cons summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.mini-label.pros, .pros-grid h2.pros { color: var(--pros); }
.mini-label.cons, .pros-grid h2.cons { color: var(--cons); }
td.price, .review-facts .price { color: var(--ink); font-weight: 800; }
td.spec, .review-facts dd { color: var(--muted); }
.pros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.pros-grid.standalone { margin: 18px 0; }
.pros-grid > div { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 8px; }
.pros-grid ul, .side-card ul, .prose ul { padding-left: 1.15em; }
.mini-label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #f7faff; }
th { font-size: 0.78rem; color: var(--muted); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
td a { font-weight: 800; text-decoration: none; }
td a:hover { text-decoration: underline; }
.editorial { display: grid; grid-template-columns: 1.4fr 0.75fr; gap: 22px; margin-top: 28px; align-items: start; }
.prose h2 { margin-top: 1.3em; }
.prose h3 { margin-top: 1em; }
.side-card { padding: 18px 18px 8px; position: sticky; top: 92px; }
.side-card h2 { font-size: 1.05rem; }
.expert-quote { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px; margin-top: 22px; align-items: center; }
.expert-quote img { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; }
.faq-list { display: grid; gap: 10px; }
.faq-item button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
}
.faq-icon { width: 18px; height: 18px; position: relative; flex: 0 0 auto; }
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--rank);
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: none; }
.faq-panel { display: none; padding: 0 16px 8px; color: var(--muted); }
.faq-item.is-open .faq-panel { display: block; }
.disclosure { color: var(--muted); font-size: 0.92rem; margin-top: 28px; }

.review-head, .expert-profile { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.review-head .brand-logo {
    width: 148px;
    height: 96px;
    max-width: 148px;
    max-height: 96px;
    object-fit: contain;
    padding: 12px;
    background: #f4f7ff;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.review-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.review-facts div { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.review-facts dt { color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.review-facts dd { margin: 4px 0 0; }
.review-actions { margin-top: 8px; }
.review-actions .btn-buy { width: auto; min-width: 240px; }
.page-art img { width: 100%; border-radius: 20px; margin: 8px 0 16px; }
.note-list { display: grid; gap: 14px; }
.note-list article { padding: 18px; }
.note-list h2 { margin: 0 0 6px; font-size: 1.35rem; }
.note-list a { color: inherit; text-decoration: none; }
.note-list a:hover h2 { color: var(--rank); }
.empty { padding: 16px; }

.site-footer { margin-top: 48px; padding: 40px 0 20px; background: var(--navy); color: #d6e4ff; }
.site-footer a { color: #d6e4ff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 24px; }
.footer-name { font-size: 1.6rem; margin: 0 0 8px; color: white; }
.footer-label { letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #8eabd4; }
.footer-nav .menu { display: grid; gap: 6px; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 22px; padding-top: 14px; color: #8eabd4; font-size: 0.9rem; }

.nav-links, .pagination { display: flex; gap: 8px; margin-top: 16px; }
.page-numbers { padding: 6px 12px; border-radius: 999px; background: white; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--rank); color: white; border-color: var(--rank); }

@media (max-width: 980px) {
    .hero-grid, .why-grid, .editorial, .footer-grid, .list-intro { grid-template-columns: 1fr; }
    .list-grid, .expert-grid { grid-template-columns: 1fr 1fr; }
    .side-card { position: static; }
    .pick-card { grid-template-columns: 48px 120px minmax(0, 1fr); }
    .pick-side { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
    .pick-side .score-ring { grid-row: span 2; }
    .pick-side .pick-actions { grid-column: 2; }
    .list-intro-art img { height: 200px; }
}
@media (max-width: 800px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; width: 100%; order: 4; margin: 0 0 12px; }
    .site-nav.is-open { display: block; }
    .site-nav .menu { display: grid; gap: 4px; }
    .header-bar { flex-wrap: wrap; padding: 10px 0; }
    .header-search { order: 5; width: 100%; margin-bottom: 10px; }
    .header-search input { width: 100%; }
    .steps, .review-facts, .stats, .pros-grid, .list-grid, .expert-grid { grid-template-columns: 1fr; }
    .pick-card {
        grid-template-columns: auto 1fr;
        align-items: center;
    }
    .pick-media { width: 100%; height: 84px; }
    .pick-copy, .pick-side { grid-column: 1 / -1; }
    .pick-side { grid-template-columns: auto 1fr; }
    .expert-quote { grid-template-columns: 72px 1fr; }
    .review-actions .btn-buy { width: 100%; }
}
