/* 007卡券 - 样式表 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f2f3f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 站点 Logo 图片（007卡券 渐变色字标） */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .cn {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.logo-text .en {
    font-size: 10px;
    color: #999;
}

.nav {
    display: flex;
    gap: 20px;
    flex: 1;
}

.nav a {
    color: #333;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav a:hover, .nav a.active {
    color: #ff6b35;
}

.badge {
    position: absolute;
    top: 0;
    right: -20px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    max-width: 320px;
    background: #fff;
}

.search-icon {
    padding: 0 8px 0 14px;
    color: #999;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px 8px 8px 0;
    font-size: 14px;
    flex: 1;
}

.search-box button {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-register {
    background: #1890ff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #1890ff;
    background: #fff;
    cursor: pointer;
    color: #1890ff;
}

/* Hero Section */
.hero-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.category-sidebar {
    background: linear-gradient(180deg, #57a0e8, #3f7fd6);
    border-radius: 12px;
    padding: 14px 12px;
    color: #fff;
    width: 220px;
    flex-shrink: 0;
}

.category-btn {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #5ba1e6, #4285d8);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: background .15s;
}

.category-btn:hover {
    background: rgba(255,255,255,0.25);
}

.sidebar-cat-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 10px;
}

.category-btn-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.banner-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    min-height: 480px;
}

.banner-main {
    position: relative;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    min-height: 0;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 8px 24px rgba(20, 44, 78, .08);
}

.banner-subs {
    display: flex;
    gap: 14px;
    height: 118px;
    margin-top: 14px;
    flex-shrink: 0;
}

.banner-sub {
    flex: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 26px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.banner-sub:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.banner-sub.bs-orange { background: linear-gradient(135deg, #ffb03a, #ff7a2f); }
.banner-sub.bs-purple { background: linear-gradient(135deg, #a97bf5, #7c5ce0); }
.banner-sub .bs-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,.15); }
.banner-sub .bs-sub { font-size: 12px; opacity: .92; margin-top: 6px; }
/* 图片版小 banner（对齐上游素材图） */
.banner-subs { height: 120px; }
.banner-sub-img {
    flex: 1; border-radius: 14px; overflow: hidden; display: block;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 6px 18px rgba(20, 44, 78, .08);
    transition: transform .15s, box-shadow .15s;
}
.banner-sub-img:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.banner-sub-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 侧栏分类项为链接时去下划线 */
a.category-btn { text-decoration: none; color: #fff; }
a.category-btn:hover, a.category-btn.active { color: #1f6fe0; }
/* 用户面板头像图片 */
.up-avatar { overflow: hidden; }
.up-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.banner-carousel {
    width: 100%;
    height: 100%;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* Announcement */
.announcement {
    max-width: 1400px;
    margin: 12px auto;
    padding: 10px 20px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.announcement-icon {
    font-size: 24px;
    color: #ff4d4f;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    height: 24px;
}

.announcement-text {
    display: flex;
    flex-direction: column;
    animation: scrollUp 9s infinite;
}
/* 每条公告固定单行 24px（与滚动窗口同高），超长省略号截断，
   避免窄屏换行后只露出文字碎片 */
.announcement-text span {
    display: block;
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 系统“减少动态效果”时关闭公告滚动动画 */
@media (prefers-reduced-motion: reduce) {
    .announcement-text { animation: none !important; }
}
@keyframes scrollUp {
    0%, 30% { transform: translateY(0); }
    33%, 63% { transform: translateY(-24px); }
    66%, 96% { transform: translateY(-48px); }
    100% { transform: translateY(0); }
}

.announcement-more {
    color: #1890ff;
    font-size: 14px;
}

/* Hot Products */
.hot-products {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.section-tag {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.view-all {
    margin-left: auto;
    color: #1890ff;
    font-size: 14px;
}

.hot-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: max-content;
    gap: 16px;
}

.hot-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.hot-product-card:hover {
    transform: translateY(-4px);
}

.hot-product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.hot-product-info {
    padding: 12px;
}

.hot-product-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-product-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: 700;
}

/* Categories */
.categories-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}

.categories-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* 一级分类标题行（标题 + 右侧"全部分类"链接） */
.categories-section .cat-head { margin-bottom: 16px; }
.categories-section .cat-head h2 { margin-bottom: 0; }
.categories-section .view-all { margin-left: auto; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 13px;
    color: #333;
    text-align: center;
}

/* Features */
.features {
    max-width: 1400px;
    margin: 20px auto;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
}

/* Footer */
/* ============================================================
   深色丰富页脚（对齐上游 vipzhichong）
   ============================================================ */
.site-footer {
    background: #16181d;
    color: #b9bec6;
    margin-top: 48px;
    font-size: 13px;
}
.sf-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* 特性条 */
.sf-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding: 34px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sf-feature { display: flex; align-items: center; gap: 14px; }
.sf-feature > i {
    flex: 0 0 42px;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(241, 243, 245, .78);
    border-radius: 50%;
    color: #f1f3f5; font-size: 19px;
}
.sf-feature h2 { margin: 0; color: #f4f5f6; font-size: 14px; font-weight: 600; }
.sf-feature p { margin: 6px 0 0; color: #777d85; font-size: 12px; line-height: 1.7; }

/* 主区：品牌 + 多列链接 + 关注 */
.sf-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(132px, 1fr));
    gap: 30px 34px;
    padding: 40px 0 34px;
}
.sf-brand-name { margin: 0 0 14px; color: #f4f5f6; font-size: 16px; font-weight: 600; }
.sf-brand-desc { margin: 0; max-width: 330px; color: #777d85; font-size: 12px; line-height: 1.8; }
.sf-brand-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.sf-brand-tags li {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; color: #b9bec6;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px; font-size: 12px;
}
.sf-brand-tags li i { color: #71acf9; }
.sf-col h2 { margin: 0 0 12px; color: #f4f5f6; font-size: 14px; font-weight: 600; }
.sf-links { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 5px; }
.sf-links a { color: #777d85; font-size: 12px; line-height: 1.7; }
.sf-links a:hover { color: #71acf9; }
.sf-follow .sf-qr {
    width: 74px; height: 74px; padding: 3px; background: #fff; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #46505f; font-size: 12px; line-height: 1.4;
}
.sf-contact { margin: 10px 0 0; color: #777d85; font-size: 12px; line-height: 1.7; }

/* 资质徽章 */
.sf-badges { border-top: 1px solid rgba(255, 255, 255, .08); }
.sf-badges .sf-inner { display: flex; align-items: center; gap: 22px; padding-top: 20px; padding-bottom: 20px; }
.sf-badges-label { display: inline-flex; align-items: center; gap: 6px; color: #b9bec6; font-size: 13px; white-space: nowrap; }
.sf-badges-label i { color: #f1c96b; font-size: 16px; }
.sf-badges-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.sf-badges-row::-webkit-scrollbar { display: none; }
.sf-badge {
    flex: 0 0 auto; margin: 0; padding: 5px 10px;
    background: rgba(255, 255, 255, .94); border-radius: 8px;
}
.sf-badge figcaption { color: #46505f; font-size: 12px; white-space: nowrap; }

/* 备案栏 */
.sf-legal { background: #1d1d1d; color: #70757d; font-size: 12px; }
.sf-legal .sf-inner { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 16px; padding-bottom: 16px; }

/* 移动端 */
@media (max-width: 768px) {
    .sf-features { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 0 20px; gap: 18px; }
    .sf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 0 22px; gap: 22px 18px; }
    .sf-follow { grid-column: 1 / -1; }
    .sf-legal .sf-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hot-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }
    .hero-section {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
    }
    .hot-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 首页巨型菜单（侧栏悬浮展开） ===== */
.category-sidebar-wrap {
    position: relative;
    width: 220px;
    flex-shrink: 0;
    z-index: 100;
}

.category-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.4) transparent;
}
.category-sidebar > .category-btn { flex: 0 0 auto; }
.category-sidebar > .view-all-btn { margin-top: auto; flex: 0 0 auto; }
.category-sidebar::-webkit-scrollbar { width: 5px; }
.category-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 3px; }

.category-btn {
    position: relative;
    z-index: 2;
    transition: background .15s;
}
.category-btn.active,
.category-btn:hover {
    background: #fff;
    color: #1f6fe0;
    border-radius: 8px 8px 8px 8px;
}
.category-btn.active .category-btn-text,
.category-btn:hover .category-btn-text { color: #1f6fe0; }

.mega-panel {
    position: absolute;
    left: calc(100% - 12px);
    top: 0;
    width: 640px;
    min-height: 380px;
    max-height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15,23,42,.15);
    padding: 20px 26px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.mega-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 3;
}
.mega-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 16px;
}
.mega-panel-head h3 { font-size: 17px; color: #222; font-weight: 700; }
.mega-panel-hint { font-size: 12px; color: #98a0af; }

.mega-panel-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px 8px;
    align-content: start;
    padding-right: 4px;
    scrollbar-width: thin;
}
.mega-panel-grid::-webkit-scrollbar { width: 5px; }
.mega-panel-grid::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 3px; }

.mega-sub-item {
    text-align: center;
    cursor: pointer;
    padding: 6px 2px;
    border-radius: 8px;
    transition: background .15s;
}
.mega-sub-item:hover { background: #f2f7ff; }
.mega-sub-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mega-sub-icon img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.mega-sub-name {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-empty { grid-column: 1 / -1; text-align: center; color: #98a0af; font-size: 13px; padding: 40px 0; }

/* ===== 爆款商品弹窗 ===== */
.hot-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.hot-modal-mask.show { display: flex; }
.hot-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(960px, 100%);
    max-height: 86vh;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: hotModalIn .25s cubic-bezier(.34,1.4,.64,1);
}
@keyframes hotModalIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.hot-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f3f8;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.hot-modal-close:hover { background: #e4e8f0; color: #222; }
.hot-modal-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 18px; }
.hot-modal-grid {
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: max-content;
    gap: 16px;
    align-content: start;
    padding-right: 6px;
    scrollbar-width: thin;
}
.hot-modal-grid::-webkit-scrollbar { width: 6px; }
.hot-modal-grid::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 3px; }

@media (max-width: 1100px) {
    .mega-panel { width: 520px; }
    .mega-panel-grid { grid-template-columns: repeat(4, 1fr); }
    .hot-modal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mega-panel { display: none; }
    .category-sidebar-wrap { width: 100%; }
    .hot-modal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Header 重构（对齐上游 UI） ===== */
.header { z-index: 200; }
.header-inner {
    max-width: 1500px;
    padding: 0 24px;
    height: 64px;
    gap: 18px;
    flex-wrap: nowrap;
}
.logo { flex-shrink: 0; }
.logo-icon { width: 38px; height: 38px; }
.logo-text .cn { font-size: 19px; line-height: 1.2; }
.nav { gap: 6px; flex: 1; justify-content: center; min-width: 0; overflow: visible; }
.nav a {
    font-size: 14px;
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav a:hover { background: #fff3ec; }
.nav a.active { color: #ff6b35; font-weight: 600; }
.badge {
    position: static;
    display: inline-block;
    margin-left: 4px;
    background: linear-gradient(135deg, #ff6b35, #ff4d4f);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 9px;
    vertical-align: 2px;
    transform: translateY(-8px);
}
.search-box {
    flex: 0 1 300px;
    min-width: 170px;
    border: 2px solid #ff6b35;
    border-radius: 20px;
    height: 38px;
}
.search-box input { font-size: 13px; }
.search-box button { background: #ff6b35; padding: 0 18px; border-radius: 0 18px 18px 0; }
.btn-register { background: #ff6b35; padding: 8px 22px; border-radius: 20px; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1200px) {
    .logo-text .en { display: none; }
    .nav a { padding: 6px 6px; font-size: 13px; }
}
@media (max-width: 992px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
    .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
    .search-box { flex: 1; }
}

/* ===== 首页右侧用户面板 ===== */
.user-panel {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(15,23,42,.06);
}
.up-top { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed #eef1f6; }
.up-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4ff, #f2f7ff);
    border: 2px solid #dbe9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.up-welcome { font-size: 13px; color: #5b6474; line-height: 1.7; }
.up-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.up-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 8px 0;
    border-radius: 18px;
    transition: opacity .15s;
}
.up-btn:hover { opacity: .85; }
.up-btn.ghost { border: 1px solid #1f6fe0; color: #1f6fe0; background: #fff; }
.up-btn.primary { background: #1f6fe0; color: #fff; border: 1px solid #1f6fe0; }
.up-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
}
.up-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    border-radius: 10px;
    font-size: 12px;
    color: #444;
    background: #fafbfd;
    transition: background .15s;
}
.up-cell:hover { background: #f0f6ff; color: #1f6fe0; }
.up-cell-icon { font-size: 22px; }

@media (max-width: 1100px) {
    .user-panel { display: none; }
}

/* ============================================================
   v20261019b 顶部导航/右侧用户面板 对齐上游 vipzhichong.com
   ============================================================ */
.header { background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(255,255,255,.3); box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.header-inner {
    max-width: 1400px;
    height: 64px;
    padding: 0 32px;
    gap: 12px;
    flex-wrap: nowrap;
}
.logo-icon { width: 38px !important; height: 38px !important; }
.logo-text .cn { font-size: 19px; color: #303744; }
.logo-text .en { font-size: 10px; color: #9aa3ad; }

/* 导航：绝对居中、纯文字+fa图标、等高拉满 */
.header-inner { position: relative; }
.nav {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 100%;
    padding: 0 16px;
    color: #303744;
    background: transparent;
    font-size: 15px;
    letter-spacing: .3px;
    border-radius: 0;
}
.nav a i { margin-right: 5px; font-size: 14px; color: #6b7686; }
.nav a:hover { color: #0071e3; }
.nav a.active { color: #0071e3; font-weight: 600; background: transparent; }
.nav a.active i { color: #0071e3; }
.badge {
    position: absolute;
    top: 2px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 8px;
    border-radius: 999px 999px 4px 999px;
    background: linear-gradient(135deg, #ff5a3c, #e6271e);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    transform: none;
}

/* 搜索框：上游 200x38 圆角胶囊 */
.search-box {
    flex: 0 0 200px;
    width: 200px;
    height: 38px;
    padding: 3px 4px 3px 12px;
    margin-left: auto;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(0,113,227,.14);
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(20,44,78,.06);
}
.search-box:focus-within { background: #fff; box-shadow: 0 3px 12px rgba(20,44,78,.1); }
.search-box input { font-size: 16px; background: transparent; }
.search-box input::placeholder { color: #9aa3ad; font-size: 12px; }
.search-box button {
    flex: 0 0 52px;
    min-width: 52px;
    height: 32px;
    padding: 0 11px;
    color: #fff;
    background: #0071e3;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* 顶部注册/个人中心按钮：上游 32px 高蓝色胶囊 */
.btn-register,
.header-actions a.btn-register {
    height: 32px;
    padding: 7.2px 17.6px;
    color: #fff;
    background: #0071e3;
    border-radius: 18px;
    box-shadow: 0 5px 14px rgba(0,113,227,.2);
    font-size: 13.12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 顶栏设置齿轮（仅手机端显示，桌面端隐藏；手机端样式见 mobile.css） */
.header-gear { display: none; }

/* 右侧用户面板：上游 240x512 卡片 */
.user-panel {
    flex: 0 0 240px;
    width: 240px;
    height: 512px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.7);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(30,60,100,.08);
}
.up-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 4px 0;
    border-bottom: 0;
    text-align: center;
}
.up-avatar { width: 76px; height: 76px; border-radius: 0; overflow: visible; }
.up-avatar img { width: 76px; height: 76px; object-fit: contain; border-radius: 0; }
.up-welcome { margin-top: 8px; line-height: 1.5; }
.up-welcome strong { display: block; color: #343434; font-size: 15px; font-weight: 500; }
.up-welcome p { margin: 5px 0 0; color: #999; font-size: 11px; }
.up-btns { display: flex; justify-content: center; gap: 14px; margin-top: 12px; width: 100%; }
.up-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 13px;
    flex: 0 0 auto;
}
.up-btn.ghost { color: #2186dc; background: #fff; border: 1px solid #38a0ed; }
.up-btn.primary {
    color: #fff;
    background: #1e9cf4;
    border: 1px solid #1e9cf4;
    box-shadow: 0 4px 10px rgba(30,156,244,.22);
}

/* 面板快捷入口：虚线分隔 + 2列白卡 + 圆形字体图标 */
.up-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    padding-top: 24px;
    margin-top: 0;
    border-top: 1px dashed #e3e3e3;
    overflow-y: auto;
}
.up-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 79px;
    padding: 7px 3px;
    color: #444;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 5px 17px rgba(37,75,115,.08);
    font-size: 14px;
    transition: transform .2s;
}
.up-cell:hover { transform: translate3d(0,-3px,0); color: #444; }
/* 注意：<i> 同时带 fa 类，FontAwesome 的 .fa 会重置 display/font-size，
   必须用 i.up-cell-icon（权重 0,1,1 > .fa 的 0,1,0）确保覆盖 */
i.up-cell-icon,
.up-cell i.up-cell-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 23px;
    line-height: 1;
    color: #28bfa7;
    background: #e9faf6;
    flex: 0 0 40px;
}
i.up-cell-icon::before {
    display: block;
    line-height: 1;
}
.up-cell:nth-child(2) .up-cell-icon { color: #fa5d61; background: #fff0f0; }
.up-cell:nth-child(3) .up-cell-icon { color: #39a9df; background: #ebf8ff; }
.up-cell:nth-child(4) .up-cell-icon { color: #55b7e9; background: #eef9ff; }

@media (max-width: 1200px) { .user-panel { display: none; } }
