:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #f8fafc;
    --line: #e2e8f0;
    --price: #e11d48;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: var(--brand); }

.navbar-brand { font-weight: 800; color: var(--brand) !important; letter-spacing: .5px; }
.navbar .nav-link { color: #334155; }
.navbar .nav-link:hover { color: var(--brand); }
.search-form { min-width: 240px; }

.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%, #f0f9ff 100%);
    border-bottom: 1px solid var(--line);
    padding: 72px 0 56px;
}
.hero h1 { font-weight: 800; letter-spacing: 1px; }
.hero .lead { color: var(--muted); }

.section-title { font-weight: 700; font-size: 1.35rem; margin-bottom: 1.25rem; }

.card-soft {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.category-card {
    display: block;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    transition: all .2s ease;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
    color: var(--brand);
}

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
    border-color: #bfdbfe;
}
.product-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef2f7;
    overflow: hidden;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-cover .cover-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .9rem;
    background: linear-gradient(135deg, #e0f2fe, #ede9fe);
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.product-title:hover { color: var(--brand); }
.product-summary { color: var(--muted); font-size: .85rem; margin: .4rem 0 .6rem; }
.product-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--price); font-weight: 700; font-size: 1.05rem; }
.price-old { color: #94a3b8; text-decoration: line-through; font-size: .85rem; margin-left: .35rem; font-weight: 400; }

.badge-type { background: #eff6ff; color: #1d4ed8; font-weight: 500; }
.badge-member { background: #fef3c7; color: #92400e; }

.preview-wrap {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.preview-wrap img { width: 100%; display: block; }
.preview-watermark {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .06);
    pointer-events: none;
}
.preview-watermark span {
    transform: rotate(-18deg);
    color: rgba(15, 23, 42, .28);
    font-size: 1.4rem; font-weight: 800; letter-spacing: 4px;
    border: 2px solid rgba(15, 23, 42, .15);
    padding: 10px 18px; border-radius: 10px;
    background: rgba(255, 255, 255, .45);
}

.effect-frame {
    width: 100%; height: 420px; border: 0; background: #0f172a;
}
.code-block {
    background: #0f172a; color: #e2e8f0; border-radius: 12px;
    padding: 16px; font-size: .82rem; overflow-x: auto; max-height: 420px;
}
.code-block pre { margin: 0; color: inherit; white-space: pre; }

.detail-price { font-size: 2rem; color: var(--price); font-weight: 800; }
.member-tip {
    background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
    border-radius: 10px; padding: 10px 12px; font-size: .88rem;
}

.plan-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 26px 22px; height: 100%; transition: all .2s ease;
}
.plan-card:hover { border-color: #bfdbfe; box-shadow: 0 12px 28px rgba(37, 99, 235, .1); }
.plan-price { font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.plan-price small { font-size: .85rem; color: var(--muted); font-weight: 400; }

.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 20px; height: 100%;
}
.stat-value { font-size: 1.6rem; font-weight: 800; }
.stat-label { color: var(--muted); font-size: .85rem; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar {
    width: 100%; max-width: 34px; background: linear-gradient(180deg, #60a5fa, #2563eb);
    border-radius: 6px 6px 0 0; min-height: 3px;
}
.bar-label { font-size: .7rem; color: var(--muted); margin-top: 6px; }

.site-footer { background: #fff; border-top: 1px solid var(--line); }
.page-link { color: var(--brand); }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }

.empty-state {
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px;
    padding: 48px 20px; text-align: center; color: var(--muted);
}
