:root {
    /* 品牌色 - 深蓝 */
    --brand-primary: #1E40AF;
    --brand-primary-light: #3B6FD4;
    --brand-primary-lighter: #6FA1F0;
    --brand-gradient: linear-gradient(135deg, #1E40AF 0%, #3B6FD4 50%, #6FA1F0 100%);
    
    /* 中性色 */
    --shop-black: #111111;
    --shop-text: #1a1a1a;
    --shop-text-secondary: #525252;
    --shop-muted: #737373;
    --shop-text-muted: #737373;
    --shop-border: #e5e5e5;
    --shop-border-light: #f0f0f0;
    --shop-bg: #fafafa;
    --shop-surface: #ffffff;
    --shop-hover: #f5f5f5;
    
    /* 圆角 */
    --shop-radius: 8px;
    --shop-radius-lg: 12px;
    --shop-radius-xl: 16px;
    
    /* 阴影 */
    --shop-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    --shop-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shop-shadow-md: 0 4px 12px rgba(30, 64, 175, 0.12);
    --shop-shadow-lg: 0 8px 24px rgba(30, 64, 175, 0.16);
    
    /* 毛玻璃 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(10px);
}

* { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f7f6;
    color: var(--shop-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.shop-header {
    background: var(--shop-surface);
    border-bottom: 1px solid var(--shop-border);
    z-index: 1040;
}
.shop-brand {
    font-weight: 600;
    font-size: 1rem;
    color: var(--shop-black) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.shop-header .nav-link {
    color: var(--shop-muted);
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem !important;
    letter-spacing: 0.02em;
    border-radius: 0;
    transition: color .15s;
}
.shop-header .nav-link:hover,
.shop-header .nav-link.active {
    color: var(--shop-black);
    background: transparent;
}
.shop-subnav {
    border-top: 1px solid var(--shop-border-light);
    background: var(--shop-surface);
}
.shop-search-wrap {
    position: relative;
    max-width: 320px;
}
.shop-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-muted);
    pointer-events: none;
    font-size: 0.875rem;
}
.shop-search-wrap input {
    padding-left: 2.25rem;
    border-radius: 0;
    border-color: var(--shop-border);
    background: var(--shop-surface);
    font-size: 0.875rem;
}
.shop-search-wrap input:focus {
    border-color: var(--shop-black);
    box-shadow: none;
}
.btn-cart {
    border-radius: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}
.cart-badge {
    font-size: 0.6rem;
    min-width: 1rem;
    background: var(--shop-black) !important;
}

/* Layout */
.shop-main { flex: 1; }
.shop-page {
    padding: 1.5rem 0 2.5rem;
    min-height: calc(100vh - 120px);
}
.shop-container { max-width: 1120px; }
.shop-container-narrow { max-width: 640px; }
.shop-container-xs { max-width: 420px; }

/* Hero */
.hero-banner {
    background: linear-gradient(135deg, #1E40AF 0%, #3B6FD4 50%, #6FA1F0 100%);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius-xl);
    padding: 2.5rem 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2);
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-banner h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    position: relative;
}
.hero-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.01em;
    position: relative;
}
.hero-banner .hero-cta {
    position: relative;
}
.hero-banner .btn-dark {
    background: rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2rem;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}
.hero-banner .btn-dark:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
@media (min-width: 768px) {
    .hero-banner {
        padding: 3.5rem 3rem;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2rem;
    }
    .hero-banner h1 { font-size: 2.25rem; }
}

/* Section */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}
.section-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}
.link-subtle {
    color: #1E40AF;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.link-subtle:hover { color: #152C75; gap: 0.5rem; }

/* Category */
.category-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    margin-bottom: 2rem;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .category-scroll { display: none; }
    .category-grid { display: grid; }
}
.category-chip {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: #666;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    transition: all 0.25s ease;
    text-align: center;
    font-weight: 500;
}
.category-chip:hover {
    border-color: #1E40AF;
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.04);
}
.category-chip.active {
    color: #fff;
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    border-color: #1E40AF;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* Product card */
.product-card {
    border: 1px solid var(--shop-border-light);
    border-radius: var(--shop-radius-xl);
    overflow: hidden;
    height: 100%;
    background: var(--shop-surface);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover { 
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.12);
    border-color: rgba(30, 64, 175, 0.2);
}
.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #f7f7f7;
    overflow: hidden;
}
.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .25s ease;
}
.product-card:hover .product-card-img-wrap img { opacity: 0.92; }
.product-card-body { padding: 0.875rem 1rem 1rem; }
.product-card-title {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--shop-text);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 2.35em;
}
.product-price {
    color: #1E40AF;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.product-price-lg { font-size: 1.75rem; font-weight: 700; }
.badge-soldout,
.badge-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    border-radius: 2rem;
}
.badge-tag--muted { background: #888; }

/* Panel */
.shop-panel {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-xl);
    border: 1px solid var(--shop-border);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
}
.shop-panel:hover {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.06);
}
.shop-panel-head {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: #333;
    border-bottom: 1px solid var(--shop-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--shop-surface);
}
.shop-panel-body { padding: 1.5rem; }

/* Filter sidebar */
.filter-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid var(--shop-border-light);
    padding: 0.75rem 1.25rem;
    color: var(--shop-muted);
    font-size: 0.8125rem;
    border-radius: 0;
}
.filter-sidebar .list-group-item:last-child { border-bottom: 0; }
.filter-sidebar .list-group-item.active {
    background: var(--shop-hover);
    color: var(--shop-black);
    font-weight: 500;
}

/* Product Detail — Enhanced */
.product-breadcrumb {
    padding: 1.25rem 0;
    font-size: 0.75rem;
    color: var(--shop-muted);
    letter-spacing: 0.02em;
}
.product-breadcrumb a {
    color: var(--shop-muted);
    text-decoration: none;
    transition: color .15s;
}
.product-breadcrumb a:hover { color: #1E40AF; }
.product-breadcrumb .sep { margin: 0 0.5rem; opacity: 0.4; }
.product-breadcrumb .current { color: #1E40AF; font-weight: 500; }

.product-hero-section {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.06);
}
.product-gallery {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
}
.product-gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.product-gallery:hover .product-gallery-main { transform: scale(1.03); }
.product-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-overlay span {
    color: #fff;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.product-info-panel {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-info-inner { flex: 1; }
@media (min-width: 992px) {
    .product-info-panel { padding: 2.5rem 2.5rem 2rem; }
}
.product-category-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #1E40AF;
    border: 1px solid rgba(30, 64, 175, 0.3);
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 2rem;
    font-weight: 500;
    background: rgba(30, 64, 175, 0.04);
}
.product-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1a1a1a;
}
@media (min-width: 992px) {
    .product-title { font-size: 1.625rem; }
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.product-rating .rating-stars { color: var(--shop-black); font-size: 0.875rem; }
.product-rating .rating-text { color: var(--shop-muted); font-size: 0.75rem; }
.product-price-block {
    padding: 1.25rem 0;
    margin-bottom: 1.25rem;
    border-top: 1px solid var(--shop-border-light);
    border-bottom: 1px solid var(--shop-border-light);
}
.product-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1E40AF;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 0.5rem;
}
.product-stock-info { font-size: 0.75rem; color: var(--shop-muted); }
.product-stock-info i { font-size: 0.7rem; margin-right: 0.2rem; }
.product-qty-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.qty-label { font-size: 0.8125rem; color: var(--shop-text-secondary); font-weight: 500; }
.qty-selector { display: flex; border: 1px solid var(--shop-border); }
.qty-selector input {
    width: 3rem;
    text-align: center;
    border: none;
    border-left: 1px solid var(--shop-border);
    border-right: 1px solid var(--shop-border);
    font-size: 0.875rem;
    background: var(--shop-surface);
    color: var(--shop-text);
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: var(--shop-surface);
    color: var(--shop-text);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.qty-btn:hover { background: var(--shop-hover); }
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.product-action-form { flex: 1; display: flex; }
.btn-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 2px solid #1E40AF;
    cursor: pointer;
    flex: 1;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.btn-product-solid { 
    background: linear-gradient(135deg, #1E40AF, #3B6FD4); 
    color: #fff; 
    border-color: transparent;
}
.btn-product-solid:hover { 
    background: linear-gradient(135deg, #1A357F, #1E40AF); 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.btn-product-outline { 
    background: transparent; 
    color: #1E40AF; 
    width: 100%; 
}
.btn-product-outline:hover { 
    background: #1E40AF; 
    color: #fff; 
}
.btn-product-disabled { 
    background: #f5f5f5; 
    border-color: #e0e0e0; 
    color: #999; 
    cursor: not-allowed; 
}
.product-service-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--shop-border-light);
}
.service-item { font-size: 0.75rem; color: var(--shop-muted); display: flex; align-items: center; gap: 0.35rem; }
.service-item i { font-size: 0.8rem; }

/* Product Tabs */
.product-tabs-section { margin-bottom: 2.5rem; }
.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--shop-border-light);
}
.tab-btn {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #888;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: -2px;
}
.tab-btn:hover { color: #333; }
.tab-btn.active { color: #1E40AF; border-bottom-color: #1E40AF; }
.product-tab-content {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-top: none;
    border-radius: 0 0 var(--shop-radius-lg) var(--shop-radius-lg);
    padding: 2rem;
    min-height: 200px;
}
.product-description {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: var(--shop-text-secondary);
    max-width: 680px;
}
.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}
.product-description h1,
.product-description h2,
.product-description h3 {
    color: #1a1a1a;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}
.product-description p {
    margin-bottom: 1rem;
}
.product-description ul,
.product-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.product-description table td,
.product-description table th {
    border: 1px solid #e5e5e5;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
.product-description table th {
    background: #f8faf9;
    font-weight: 600;
}
.product-desc-empty { text-align: center; padding: 3rem 1rem; color: var(--shop-muted); }
.product-desc-empty i { font-size: 2rem; opacity: 0.3; display: block; margin-bottom: 0.75rem; }
.product-desc-empty p { font-size: 0.875rem; margin: 0; }

/* Reviews */
.reviews-list {}
.review-card { padding: 1.5rem 0; border-bottom: 1px solid var(--shop-border-light); }
.review-card:first-child { padding-top: 0; }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.review-user { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--shop-hover);
    border: 1px solid var(--shop-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--shop-text-secondary);
}
.review-name { font-size: 0.8125rem; font-weight: 500; color: var(--shop-text); }
.review-date { font-size: 0.7rem; color: var(--shop-muted); }
.review-body { font-size: 0.875rem; line-height: 1.7; color: var(--shop-text-secondary); }
.product-related-section { margin-bottom: 2rem; }
.rating-stars { color: var(--shop-text-secondary); }
.review-item { padding: 1.25rem; border-bottom: 1px solid var(--shop-border-light); }
.review-item:last-child { border-bottom: 0; }

/* Cart */
.cart-item-mobile {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--shop-border-light);
}
.cart-item-mobile:last-child { border-bottom: 0; }
.cart-item-mobile img {
    width: 80px;
    height: 80px;
    border-radius: var(--shop-radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    background: #f7f7f7;
    border: 1px solid var(--shop-border-light);
}
.cart-summary {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--shop-border);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.06);
}
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--shop-border);
    font-size: 1rem;
    font-weight: 600;
}

/* Order */
.order-card {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-xl);
    border: 1px solid var(--shop-border);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.order-card:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
    border-color: rgba(30, 64, 175, 0.2);
}
.order-card-head {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--shop-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    background: #fafbfc;
}
.order-card-body { padding: 1.25rem 1.5rem; }
.order-card-items {
    color: var(--shop-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Address */
.address-option {
    display: block;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-lg);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--shop-surface);
}
.address-option:hover {
    border-color: rgba(30, 64, 175, 0.3);
}
.address-option:has(input:checked) {
    border-color: #1E40AF;
    background: rgba(30, 64, 175, 0.03);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}
.address-option input { margin-right: 0.5rem; accent-color: #1E40AF; }

/* Pay */
.pay-amount-display {
    padding: 2.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--shop-border-light);
    background: linear-gradient(135deg, rgba(30,64,175,0.03), rgba(30,64,175,0.08));
}
.pay-method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--shop-border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}
.pay-method-option:hover {
    padding-left: 0.5rem;
}
.pay-method-option:last-child { border-bottom: 0; }
.pay-method-option input { accent-color: #1E40AF; }
.invoice-fields {
    padding: 1rem;
    background: rgba(30, 64, 175, 0.03);
    border: 1px solid var(--shop-border-light);
    border-radius: var(--shop-radius);
}
.pay-method-hint {
    font-size: 0.75rem;
    color: var(--shop-muted);
}
.pay-qrcode-panel .shop-panel-head {
    background: linear-gradient(135deg, rgba(30,64,175,0.04), rgba(30,64,175,0.08));
}
.pay-qrcode-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow-sm);
}
.pay-qrcode-wrap img,
.pay-qrcode-wrap canvas,
.pay-qrcode-img {
    display: block;
}
.pay-qrcode-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 64, 175, 0.06);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--shop-text-secondary);
}
.pay-qrcode-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
    animation: pay-qrcode-pulse 1.4s ease-in-out infinite;
}
@keyframes pay-qrcode-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.pay-qrcode-panel.channel-alipay .shop-panel-head {
    background: linear-gradient(135deg, rgba(22,119,255,0.04), rgba(22,119,255,0.08));
}
.pay-qrcode-panel.channel-alipay .pay-qrcode-dot {
    background: #1677ff;
}
.pay-qrcode-panel.channel-alipay .pay-qrcode-status {
    background: rgba(22, 119, 255, 0.08);
}
.pay-brand-alipay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.2rem;
    background: #1677ff;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

/* Auth Grand — 大气登录/注册模板 */
.auth-body {
    background: #f4f7fb;
    min-height: 100vh;
}
.auth-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
}
.auth-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.auth-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
}
.auth-topbar-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    color: #fff;
    font-size: 1rem;
}
.auth-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(30, 64, 175, 0.15);
    color: #1E40AF;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.auth-topbar-back:hover {
    background: rgba(30, 64, 175, 0.06);
    border-color: rgba(30, 64, 175, 0.3);
    color: #1E40AF;
}
.auth-topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.auth-topbar-link {
    display: none;
    padding: 0.5rem 0.875rem;
    border-radius: 2rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.auth-topbar-link:hover {
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.06);
}
@media (min-width: 576px) {
    .auth-topbar-link { display: inline-flex; }
}
.auth-body-grand {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 64, 175, 0.08), transparent),
        #f4f7fb;
}
.auth-grand {
    min-height: calc(100vh - 4rem);
}
.auth-grand-page {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100vh - 4rem);
    width: 100%;
}
.auth-grand-visual {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 3.5rem;
    overflow: hidden;
    color: #fff;
}
.auth-grand-visual-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, #0b1f52 0%, #1E40AF 42%, #2563eb 68%, #2B7B6B 100%);
    animation: authGrandBgShift 18s ease-in-out infinite alternate;
}
@keyframes authGrandBgShift {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(8deg) brightness(1.05); }
}
.auth-grand-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
    opacity: 0.45;
}
.auth-grand-orb-a {
    width: 180px;
    height: 180px;
    top: 18%;
    right: 12%;
    background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%);
    animation: authGrandOrbFloat 12s ease-in-out infinite;
}
.auth-grand-orb-b {
    width: 120px;
    height: 120px;
    bottom: 28%;
    right: 28%;
    background: radial-gradient(circle, rgba(43,123,107,0.35) 0%, transparent 70%);
    animation: authGrandOrbFloat 10s ease-in-out infinite reverse;
}
.auth-grand-orb-c {
    width: 90px;
    height: 90px;
    top: 55%;
    left: 8%;
    background: radial-gradient(circle, rgba(147,197,253,0.4) 0%, transparent 70%);
    animation: authGrandOrbFloat 14s ease-in-out infinite;
}
@keyframes authGrandOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.08); }
}
.auth-grand-entrance {
    animation: authGrandEntrance 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-grand-panel-entrance {
    animation: authGrandPanelIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
@keyframes authGrandEntrance {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes authGrandPanelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-grand-visual-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.875rem 0.375rem 0.375rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.auth-grand-visual-brand-mark {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.9375rem;
}
.auth-grand-visual-brand-name {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.auth-grand-visual-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.auth-grand-visual-glow-a {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(96, 165, 250, 0.35);
}
.auth-grand-visual-glow-b {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -60px;
    background: rgba(43, 123, 107, 0.28);
}
.auth-grand-visual-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 90%);
}
.auth-grand-visual-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
}
.auth-grand-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 1.5rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.auth-grand-visual-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.auth-grand-visual-title span {
    display: block;
}
.auth-grand-visual-title em {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.72em;
    margin-top: 0.375rem;
    color: rgba(255, 255, 255, 0.88);
}
.auth-grand-visual-desc {
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 460px;
}
.auth-grand-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}
.auth-grand-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}
.auth-grand-feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1rem;
}
.auth-grand-features strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}
.auth-grand-features small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}
.auth-grand-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.auth-grand-stat strong {
    display: block;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.auth-grand-stat span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
}
.auth-grand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, #f8fafc 100%);
}
.auth-grand-panel-inner {
    width: 100%;
    max-width: 460px;
    padding: 2.25rem 2rem 2rem;
    background: #fff;
    border: 1px solid rgba(30, 64, 175, 0.08);
    border-radius: 1.375rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 8px 24px rgba(30, 64, 175, 0.06),
        0 24px 56px rgba(30, 64, 175, 0.08);
    position: relative;
    overflow: hidden;
}
.auth-grand-panel-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E40AF, #3B6FD4 45%, #2B7B6B);
}
.auth-grand-form-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.auth-grand-form-icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(43, 123, 107, 0.1));
    color: #1E40AF;
    font-size: 1.5rem;
}
.auth-grand-form-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2B7B6B;
}
.auth-grand-form-head h1 {
    margin: 0 0 0.375rem;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.auth-grand-form-desc {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--shop-muted);
    line-height: 1.5;
}
.auth-grand-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.16);
    color: #dc3545;
    font-size: 0.8125rem;
    line-height: 1.5;
}
.auth-grand-alert i { flex-shrink: 0; margin-top: 0.125rem; }
.auth-grand-tabs {
    position: relative;
    display: flex;
    gap: 0.25rem;
    padding: 0.375rem;
    margin-bottom: 1.5rem;
    border-radius: 0.875rem;
    background: #f1f5f9;
}
.auth-grand-tab-indicator {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    height: calc(100% - 0.75rem);
    border-radius: 0.625rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.12);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}
.auth-grand-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    border: none;
    border-radius: 0.625rem;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s ease;
}
.auth-grand-tab.is-active {
    background: transparent;
    color: #1E40AF;
    font-weight: 600;
    box-shadow: none;
}
.auth-grand-tab:hover:not(.is-active) {
    color: #1E40AF;
}
.auth-grand-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}
.auth-grand-form-register {
    gap: 1rem;
}
.auth-grand-field {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}
.auth-grand-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}
.auth-grand-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}
.auth-grand-input {
    position: relative;
}
.auth-grand-input > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}
.auth-grand-input .form-control {
    padding: 0.8125rem 1rem 0.8125rem 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
}
.auth-grand-input .form-control:focus {
    background: #fff;
    border-color: #1E40AF;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}
.auth-grand-input-flex { flex: 1; min-width: 0; }
.auth-password-wrap .form-control { padding-right: 2.75rem; }
.auth-password-toggle {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.auth-password-toggle:hover { color: #1E40AF; }
.auth-grand-sms {
    display: flex;
    gap: 0.625rem;
    align-items: stretch;
}
.auth-grand-sms-btn {
    flex-shrink: 0;
    min-width: 7rem;
    white-space: nowrap;
    font-size: 0.8125rem;
    border-radius: 0.75rem;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}
.auth-grand-sms-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-grand-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    margin-top: 0.25rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}
.auth-grand-submit i {
    font-size: 1.125rem;
    transition: transform 0.25s ease;
}
.auth-grand-submit:hover i {
    transform: translateX(3px);
}
.auth-grand-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--shop-muted);
}
.auth-grand-form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: var(--shop-muted);
}
.auth-grand-form-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: #1E40AF;
    font-weight: 600;
    text-decoration: none;
}
.auth-grand-form-footer a:hover {
    text-decoration: underline;
}
.auth-grand-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: -0.25rem;
}
.auth-grand-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}
.auth-grand-remember input {
    width: 1rem;
    height: 1rem;
    accent-color: #1E40AF;
}
.auth-grand-forgot {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1E40AF;
    text-decoration: none;
}
.auth-grand-forgot:hover {
    text-decoration: underline;
}
.auth-grand-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
    cursor: pointer;
}
.auth-grand-terms input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    accent-color: #1E40AF;
}
.auth-grand-terms a {
    color: #1E40AF;
    font-weight: 500;
    text-decoration: none;
}
.auth-grand-terms a:hover {
    text-decoration: underline;
}
.auth-grand-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(30,64,175,0.04), rgba(43,123,107,0.04));
    border: 1px solid rgba(30, 64, 175, 0.08);
}
.auth-grand-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}
.auth-grand-step span {
    width: 1.625rem;
    height: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.25s ease;
}
.auth-grand-step.is-active {
    color: #1E40AF;
}
.auth-grand-step.is-active span {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}
.auth-grand-step-line {
    flex: 1;
    max-width: 2.5rem;
    height: 2px;
    margin: 0 0.375rem;
    margin-bottom: 1.125rem;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border-radius: 1px;
}
.auth-grand-strength {
    height: 3px;
    margin-top: 0.375rem;
    border-radius: 2px;
    background: #e2e8f0;
    overflow: hidden;
}
.auth-grand-strength span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: #dc3545;
    transition: width 0.3s ease, background 0.3s ease;
}
.auth-grand-strength.is-1 span { background: #f59e0b; }
.auth-grand-strength.is-2 span { background: #2B7B6B; }
.auth-grand-strength.is-3 span { background: #1E40AF; }
.auth-grand-input .form-control.is-match {
    border-color: #2B7B6B;
    box-shadow: 0 0 0 3px rgba(43, 123, 107, 0.1);
}
.auth-grand-input .form-control.is-mismatch {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}
.auth-grand-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0 0;
    margin-top: 0.25rem;
}
.auth-grand-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}
.auth-grand-trust-item i {
    color: #2B7B6B;
    font-size: 0.875rem;
}
.auth-grand-submit.is-loading {
    opacity: 0.85;
    pointer-events: none;
}
.auth-grand-submit.is-loading i {
    animation: authGrandSpin 0.8s linear infinite;
}
@keyframes authGrandSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .auth-grand-visual-bg,
    .auth-grand-orb,
    .auth-grand-entrance,
    .auth-grand-panel-entrance { animation: none; }
}
@media (max-width: 991.98px) {
    .auth-grand-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .auth-grand-visual {
        padding: 2.5rem 1.5rem 2rem;
        min-height: auto;
    }
    .auth-grand-visual-inner { max-width: none; }
    .auth-grand-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }
    .auth-grand-features li { padding: 0.75rem; }
    .auth-grand-stats { gap: 1rem; }
    .auth-grand-panel {
        padding: 1.5rem 1rem 2.5rem;
    }
    .auth-grand-panel-inner {
        padding: 1.75rem 1.25rem;
        border-radius: 1rem;
    }
}
@media (max-width: 575.98px) {
    .auth-topbar-inner { padding: 0.75rem 1rem; }
    .auth-topbar-back span { display: none; }
    .auth-grand-visual-title { font-size: 1.75rem; }
    .auth-grand-visual-desc { font-size: 0.875rem; margin-bottom: 1.5rem; }
    .auth-grand-features { grid-template-columns: 1fr; }
    .auth-grand-stats { display: none; }
    .auth-grand-visual-brand { display: none; }
    .auth-grand-trust { gap: 0.625rem; }
    .auth-grand-steps { padding: 0.625rem 0.375rem; }
    .auth-grand-step { font-size: 0.625rem; }
    .auth-grand-step-line { max-width: 1.5rem; }
    .auth-grand-form-head h1 { font-size: 1.375rem; }
    .auth-grand-field-row { grid-template-columns: 1fr; }
    .auth-grand-sms { flex-direction: column; }
    .auth-grand-sms-btn { width: 100%; min-width: 0; }
}

/* Profile */
.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    color: var(--shop-text);
    text-decoration: none;
    border-bottom: 1px solid var(--shop-border-light);
    font-size: 0.875rem;
    transition: background .15s;
}
.profile-menu a:last-child { border-bottom: 0; }
.profile-menu a:hover { background: var(--shop-hover); }
.profile-menu i:first-child {
    color: var(--shop-muted);
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

/* Empty */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--shop-muted);
}
.empty-state i {
    font-size: 2rem;
    opacity: 0.25;
    display: block;
    margin-bottom: 1rem;
}
.empty-state p { font-size: 0.875rem; }

/* Status badges */
.shop-page .badge {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    border-radius: 2rem;
    padding: 0.35em 0.75em;
}
.shop-page .badge.bg-warning {
    background: #FFF3CD !important;
    color: #856404 !important;
    border: none;
}
.shop-page .badge.bg-info,
.shop-page .badge.bg-primary {
    background: #D1ECF1 !important;
    color: #0C5460 !important;
    border: none;
}
.shop-page .badge.bg-success {
    background: #D4EDDA !important;
    color: #155724 !important;
    border: none;
}
.shop-page .badge.bg-secondary {
    background: #E9ECEF !important;
    color: #383D41 !important;
    border: none;
}
.shop-page .badge.bg-danger {
    background: #F8D7DA !important;
    color: #721C24 !important;
    border: none;
}
.shop-page .badge-neutral {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4) !important;
    color: #fff !important;
    border: none;
}

/* Mobile nav */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(30, 64, 175, 0.1);
    z-index: 1030;
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}
.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    color: #999;
    text-decoration: none;
    font-size: 0.625rem;
    letter-spacing: 0.02em;
    padding: 0.3rem;
    position: relative;
    transition: all 0.3s ease;
}
.mobile-bottom-bar a.active {
    color: #1E40AF;
    font-weight: 600;
}
.mobile-bottom-bar i { display: block; font-size: 1.2rem; margin-bottom: 0.15rem; }
.mobile-bottom-bar .bar-badge {
    position: absolute;
    top: 0;
    left: 55%;
    font-size: 0.55rem;
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    color: #fff;
    border-radius: 999px;
    min-width: 0.9rem;
    height: 0.9rem;
    line-height: 0.9rem;
    padding: 0 0.2rem;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
}

/* Footer */
.shop-footer {
    background: var(--shop-surface);
    border-top: 1px solid var(--shop-border);
    margin-top: auto;
}
.shop-footer-inner {
    padding: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}
.shop-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.shop-footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.25s ease;
}
.shop-footer-links a:hover { color: #1E40AF; }

@media (max-width: 767.98px) {
    .mobile-bottom-bar { display: flex; }
    .shop-page { padding-bottom: 1rem; }
    .shop-hide-mobile { display: none !important; }
    /* 移动端保留精简页脚，预留底部导航高度 */
    .shop-footer-grand {
        display: block;
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
    .shop-footer-grand .footer-grand-body { padding: 2rem 0 1.5rem; }
    .shop-footer-grand .footer-grand-col { margin-bottom: 0.5rem; }
    .shop-footer-grand .footer-grand-contact { margin-top: 0.5rem; }
}

/* ==================== 回到顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1050;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2B7B6B, #1f6b5c);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(43, 123, 107, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(43, 123, 107, 0.5);
}

/* 平滑滚动 */
html { scroll-behavior: smooth; }

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 70px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ==================== 加载骨架屏动画 ==================== */
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease infinite;
    border-radius: 0.5rem;
}

/* ==================== 全局图片过渡 ==================== */
img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

/* ==================== 链接悬停效果增强 ==================== */
a {
    transition: all 0.25s ease;
}

/* ==================== 选择器美化 ==================== */
::selection {
    background: rgba(30, 64, 175, 0.2);
    color: #1a1a1a;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ==================== 焦点样式统一 ==================== */
:focus-visible {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
    border-radius: 4px;
}
@media (min-width: 768px) {
    .shop-hide-desktop { display: none !important; }
}

/* Bootstrap overrides - 深蓝主题 */
.shop-page .btn-primary,
.shop-header .btn-primary,
.auth-page .btn-primary,
.auth-grand-page .btn-primary {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
}
.shop-page .btn-primary:hover,
.shop-header .btn-primary:hover,
.auth-page .btn-primary:hover,
.auth-grand-page .btn-primary:hover {
    background: linear-gradient(135deg, #1A357F, #1E40AF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.shop-page .btn-outline-primary,
.shop-header .btn-outline-primary,
.auth-grand-page .btn-outline-primary {
    color: #1E40AF;
    border-color: rgba(30, 64, 175, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.shop-page .btn-outline-primary:hover,
.shop-header .btn-outline-primary:hover,
.auth-grand-page .btn-outline-primary:hover {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    border-color: #1E40AF;
    color: #fff;
}
.shop-page .btn-outline-secondary,
.shop-header .btn-outline-secondary {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border-color: #e0e0e0;
    color: #666;
}
.shop-page .btn-outline-secondary:hover {
    border-color: #1E40AF;
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.04);
}
.shop-page .btn-dark,
.shop-header .btn-dark,
.auth-page .btn-dark {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.shop-page .btn-dark:hover,
.shop-header .btn-dark:hover,
.auth-page .btn-dark:hover {
    background: linear-gradient(135deg, #1A357F, #1E40AF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.shop-page .btn-outline-dark,
.shop-header .btn-outline-dark {
    border-radius: 0.5rem;
    border-color: rgba(30, 64, 175, 0.3);
    color: #1E40AF;
    font-weight: 500;
    transition: all 0.3s ease;
}
.shop-page .btn-outline-dark:hover,
.shop-header .btn-outline-dark:hover {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    border-color: #1E40AF;
    color: #fff;
}
.shop-page .btn-success {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    border: none;
    border-radius: 0.5rem;
}
.shop-page .btn-link.text-muted:hover { color: #1E40AF !important; }
.shop-page .form-control,
.shop-page .form-select,
.shop-header .form-control,
.auth-page .form-control,
.auth-grand-page .form-control {
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    transition: all 0.25s ease;
}
.shop-page .form-control:focus,
.shop-page .form-select:focus,
.shop-header .form-control:focus,
.auth-page .form-control:focus,
.auth-grand-page .form-control:focus {
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.shop-page .form-label {
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
}
.shop-page .table { font-size: 0.875rem; }
.shop-page .table-light {
    --bs-table-bg: #f8faf9;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}
.shop-page .list-group-item {
    border-color: #f0f0f0;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.shop-page .list-group-item:hover {
    background: rgba(30, 64, 175, 0.03);
}
.shop-page .text-primary { color: #1E40AF !important; }
.shop-page .text-success { color: #1E40AF !important; }
.shop-page .text-danger { color: #dc3545 !important; }

/* 页面通用过渡动画 */
.shop-page { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin */
.admin-wrapper { min-height: 100vh; background: #eef1f6; }
.admin-sidebar { width: 220px; background: #1e293b; color: #cbd5e1; min-height: 100vh; }
.admin-sidebar a { color: #cbd5e1; text-decoration: none; display: block; padding: .65rem 1rem; font-size: .9rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { flex: 1; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: .75rem 1.25rem; }

/* ==================== 现代头部样式 ==================== */
.modern-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1) !important;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
    transition: all 0.3s ease;
}

.header-notice-bar {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.08), rgba(59, 130, 246, 0.05));
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
    font-size: 0.78rem;
    color: #1E40AF;
}
.header-notice-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0;
    min-height: 2rem;
}
.header-notice-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: #1E40AF;
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

.shop-header-bar { padding-top: 0.5rem; padding-bottom: 0.5rem; }

@media (min-width: 992px) {
    .shop-header-bar > .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) minmax(0, 1fr);
        align-items: center;
        column-gap: 1.25rem;
    }
    .shop-header-bar .navbar-brand {
        grid-column: 1;
        justify-self: start;
        margin-right: 0;
    }
    .shop-header-bar .shop-search-desktop {
        grid-column: 2;
        width: 100%;
        max-width: 520px;
        justify-self: center;
        margin: 0 auto;
    }
    .shop-header-bar .navbar-collapse {
        grid-column: 3;
        justify-self: end;
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
    }
    .shop-header-bar .navbar-collapse .header-actions {
        margin-left: 0;
    }
}

.shop-brand-modern {
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: #1E40AF !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.shop-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.shop-brand-modern:hover {
    color: #3B6FD4 !important;
    transform: scale(1.02);
}

.brand-text {
    background: linear-gradient(135deg, #1E40AF, #6FA1F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 搜索栏现代化 */
.shop-search-modern {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.shop-search-modern i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 0.875rem;
    z-index: 10;
}

.shop-search-modern input {
    padding-left: 2.5rem;
    padding-right: 1rem;
    border-radius: 2rem;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.shop-search-modern input:focus {
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background: #fff;
}

/* 购物车按钮现代化 */
.btn-cart-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 2rem;
    background: transparent;
    color: #333;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-cart-modern:hover {
    border-color: #1E40AF;
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.04);
}

.cart-badge-modern {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #1E40AF, #6FA1F0);
    color: #fff;
    font-size: 0.65rem;
    min-width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-weight: 600;
    padding: 0 0.25rem;
}

/* 用户按钮现代化 */
.btn-user-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 2rem;
    background: transparent;
    color: #333;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-user-modern:hover {
    border-color: #1E40AF;
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.04);
}

.btn-login-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 2rem;
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login-modern:hover {
    background: linear-gradient(135deg, #1A357F, #1E40AF);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* 用户下拉菜单现代化 */
.user-dropdown-modern {
    border: 1px solid rgba(30, 64, 175, 0.15);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    min-width: 200px;
}

.user-dropdown-modern .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.user-dropdown-modern .dropdown-item:hover {
    background: rgba(30, 64, 175, 0.08);
    color: #1E40AF;
}

.user-dropdown-modern .dropdown-divider {
    border-color: #f0f0f0;
    margin: 0.5rem 0;
}

/* 导航链接现代化 */
.nav-link-modern {
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.nav-link-modern:hover {
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.06);
}

.nav-link-modern.active {
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.1);
    font-weight: 600;
}

.nav-link-badge {
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 2rem;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    background: #EA580C;
    color: #fff;
}

.shop-subnav-list {
    flex-wrap: wrap;
    gap: 0.15rem;
    padding: 0.35rem 0;
}

.header-actions { margin-left: auto; }

.navbar-nav.d-lg-none .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    color: #444;
    font-size: 0.9rem;
}
.navbar-nav.d-lg-none .nav-link:hover,
.navbar-nav.d-lg-none .nav-link.active {
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.06);
}

/* 子导航现代化 */
.shop-subnav-modern {
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* 导航分类下拉 */
.nav-category-dropdown .dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: 0.15em;
}
.category-dropdown-modern {
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.12);
    padding: 0.5rem;
    min-width: 220px;
    max-height: 420px;
    overflow-y: auto;
}
.category-dropdown-modern .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.55rem 0.875rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}
.category-dropdown-modern .dropdown-item:hover,
.category-dropdown-modern .dropdown-item.active {
    background: rgba(30, 64, 175, 0.08);
    color: #1E40AF;
}
.category-dropdown-modern .dropdown-item.active {
    font-weight: 600;
}
.category-dropdown-modern .dropdown-divider,
.nav-cat-divider {
    margin: 0.35rem 0;
    border-color: #f0f0f0;
    height: 0;
    border-top: 1px solid #f0f0f0;
    list-style: none;
}
.nav-category-mobile .nav-cat-divider {
    margin: 0.35rem 0.75rem;
}
.nav-cat-indent {
    display: inline-block;
    width: 1rem;
}
.nav-category-mobile {
    padding: 0.25rem 0 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 2px solid rgba(30, 64, 175, 0.12);
}
.nav-category-mobile .nav-link-sub {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.875rem;
    color: #666;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
}
.nav-category-mobile .nav-link-sub:hover,
.nav-category-mobile .nav-link-sub.active {
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.06);
}
.nav-category-mobile .nav-link-sub.active {
    font-weight: 600;
}
.nav-item > .nav-link[data-bs-toggle="collapse"] {
    display: flex;
    align-items: center;
}
.nav-cat-chevron {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}
.nav-link[aria-expanded="true"] .nav-cat-chevron {
    transform: rotate(180deg);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    font-size: 1.5rem;
    color: #333;
    padding: 0.25rem;
}

.mobile-menu-btn:hover {
    color: #1E40AF;
}

.modern-header.scrolled {
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.12);
}

/* ==================== 页脚上方：新闻 + 友情链接 ==================== */
.footer-pre {
    position: relative;
    border-top: 1px solid var(--shop-border-light);
}

.footer-pre-news {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 2.5rem 0 2rem;
}

.footer-pre-links {
    background: #f1f5f9;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
}

.footer-pre-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-pre-head-compact {
    margin-bottom: 1rem;
}

.footer-pre-head-main {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-pre-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    background: rgba(30, 64, 175, 0.08);
    color: #1E40AF;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.footer-pre-badge-muted {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.footer-pre-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.footer-pre-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E40AF;
    text-decoration: none;
    white-space: nowrap;
}

.footer-pre-more:hover {
    color: #1A357F;
    text-decoration: underline;
}

.footer-pre-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.footer-pre-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(30, 64, 175, 0.08);
    border-radius: 0.875rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-pre-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.1);
    border-color: rgba(30, 64, 175, 0.18);
}

.footer-pre-news-cover {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.footer-pre-news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.footer-pre-news-card:hover .footer-pre-news-cover img {
    transform: scale(1.04);
}

.footer-pre-news-body {
    padding: 0.875rem 1rem 1rem;
}

.footer-pre-news-title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.footer-pre-news-card:hover .footer-pre-news-title {
    color: #1E40AF;
}

.footer-pre-news-body time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.footer-pre-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.footer-pre-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 2rem;
    background: #fff;
    border: 1px solid rgba(30, 64, 175, 0.1);
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-pre-link-item:hover {
    color: #1E40AF;
    border-color: rgba(30, 64, 175, 0.25);
    background: rgba(30, 64, 175, 0.04);
    transform: translateY(-1px);
}

.footer-pre-link-logo {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    border-radius: 0.25rem;
}

@media (max-width: 991.98px) {
    .footer-pre-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .footer-pre-news {
        padding: 2rem 0 1.5rem;
    }

    .footer-pre-links {
        padding: 1.25rem 0;
    }

    .footer-pre-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-pre-news-grid {
        grid-template-columns: 1fr;
    }

    .footer-pre-title {
        font-size: 1.2rem;
    }
}

.no-aspect-ratio .footer-pre-news-cover {
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.no-aspect-ratio .footer-pre-news-cover img {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* 文章内友情链接 */
.article-friend-links {
    margin: 0 2rem 1.5rem;
    padding: 1.25rem 1.25rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(30, 64, 175, 0.08);
}

.article-friend-links-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
}

.article-friend-links-title i {
    color: #1E40AF;
}

.article-friend-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.news-article .article-friend-links {
    margin-top: 0.5rem;
}

.help-article-card .article-friend-links {
    margin: 0 0 1.25rem;
}

@media (max-width: 992px) {
    .article-friend-links {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .article-friend-links {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1rem;
    }
}

/* ==================== 大气页脚 shop-footer-grand ==================== */
.shop-footer-grand {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 42%, #1E40AF 100%);
    border-top: none;
    overflow: visible;
}
.shop-footer-grand .footer-brand-logo,
.shop-footer-grand .footer-brand-name,
.shop-footer-grand .footer-col-title,
.shop-footer-grand .footer-col-links a,
.shop-footer-grand .footer-contact-list,
.shop-footer-grand .footer-bar-inner {
    color: inherit;
}
.footer-grand-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59, 130, 246, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.footer-grand-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90vw);
    height: 240px;
    z-index: 0;
    background: radial-gradient(ellipse, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.footer-grand-stats {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}
.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.75rem 0;
}
.footer-stat-item {
    text-align: center;
    padding: 0.5rem;
}
.footer-stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.footer-stat-num i { font-size: 1.5rem; color: #6EE7B7; }
.footer-stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
}
.footer-stat-highlight .footer-stat-num { font-size: 1.25rem; }
.footer-grand-body {
    position: relative;
    z-index: 1;
    padding: 3rem 0 2.5rem;
}
.footer-grand-brand { padding-right: 1rem; }
.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-brand-logo:hover { color: #fff; opacity: 0.92; }
.footer-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.footer-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
    max-width: 360px;
}
.footer-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}
.footer-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}
.footer-service-tag i { color: #93C5FD; font-size: 0.8rem; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: background 0.25s, transform 0.25s;
}
.footer-social-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}
.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.1rem;
    letter-spacing: 0.04em;
}
.footer-col-title-sm { margin-top: 1.5rem; margin-bottom: 0.85rem; font-size: 0.88rem; }
.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col-links li { margin-bottom: 0.55rem; }
.footer-col-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s, transform 0.2s;
}
.footer-col-links a:hover {
    color: #fff;
    transform: translateX(3px);
}
.footer-col-links a i { font-size: 0.78rem; opacity: 0.7; }
.footer-more-link { color: #93C5FD !important; font-weight: 600; }
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}
.footer-contact-list i {
    color: #60A5FA;
    font-size: 0.95rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.footer-contact-list a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-contact-list a:hover { color: #fff; text-decoration: underline; }
.footer-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-news-list li { margin-bottom: 0.5rem; }
.footer-news-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: padding-left 0.2s;
}
.footer-news-list a:hover { padding-left: 0.35rem; }
.footer-news-title {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.footer-news-list a:hover .footer-news-title { color: #fff; }
.footer-news-list time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}
.footer-grand-bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.footer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 1.15rem 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}
.footer-bar-left, .footer-bar-center, .footer-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.footer-bar-sep { opacity: 0.4; }
.footer-bar-center a, .footer-bar-right a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.footer-bar-center a:hover, .footer-bar-right a:hover { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 991.98px) {
    .footer-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grand-body { padding: 2.25rem 0 2rem; }
    .footer-grand-main > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 575.98px) {
    .footer-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1.25rem 0; }
    .footer-stat-num { font-size: 1.35rem; }
    .footer-bar-inner { flex-direction: column; text-align: center; gap: 0.35rem; }
    .footer-bar-left, .footer-bar-center, .footer-bar-right { justify-content: center; width: 100%; }
}

/* ==================== 现代页脚样式（旧版兼容） ==================== */
.modern-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-top: 1px solid rgba(30, 64, 175, 0.1);
    margin-top: auto;
    padding: 2rem 0 1.5rem;
}

.footer-inner-modern {
    text-align: center;
}

/* 链接区域 */
.footer-links-modern {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links-modern a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.footer-links-modern a:hover {
    color: #1E40AF;
    background: rgba(30, 64, 175, 0.06);
    transform: translateY(-2px);
}

/* 分隔线 */
.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1E40AF, #6FA1F0);
    margin: 0 auto 1.5rem;
    border-radius: 1px;
}

/* 底部信息 */
.footer-bottom {
    color: #888;
    font-size: 0.8125rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1E40AF;
}

.brand-icon {
    font-size: 1.125rem;
}

.footer-copyright {
    color: #999;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.copyright-year {
    color: #1E40AF;
    font-weight: 600;
}

/* ==================== 现代Flash消息样式 ==================== */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.4s ease;
    transition: all 0.3s ease;
}

.alert-modern.show {
    opacity: 1;
    transform: translateY(0);
}

.alert-modern.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.alert-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

/* 成功消息 */
.alert-success-modern {
    background: rgba(30, 64, 175, 0.08);
    border-color: rgba(30, 64, 175, 0.2);
    color: #1E40AF;
}

.alert-success-modern .alert-icon {
    color: #1E40AF;
}

.alert-success-modern .alert-close {
    color: #1E40AF;
}

/* 错误消息 */
.alert-error-modern {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.alert-error-modern .alert-icon {
    color: #dc3545;
}

.alert-error-modern .alert-close {
    color: #dc3545;
}

/* 警告消息 */
.alert-warning-modern {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.alert-warning-modern .alert-icon {
    color: #ffc107;
}

.alert-warning-modern .alert-close {
    color: #ffc107;
}

/* 信息消息 */
.alert-info-modern {
    background: rgba(13, 202, 240, 0.08);
    border-color: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
}

.alert-info-modern .alert-icon {
    color: #0dcaf0;
}

.alert-info-modern .alert-close {
    color: #0dcaf0;
}

/* 入场动画 */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 现代移动导航样式 ==================== */
.modern-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(30, 64, 175, 0.1);
    z-index: 1030;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.modern-mobile-nav a {
    flex: 1;
    text-align: center;
    color: #999;
    text-decoration: none;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.modern-mobile-nav a.active {
    color: #1E40AF;
    font-weight: 600;
}

.modern-mobile-nav a i {
    display: block;
    font-size: 1.375rem;
    margin-bottom: 0.125rem;
    transition: all 0.3s ease;
}

.modern-mobile-nav a.active i {
    transform: scale(1.1);
}

.modern-mobile-nav a span {
    font-size: 0.625rem;
}

/* 激活指示器 */
.nav-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF, #6FA1F0);
    border-radius: 0 0 2px 2px;
    animation: indicatorSlide 0.3s ease;
}

@keyframes indicatorSlide {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 20px;
        opacity: 1;
    }
}

/* 购物车角标 */
.bar-badge-modern {
    position: absolute;
    top: 0.25rem;
    left: 55%;
    font-size: 0.5625rem;
    background: linear-gradient(135deg, #1E40AF, #6FA1F0);
    color: #fff;
    border-radius: 999px;
    min-width: 1rem;
    height: 1rem;
    line-height: 1rem;
    padding: 0 0.25rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ==================== 现代产品卡片样式 ==================== */
.product-card-modern {
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.12);
    border-color: rgba(30, 64, 175, 0.25);
}

/* 图片容器 */
.product-card-img-wrap-modern {
    position: relative;
    aspect-ratio: 1;
    background: #f7f7f7;
    overflow: hidden;
}

.product-card-img-wrap-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-modern:hover .product-card-img-wrap-modern img {
    transform: scale(1.05);
}

/* 状态标签 */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    letter-spacing: 0.02em;
    z-index: 10;
}

.badge-soldout-modern {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    backdrop-filter: blur(10px);
}

.badge-recommend-modern {
    background: linear-gradient(135deg, #1E40AF, #6FA1F0);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* 快速查看按钮 */
.product-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1E40AF;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-card-modern:hover .product-quick-view {
    transform: translateY(0);
}

/* 产品信息 */
.product-card-body-modern {
    padding: 1rem 1.25rem 1.25rem;
}

.product-card-title-modern {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 2.6em;
    transition: color 0.25s ease;
}

.product-card-modern:hover .product-card-title-modern {
    color: #1E40AF;
}

/* 价格 */
.product-price-modern {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}

.price-symbol {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1E40AF;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1E40AF;
    letter-spacing: -0.02em;
}

.badge-low-stock {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.stock-dot-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background: #1E40AF;
    box-shadow: 0 0 4px rgba(30, 64, 175, 0.4);
}

.dot-orange {
    background: #e67e22;
    box-shadow: 0 0 4px rgba(230, 126, 34, 0.4);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stock-dot-text {
    font-size: 0.7rem;
    color: #999;
}

/* ==================== 现代空状态样式 ==================== */
.empty-state-modern {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #888;
}

/* 图标容器 */
.empty-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(30, 64, 175, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconFloat 3s ease-in-out infinite;
}

.empty-icon {
    font-size: 2.5rem;
    color: #1E40AF;
    opacity: 0.6;
    display: block;
}

/* 消息文本 */
.empty-message {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 操作按钮 */
.btn-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border: 1px solid #1E40AF;
    border-radius: 2rem;
    background: transparent;
    color: #1E40AF;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-empty-action:hover {
    background: linear-gradient(135deg, #1E40AF, #3B6FD4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* 图标浮动动画 */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .modern-header {
        padding: 0.5rem 0;
    }
    
    .shop-brand-modern {
        font-size: 1.125rem;
    }
    
    .modern-mobile-nav {
        display: flex;
    }
    
    .product-card-modern {
        border-radius: 8px;
    }
    
    .product-card-body-modern {
        padding: 0.875rem 1rem 1rem;
    }
    
    .product-card-title-modern {
        font-size: 0.8125rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
    
    .empty-state-modern {
        padding: 3rem 1rem;
    }
    
    .empty-icon-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 1.25rem;
    }
    
    .empty-icon {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .shop-hide-desktop {
        display: none !important;
    }
}

/* ==================== 首页专属样式 ==================== */
.home-page .shop-container {
    max-width: 1200px;
}

/* 首页轮播 */
.home-carousel {
    border-radius: var(--shop-radius-xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 16px 48px rgba(30, 64, 175, 0.18);
    border: 1px solid rgba(30, 64, 175, 0.08);
}
.home-carousel .carousel-item {
    position: relative;
    min-height: 320px;
    aspect-ratio: 21 / 8;
    background: linear-gradient(135deg, #152C75 0%, #1E40AF 45%, #6FA1F0 100%);
}
.home-carousel-item--gradient {
    background: linear-gradient(135deg, #152C75 0%, #1E40AF 45%, #3B6FD4 70%, #6FA1F0 100%);
}
.home-carousel-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-carousel-item--visual .home-carousel-img {
    object-fit: cover;
    object-position: center;
}
.home-carousel-visual-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}
.home-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.home-carousel-caption {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 2.5rem 3rem;
    max-width: 560px;
    margin: 0;
}
.home-carousel-tag {
    display: inline-flex;
    padding: 0.35rem 1rem;
    margin-bottom: 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}
.home-carousel-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
}
.home-carousel-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
}
.home-carousel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1E40AF;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.home-carousel-btn:hover {
    color: #152C75;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.home-carousel-indicators {
    margin-bottom: 1.25rem;
    gap: 0.35rem;
}
.home-carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: all 0.3s ease;
}
.home-carousel-indicators .active {
    width: 40px;
    background: #fff;
}
.home-carousel-control {
    width: 8%;
    opacity: 1;
}
.home-carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}
.home-carousel-control:hover .home-carousel-control-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/* 服务承诺条 */
.home-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: var(--shop-radius-xl);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.06);
}
.home-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--shop-text-secondary);
}
.home-trust-item i {
    font-size: 1.125rem;
    color: var(--brand-primary);
}

/* 首页版块 */
.home-section-head {
    align-items: flex-end;
    margin-bottom: 1.75rem;
}
.home-section-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.home-section-eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}
.home-section-promo {
    padding: 2rem;
    background: linear-gradient(180deg, #fffbf5, #fff);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: var(--shop-radius-xl);
}
.home-review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.1);
}

@media (max-width: 767.98px) {
    .home-carousel .carousel-item {
        min-height: 240px;
        aspect-ratio: 16 / 10;
    }
    .home-carousel-caption {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
    }
    .home-carousel-title {
        font-size: 1.35rem;
    }
    .home-carousel-desc {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    .home-carousel-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8125rem;
    }
    .home-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.875rem;
    }
    .home-trust-item {
        font-size: 0.75rem;
    }
    .home-section-promo {
        padding: 1.25rem;
    }
    .home-section-head h2 {
        font-size: 1.25rem;
    }
}

/* 无边框版块头部 */
.section-head--plain {
    border: 0;
    padding: 0;
    margin-bottom: 1rem;
}

/* ==================== 商品列表页专属样式 ==================== */
/* 筛选面板 */
.filter-panel {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-xl);
    border: 1px solid var(--shop-border);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.filter-panel-body {
    padding: 1.5rem;
}


/* ==================== 购物车页专属样式 ==================== */
/* 购物车图片 */
.cart-item-img {
    object-fit: cover;
    border: 1px solid var(--shop-border-light);
}

/* 数量输入框 */
.cart-qty-input {
    width: 60px;
}

.cart-qty-input-mobile {
    width: 64px;
}

/* 订单摘要 */
.cart-summary-sticky {
    position: sticky;
    top: 88px;
}

.cart-summary-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.cart-summary-total-price {
    font-size: 1.25rem;
}

/* 营销页：优惠券 / 限时优惠 / 拼团 */
.mkt-page { padding-bottom: 3rem; }
.mkt-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
    padding: 1.75rem 1.5rem; margin-bottom: 1.75rem; border-radius: var(--shop-radius-xl); color: #fff;
}
.mkt-hero-coupon { background: linear-gradient(135deg, #1E40AF, #3B82F6); }
.mkt-hero-promo { background: linear-gradient(135deg, #EA580C, #FB923C); }
.mkt-hero-group { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.mkt-hero-body { flex: 1; min-width: 200px; }
.mkt-hero-tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0.9; margin-bottom: 0.35rem; }
.mkt-hero h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.25rem; }
.mkt-hero p { margin: 0; opacity: 0.9; font-size: 0.95rem; }
.mkt-hero-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mkt-hero-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border-radius: 2rem; background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; font-size: 0.82rem; }
.mkt-hero-link:hover { background: rgba(255,255,255,0.28); color: #fff; }
.mkt-hero-countdown { text-align: center; padding: 0.75rem 1rem; background: rgba(0,0,0,0.15); border-radius: 0.75rem; }
.mkt-countdown-label { display: block; font-size: 0.75rem; opacity: 0.85; }
.mkt-countdown-time { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mkt-hero-steps { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.82rem; opacity: 0.95; }
.mkt-hero-steps span { display: inline-flex; align-items: center; gap: 0.25rem; }
.mkt-empty { text-align: center; padding: 3rem 1.5rem; }
.mkt-empty i { font-size: 2.5rem; color: var(--shop-text-muted); margin-bottom: 0.75rem; display: block; }
.mkt-empty h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.mkt-empty p { color: var(--shop-text-secondary); margin-bottom: 1rem; }
.mkt-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mkt-hub-card { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; border-radius: var(--shop-radius-lg); text-decoration: none; color: inherit; border: 1px solid var(--shop-border); background: #fff; transition: transform 0.2s, box-shadow 0.2s; }
.mkt-hub-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,64,175,0.1); color: inherit; }
.mkt-hub-icon { width: 44px; height: 44px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.mkt-hub-coupon .mkt-hub-icon { background: rgba(30,64,175,0.1); color: #1E40AF; }
.mkt-hub-promo .mkt-hub-icon { background: rgba(234,88,12,0.1); color: #EA580C; }
.mkt-hub-group .mkt-hub-icon { background: rgba(124,58,237,0.1); color: #7C3AED; }
.mkt-hub-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.1rem; }
.mkt-hub-card p { font-size: 0.78rem; color: var(--shop-text-secondary); margin: 0; }
.mkt-hub-arrow { margin-left: auto; color: var(--shop-text-muted); }
/* ==================== 领券中心页面样式 ==================== */
.mkt-hero-coupon .mkt-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,64,175,0.06) 0%, rgba(59,130,246,0.04) 50%, rgba(96,165,250,0.06) 100%);
}
.mkt-hero-coupon .mkt-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,64,175,0.12), rgba(59,130,246,0.06));
    color: var(--shop-primary);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.mkt-hero-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--shop-radius-md);
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(30,64,175,0.1);
    color: var(--shop-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}
.mkt-hero-link:hover {
    background: rgba(30,64,175,0.06);
    border-color: rgba(30,64,175,0.2);
    transform: translateY(-2px);
}
.mkt-hero-link i {
    font-size: 1.25rem;
    color: var(--shop-primary);
}

/* 统计数据 */
.mkt-coupon-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--shop-radius-lg);
    border: 1px solid var(--shop-border);
    box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
.mkt-coupon-stat {
    text-align: center;
}
.mkt-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--shop-primary);
    line-height: 1;
}
.mkt-stat-label {
    font-size: 0.82rem;
    color: var(--shop-text-secondary);
    margin-top: 0.35rem;
}

/* 优惠券网格 */
.mkt-coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

/* 优惠券卡片 */
.mkt-coupon-card {
    position: relative;
    display: flex;
    min-height: 180px;
    background: #fff;
    border-radius: var(--shop-radius-xl);
    border: 1px solid var(--shop-border);
    box-shadow: 0 4px 20px rgba(15,23,42,0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mkt-coupon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(30,64,175,0.14);
    border-color: rgba(30,64,175,0.2);
}
.mkt-coupon-card.is-claimed {
    opacity: 0.9;
}

/* 左侧面额区 */
.mkt-coupon-left {
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(150deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
}
.mkt-coupon-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,0.22), transparent 48%),
        radial-gradient(circle at 85% 90%, rgba(255,255,255,0.16), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 60%);
    pointer-events: none;
}
.mkt-coupon-left::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 0;
    bottom: 0;
    width: 14px;
    background: radial-gradient(circle at 0 8px, transparent 6px, #fff 6px) repeat-y;
    background-size: 14px 16px;
}
.mkt-coupon-currency {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1;
}
.mkt-coupon-value {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.mkt-coupon-type {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.6rem;
    border-radius: 2rem;
    background: rgba(255,255,255,0.22);
}
.mkt-coupon-discount {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* 右侧内容区 */
.mkt-coupon-right {
    flex: 1;
    padding: 1.25rem 1.35rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.mkt-coupon-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.mkt-coupon-right h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}
.mkt-coupon-badge {
    font-size: 0.75rem;
    color: #f59e0b;
}
.mkt-coupon-rule {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.mkt-coupon-rule i {
    font-size: 0.75rem;
}
.mkt-coupon-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(135deg, rgba(30,64,175,0.04), rgba(59,130,246,0.02));
    border-radius: var(--shop-radius-md);
    border: 1px dashed rgba(30,64,175,0.15);
    margin-bottom: 0.5rem;
}
.mkt-coupon-code i {
    font-size: 0.75rem;
    color: var(--shop-text-muted);
}
.mkt-coupon-code code {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--shop-primary);
    letter-spacing: 0.04em;
    font-family: 'Courier New', monospace;
    background: none;
    padding: 0;
    border-radius: 0;
}
.mkt-copy-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--shop-border);
    background: #fff;
    color: var(--shop-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.mkt-copy-btn:hover {
    background: var(--shop-primary);
    color: #fff;
    border-color: var(--shop-primary);
}
.mkt-coupon-expire {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    color: var(--shop-text-muted);
    margin-bottom: 0.5rem;
}
.mkt-coupon-expire i {
    font-size: 0.7rem;
}
.mkt-coupon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

/* 已领取印章 */
.mkt-coupon-stamp {
    position: absolute;
    top: -10px;
    right: -50px;
    transform: rotate(35deg);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 3rem;
    box-shadow: 0 3px 10px rgba(16,185,129,0.35);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.mkt-coupon-stamp i {
    font-size: 0.8rem;
}

/* 按钮样式 */
.mkt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: var(--shop-radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}
.mkt-btn-primary {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30,64,175,0.3);
}
.mkt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.4);
}
.mkt-btn-claimed {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(5,150,105,0.08));
    color: #059669;
    border: 1px solid rgba(16,185,129,0.2);
}

/* 空状态 */
.mkt-empty {
    text-align: center;
    padding: 4rem 2rem;
}
.mkt-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,64,175,0.08), rgba(59,130,246,0.04));
    color: var(--shop-primary);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Toast 提示 */
.mkt-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15,23,42,0.9);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--shop-radius-lg);
    box-shadow: 0 4px 20px rgba(15,23,42,0.3);
    z-index: 9999;
    animation: mktToastIn 0.3s ease;
}
.mkt-toast i {
    color: #10b981;
}
@keyframes mktToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mkt-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.mkt-promo-grid-home { grid-template-columns: repeat(4, 1fr); }
.mkt-promo-card { display: block; background: #fff; border-radius: var(--shop-radius-lg); overflow: hidden; border: 1px solid rgba(234,88,12,0.12); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.mkt-promo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(234,88,12,0.12); color: inherit; }
.mkt-promo-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #f9fafb; }
.mkt-promo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mkt-promo-card:hover .mkt-promo-img img { transform: scale(1.05); }
.mkt-promo-badge { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.2rem 0.5rem; border-radius: 2rem; background: #EA580C; color: #fff; font-size: 0.72rem; font-weight: 700; }
.mkt-promo-body { padding: 0.85rem; }
.mkt-promo-body h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.mkt-promo-price { display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 0.5rem; }
.mkt-price-now { font-size: 1.15rem; font-weight: 800; color: #EA580C; }
.mkt-promo-price del { font-size: 0.78rem; color: var(--shop-text-muted); }
.mkt-progress-wrap { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.mkt-progress { flex: 1; height: 6px; background: #fee2e2; border-radius: 3px; overflow: hidden; }
.mkt-progress-bar { height: 100%; background: linear-gradient(90deg, #FB923C, #EA580C); border-radius: 3px; }
.mkt-progress-text { font-size: 0.7rem; color: #EA580C; white-space: nowrap; }
.mkt-card-countdown { font-size: 0.75rem; color: #EA580C; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-section-group { padding: 2rem; background: linear-gradient(180deg, #faf5ff, #fff); border: 1px solid rgba(124,58,237,0.1); border-radius: var(--shop-radius-xl); }
.mkt-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.mkt-group-grid-home { grid-template-columns: repeat(4, 1fr); }
.mkt-group-card { display: block; background: #fff; border-radius: var(--shop-radius-lg); overflow: hidden; border: 1px solid rgba(124,58,237,0.12); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.mkt-group-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(124,58,237,0.12); color: inherit; }
.mkt-group-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f9fafb; }
.mkt-group-img img { width: 100%; height: 100%; object-fit: cover; }
.mkt-group-badge { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.2rem 0.55rem; border-radius: 2rem; background: #7C3AED; color: #fff; font-size: 0.72rem; font-weight: 700; }
.mkt-group-body { padding: 0.85rem; }
.mkt-group-body h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.45rem; }
.mkt-group-price { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.45rem; }
.mkt-group-price .mkt-price-now { color: #7C3AED; }
.mkt-save-tag { font-size: 0.68rem; padding: 0.1rem 0.4rem; border-radius: 2rem; background: rgba(124,58,237,0.1); color: #7C3AED; font-weight: 600; }
.mkt-group-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--shop-text-secondary); margin-bottom: 0.5rem; }
.mkt-group-avatars { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.65rem; }
.mkt-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed #d1d5db; display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem; color: #9ca3af; background: #f9fafb; }
.mkt-avatar.is-filled { border-style: solid; border-color: #7C3AED; background: rgba(124,58,237,0.1); color: #7C3AED; }
.mkt-group-tip { font-size: 0.72rem; color: #7C3AED; margin-left: 0.35rem; }
.mkt-group-cta { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.82rem; font-weight: 700; color: #7C3AED; }
@media (max-width: 1199.98px) { .mkt-promo-grid-home, .mkt-group-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) {
    .mkt-hub-grid { grid-template-columns: 1fr; }
    .mkt-promo-grid-home, .mkt-group-grid-home, .mkt-promo-grid, .mkt-group-grid { grid-template-columns: repeat(2, 1fr); }
    .mkt-coupon-grid { grid-template-columns: 1fr; }
    .mkt-hero h1 { font-size: 1.35rem; }
    .home-section-promo, .home-section-group { padding: 1.25rem; }
}
@media (max-width: 575.98px) {
    .mkt-promo-grid-home, .mkt-group-grid-home, .mkt-promo-grid, .mkt-group-grid { grid-template-columns: 1fr; }
}

/* ==================== 商品详情页模板样式（从 product.php 内联提取） ==================== */
.pd-page {
    position: relative;
    padding: 1.5rem 0 3rem;
}
.pd-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(42% 36% at 10% 6%, rgba(30, 64, 175, 0.10), transparent 70%),
        radial-gradient(38% 32% at 90% 10%, rgba(59, 111, 212, 0.10), transparent 70%),
        radial-gradient(46% 40% at 78% 92%, rgba(30, 64, 175, 0.06), transparent 70%);
}
.pd-page > .container { position: relative; z-index: 1; }
.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--shop-text-muted);
    margin-bottom: 1.25rem;
}
.pd-breadcrumb a { color: var(--shop-text-secondary); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--brand-primary); }
.pd-bc-sep { opacity: 0.45; }
.pd-bc-current { color: var(--shop-text); font-weight: 500; }
.pd-hero { margin-bottom: 2rem; }
.pd-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--pd-type-color, #1E40AF) 12%, transparent);
    color: var(--pd-type-color, #1E40AF);
}
.pd-rating-link {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.pd-rating-link:hover { color: #f39c12; }
.pd-marketing-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.pd-marketing-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pd-marketing-chip:hover { transform: translateY(-1px); color: inherit; }
.pd-marketing-promo { background: rgba(234, 88, 12, 0.1); color: #EA580C; }
.pd-marketing-group { background: rgba(124, 58, 237, 0.1); color: #7C3AED; }
.pd-marketing-coupon { background: rgba(30, 64, 175, 0.08); color: #1E40AF; }
.pd-marketing-save {
    padding: 0.1rem 0.4rem;
    border-radius: 2rem;
    background: rgba(124, 58, 237, 0.15);
    font-size: 0.68rem;
}
.pd-marketing-countdown { font-variant-numeric: tabular-nums; opacity: 0.9; }
.pd-cart-form { flex: 1; margin: 0; }
.pd-cart-form .pd-btn { width: 100%; }
.pd-review-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pd-review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; }
.pd-review-user { display: flex; align-items: center; gap: 0.65rem; }
.pd-rating-big { text-align: center; }
.pd-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.pd-related-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--shop-text-muted);
    margin-bottom: 0.25rem;
}
.pd-related-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.pd-related-more {
    font-size: 0.85rem;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
}
.pd-related-more:hover { color: var(--brand-primary); }
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.pd-lightbox.active { opacity: 1; visibility: visible; }
.pd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}
.pd-lightbox-body {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 900px);
    max-height: 90vh;
}
.pd-lightbox-body img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}
.pd-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}
.pd-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
.pd-mobile-bar { transform: translateY(100%); transition: transform 0.3s ease; }
.pd-mobile-bar.visible { transform: translateY(0); }
.pd-stock-line.stock-high { color: var(--brand-primary); }
.pd-gallery-wrap { position: relative; }
.pd-gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}
.pd-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.pd-gallery-img.is-active {
    opacity: 1;
    pointer-events: auto;
}
.pd-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}
.pd-gallery-nav:hover { transform: translateY(-50%) scale(1.05); }
.pd-gallery-prev { left: 0.75rem; }
.pd-gallery-next { right: 0.75rem; }
.pd-gallery-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.72rem;
    z-index: 3;
}
.pd-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.pd-gallery-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pd-gallery-thumb:hover {
    border-color: var(--brand-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,64,175,0.15);
}
.pd-gallery-thumb.active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(30,64,175,0.15);
}
.pd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-group-panel {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(124,58,237,0.03));
    border: 1px solid rgba(124,58,237,0.15);
}
.pd-group-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.pd-group-panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #7C3AED;
    margin-bottom: 0.25rem;
}
.pd-group-panel-price strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #7C3AED;
}
.pd-group-panel-save {
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 2rem;
    background: rgba(124,58,237,0.12);
    color: #7C3AED;
    font-size: 0.68rem;
    font-weight: 600;
}
.pd-group-panel-meta { font-size: 0.75rem; color: var(--shop-text-secondary); white-space: nowrap; }
.pd-group-teams { margin-bottom: 0.85rem; }
.pd-group-teams-title { font-size: 0.78rem; font-weight: 600; color: #666; margin-bottom: 0.5rem; }
.pd-group-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px dashed rgba(124,58,237,0.15);
}
.pd-group-team-info { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pd-group-team-avatars { display: inline-flex; gap: 0.2rem; }
.pd-group-team-tip { font-size: 0.75rem; color: #7C3AED; }
.pd-group-team-tip b { font-weight: 800; }
.pd-group-actions { display: flex; flex-direction: column; gap: 0.45rem; }
.pd-group-start-form, .pd-group-join-form { margin: 0; }
.pd-btn-group {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    color: #fff;
    border: none;
}
.pd-btn-group:hover { background: linear-gradient(135deg, #6D28D9, #7C3AED); color: #fff; transform: translateY(-1px); }
.pd-btn-group-outline {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid #7C3AED;
    background: #fff;
    color: #7C3AED;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.pd-btn-group-outline:hover { background: rgba(124,58,237,0.06); color: #7C3AED; }
.pd-group-action-tip { font-size: 0.72rem; color: var(--shop-text-muted); text-align: center; }
.pd-gallery {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border-light);
    box-shadow: 0 8px 30px rgba(30,64,175,0.10);
    cursor: zoom-in;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pd-gallery:hover { box-shadow: 0 14px 40px rgba(30,64,175,0.16); }
.pd-gallery .pd-gallery-stage { aspect-ratio: 1; }
.pd-gallery:hover .pd-gallery-img.is-active { transform: scale(1.03); }
.pd-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(8px);
}
.pd-badge-recommend { background: rgba(30, 64, 175, 0.85); color: #fff; }
.pd-badge-sale {
    background: rgba(231, 76, 60, 0.85);
    color: #fff;
    animation: pdPulse 2s ease-in-out infinite;
}
@keyframes pdPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.pd-soldout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.pd-soldout-inner { text-align: center; color: #999; }
.pd-soldout-inner i { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.pd-soldout-inner span { display: block; font-size: 1.25rem; font-weight: 700; color: #bbb; letter-spacing: 0.15em; }
.pd-soldout-inner small { font-size: 0.8rem; color: #999; }
.pd-zoom-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.7rem;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.pd-gallery:hover .pd-zoom-hint { opacity: 1; }
.pd-info {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.12);
    position: sticky;
    top: 96px;
}
.pd-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.pd-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(30, 64, 175, 0.08);
    color: var(--brand-primary);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pd-cat-tag:hover { background: rgba(30, 64, 175, 0.15); color: var(--brand-primary); }
.pd-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(59, 111, 212, 0.08));
    color: var(--brand-primary);
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.15);
}
.pd-brand-tag:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.15), rgba(59, 111, 212, 0.15));
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}
.pd-brand-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 2px; }
.pd-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #f39c12;
}
.pd-rating b { font-size: 0.95rem; }
.pd-rating span { color: var(--shop-muted); font-size: 0.75rem; }
.pd-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shop-text);
    line-height: 1.4;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}
.pd-price-panel {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f6f9ff);
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.06);
    overflow: hidden;
}
.pd-price-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-gradient);
}
.pd-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.pd-price-symbol { font-size: 1.1rem; font-weight: 600; color: #e74c3c; }
.pd-price-value { font-size: 2rem; font-weight: 800; color: #e74c3c; line-height: 1; }
.pd-price-original { font-size: 0.95rem; color: #bbb; text-decoration: line-through; }
.pd-discount-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    background: linear-gradient(135deg, #e74c3c, #ff6b35);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0.35rem;
}
.pd-stock-line { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--brand-primary); }
.pd-stock-line i { font-size: 0.85rem; }
.pd-stock-line.stock-mid { color: #3B6FD4; }
.pd-stock-line.stock-low { color: #e67e22; }
.pd-stock-line.stock-empty { color: #e74c3c; }
.pd-stock-num { margin-left: 0.5rem; color: var(--shop-muted); font-size: 0.75rem; }
.pd-stock-bar { width: 100%; height: 4px; background: #f0f0f0; border-radius: 2px; overflow: hidden; margin-top: 0.5rem; }
.pd-stock-bar-fill { height: 100%; background: linear-gradient(90deg, #e74c3c, #e67e22, var(--brand-primary)); border-radius: 2px; transition: width 0.5s ease; }
.pd-specs-section { margin: 1.5rem 0; padding: 1.25rem; background: #f9f9f9; border-radius: 0.75rem; }
.pd-spec-row { margin-bottom: 1.25rem; }
.pd-spec-row:last-child { margin-bottom: 0; }
.pd-spec-label { display: block; font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 0.75rem; }
.pd-spec-options { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pd-spec-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    background: var(--shop-surface);
    color: #333;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}
.pd-spec-btn:hover { border-color: var(--brand-primary); box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15); transform: translateY(-2px); }
.pd-spec-btn.active {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.pd-spec-btn img { width: 50px; height: 50px; object-fit: cover; border-radius: 0.5rem; border: 1px solid #eee; }
.pd-spec-btn.active img { border-color: rgba(255, 255, 255, 0.5); }
.pd-spec-btn span { font-size: 0.8rem; text-align: center; }
.pd-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}
.pd-qty-label { font-size: 0.85rem; font-weight: 500; color: #333; }
.pd-qty-control { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 0.5rem; overflow: hidden; }
.pd-qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.pd-qty-control input::-webkit-outer-spin-button,
.pd-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-qty-btn:hover { background: #e9ecef; }
.pd-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}
.pd-btn-primary { flex: 1; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)); color: #fff; }
.pd-btn-primary:hover { background: linear-gradient(135deg, #1A357F, var(--brand-primary)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(30, 64, 175, 0.35); color: #fff; }
.pd-btn-secondary { flex: 1; background: var(--shop-surface); color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.pd-btn-secondary:hover { background: rgba(30, 64, 175, 0.06); color: var(--brand-primary); }
.pd-btn-soldout { width: 100%; background: #f0f0f0; color: #999; cursor: not-allowed; }
.pd-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid #f5f5f5; }
.pd-trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: #888; }
.pd-trust-item i {
    color: var(--brand-primary);
    font-size: 0.85rem;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,64,175,0.08);
    border-radius: 50%;
}
.pd-content { background: var(--shop-surface); border-radius: 1.25rem; box-shadow: 0 2px 16px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 2.5rem; }
.pd-tabs { display: flex; border-bottom: 1px solid var(--shop-border-light); }
.pd-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
    position: relative;
}
.pd-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.pd-tab.active { color: var(--brand-primary); font-weight: 600; }
.pd-tab.active::after { width: 40px; }
.pd-tab:hover:not(.active) { color: #666; }
.pd-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    background: #f0f0f0;
    border-radius: 1rem;
    font-size: 0.7rem;
    color: #999;
}
.pd-tab.active .pd-tab-count { background: rgba(30, 64, 175, 0.1); color: var(--brand-primary); }
.pd-tab-panel { display: none; padding: 2rem; }
.pd-tab-panel.active { display: block; animation: pdFadeIn 0.35s ease both; }
@keyframes pdFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.pd-description { font-size: 0.95rem; line-height: 1.8; color: #444; }
.pd-description img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.pd-empty { text-align: center; padding: 3rem 1rem; color: #ccc; }
.pd-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; }
.pd-empty p { font-size: 0.9rem; color: #999; margin-bottom: 1rem; }
.pd-empty-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    background: rgba(30, 64, 175, 0.08);
    color: var(--brand-primary);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pd-empty-link:hover { background: rgba(30, 64, 175, 0.15); }
.pd-rating-overview { display: flex; justify-content: center; padding: 1.5rem 0 2rem; }
.pd-rating-score { font-size: 3rem; font-weight: 800; color: #f39c12; line-height: 1; margin-bottom: 0.5rem; }
.pd-rating-stars { font-size: 1.2rem; color: #f39c12; margin-bottom: 0.35rem; }
.pd-rating-total { font-size: 0.8rem; color: var(--shop-muted); }
.pd-review-card { padding: 1.25rem; background: #fafbfb; border-radius: 0.75rem; transition: all 0.2s ease; }
.pd-review-card:hover { background: #f5f7f6; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.pd-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}
.pd-review-name { font-size: 0.85rem; font-weight: 500; color: #333; }
.pd-review-date { font-size: 0.72rem; color: #bbb; }
.pd-review-stars { color: #f39c12; font-size: 0.85rem; }
.pd-review-text { font-size: 0.88rem; color: #555; line-height: 1.6; margin: 0; }
.pd-attributes { padding: 1.5rem 0; }
.pd-attr-group {
    margin-bottom: 2rem;
    background: var(--shop-surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pd-attr-group:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.pd-attr-group:last-child { margin-bottom: 0; }
.pd-attr-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pd-attr-group-title::before { content: "▸"; font-size: 1.2rem; }
.pd-attr-table { width: 100%; border-collapse: collapse; }
.pd-attr-table tr { transition: background 0.2s ease; }
.pd-attr-table tr:hover { background: rgba(30, 64, 175, 0.03); }
.pd-attr-table tr:nth-child(even) { background: #f9f9f9; }
.pd-attr-table tr:nth-child(even):hover { background: rgba(30, 64, 175, 0.05); }
.pd-attr-name {
    width: 30%;
    padding: 0.875rem 1.25rem;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
    border-right: 1px solid #eee;
    vertical-align: top;
    position: relative;
}
.pd-attr-name::before { content: "•"; color: var(--brand-primary); margin-right: 0.5rem; font-weight: 700; }
.pd-attr-value { padding: 0.875rem 1.25rem; color: #333; font-size: 0.875rem; line-height: 1.6; }
.pd-related { margin-bottom: 2rem; }
.pd-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255,255,255,0.5);
    display: none;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 -4px 24px rgba(30,64,175,0.12);
    padding-bottom: env(safe-area-inset-bottom);
}
.pd-mb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 0.5rem;
    color: #666;
    font-size: 0.7rem;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
}
.pd-mb-item i { font-size: 1.2rem; }
.pd-mb-item:hover { color: var(--brand-primary); }
.pd-mb-buy {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}
.pd-mb-buy:hover { background: linear-gradient(135deg, #1A357F, var(--brand-primary)); color: #fff; }
@media (max-width: 991.98px) {
    .pd-info { position: static !important; border-radius: 1.25rem 1.25rem 0 0; margin-top: -2rem; padding: 1.5rem; z-index: 1; }
    .pd-title { font-size: 1.25rem; }
    .pd-price-value { font-size: 1.6rem; }
    .pd-actions { flex-direction: column; }
    .pd-mobile-bar { display: flex; }
    .pd-page { padding-bottom: 5rem; }
    .pd-tab-panel { padding: 1.25rem; }
}
@media (max-width: 575.98px) {
    .pd-breadcrumb { font-size: 0.72rem; }
    .pd-gallery { border-radius: 0.75rem; }
    .pd-info { padding: 1.25rem; }
    .pd-trust-item { font-size: 0.72rem; }
}

/* ==================== 结算页面模板样式（从 checkout.php 内联提取） ==================== */
.checkout-page { padding-bottom: 2rem; }
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--shop-border-light);
}
.checkout-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shop-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.checkout-title i { color: var(--brand-primary); }
.checkout-steps { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.step { color: #999; font-weight: 500; }
.step.active { color: var(--brand-primary); font-weight: 600; }
.step-arrow { color: #ddd; font-size: 0.7rem; }
.checkout-section {
    background: var(--shop-surface);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--shop-border-light);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.checkout-section:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fafbfb;
    border-bottom: 1px solid var(--shop-border-light);
    cursor: default;
}
.section-header[data-bs-toggle="collapse"] { cursor: pointer; }
.section-header[data-bs-toggle="collapse"]:hover { background: #f5f7f6; }
.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.section-icon.icon-coupon { background: linear-gradient(135deg, #f39c12, #f1c40f); }
.section-icon.icon-invoice { background: linear-gradient(135deg, #3498db, #2980b9); }
.section-icon.icon-items { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.section-icon.icon-remark { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.section-title-wrap { flex: 1; }
.section-title { font-size: 1rem; font-weight: 600; color: var(--shop-text); margin: 0 0 0.15rem; }
.section-desc { font-size: 0.75rem; color: #999; margin: 0; }
.section-action {
    font-size: 0.8rem;
    color: var(--brand-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}
.section-action:hover { color: var(--brand-primary); gap: 0.5rem; }
.section-toggle { color: #999; transition: transform 0.3s ease; }
.collapsed .section-toggle { transform: rotate(-90deg); }
.section-body { padding: 1.25rem 1.5rem; }
.empty-address { text-align: center; padding: 2rem 1rem; }
.empty-address-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f5f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #ccc;
}
.empty-address-text { color: #999; font-size: 0.9rem; margin-bottom: 1rem; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.address-card {
    position: relative;
    border: 2px solid var(--shop-border-light);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: block;
}
.address-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.address-card:hover { border-color: var(--brand-primary); background: rgba(30, 64, 175, 0.02); }
.address-card.selected { border-color: var(--brand-primary); background: rgba(30, 64, 175, 0.04); }
.address-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.address-user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.address-user i { color: var(--brand-primary); font-size: 1.1rem; }
.address-phone { color: #666; font-size: 0.85rem; }
.badge-address { background: rgba(30, 64, 175, 0.1); color: var(--brand-primary); font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 0.35rem; font-weight: 600; }
.address-detail { font-size: 0.85rem; color: #666; line-height: 1.5; display: flex; gap: 0.35rem; }
.address-detail i { color: #999; font-size: 0.8rem; margin-top: 0.15rem; flex-shrink: 0; }
.address-card-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}
.address-card.selected .address-card-check { opacity: 1; transform: scale(1); }
.coupon-select-wrap { position: relative; max-width: 400px; }
.coupon-select {
    appearance: none;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    background: var(--shop-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}
.coupon-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1); }
.coupon-select-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: #999; pointer-events: none; }
.invoice-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.invoice-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--shop-border-light);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.invoice-option input[type="radio"] { display: none; }
.invoice-option:hover { background: #fafbfb; }
.invoice-option.selected { border-color: var(--brand-primary); background: rgba(30, 64, 175, 0.04); }
.invoice-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: #f5f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.invoice-option.selected .invoice-option-icon { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)); color: #fff; }
.invoice-option-content { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.invoice-option-title { font-size: 0.9rem; font-weight: 500; color: #333; }
.invoice-option-type { font-size: 0.75rem; color: #999; }
.badge-invoice { background: rgba(30, 64, 175, 0.1); color: var(--brand-primary); font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 0.35rem; font-weight: 600; }
.invoice-manual-fields { background: #fafbfb; border-radius: 0.75rem; padding: 1.25rem; margin-top: 0.75rem; animation: fadeIn 0.3s ease; }
.invoice-type-select { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.invoice-type-option {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.invoice-type-option input[type="radio"] { display: none; }
.invoice-type-option:hover { border-color: var(--brand-primary); }
.invoice-type-option.selected { border-color: var(--brand-primary); background: rgba(30, 64, 175, 0.08); color: var(--brand-primary); font-weight: 600; }
.invoice-tip {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fef9e7;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #f39c12;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.invoice-tip a { color: var(--brand-primary); font-weight: 600; }
.order-items-list { list-style: none; padding: 0; margin: 0; }
.order-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #f5f5f5; }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 60px; height: 60px; border-radius: 0.5rem; overflow: hidden; flex-shrink: 0; background: #f8f9fa; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: 0.9rem; font-weight: 500; color: #333; margin: 0 0 0.35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-item-price { font-size: 0.8rem; color: #999; display: flex; align-items: center; gap: 0.5rem; }
.order-item-qty { color: #bbb; }
.order-item-subtotal { font-size: 0.95rem; font-weight: 600; color: var(--shop-text); flex-shrink: 0; }
.remark-input-wrap { position: relative; }
.remark-input-wrap textarea { border-radius: 0.75rem; border: 1px solid #e0e0e0; padding: 0.75rem 1rem; font-size: 0.9rem; resize: none; transition: all 0.2s ease; }
.remark-input-wrap textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1); }
.remark-counter { position: absolute; bottom: 0.75rem; right: 1rem; font-size: 0.75rem; color: #ccc; }
@media (min-width: 992px) {
    .checkout-page > .container { max-width: 850px; }
}
.checkout-summary-sidebar {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    z-index: 100;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.summary-card {
    background: var(--shop-surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--shop-border-light);
}
.summary-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--shop-text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--shop-border-light);
}
.summary-lines { margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; font-size: 0.9rem; color: #666; }
.summary-line.line-discount span:last-child { color: #e74c3c; font-weight: 600; }
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid var(--shop-border-light);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}
.total-price { font-size: 1.5rem; color: #e74c3c; font-weight: 700; }
.btn-checkout {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, #1A357F, var(--brand-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
    color: #fff;
}
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
.checkout-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--shop-surface);
    border-top: 1px solid var(--shop-border-light);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.bottom-bar-price { display: flex; align-items: baseline; gap: 0.5rem; }
.bottom-bar-label { font-size: 0.85rem; color: #666; }
.bottom-bar-amount { font-size: 1.25rem; font-weight: 700; color: #e74c3c; }
.btn-checkout-bottom { width: auto; padding: 0.75rem 2rem; border-radius: 2rem; }
@media (max-width: 991.98px) {
    .checkout-page { padding-bottom: 5rem; }
    .checkout-header { flex-direction: column; align-items: flex-start; }
    .address-grid { grid-template-columns: 1fr; }
    .section-header { padding: 1rem; }
    .section-body { padding: 1rem; }
}

/* ==================== 在线客服悬浮窗 ==================== */
.cs-widget {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1060;
}

.cs-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cs-fab i { font-size: 1.35rem; line-height: 1; }
.cs-fab-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.02em; }
.cs-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 64, 175, 0.45); }
.cs-widget.is-open .cs-fab { background: linear-gradient(135deg, #334155, #475569); }

.cs-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 120px));
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: csPanelIn 0.22s ease;
}

@keyframes csPanelIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cs-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    color: #fff;
}

.cs-panel-title { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.cs-panel-title strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.cs-panel-title small { display: block; font-size: 0.72rem; opacity: 0.85; margin-top: 2px; }
.cs-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cs-panel-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.cs-panel-close:hover { background: rgba(255, 255, 255, 0.22); }

.cs-panel-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    background: #f8fafc;
}

.cs-welcome {
    display: flex;
    gap: 0.65rem;
    padding: 0.875rem 1rem 0.5rem;
}

.cs-welcome-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1E40AF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-welcome-text {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
    padding-top: 4px;
}

.cs-quick {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
}

.cs-quick-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.35rem;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.cs-quick-item i { font-size: 1rem; color: #1E40AF; }
.cs-quick-item:hover { border-color: #93c5fd; background: #eff6ff; color: #1E40AF; }

.cs-thread {
    flex: 1;
    min-height: 120px;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cs-msg { display: flex; }
.cs-msg-user { justify-content: flex-end; }
.cs-msg-bot { justify-content: flex-start; }

.cs-msg-bubble {
    max-width: 85%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    font-size: 0.84rem;
    line-height: 1.5;
    word-break: break-word;
}

.cs-msg-user .cs-msg-bubble {
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.cs-msg-bot .cs-msg-bubble {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 0.25rem;
}

.cs-form {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.cs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cs-form-row-single { grid-template-columns: 1fr; }

.cs-input,
.cs-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cs-input:focus,
.cs-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.cs-form-compose {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.cs-textarea {
    resize: none;
    min-height: 72px;
    flex: 1;
}

.cs-send {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.cs-send:disabled { opacity: 0.6; cursor: not-allowed; }

.cs-feedback {
    margin: 0 1rem 0.75rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
}

.cs-feedback.is-success { background: #ecfdf5; color: #047857; }
.cs-feedback.is-error { background: #fef2f2; color: #b91c1c; }

body:has(.cs-widget) .back-to-top {
    bottom: 92px;
}

@media (max-width: 767.98px) {
    .cs-widget {
        right: 12px;
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px) + 12px);
    }

    .cs-panel {
        width: calc(100vw - 24px);
        max-height: min(460px, calc(100vh - 8rem));
    }

    .cs-form-row { grid-template-columns: 1fr; }

    body:has(.cs-widget) .back-to-top {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px) + 76px);
    }
}

/* ==================== 帮助中心 ==================== */
.help-page { padding-bottom: 2rem; }

.help-hero {
    text-align: center;
    padding: 2.5rem 0 2rem;
}

.help-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.help-hero-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.help-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.help-search i { color: #94a3b8; }
.help-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
}
.help-search button {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.help-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.help-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

.help-sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.help-cat-list { list-style: none; padding: 0; margin: 0; }
.help-cat-list li + li { margin-top: 0.25rem; }
.help-cat-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
}
.help-cat-list a:hover,
.help-cat-list a.active {
    background: #eff6ff;
    color: #1E40AF;
}

.help-section { margin-bottom: 1.5rem; }
.help-section-head { margin-bottom: 0.85rem; }
.help-section-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; color: #1e293b; }
.help-section-desc { color: #64748b; font-size: 0.88rem; margin: 0.35rem 0 0; }
.help-section-meta { color: #94a3b8; font-size: 0.82rem; }

.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.help-faq-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.help-faq-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}
.help-faq-q {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}
.help-faq-q i { color: #1E40AF; }
.help-faq-tag,
.help-faq-hot {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}
.help-faq-tag { background: #f1f5f9; color: #64748b; }
.help-faq-hot { background: #fef3c7; color: #b45309; }

.help-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.help-cat-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.help-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.help-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #1E40AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.help-cat-name { font-weight: 700; color: #1e293b; }
.help-cat-desc { font-size: 0.82rem; color: #64748b; }

.help-empty-inline {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 0.85rem;
}

.help-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #64748b;
    padding: 1.25rem 0 0.75rem;
}
.help-breadcrumb a { color: #1E40AF; text-decoration: none; }
.help-breadcrumb i { font-size: 0.7rem; color: #cbd5e1; }

.help-article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}

.help-article-hot {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 600;
}

.help-article-head h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.help-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.help-article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.help-article-body {
    color: #334155;
    line-height: 1.85;
    font-size: 0.95rem;
}
.help-article-body p,
.help-article-body ul,
.help-article-body ol { margin-bottom: 1rem; }
.help-article-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }

.help-article-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.help-back-link {
    color: #1E40AF;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.help-related-list { list-style: none; padding: 0; margin: 0; }
.help-related-list li + li { margin-top: 0.45rem; }
.help-related-list a {
    color: #475569;
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1.5;
}
.help-related-list a:hover { color: #1E40AF; }

@media (max-width: 991.98px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-sidebar { order: 2; }
    .help-main,
    .help-article-card { order: 1; }
    .help-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .help-hero-title { font-size: 1.6rem; }
    .help-search { border-radius: 1rem; flex-wrap: wrap; padding: 0.75rem; }
    .help-search button { width: 100%; }
    .help-cat-grid { grid-template-columns: 1fr; }
    .help-article-card { padding: 1rem; }
    .help-article-head h1 { font-size: 1.35rem; }
}

/* ==================== 会员中心 ==================== */
.uc-page { padding-top: 1rem; padding-bottom: 2rem; }

.uc-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.uc-sidebar {
    position: sticky;
    top: 1rem;
}

.uc-user-card {
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shop-shadow-md);
    margin-bottom: 0.85rem;
    overflow: hidden;
    position: relative;
}

.uc-user-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.uc-user-top {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.uc-avatar-wrap { flex-shrink: 0; }

.uc-avatar,
.uc-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.uc-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 700;
}

.uc-user-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.uc-user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.uc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.uc-tag-discount { background: rgba(255, 243, 205, 0.25); }

.uc-asset-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 1;
}

.uc-asset-item {
    text-align: center;
    min-width: 0;
}

.uc-asset-item strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}

.uc-asset-item span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    opacity: 0.85;
}

.uc-asset-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
}

.uc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
    padding: 0.5rem;
    margin-bottom: 0.85rem;
}

.uc-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.uc-nav-item i { font-size: 1.05rem; color: #64748b; }
.uc-nav-item.active,
.uc-nav-item:hover {
    background: #eff6ff;
    color: var(--brand-primary);
}
.uc-nav-item.active i,
.uc-nav-item:hover i { color: var(--brand-primary); }

.uc-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-style: normal;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uc-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
    padding: 0.5rem;
}

.uc-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.86rem;
}

.uc-sidebar-links a:hover { background: #f8fafc; color: var(--brand-primary); }
.uc-link-danger { color: #dc2626 !important; }

.uc-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.uc-main-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
}

.uc-main-subtitle {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.uc-mobile-user {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
}

.uc-mobile-user-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: 0.95rem;
}

.uc-mobile-avatar { width: 48px; height: 48px; }

.uc-mobile-user-inner strong {
    display: block;
    font-size: 0.95rem;
}

.uc-mobile-user-inner span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    opacity: 0.88;
}

.uc-mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 0.95rem;
}

.uc-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.55rem 0.25rem;
    border-radius: 0.65rem;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
}

.uc-mobile-nav-item i { font-size: 1.05rem; }
.uc-mobile-nav-item.active {
    background: #eff6ff;
    color: var(--brand-primary);
    font-weight: 600;
}

.uc-panel {
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.uc-panel-flush { border: none; background: transparent; }

.uc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
}

.uc-panel-head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
}

.uc-panel-head a {
    font-size: 0.82rem;
    color: var(--brand-primary);
    text-decoration: none;
}

.uc-panel-body { padding: 1.15rem; }

.uc-order-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 1rem 1.15rem 1.15rem;
}

.uc-track-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #475569;
    font-size: 0.78rem;
    padding: 0.35rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
}

.uc-track-item:hover { background: #f8fafc; color: var(--brand-primary); }

.uc-track-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.uc-track-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 28px);
    min-width: 18px;
    height: 18px;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-style: normal;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.uc-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
}

.uc-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.uc-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.uc-stat-label {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: #64748b;
}

.uc-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 1rem 1.15rem 1.15rem;
}

.uc-shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.35rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #475569;
    font-size: 0.78rem;
    transition: background 0.2s, color 0.2s;
}

.uc-shortcut-item i {
    font-size: 1.25rem;
    color: var(--brand-primary);
}

.uc-shortcut-item:hover {
    background: #f8fafc;
    color: var(--brand-primary);
}

.uc-recent-list { padding: 0.35rem 0; }

.uc-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid #f1f5f9;
}

.uc-recent-item:first-child { border-top: none; }
.uc-recent-item:hover { background: #f8fafc; }

.uc-recent-main strong {
    display: block;
    font-size: 0.88rem;
    color: #1e293b;
}

.uc-recent-main span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.uc-recent-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.uc-recent-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.uc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
}

.uc-filter-pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.uc-filter-pill.active,
.uc-filter-pill:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--brand-primary);
    font-weight: 600;
}

.uc-order-card {
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.uc-order-head,
.uc-order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    background: #fafafa;
}

.uc-order-foot {
    background: #fff;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.uc-order-no { font-size: 0.88rem; font-weight: 600; color: #1e293b; }
.uc-order-time { font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; }

.uc-order-items { padding: 0.35rem 0; }

.uc-order-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #f8fafc;
}

.uc-order-item:first-child { border-top: none; }

.uc-order-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.uc-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uc-order-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.uc-order-item-meta {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.uc-order-item-sub {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
}

.uc-order-total {
    font-size: 0.86rem;
    color: #64748b;
}

.uc-order-total strong {
    color: #dc2626;
    font-size: 1rem;
}

.uc-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.uc-coupon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.uc-coupon-card {
    display: flex;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 0.95rem;
    overflow: hidden;
    min-height: 120px;
}

.uc-coupon-value {
    width: 96px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
}

.uc-coupon-num { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.uc-coupon-symbol,
.uc-coupon-unit { font-size: 0.85rem; }

.uc-coupon-body {
    flex: 1;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.uc-coupon-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}

.uc-coupon-cond {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--brand-primary);
}

.uc-coupon-expire {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.uc-coupon-use {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
}

.uc-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.uc-settings-form .form-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
}

.uc-avatar-edit {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.uc-avatar-edit-img { width: 80px; height: 80px; }

.uc-avatar-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
}

.uc-form-actions { margin-top: 1rem; }

.uc-account-links { padding: 0.35rem 0; }

.uc-account-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    text-decoration: none;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}

.uc-account-link:first-child { border-top: none; }
.uc-account-link:hover { background: #f8fafc; color: var(--brand-primary); }
.uc-account-link em {
    font-style: normal;
    font-size: 0.82rem;
    color: #94a3b8;
}
.uc-account-link-danger { color: #dc2626; }
.uc-account-link-danger:hover { color: #dc2626; background: #fef2f2; }

@media (max-width: 991.98px) {
    .uc-layout { grid-template-columns: 1fr; }
    .uc-sidebar { display: none; }
    .uc-stat-grid { grid-template-columns: 1fr; }
    .uc-shortcut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .uc-settings-grid { grid-template-columns: 1fr; }
    .uc-coupon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .uc-order-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uc-shortcut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .uc-shortcut-item { font-size: 0.7rem; padding: 0.6rem 0.2rem; }
    .uc-order-item { grid-template-columns: 48px minmax(0, 1fr); }
    .uc-order-item-sub { grid-column: 2; text-align: left; margin-top: -0.25rem; }
    .uc-main-head { flex-direction: column; align-items: flex-start; }
    .uc-mobile-nav-item span { font-size: 0.68rem; }
}

/* ==================== 新闻中心 ==================== */
.news-page { padding-bottom: 2.5rem; }

.news-hero {
    margin: 0 0 1.5rem;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    background: var(--brand-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.news-hero::before,
.news-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.news-hero::before {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -40px;
}

.news-hero::after {
    width: 160px;
    height: 160px;
    bottom: -70px;
    left: -30px;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.news-hero-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.news-hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.news-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

.news-hero-stats strong { color: #fff; font-size: 1rem; }

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

.news-panel {
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
}

.news-featured {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-featured:hover {
    transform: translateY(-3px);
    box-shadow: var(--shop-shadow-lg);
}

.news-featured-cover {
    position: relative;
    min-height: 148px;
    background: #f1f5f9;
    overflow: hidden;
}

.news-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-featured:hover .news-featured-cover img { transform: scale(1.04); }

.news-featured-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.88);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}

.news-featured-body {
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
}

.news-featured-summary {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.news-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.news-section-head span {
    font-size: 0.82rem;
    color: #94a3b8;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 0.85rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shop-shadow-md);
    border-color: #bfdbfe;
}

.news-card-cover {
    width: 96px;
    min-width: 96px;
    align-self: stretch;
    background: #f1f5f9;
    overflow: hidden;
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    min-height: 72px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-cover img { transform: scale(1.05); }

.news-card-body { padding: 0.75rem 0.9rem; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.news-card-title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-read-more {
    margin-left: auto;
    color: var(--brand-primary);
    font-weight: 600;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem 0 0.5rem;
}

.news-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.news-page-btn:hover {
    border-color: #93c5fd;
    color: var(--brand-primary);
    background: #eff6ff;
}

.news-page-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.news-page-numbers {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-page-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-size: 0.84rem;
}

.news-page-num.active,
.news-page-num:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
}

.news-side-card {
    background: #fff;
    border: 1px solid var(--shop-border-light);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.news-side-card h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.news-side-card h3 i { color: var(--brand-primary); }

.news-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-side-list li + li { margin-top: 0.65rem; }

.news-side-list a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem;
    border-radius: 0.65rem;
    transition: background 0.2s;
}

.news-side-list a:hover { background: #f8fafc; }

.news-side-thumb {
    width: 40px;
    height: 40px;
    border-radius: 0.45rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.news-side-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.news-side-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.news-side-text strong {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-side-text em {
    font-style: normal;
    font-size: 0.72rem;
    color: #94a3b8;
}

.news-hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: hot-rank;
}

.news-hot-list li + li { margin-top: 0.55rem; }

.news-hot-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem;
    border-radius: 0.55rem;
    transition: background 0.2s;
}

.news-hot-list a:hover { background: #f8fafc; }

.news-hot-rank {
    width: 22px;
    height: 22px;
    border-radius: 0.4rem;
    background: #eff6ff;
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-hot-list li:nth-child(-n+3) .news-hot-rank {
    background: #fef3c7;
    color: #b45309;
}

.news-hot-title {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { display: none; }
    .news-featured { grid-template-columns: 120px minmax(0, 1fr); }
    .news-featured-cover { min-height: 96px; }
}

@media (max-width: 767.98px) {
    .news-hero { padding: 2rem 1rem; border-radius: 0.85rem; }
    .news-hero-title { font-size: 1.6rem; }
    .news-card-cover {
        width: 80px;
        min-width: 80px;
    }
    .news-card-cover img { min-height: 64px; }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured-cover {
        min-height: 0;
        aspect-ratio: 16 / 7;
        max-height: 140px;
    }
    .news-featured-body { padding: 1rem; }
    .news-featured-title { font-size: 1.05rem; }
    .news-read-more { margin-left: 0; width: 100%; margin-top: 0.35rem; }
}

/* ==================== 弹窗广告 ==================== */
body.ad-popup-open {
    overflow: hidden;
}

.ad-popup {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ad-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.ad-popup-backdrop {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ad-popup-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    max-height: calc(100vh - 2rem);
    max-height: calc(var(--shop-vh, 1vh) * 100 - 2rem);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ad-popup.is-visible .ad-popup-panel {
    transform: translateY(0) scale(1);
}

.ad-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ad-popup-close:hover {
    background: rgba(15, 23, 42, 0.8);
}

.ad-popup-link {
    display: block;
    line-height: 0;
}

.ad-popup-image {
    width: 100%;
    max-height: min(70vh, 560px);
    object-fit: contain;
    background: #f8fafc;
}

.ad-popup-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    cursor: pointer;
    user-select: none;
}

.ad-popup-skip input {
    margin: 0;
}

@media (max-width: 575.98px) {
    .ad-popup-panel {
        width: min(94vw, 360px);
        border-radius: 0.875rem;
    }

    .ad-popup-image {
        max-height: min(62vh, 480px);
    }
}
