/* ==================== 森澜天达 EDI 平台 - 全局样式 ==================== */
/* 蓝绿色渐变主题：深蓝 #1A73E8 → 青绿 #00BFA5 */

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

:root {
    --primary: #1A73E8;
    --primary-light: #4a9af5;
    --primary-dark: #1557b8;
    --accent: #00BFA5;
    --accent-light: #00d9b8;
    --gradient: linear-gradient(135deg, #1A73E8 0%, #00BFA5 100%);
    --gradient-hover: linear-gradient(135deg, #1557b8 0%, #00a890 100%);
    --orange: #FF9800;
    --red: #F44336;
    --green: #4CAF50;
    --purple: #9C27B0;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border: #e8e8e8;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --max-width: 1200px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ==================== 顶部通栏 ==================== */
.top-bar {
    background: #1E2A3A;
    color: #b0b8c4;
    font-size: 12px;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #b0b8c4; transition: color .2s; }
.top-bar a:hover { color: #fff; }
.top-bar .links { display: flex; gap: 16px; }

/* ==================== 头部搜索区 ==================== */
.site-header {
    background: #fff;
    padding: 16px 0;
    box-shadow: var(--shadow);
}
.site-header .container { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: bold; color: var(--primary); white-space: nowrap; }
.logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; font-weight: bold;
}
.search-box { flex: 1; display: flex; max-width: 600px; }
.search-box input {
    flex: 1; height: 40px; border: 2px solid var(--primary); border-right: none;
    border-radius: 4px 0 0 4px; padding: 0 16px; font-size: 14px; outline: none;
}
.search-box button {
    background: var(--gradient); color: #fff; border: none; padding: 0 24px;
    border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; font-weight: 500;
    transition: opacity .2s;
}
.search-box button:hover { opacity: .9; }
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-actions .cart-btn {
    position: relative;
    display: flex; align-items: center; gap: 6px;
    background: var(--gradient);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,119,190,.3);
    white-space: nowrap;
}
.header-actions .cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,119,190,.4);
}
.header-actions .cart-btn .cart-icon { flex-shrink: 0; }
.header-actions .cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: #ff4d4f; color: #fff; font-size: 11px; font-weight: bold;
    border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center;
    border: 2px solid #fff;
}

/* ==================== 主导航栏 ==================== */
.main-nav { background: var(--gradient); }
.main-nav ul { display: flex; }
.main-nav li a {
    display: block; color: rgba(255,255,255,.9); padding: 12px 24px;
    font-size: 15px; font-weight: 500; transition: background .2s; position: relative;
}
.main-nav li a:hover, .main-nav li a.active { background: rgba(255,255,255,.15); color: #fff; }
.main-nav li a.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; background: #fff; border-radius: 2px;
}

/* ==================== 轮播 Banner ==================== */
.banner { background: var(--gradient); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.05); }
.banner::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.03); }
.banner .container { position: relative; z-index: 1; }
.banner h1 { font-size: 36px; margin-bottom: 12px; }
.banner p { font-size: 18px; opacity: .9; margin-bottom: 8px; }
.banner .keywords { display: flex; gap: 16px; margin: 16px 0; }
.banner .keywords span { background: rgba(255,255,255,.15); padding: 4px 16px; border-radius: 20px; font-size: 14px; }
.banner .selling-points { margin: 16px 0; font-size: 14px; opacity: .85; }
.banner .cta-btn {
    display: inline-block; background: #fff; color: var(--primary);
    padding: 10px 32px; border-radius: 6px; font-weight: bold; font-size: 16px;
    margin-top: 8px; transition: transform .2s;
}
.banner .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ==================== 服务品类入口 ==================== */
.section { padding: 32px 0; }
.section-title { font-size: 24px; font-weight: bold; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.section-title .bar { width: 4px; height: 24px; background: var(--gradient); border-radius: 2px; }
.section-title .more { margin-left: auto; font-size: 14px; font-weight: normal; color: var(--text-light); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card {
    background: #fff; border-radius: var(--radius); padding: 24px 16px; text-align: center;
    cursor: pointer; transition: all .3s; box-shadow: var(--shadow);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card .icon {
    width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #fff;
}
.category-card .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-card h3 { font-size: 16px; margin-bottom: 4px; }
.category-card p { font-size: 12px; color: var(--text-lighter); }

/* ==================== 商家卡片（含配图） ==================== */
.merchant-card { padding: 0; }
.merchant-card .merchant-cover { width: 100%; height: 140px; background: #f0f0f0; overflow: hidden; position: relative; }
.merchant-card .merchant-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.merchant-card:hover .merchant-cover img { transform: scale(1.05); }
.merchant-card .merchant-cover .logo-badge {
    position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; font-weight: bold; border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ==================== 商品卡片 ==================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: all .3s; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card .img-box { width: 100%; height: 180px; background: #f0f0f0; overflow: hidden; position: relative; }
.product-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.product-card .tag {
    position: absolute; top: 8px; left: 8px; background: var(--gradient); color: #fff;
    font-size: 12px; padding: 2px 8px; border-radius: 4px;
}
.product-card .body { padding: 12px; }
.product-card .title { font-size: 14px; font-weight: 500; line-height: 1.4; height: 40px; overflow: hidden; margin-bottom: 8px; }
.product-card .merchant { font-size: 12px; color: var(--text-lighter); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.product-card .verified { color: var(--accent); font-size: 12px; }
.product-card .footer { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { color: var(--orange); font-size: 18px; font-weight: bold; }
.product-card .price .unit { font-size: 12px; font-weight: normal; }
.product-card .sales { font-size: 12px; color: var(--text-lighter); }

/* ==================== 信息列表 ==================== */
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-card {
    background: #fff; border-radius: var(--radius); padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow); transition: all .2s; cursor: pointer;
}
.info-card:hover { box-shadow: var(--shadow-hover); }
.info-card .left { flex: 1; }
.info-card .type-tag {
    display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-right: 8px;
}
.info-card .type-tag.demand { background: #e3f2fd; color: var(--primary); }
.info-card .type-tag.news { background: #e8f5e9; color: var(--green); }
.info-card .type-tag.notice { background: #fff3e0; color: var(--orange); }
.info-card .title { font-size: 15px; font-weight: 500; display: inline; }
.info-card .desc { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.info-card .meta { font-size: 12px; color: var(--text-lighter); margin-top: 6px; display: flex; gap: 12px; }
.info-card .right { text-align: right; }
.info-card .budget { color: var(--orange); font-size: 16px; font-weight: bold; }
.info-card .btn-accept {
    background: var(--gradient); color: #fff; border: none; padding: 6px 16px;
    border-radius: 4px; cursor: pointer; font-size: 13px; margin-top: 8px;
}

/* ==================== 底部信息栏 ==================== */
.site-footer { background: #1E2A3A; color: #8a95a5; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: #8a95a5; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .comp-info { font-size: 13px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #2d3a4a; padding-top: 16px; text-align: center; font-size: 12px; }
.footer-bottom .links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
.footer-bottom .links a { color: #8a95a5; }

/* ==================== 面包屑 ==================== */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-lighter); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* ==================== 页面通用 ==================== */
.page-title { font-size: 28px; font-weight: bold; margin: 24px 0 8px; }
.page-desc { color: var(--text-light); margin-bottom: 24px; }

.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }

/* ==================== 步骤条 ==================== */
.steps { display: flex; justify-content: center; margin: 32px 0; }
.steps .step { display: flex; align-items: center; color: var(--text-lighter); }
.steps .step .num {
    width: 32px; height: 32px; border-radius: 50%; background: #e0e0e0; color: #999;
    display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 8px;
}
.steps .step.active .num { background: var(--gradient); color: #fff; }
.steps .step.done .num { background: var(--green); color: #fff; }
.steps .step .label { font-size: 14px; }
.steps .step.active .label { color: var(--primary); font-weight: 500; }
.steps .step .arrow { margin: 0 24px; color: #ddd; }

/* ==================== 表单 ==================== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-group label .required { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0 12px; font-size: 14px; outline: none; transition: border-color .2s;
}
.form-group textarea { height: auto; padding: 8px 12px; min-height: 80px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group .hint { font-size: 12px; color: var(--text-lighter); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.type-card {
    border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; cursor: pointer;
    text-align: center; transition: all .2s;
}
.type-card:hover { border-color: var(--primary-light); }
.type-card.selected { border-color: var(--primary); background: #f0f7ff; }
.type-card .icon { font-size: 32px; margin-bottom: 8px; }
.type-card h3 { font-size: 16px; margin-bottom: 4px; }
.type-card p { font-size: 12px; color: var(--text-lighter); }

/* 文件上传 */
.upload-area {
    border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 20px;
    text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.upload-area:hover { border-color: var(--primary); background: #fafcff; }
.upload-area .icon { font-size: 32px; color: var(--text-lighter); margin-bottom: 8px; }
.upload-area p { color: var(--text-lighter); font-size: 13px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload-preview .img-item { width: 80px; height: 80px; border-radius: 4px; overflow: hidden; position: relative; }
.upload-preview .img-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .img-item .remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.5); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-block; padding: 8px 24px; border-radius: 6px; font-size: 14px;
    cursor: pointer; border: none; transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--red); color: #fff; }
.btn-large { padding: 12px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ==================== 筛选栏 ==================== */
.filter-bar { background: #fff; border-radius: var(--radius); padding: 12px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.filter-bar .filter-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.filter-bar select { height: 32px; border: 1px solid var(--border); border-radius: 4px; padding: 0 8px; font-size: 13px; }
.filter-bar .sort-tabs { display: flex; gap: 16px; margin-left: auto; }
.filter-bar .sort-tab { cursor: pointer; color: var(--text-light); padding: 4px 8px; }
.filter-bar .sort-tab.active { color: var(--primary); font-weight: 500; }

/* ==================== 筛选侧栏 ==================== */
.with-sidebar { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.sidebar { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); height: fit-content; }
.sidebar h3 { font-size: 14px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar .menu-item { padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; transition: all .2s; display: flex; justify-content: space-between; }
.sidebar .menu-item:hover { background: #f5f7fa; }
.sidebar .menu-item.active { background: #e3f2fd; color: var(--primary); font-weight: 500; }
.sidebar .menu-item .count { color: var(--text-lighter); font-size: 12px; }

/* ==================== 分页 ==================== */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination button {
    min-width: 32px; height: 32px; border: 1px solid var(--border); background: #fff;
    border-radius: 4px; cursor: pointer; font-size: 13px; transition: all .2s;
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--gradient); color: #fff; border-color: transparent; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ==================== 商家头部横幅 ==================== */
.shop-header {
    background: var(--gradient); color: #fff; padding: 32px 0; border-radius: 0 0 var(--radius) var(--radius);
}
.shop-header .container { display: flex; align-items: center; gap: 20px; }
.shop-header .logo-circle { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: bold; }
.shop-header h1 { font-size: 24px; margin-bottom: 8px; }
.shop-header .badges { display: flex; gap: 8px; margin-bottom: 8px; }
.shop-header .badge { background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.shop-header .stats { display: flex; gap: 24px; font-size: 14px; }
.shop-header .stats .num { font-size: 20px; font-weight: bold; }
.shop-header .actions { margin-left: auto; display: flex; gap: 12px; }
.shop-header .actions .btn { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ==================== 订单卡片 ==================== */
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.order-card .header { padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-light); }
.order-card .body { padding: 16px 20px; display: flex; gap: 16px; }
.order-card .img-box { width: 80px; height: 80px; border-radius: 4px; overflow: hidden; background: #f0f0f0; flex-shrink: 0; }
.order-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.order-card .info { flex: 1; }
.order-card .info .title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.order-card .info .spec { font-size: 13px; color: var(--text-light); }
.order-card .info .merchant { font-size: 12px; color: var(--text-lighter); margin-top: 4px; }
.order-card .amount { text-align: right; }
.order-card .amount .price { color: var(--orange); font-size: 18px; font-weight: bold; }
.order-card .amount .status { font-size: 13px; margin-top: 4px; }
.order-card .footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.status-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.status-tag.pending { background: #fff3e0; color: var(--orange); }
.status-tag.payed { background: #e3f2fd; color: var(--primary); }
.status-tag.accepted, .status-tag.serving { background: #e8f5e9; color: var(--green); }
.status-tag.checking { background: #f3e5f5; color: var(--purple); }
.status-tag.completed { background: #e0e0e0; color: #666; }
.status-tag.cancelled, .status-tag.refunded { background: #ffebee; color: var(--red); }
.status-tag.refunding, .status-tag.after_sale { background: #fff3e0; color: var(--orange); }

/* ==================== 用户中心布局 ==================== */
.user-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.user-sidebar { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); height: fit-content; }
.user-info-card { text-align: center; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.user-info-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: bold; }
.user-info-card .name { font-size: 14px; font-weight: 500; }
.user-info-card .verified { font-size: 12px; color: var(--accent); margin-top: 4px; }

/* ==================== 详情页 ==================== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.detail-main { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-top { display: flex; gap: 24px; margin-bottom: 24px; }
.detail-top .gallery { width: 400px; }
.detail-top .gallery .main-img { width: 100%; height: 360px; border-radius: var(--radius); overflow: hidden; background: #f0f0f0; }
.detail-top .gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-top .gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; }
.detail-top .gallery .thumbs .thumb { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.detail-top .gallery .thumbs .thumb.active { border-color: var(--primary); }
.detail-top .gallery .thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-top .info { flex: 1; }
.detail-top .info h1 { font-size: 22px; margin-bottom: 8px; }
.detail-top .info .subtitle { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.detail-top .info .stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-lighter); margin-bottom: 16px; }
.detail-top .info .price-box { background: #fafafa; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.detail-top .info .price-box .price { color: var(--orange); font-size: 32px; font-weight: bold; }
.detail-top .info .price-box .price .unit { font-size: 14px; font-weight: normal; }
.detail-top .info .params { margin-bottom: 16px; }
.detail-top .info .params .param-item { display: flex; font-size: 13px; margin-bottom: 8px; }
.detail-top .info .params .param-item .label { color: var(--text-lighter); width: 80px; }
.detail-top .info .buy-actions { display: flex; gap: 12px; }
.detail-top .info .buy-actions .btn { flex: 1; }

.detail-side .merchant-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.detail-side .merchant-card .logo { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 18px; }
.detail-side .merchant-card .name { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.detail-side .merchant-card .badges { display: flex; justify-content: center; gap: 4px; margin-bottom: 12px; }
.detail-side .merchant-card .badge { background: #e3f2fd; color: var(--primary); padding: 2px 8px; border-radius: 10px; font-size: 11px; }

/* Tabs */
.tab-bar { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-bar .tab { padding: 8px 20px; cursor: pointer; font-size: 15px; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-bar .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 评价 */
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-item .stars { color: var(--orange); margin-bottom: 4px; }
.review-item .content { font-size: 14px; margin-bottom: 4px; }
.review-item .date { font-size: 12px; color: var(--text-lighter); }

/* ==================== 悬浮按钮 ==================== */
.fab {
    position: fixed; right: 32px; bottom: 32px; width: 56px; height: 56px;
    border-radius: 50%; background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    cursor: pointer; box-shadow: 0 4px 16px rgba(26,115,232,.4); z-index: 999;
    transition: transform .2s;
}
.fab:hover { transform: scale(1.1); }

/* ==================== 模态框 ==================== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 1000; display: none; justify-content: center; align-items: center; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 24px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal h2 { font-size: 20px; margin-bottom: 16px; }
.modal .close { float: right; cursor: pointer; font-size: 24px; color: var(--text-lighter); }

/* ==================== Toast ==================== */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 10px 24px; border-radius: 6px; font-size: 14px; z-index: 2000; display: none; }
.toast.show { display: block; }

/* ==================== 空状态 ==================== */
.empty { text-align: center; padding: 48px 16px; color: var(--text-lighter); }
.empty .icon { font-size: 48px; margin-bottom: 12px; }
.empty p { font-size: 14px; }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .with-sidebar, .user-layout { grid-template-columns: 1fr; }
    .detail-top { flex-direction: column; }
    .detail-top .gallery { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .main-nav ul { flex-wrap: wrap; }
}
