:root {
    --primary: #f0ad4e;
    --primary-dark: #d97706;
    --dark: #1e293b;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

body {
    min-height: 100vh;
    color: #334155;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a, button, .product-card, .category-shortcut, .home-ad, .home-vip-entry {
    transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.navbar {
    min-height: 56px;
}

.header .nav-link {
    display: flex;
    align-items: center;
    gap: .25rem;
    white-space: nowrap;
}

.header-search {
    flex: 0 1 240px;
    min-width: 180px;
}

.site-announcement-top {
    background: #fff7df;
    border-bottom: 1px solid #f3d08a;
}

.announcement-top-inner {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .55rem 0;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
    padding: .25rem .7rem;
    border-radius: 999px;
    color: #7c4a00;
    background: #ffd978;
    font-weight: 700;
}

.announcement-top-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: .18rem .7rem;
    color: #7c4a00;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 999px;
}

.main-content {
    min-height: calc(100vh - 320px);
}

.hero-section {
    background: #111827;
}

.hero-visual {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .64) 46%, rgba(15, 23, 42, .08));
}

.hero-banner-copy {
    max-width: 580px;
}

.home-search-band {
    padding: 1rem 0 1.1rem;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.home-search-form {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(240px, 1fr) auto;
    gap: .75rem;
}

.home-search-form .form-control,
.home-search-form .form-select {
    min-height: 44px;
    border: 0;
}

.hot-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
}

.hot-searches a {
    padding: .15rem .55rem;
    color: #f6d28b;
    text-decoration: none;
    border: 1px solid rgba(246, 210, 139, .28);
    border-radius: 999px;
}

.hot-searches a:hover {
    color: #111827;
    background: #f6d28b;
}

.stats-strip .stat-value {
    color: #f6b84b;
}

.stats-strip .stat-label {
    color: rgba(255, 255, 255, .82);
}

.category-shortcuts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
}

.category-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 92px;
    color: #1f2937;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.category-shortcut:hover {
    color: #111827;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-icon {
    margin-bottom: .45rem;
    color: var(--primary-dark);
    font-size: 1.5rem;
    line-height: 1;
}

.section-title {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    font-size: 1.35rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary);
}

.product-card {
    overflow: hidden;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.product-card .card-img-top {
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #475569, #111827);
}

.article-card-cover {
    position: relative;
    display: block;
}

.article-type-badge {
    position: absolute;
    left: .75rem;
    top: .75rem;
    padding: .22rem .6rem;
    color: #111827;
    background: #f0ad4e;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.article-type-badge.static {
    position: static;
    display: inline-flex;
    margin-bottom: .8rem;
}

.article-card .card-title {
    min-height: 2.6rem;
    line-height: 1.35;
}

.article-card-summary {
    min-height: 3rem;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.65;
}

.home-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-ad {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 132px;
    color: #fff;
    text-decoration: none;
    background: #111827;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.home-ad img {
    width: 100%;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
    opacity: .9;
}

.home-ad span {
    position: absolute;
    left: 1rem;
    bottom: .9rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.home-vip-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .7rem;
    min-height: 132px;
    padding: 1.2rem;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(17, 24, 39, .96), rgba(51, 65, 85, .9));
    border: 1px solid rgba(240, 173, 78, .45);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.home-vip-entry:hover {
    color: #fff;
    border-color: #f0ad4e;
    transform: translateY(-2px);
}

.home-vip-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: max-content;
    padding: .2rem .55rem;
    color: #111827;
    background: #f0ad4e;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
}

.home-vip-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.home-vip-stats span {
    padding: .28rem .55rem;
    color: rgba(255, 255, 255, .84);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    font-size: .85rem;
}

.home-vip-stats b {
    color: #f0ad4e;
}

.home-vip-entry em {
    color: #f6d28b;
    font-style: normal;
    font-weight: 700;
}

.home-floating-guide {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: calc(100vw - 32px);
    padding: .65rem .8rem .65rem 1rem;
    color: #fff;
    background: rgba(15, 23, 42, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transform: translateX(-50%);
}

.site-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: .62rem .85rem;
    overflow-x: auto;
    color: #64748b;
    background: linear-gradient(180deg, #fff, #fffdf8);
    border: 1px solid var(--line);
    border-left: 4px solid #f0ad4e;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    scrollbar-width: none;
}

.site-breadcrumb .breadcrumb::-webkit-scrollbar {
    display: none;
}

.site-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .2rem .5rem;
    color: #475569;
    text-decoration: none;
    border-radius: 999px;
}

.site-breadcrumb .breadcrumb-home a {
    color: #8a5a0a;
    background: #fff7df;
    border: 1px solid #f3d08a;
}

.breadcrumb-current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-filter-panel {
    padding: .35rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.filter-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.filter-label {
    color: #64748b;
    font-weight: 700;
    line-height: 30px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.filter-options a {
    padding: .28rem .75rem;
    color: #334155;
    text-decoration: none;
    border-radius: 999px;
}

.filter-options a:hover,
.filter-options a.active {
    color: #111827;
    background: #f0ad4e;
}

.content-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.article-detail-hero {
    position: relative;
    min-height: 420px;
    padding: 2rem 0;
    overflow: hidden;
    background: #111827;
}

.article-detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .7) 48%, rgba(15, 23, 42, .18));
}

.article-hero-breadcrumb {
    max-width: 900px;
}

.article-hero-copy {
    max-width: 760px;
    margin-top: 4rem;
}

.article-hero-copy h1 {
    margin-bottom: .8rem;
    font-size: 2.35rem;
    font-weight: 800;
}

.article-hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, .8);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.article-meta-pills span {
    padding: .34rem .65rem;
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    font-size: .9rem;
}

.media-shell {
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.media-video {
    aspect-ratio: 16 / 9;
}

.media-video video,
.media-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-audio {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #111827, #334155);
}

.media-audio .audio-cover {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    color: #111827;
    background: #f0ad4e;
    border-radius: 8px;
    font-size: 1.8rem;
}

.media-audio .audio-main {
    min-width: 0;
    flex: 1;
}

.media-audio audio {
    width: 100%;
    margin-top: .45rem;
}

.media-audio .external-audio-note {
    margin: .4rem 0 .65rem;
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
}

.media-audio .external-audio-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    color: #111827;
    background: #f0ad4e;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.article-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.article-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content-card {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.content-page-body {
    color: #334155;
    font-size: 1rem;
    line-height: 1.9;
}

.content-page-body h2,
.content-page-body h3,
.content-page-body h4 {
    margin-top: 1.5rem;
    color: #111827;
    font-weight: 800;
}

.content-page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content-page-body blockquote,
.rich-callout {
    margin: 1rem 0;
    padding: .9rem 1rem;
    background: #fff7df;
    border-left: 4px solid #f0ad4e;
    border-radius: 8px;
}

.rich-steps li {
    margin-bottom: .45rem;
}

.rich-cta-inline,
.article-ending-note {
    margin-top: 1.2rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.article-ending-note {
    color: #111827;
    font-weight: 700;
}

.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #111827, #334155);
    border: 1px solid rgba(240, 173, 78, .45);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.article-cta h2 {
    margin: .75rem 0 .4rem;
    font-size: 1.35rem;
}

.article-cta p,
.article-cta small {
    color: rgba(255, 255, 255, .78);
}

.detail-sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-card {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .45rem .55rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: .9rem;
}

.copy-row button {
    padding: .18rem .5rem;
    color: #111827;
    background: #f0ad4e;
    border: 0;
    border-radius: 4px;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -6px 22px rgba(15, 23, 42, .12);
}

.mobile-bottom-nav a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .12rem;
    padding: .45rem .25rem .4rem;
    color: #475569;
    text-decoration: none;
    font-size: .75rem;
}

.mobile-bottom-nav i {
    font-size: 1.2rem;
}

.mobile-nav-spacer {
    height: 64px;
}

.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #111827, #334155);
}

.admin-login-wrap {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.admin-login-card {
    width: min(420px, 100%);
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
}

.admin-login-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    color: #111827;
    background: #f0ad4e;
    border-radius: 8px;
    font-size: 1.8rem;
}

.admin-body {
    background: #f5f6fa;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    min-height: 100vh;
    padding: 18px;
    background: #1e293b;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 11px 12px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.admin-main {
    margin-left: 240px;
    padding: 20px;
}

.admin-stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 96px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.admin-stat-card span {
    color: #64748b;
}

.admin-stat-card strong {
    color: #d97706;
    font-size: 2rem;
}

.admin-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 46px;
    object-fit: cover;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.editor-toolbar-hint {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.media-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.media-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    color: #d97706;
    background: #f8fafc;
    font-size: 2.2rem;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-info {
    padding: .8rem;
}

.media-info strong,
.media-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-info small {
    color: #64748b;
}

@media (max-width: 992px) {
    .category-shortcuts,
    .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        height: 280px;
    }

    .hero-banner-copy .display-5,
    .article-hero-copy h1 {
        font-size: 1.8rem;
    }

    .home-search-form,
    .home-ad-grid,
    .article-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .category-shortcuts,
    .article-gallery,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card .card-img-top {
        height: 140px;
    }

    .product-card .card-body {
        padding: .75rem !important;
    }

    .article-card .card-title {
        min-height: 2.5rem;
        font-size: .92rem;
    }

    .article-card-summary {
        min-height: 2.8rem;
        font-size: .84rem;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .filter-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .15rem;
        scrollbar-width: none;
    }

    .filter-options::-webkit-scrollbar {
        display: none;
    }

    .filter-options a {
        flex: 0 0 auto;
    }

    .content-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-sidebar {
        position: static;
    }

    .home-floating-guide {
        display: none;
    }
}

@media (max-width: 420px) {
    .category-shortcuts,
    .media-grid {
        grid-template-columns: 1fr 1fr;
    }
}
