/* ==========================================================================
   v1 主题样式表 —— 深海军蓝 × 珊瑚橙 现代商城风格
   说明：仅调整视觉样式与排版布局，未改动任何迅睿模板标签与 JS 逻辑。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 基础重置
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* —— 新版品牌色 —— */
    --ink: #0b1a2b;
    --ink-2: #102a43;
    --ink-3: #1b3a5c;
    --brand: #ff6b2c;
    --brand-dark: #e8551a;
    --brand-soft: #fff2ea;
    --teal: #0ea5a4;
    --bg: #f4f6fb;
    --line: #e8ecf3;
    --muted: #6b7280;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(11, 26, 43, .06);
    --shadow-md: 0 12px 30px rgba(11, 26, 43, .09);
    --shadow-lg: 0 22px 50px rgba(11, 26, 43, .14);

    /* —— 兼容旧变量名（其它页面仍在使用）—— */
    --primary-pink: #fff2ea;
    --secondary-pink: #f4f6fb;
    --accent-pink: #ff6b2c;
    --dark-pink: #0b1a2b;
    --text-color: #1f2937;
    --light-gray: #f4f6fb;
    --white: #ffffff;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 15px;
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .25s ease;
}

img {
    max-width: 100%;
    border: 0;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. 顶部公共头部
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--ink);
    box-shadow: 0 6px 24px rgba(11, 26, 43, .18);
}

/* 顶部信息条 */
.header-top {
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
}

.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.header-top span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-top i {
    color: var(--brand);
    font-size: 12px;
}

/* 主导航区 */
.header-main {
    padding: 14px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}

.logo span {
    color: var(--brand);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    position: relative;
    display: block;
    padding: 9px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    font-weight: 500;
    transition: color .25s ease, background-color .25s ease;
}

.main-nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: translateX(-50%);
    transition: width .25s ease;
}

.main-nav ul li a:hover::after {
    width: 22px;
}

/* 右侧功能按钮 */
.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-icons > div,
.header-icons > a > div {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.header-icons > div:hover,
.header-icons > a:hover > div {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-1px);
}

.header-icons > div:hover i,
.header-icons > a:hover > div i,
.header-icons > a:hover > div span {
    color: #fff !important;
}

/* 购物车角标 */
#cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background-color: var(--brand);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    border-radius: 999px;
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--ink);
}

/* --------------------------------------------------------------------------
   3. 搜索弹窗
   -------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 110px 20px 20px;
    background-color: rgba(11, 26, 43, .62);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 34px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-40px);
    opacity: 0;
    transition: all .3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content h2 {
    color: var(--ink);
    font-size: 20px;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    transition: color .25s ease;
}

.close-btn:hover {
    color: var(--brand);
}

.search-form {
    display: flex;
    margin-top: 20px;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border: 2px solid var(--line);
    border-radius: 12px 0 0 12px;
    font-size: 16px;
    outline: none;
    transition: border-color .25s ease;
}

.search-input:focus {
    border-color: var(--brand);
}

.search-btn {
    padding: 15px 28px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color .25s ease;
}

.search-btn:hover {
    background: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   4. 页面容器
   -------------------------------------------------------------------------- */
.page {
    padding: 36px 0 10px;
    min-height: calc(100vh - 320px);
}

.page.active {
    display: block;
}

/* --------------------------------------------------------------------------
   5. 首页首屏横幅
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    margin-bottom: 46px;
    padding: 54px 36px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(120deg, #0b1a2b 0%, #1b3a5c 58%, #ff6b2c 145%);
    box-shadow: var(--shadow-md);
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
}

.page-hero-title {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .5px;
}

.page-hero-desc {
    margin-top: 12px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.page-hero-desc i {
    margin-right: 6px;
    color: var(--brand);
}

/* 兼容旧版 hero（模板中已注释，保留样式） */
.hero {
    background: linear-gradient(#0b1a2b, #1b3a5c), url('{HOME_THEME_PATH}images/bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 70px 40px;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 44px;
}

.hero h2 {
    font-size: 34px;
    color: #fff;
    margin-bottom: 16px;
}

.hero p {
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, .8);
}

/* --------------------------------------------------------------------------
   6. 通用按钮
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--brand);
    color: #fff;
    padding: 13px 30px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 44, .3);
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 107, 44, .38);
}

/* --------------------------------------------------------------------------
   7. 分类卡片
   -------------------------------------------------------------------------- */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 44px;
}

.category-card {
    flex: 1 1 240px;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 44, .45);
}

.category-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-card h3 {
    padding: 16px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. 板块标题
   -------------------------------------------------------------------------- */
.featured-products {
    margin-bottom: 50px;
}

.featured-products:last-child {
    margin-bottom: 0;
}

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-left: 18px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    text-align: left;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), rgba(232, 236, 243, 0));
}

/* --------------------------------------------------------------------------
   9. 卡片列表（商品 / 服务 / 店铺）
   -------------------------------------------------------------------------- */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.products > .product-card {
    flex: 1 1 calc(25% - 18px);
    max-width: calc(25% - 18px);
}

.products > .share-card {
    flex: 1 1 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 44, .45);
}

.product-thumb {
    display: block;
    overflow: hidden;
}

/* 兼容旧版卡片结构：外层 a 直接包裹图片与信息 */
.product-card > a:not(.product-thumb) {
    display: flex;
    flex-direction: column;
}

/* 兼容信息分享卡片（xxfb_list / xinxi） */
.share-card {
    display: flex;
    flex-direction: column;
}

.share-card > a {
    display: block;
}

.product-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}

.product-info h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.product-info h3 a {
    color: var(--ink);
}

.product-info h3 a:hover {
    color: var(--brand);
}

.product-info p {
    flex: 1;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
    border-top: 1px dashed var(--line);
}

.price {
    color: var(--brand);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}

.card-link:hover {
    color: var(--brand-dark);
}

.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--brand-soft);
    border: none;
    border-radius: 12px;
    color: var(--brand);
    font-size: 15px;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.add-to-cart:hover {
    background-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. 列表页筛选区
   -------------------------------------------------------------------------- */
.filters {
    background-color: #fff;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group h3 {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.filter-options select,
.filter-options input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--light-gray);
    color: var(--text-color);
    transition: border-color .25s ease;
}

.filter-options select:focus,
.filter-options input:focus {
    border-color: var(--brand);
    background-color: #fff;
}

/* --------------------------------------------------------------------------
   11. 商品详情
   -------------------------------------------------------------------------- */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    background-color: #fff;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.product-gallery {
    position: relative;
    flex: 1 1 380px;
    min-width: 0;
}

.product-gallery img {
    width: 100%;
    border-radius: var(--radius-md);
}

.main-image {
    display: block;
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform .3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: .7;
    transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    transform: scale(1.06);
    border-color: var(--brand);
}

.product-info-detail {
    flex: 1 1 380px;
    min-width: 0;
}

.product-info-detail h2 {
    margin-bottom: 15px;
    color: var(--ink);
    font-size: 26px;
    font-weight: 700;
}

.product-info-detail .price {
    display: block;
    margin-bottom: 20px;
    font-size: 26px;
}

.product-info-detail p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.original-price {
    margin-left: 10px;
    color: #9aa4b2;
    font-size: 17px;
    text-decoration: line-through;
}

.discount-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    background-color: var(--brand);
    color: #fff;
    font-size: 13px;
    border-radius: 999px;
}

.product-meta {
    margin-bottom: 25px;
    padding: 16px 18px;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
}

.meta-item {
    display: flex;
    margin-bottom: 8px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    min-width: 80px;
    color: var(--muted);
    font-weight: 500;
}

.meta-value {
    color: var(--text-color);
}

.stock-status {
    color: #16a34a;
    font-weight: 600;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.quantity button {
    width: 42px;
    height: 44px;
    border: none;
    background-color: var(--light-gray);
    font-size: 18px;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.quantity button:hover {
    background-color: var(--brand);
    color: #fff;
}

.quantity input {
    width: 54px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 28px;
    background-color: var(--brand);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 44, .28);
    transition: background-color .25s ease, transform .25s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
}

.wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background-color: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .3s ease;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: var(--brand);
    border-color: var(--brand);
    background-color: var(--brand-soft);
}

/* 详情标签页 */
.product-tabs {
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: var(--light-gray);
}

.tab-btn {
    position: relative;
    padding: 16px 26px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--muted);
    transition: color .25s ease;
}

.tab-btn.active {
    color: var(--brand);
    background: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand);
}

.tab-content {
    padding: 26px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.specifications {
    width: 100%;
    border-collapse: collapse;
}

.specifications tr {
    border-bottom: 1px solid var(--line);
}

.specifications td {
    padding: 13px 15px;
}

.specifications td:first-child {
    width: 30%;
    font-weight: 500;
    color: var(--muted);
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--ink);
}

.review-date {
    color: #9aa4b2;
    font-size: 13px;
}

.review-rating {
    color: #f59e0b;
    margin-bottom: 10px;
}

.related-products {
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   12. 商家 / 入驻表单
   -------------------------------------------------------------------------- */
.vendor-form {
    background-color: #fff;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background-color: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 107, 44, .12);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group.full-width {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.vendor-profile {
    background-color: #fff;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.vendor-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.vendor-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.vendor-info {
    flex: 1;
    min-width: 0;
}

.vendor-info h2 {
    margin-bottom: 15px;
    color: var(--ink);
    font-size: 24px;
}

.vendor-info p {
    margin-bottom: 10px;
    color: var(--muted);
}

.vendor-info p i {
    width: 18px;
    color: var(--brand);
}

.vendor-rating {
    margin: 10px 0;
    color: #f59e0b;
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   13. 信息详情页（xxfb_show）
   -------------------------------------------------------------------------- */
.detail-container {
    padding-top: 36px;
}

.detail-title {
    position: relative;
    margin-bottom: 22px;
    padding-left: 18px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
}

.detail-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}

.detail-headline {
    margin-bottom: 24px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: var(--radius-lg);
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.merchant-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 26px 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s ease, transform .3s ease;
}

.merchant-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.merchant-avatar {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    overflow: hidden;
    background: #fff;
    border: 4px solid #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.merchant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.merchant-avatar img:hover {
    transform: scale(1.05);
}

.merchant-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
}

.merchant-info h4 {
    display: flex;
    align-items: center;
    flex: 1 1 260px;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

.merchant-info h4 strong {
    color: var(--brand);
    font-weight: 700;
}

.merchant-info h4 a {
    color: var(--brand);
    font-weight: 600;
}

.merchant-info h4 a:hover {
    color: var(--brand-dark);
}

.info-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 107, 44, .14);
}

.section-divider {
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(90deg, rgba(255, 107, 44, 0), var(--line), rgba(255, 107, 44, 0));
}

.detail-body {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.detail-body img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.detail-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.9;
}

.detail-content p {
    margin-bottom: 14px;
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4 {
    margin: 22px 0 12px;
    color: var(--ink);
}

.detail-content ul,
.detail-content ol {
    margin: 0 0 16px 22px;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.detail-content td,
.detail-content th {
    padding: 10px 12px;
    border: 1px solid var(--line);
}

.detail-gallery-item {
    margin: 30px 0;
    text-align: center;
}

.detail-gallery-caption {
    margin-top: 8px;
    color: #9aa4b2;
    font-size: 13px;
}

/* 兼容其它页面遗留类名 */
#product-detail a {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   14. 分页
   -------------------------------------------------------------------------- */
.pagination {
    margin: 36px 0 10px;
    padding: 0;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    color: #334155;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all .25s ease;
}

.pagination li:first-child a {
    background-color: var(--light-gray);
    color: var(--muted);
    border-color: var(--line);
    cursor: default;
}

.pagination li.active a {
    background-color: var(--brand);
    color: #fff;
    border-color: var(--brand);
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(255, 107, 44, .3);
}

.pagination li:not(.active) a:not(:first-child):hover {
    background-color: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.pagination li.disabled a {
    opacity: .6;
    cursor: not-allowed;
    background-color: var(--light-gray);
    color: #9aa4b2;
}

.pagination li.disabled a:hover {
    transform: none;
    background-color: var(--light-gray);
    color: #9aa4b2;
    border-color: var(--line);
}

/* --------------------------------------------------------------------------
   15. 公共页脚
   -------------------------------------------------------------------------- */
footer {
    position: relative;
    margin-top: 70px;
    padding: 56px 0 24px;
    background: linear-gradient(160deg, #0b1a2b 0%, #102a43 62%, #16324d 100%);
    color: rgba(255, 255, 255, .72);
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--teal), var(--brand));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand {
    flex: 1.4 1 280px;
    min-width: 240px;
}

.footer-brand img {
    display: block;
    width: 150px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 320px;
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    line-height: 1.8;
}

.footer-column {
    flex: 1 1 170px;
    min-width: 150px;
}

.footer-column h3 {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .4px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, .7);
    transition: color .25s ease, padding-left .25s ease;
}

.footer-column ul li a:hover {
    color: var(--brand);
    padding-left: 4px;
}

.footer-column ul li i {
    margin-top: 5px;
    color: var(--brand);
    font-size: 13px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: #fff;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.social-icons a:hover {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.copyright {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, .55);
}

.copyright a {
    color: rgba(255, 255, 255, .7);
}

.copyright a:hover {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   16. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .products {
        gap: 20px;
    }

    .products > .product-card {
        flex: 1 1 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }

    .products > .share-card {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .product-card img {
        height: 180px;
    }
}

@media (max-width: 900px) {
    .header-top {
        display: none;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        order: 1;
    }

    .header-icons {
        order: 2;
        margin-left: auto;
    }

    .main-nav {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 2px;
    }

    .main-nav ul li a {
        white-space: nowrap;
        padding: 8px 13px;
        font-size: 14px;
    }

    .page-hero {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .page-hero-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .page {
        padding: 24px 0 10px;
        min-height: calc(100vh - 260px);
    }

    .page-hero {
        margin-bottom: 32px;
    }

    .products {
        gap: 16px;
    }

    .products > .product-card {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .products > .share-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .product-card img {
        height: 150px;
    }

    .product-info {
        padding: 13px 14px 15px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .section-title {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .product-detail,
    .vendor-header,
    .merchant-card {
        flex-direction: column;
    }

    .merchant-card {
        text-align: center;
        gap: 20px;
    }

    .merchant-avatar {
        width: 150px;
        height: 150px;
    }

    .merchant-info h4 {
        flex: 1 1 100%;
        justify-content: center;
    }

    .detail-body,
    .detail-headline {
        padding: 20px;
    }

    .detail-headline {
        font-size: 19px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .product-actions {
        flex-wrap: wrap;
    }

    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-content {
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .products > .product-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .product-card img {
        height: 190px;
    }

    .page-hero-title {
        font-size: 23px;
    }

    .pagination a {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
}
