* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --primary: #3a9a7e;
    --primary-light: #4db897;
    --primary-dark: #2d7e66;
    --bg: #f5f6f8;
    --card-bg: #fff;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #eee;
    --tag-bg: #e6f7ee;
    --price: #e93b3b;
    --member: #f0a020;
    --radius: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --container: 1200px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; outline: none; }
select { font-family: inherit; outline: none; }

.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}

/* ===== Top Bar ===== */
.top-bar {
    width: 100%;
    background: #f5f6f8;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    color: #888;
}
.top-bar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}
.top-bar-links a {
    margin-left: 8px;
    color: #888;
    transition: color .2s;
}
.top-bar-links a:hover { color: var(--primary); }
.top-bar-links .sep { color: #ccc; margin: 0 4px; }

/* ===== Header ===== */
.header {
    width: 100%;
    background: #fff;
}
.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    position: relative;
}
.header-logo {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    flex-shrink: 0;
}
.header-search {
    flex: 0 0 460px;
    position: relative;
}
.header-search form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 2px;
    overflow: hidden;
    height: 42px;
}
.search-type {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    position: relative;
    cursor: pointer;
    min-width: 70px;
    justify-content: center;
}
.search-type::after {
    display: none;
}
.header-search input {
    flex: 1;
    height: 100%;
    border: none;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    color: #333;
}
.header-search input::placeholder { color: #bbb; }
.header-search button {
    width: 80px;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    transition: background .2s;
    flex-shrink: 0;
}
.header-search button:hover { background: var(--primary-dark); }

.hot-search {
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hot-search .label { color: #999; }
.hot-search span {
    margin-right: 12px;
    cursor: pointer;
    transition: color .2s;
}
.hot-search span:hover { color: var(--primary); }

.header-right {
    flex-shrink: 0;
}
.qr-mini {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.qr-mini-icon {
    width: 46px;
    height: 50px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--primary);
    font-size: 22px;
}
.qr-mini-icon svg {
    width: 30px;
    height: 30px;
}
.qr-mini-icon::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid #fff;
}
.qr-mini-tag {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 14px;
    margin-top: 0;
    white-space: nowrap;
}

/* ===== Nav ===== */
.nav-wrap {
    width: 100%;
    background: var(--primary);
    border-bottom: 2px solid var(--primary);
}
.nav {
    display: flex;
    align-items: center;
    height: 42px;
    position: relative;
}
.nav a {
    color: #fff;
    padding: 0 28px;
    font-size: 15px;
    height: 42px;
    line-height: 42px;
    transition: background .2s;
}
.nav a:hover { background: var(--primary-dark); }
.nav a.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    height: 44px;
    line-height: 44px;
    margin-top: -2px;
    border-radius: 3px 3px 0 0;
}

/* ===== Main Layout ===== */
.main-wrap {
    padding: 16px 0 30px;
}
.main-grid {
    display: grid;
    grid-template-columns: 200px 1fr 230px;
    gap: 14px;
    align-items: stretch;
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
}

.sidebar-left .side-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.sidebar-left .side-nav-item:first-child {
    border-radius: 4px 4px 0 0;
}
.sidebar-left .side-nav-item:last-child {
    border-radius: 0 0 4px 4px;
}

.main-center {
    display: flex;
    flex-direction: column;
}

.banner-box {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    min-height: 280px;
    background: linear-gradient(180deg, #9bc8eb 0%, #7ab0db 40%, #6ba4d1 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===== Category Flyout Panel ===== */
.side-nav-cat {
    position: relative;
}
.cat-flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 520px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 16px 20px;
    z-index: 300;
    border: 1px solid #eee;
}
.side-nav-cat:hover .cat-flyout {
    display: block;
}
.cat-flyout::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 12px;
}
.cat-flyout-group {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.cat-flyout-group:last-child { border-bottom: none; }
.cat-flyout-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: inline-block;
}
.cat-flyout-title:hover { text-decoration: underline; }
.cat-flyout-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
}
.cat-flyout-sub {
    font-size: 13px;
    color: #666;
    padding: 3px 14px;
    border-radius: 12px;
    transition: all .2s;
    white-space: nowrap;
}
.cat-flyout-sub:hover {
    background: var(--tag-bg);
    color: var(--primary);
}

.stats-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.side-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background .2s;
}
.side-nav-item:hover::before { background: var(--primary); }
.side-nav-item:hover { background: #fafafa; }
.side-nav-item:last-child { border-bottom: none; }
.side-nav-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.side-nav-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #555;
}
.side-nav-icon svg {
    width: 24px;
    height: 24px;
}
.side-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.side-nav-desc {
    font-size: 12px;
    color: #bbb;
    margin-top: 4px;
    text-align: center;
}

.stats-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 80px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,180,180,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.stats-card::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 16px;
    width: 50px;
    height: 70px;
    background-image: radial-gradient(circle, rgba(255,180,180,0.25) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    pointer-events: none;
    opacity: 0.5;
}
.stats-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}
.stats-title::before {
    content: '▶';
    position: absolute;
    left: -16px;
    top: 3px;
    font-size: 11px;
    color: #f5a0a0;
    opacity: 0.6;
}
.stats-num {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.stats-unit { font-size: 14px; color: #666; font-weight: normal; margin-left: 2px; }
.upload-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 7px 28px;
    border-radius: 18px;
    font-size: 14px;
    margin: 12px 0 8px;
    transition: background .2s;
}
.upload-btn:hover { background: var(--primary-dark); }
.stats-divider {
    display: flex;
    align-items: center;
    margin: 6px 0 8px;
    color: #ccc;
    font-size: 12px;
}
.stats-divider::before, .stats-divider::after {
    content: '';
    flex: 1;
    border-top: 1px dashed #e8e8e8;
}
.stats-divider span { padding: 0 8px; color: #aaa; }
.stats-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
}
.stats-tags {
    display: flex;
    justify-content: center;
    gap: 18px;
}
.stats-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
}
.stats-tag-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 4px;
}

/* ===== Banner ===== */
.banner-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Torn paper effect */
.banner-paper {
    position: relative;
    width: 80%;
    height: 75%;
    background: #f7f7f5;
    border-radius: 2px;
    transform: rotate(-0.5deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.banner-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(200,200,200,0.3) 1px, transparent 1px),
        linear-gradient(rgba(200,200,200,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}
.banner-paper::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 12px;
    background: 
        radial-gradient(circle at 10px 0, transparent 8px, #f7f7f5 8px) repeat-x;
    background-size: 20px 12px;
}
.banner-title {
    font-size: 56px;
    font-weight: 700;
    color: #2c5282;
    letter-spacing: 6px;
    font-family: "Microsoft YaHei", sans-serif;
    position: relative;
    z-index: 2;
    text-shadow: none;
}
.banner-subtitle {
    font-size: 20px;
    color: #5a7a9a;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}
.banner-btn {
    display: inline-block;
    background: #f5a623;
    color: #fff;
    padding: 12px 40px;
    border-radius: 24px;
    font-size: 20px;
    font-weight: 700;
    transition: all .3s;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(245,166,35,0.4);
}
.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.5);
}
/* Decorative elements */
.banner-books {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 120px;
    height: 100px;
    z-index: 3;
}
.book-stack {
    position: relative;
    width: 100%;
    height: 100%;
}
.book-1 {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 100px;
    height: 22px;
    background: #3a7abd;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.book-1::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 8px;
    height: 14px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
}
.book-2 {
    position: absolute;
    bottom: 22px;
    left: 20px;
    width: 95px;
    height: 22px;
    background: #d4a547;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.book-2::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 8px;
    height: 14px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
}
.book-3 {
    position: absolute;
    bottom: 44px;
    left: 30px;
    width: 90px;
    height: 22px;
    background: #4aaa7a;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.book-3::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 8px;
    height: 14px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
}
.book-open {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 100px;
    height: 80px;
    z-index: 3;
}
.book-open-left {
    position: absolute;
    left: 0;
    top: 10px;
    width: 48px;
    height: 60px;
    background: #fff;
    border-radius: 2px 0 0 2px;
    transform: perspective(100px) rotateY(-15deg);
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
}
.book-open-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 52px;
    height: 70px;
    background: #e8e8e8;
    border-radius: 0 4px 4px 0;
    transform: perspective(100px) rotateY(10deg);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
.book-open-right::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    right: 8px;
    bottom: 10px;
    background: #f5f5f5;
    border-radius: 2px;
}
.banner-arrow {
    position: absolute;
    left: 15%;
    top: 20%;
    width: 50px;
    height: 50px;
    z-index: 4;
}
.banner-arrow svg {
    width: 100%;
    height: 100%;
}
.banner-highlight {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 16px;
    background: rgba(255, 220, 100, 0.6);
    border-radius: 8px;
    z-index: 1;
}
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all .3s;
}
.banner-dot.active {
    width: 10px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== Column Section ===== */
.column-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 20px;
}
.column-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    transition: all .3s;
    background: #fff;
    display: block;
}
.column-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: transparent;
}
.column-cover {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 14px;
}
.column-cover-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.column-cover-deco span {
    position: absolute;
    opacity: 0.3;
    font-size: 16px;
}
.deco-plane { top: 10px; right: 12px; font-size: 20px; transform: rotate(-15deg); }
.deco-star { top: 14px; left: 14px; font-size: 14px; }
.deco-bulb { bottom: 10px; right: 16px; font-size: 18px; }
.deco-cloud { bottom: 12px; left: 10px; font-size: 20px; }
.column-cover-title {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    padding: 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.column-info {
    padding: 10px 12px 12px;
}
.column-title {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.column-card:hover .column-title { color: var(--primary); }
.column-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.column-member {
    font-size: 11px;
    color: var(--member);
    background: #fff4e6;
    padding: 2px 8px;
    border-radius: 10px;
}
.column-price {
    color: var(--price);
    font-size: 15px;
    font-weight: 700;
}

/* ===== Category Nav Bar ===== */
.cat-bar {
    background: #fff;
    border-radius: var(--radius);
    margin-top: 14px;
    padding: 16px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}
.cat-bar-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
    cursor: pointer;
    transition: background .2s;
    position: relative;
}
.cat-bar-item:not(:last-child)::after {
    content: '/';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #e0e0e0;
    font-size: 20px;
    font-weight: 300;
}
.cat-bar-item:hover .cat-bar-name { color: var(--primary); }
.cat-bar-icon {
    width: 40px;
    height: 40px;
    background: #e8f5ee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.cat-bar-icon svg {
    width: 24px;
    height: 24px;
}
.cat-bar-text {
    min-width: 0;
    text-align: left;
}
.cat-bar-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color .2s;
}
.cat-bar-desc {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Section Common ===== */
.section {
    background: #fff;
    border-radius: var(--radius);
    margin-top: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
}
.section-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 10px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}
.section-more {
    font-size: 13px;
    color: #999;
    transition: color .2s;
}
.section-more:hover { color: var(--primary); }

.section-body { padding: 14px 20px 18px; }

/* ===== Tab Nav ===== */
.tab-nav {
    display: flex;
    padding: 0 20px;
    border-bottom: 1px solid #f5f5f5;
    gap: 30px;
}
.tab-nav a {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .2s;
    cursor: pointer;
}
.tab-nav a:hover { color: var(--primary); }
.tab-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.tab-content { padding: 10px 20px 16px; }

/* ===== Article List ===== */
.article-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    transition: color .2s;
}
.article-list-item:hover { color: var(--primary); }
.article-list-item .date {
    color: #bbb;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 16px;
}
.article-list-item .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 20px;
}
.product-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    transition: all .3s;
    background: #fff;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: transparent;
}
.product-cover {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    text-align: center;
    position: relative;
    line-height: 1.4;
}
.cover-grad-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.cover-grad-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.cover-grad-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cover-grad-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cover-grad-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.cover-grad-6 { background: linear-gradient(135deg, #30cfd0, #330867); }
.cover-grad-7 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.cover-grad-8 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.word-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    color: #e93b3b;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}
.product-info { padding: 10px 12px 12px; }
.product-title {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.product-card:hover .product-title { color: var(--primary); }
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    color: var(--price);
    font-size: 15px;
    font-weight: 700;
}
.product-member {
    font-size: 11px;
    color: var(--member);
    background: #fff4e6;
    padding: 2px 8px;
    border-radius: 10px;
}
.product-date {
    font-size: 11px;
    color: #ccc;
    margin-top: 4px;
}

/* ===== Sub Tabs ===== */
.section-sub-tabs {
    padding: 0 20px 10px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.section-sub-tabs a {
    font-size: 13px;
    color: #888;
    padding: 3px 10px;
    border-radius: 12px;
    transition: all .2s;
}
.section-sub-tabs a:hover {
    background: var(--tag-bg);
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 24px;
    padding: 24px 0;
    text-align: center;
    color: #999;
    font-size: 12px;
    line-height: 2;
}
.footer a { color: #888; }
.footer a:hover { color: var(--primary); }

/* ===== Side Float ===== */
.side-float {
    position: fixed;
    right: calc(50% - var(--container)/2 - 70px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--primary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.float-item {
    width: 52px;
    padding: 12px 0;
    text-align: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    line-height: 1.3;
}
.float-item:last-child { border-bottom: none; }
.float-item:hover { background: var(--primary-dark); }
.float-item .icon { font-size: 20px; margin-bottom: 3px; display: block; }

/* ===== Responsive ===== */
@media (max-width: 1280px) {
    .side-float { right: 10px; }
}

@media (max-width: 1024px) {
    :root { --container: 100%; }
    .wrap { padding: 0 12px; }
    .main-grid { grid-template-columns: 180px 1fr 200px; gap: 10px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-bar-name { font-size: 14px; }
    .header-search { flex: 0 0 380px; }
    .nav a { padding: 0 20px; }
}

@media (max-width: 768px) {
    .wrap { padding: 0 12px; }
    .main-grid { grid-template-columns: 1fr; }
    .sidebar-left, .sidebar-right { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-bar { flex-wrap: wrap; padding: 12px 0; }
    .cat-bar-item { flex: 0 0 50%; padding: 10px; }
    .cat-bar-item:not(:last-child)::after { display: none; }
    .header .wrap { flex-wrap: wrap; height: auto; padding: 12px; gap: 12px; }
    .header-logo { font-size: 24px; }
    .header-search { flex: 1 1 100%; }
    .qr-mini { display: none; }
    .nav a { padding: 0 14px; font-size: 14px; }
    .banner-box { height: 180px; }
    .banner-title { font-size: 28px; }
    .side-float { display: none; }
    .top-bar { display: none; }
}
