/* ========================================
   抖快流量商城 - 样式表
   蓝白风格 + 金色点缀
   ======================================== */

/* 全局变量 */
:root {
    --primary-color: #1565c0;
    --primary-light: #42a5f5;
    --primary-dark: #0d47a1;
    --secondary-color: #ff9800;
    --gold-color: #ffc107;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-primary: #fff;
    --bg-secondary: #f5f7fa;
    --bg-light: #fafbfc;
    --border-color: #e8eaf0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input {
    outline: none;
    font-family: inherit;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 按钮 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-link {
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 4px 8px;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-color);
}

/* ========================================
   顶部公告栏
   ======================================== */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.balance {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* ========================================
   头部导航
   ======================================== */
.header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-icon {
    font-size: 28px;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box form {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    background: transparent;
}

.search-box button {
    padding: 10px 28px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* 头部操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    position: relative;
    transition: all 0.2s;
}

.cart-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.cart-icon {
    font-size: 18px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: #fff;
    font-size: 11px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    color: var(--text-primary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   主导航
   ======================================== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    display: flex;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-item.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    z-index: 100;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 300;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.mobile-menu ul {
    padding: 60px 0 20px;
}

.mobile-menu ul li a {
    display: block;
    padding: 14px 24px;
    color: var(--text-primary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu ul li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
    min-height: calc(100vh - 300px);
    padding-bottom: 40px;
}

.section {
    padding: 32px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.section-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--gold-color));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ========================================
   横幅轮播
   ======================================== */
.banner-section {
    padding: 20px 0;
}

.banner-slider {
    position: relative;
    height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    opacity: 0;
    transition: opacity 0.5s;
    color: #fff;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    max-width: 500px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.banner-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.banner-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.banner-decor {
    display: flex;
    gap: 20px;
    font-size: 80px;
    opacity: 0.3;
}

.decor-icon {
    animation: float 3s ease-in-out infinite;
}

.decor-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.decor-icon:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots .dot.active {
    width: 24px;
    border-radius: 5px;
    background: #fff;
}

/* 轮播箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* ========================================
   快捷服务（侧边浮动）
   ======================================== */
.quick-services {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quick-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
    min-width: 70px;
}

.quick-service-item:last-child {
    border-bottom: none;
}

.quick-service-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.qs-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.qs-text {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

.qs-arrow {
    display: block;
}

/* 移动端快捷服务 */

/* 分类导航区 */
.category-nav-section {
    padding: 40px 0;
}

.category-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-nav-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.category-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.cn-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.cn-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cn-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.mobile-services {
    display: block;
}

.mobile-service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.mobile-service-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.mobile-service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ms-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.ms-title {
    font-size: 13px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.ms-price {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* ========================================
   商品Tab切换
   ======================================== */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #fff;
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.tab-icon {
    font-size: 18px;
}

.tab-content {
    display: block;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   商品卡片
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-emoji {
    font-size: 56px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.product-image-real {
    background: #f5f5f5;
}

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


/* 渐变背景 */
.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.product-badge.recommend {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

.product-info {
    padding: 14px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 4px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger-color);
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-sales {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   平价流量专区
   ======================================== */
.cheap-products {
    background: #fff;
}

.cheap-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cheap-category {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s;
}

.cheap-category:hover {
    box-shadow: var(--shadow-md);
}

.cheap-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.cheap-cat-icon {
    font-size: 24px;
}

.cheap-cat-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.cheap-more {
    font-size: 13px;
    color: var(--primary-color);
}

.cheap-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cheap-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.cheap-product-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.cheap-product-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cheap-emoji {
    font-size: 24px;
}

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

.cheap-product-name {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheap-product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--danger-color);
}

/* ========================================
   全品类导航
   ======================================== */
.all-categories {
    background: #fff;
}

.all-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.all-cat-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.all-cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.all-cat-icon {
    font-size: 22px;
}

.all-cat-more {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    color: var(--primary-color);
}

.all-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.all-cat-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.all-cat-links a:hover {
    color: var(--primary-color);
}

/* ========================================
   模态框
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.3s;
    box-shadow: var(--shadow-lg);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* 商品详情模态框 */
.product-modal-body {
    padding: 0;
}

.product-modal-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #fff;
}

.product-modal-info {
    padding: 24px;
}

.product-modal-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-modal-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.product-modal-price .current {
    font-size: 28px;
    font-weight: 700;
    color: var(--danger-color);
}

.product-modal-price .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-modal-tags span {
    padding: 4px 12px;
    background: #e3f2fd;
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 12px;
}

.product-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.product-modal-service {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-modal-service span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--success-color);
}

.product-modal-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.product-modal-quantity label {
    font-size: 14px;
    color: var(--text-secondary);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.qty-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-modal-actions {
    display: flex;
    gap: 12px;
}

.product-modal-actions .btn-primary {
    flex: 1;
}

.btn-add-cart {
    flex: 1;
    padding: 12px 24px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 服务详情模态框 */
.service-modal-body {
    padding: 24px;
}

.service-modal-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 16px;
}

.service-modal-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.service-modal-price {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.service-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

/* ========================================
   Toast 提示
   ======================================== */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.footer-service {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon {
    font-size: 32px;
}

.service-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.service-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px 0;
}

.footer-nav-simple {
    grid-template-columns: repeat(2, 200px);
    justify-content: center;
    text-align: center;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-notice {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-notice strong {
    color: var(--text-primary);
}

.footer-copyright {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   登录注册页
   ======================================== */
.auth-section {
    padding: 60px 0;
}

.auth-box {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-error {
    padding: 12px 16px;
    background: #ffebee;
    color: var(--danger-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.required {
    color: var(--danger-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input {
    width: auto;
}

.forgot-link {
    color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    font-size: 12px;
    color: var(--text-muted);
    background: #fff;
    padding: 0 10px;
}

.auth-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ========================================
   购物车页面
   ======================================== */
.cart-section {
    padding: 30px 0;
}

.cart-container {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-header {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 80px;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    align-items: center;
}

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

.cart-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 80px;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.2s;
}

.cart-item:hover {
    background: var(--bg-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-product-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-emoji {
    font-size: 36px;
}

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

.cart-product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-product-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-price {
    text-align: center;
}

.cart-price .price-current {
    font-size: 16px;
}

.cart-quantity {
    display: flex;
    justify-content: center;
}

.cart-subtotal {
    text-align: center;
}

.subtotal-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger-color);
}

.cart-action {
    text-align: center;
}

/* 购物车底部结算栏 */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    position: sticky;
    bottom: 0;
}

.cart-footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-total-info {
    text-align: right;
}

.cart-total-info > span {
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-total {
    margin-top: 4px;
}

.cart-total span {
    font-size: 14px;
    color: var(--text-secondary);
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger-color);
}

.btn-checkout {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
}

/* ========================================
   用户中心
   ======================================== */
.user-section {
    padding: 30px 0;
}

.user-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.user-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.user-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.user-avatar-lg {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    margin: 0 auto 12px;
}

.user-name-lg {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.user-balance {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.user-balance span:first-child {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--danger-color);
}

.user-menu {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 8px 0;
    box-shadow: var(--shadow-sm);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.menu-item.active {
    background: #e3f2fd;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.menu-item.logout {
    color: var(--danger-color);
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 16px;
}

.menu-icon {
    font-size: 18px;
}

.user-content {
    flex: 1;
    min-width: 0;
}

.user-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.user-form .form-group {
    margin-bottom: 0;
}

.user-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.user-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
}

.user-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.user-form input:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.user-form small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 订单列表 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    font-size: 13px;
}

.order-sn {
    font-weight: 500;
    color: var(--text-primary);
}

.order-time {
    color: var(--text-muted);
}

.order-status {
    margin-left: auto;
    font-weight: 600;
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.order-card-total {
    font-size: 14px;
    color: var(--text-secondary);
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger-color);
    margin-left: 4px;
}

.order-card-actions {
    display: flex;
    gap: 10px;
}

/* 订单详情 */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.order-detail-header .panel-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    padding: 8px 0;
    font-size: 14px;
}

.info-row span:first-child {
    width: 100px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.info-row span:last-child {
    color: var(--text-primary);
}

.order-total-price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--danger-color) !important;
}

.sub-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.order-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

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

.order-item-info h5 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.order-item-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-item-subtotal {
    font-size: 16px;
    font-weight: 600;
    color: var(--danger-color);
}

.order-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 余额充值 */
.balance-card {
    margin-bottom: 24px;
}

.balance-current {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.balance-current > span {
    font-size: 14px;
    opacity: 0.9;
}

.balance-num {
    font-size: 42px;
    font-weight: 700;
    margin-top: 8px;
}

.recharge-options h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.recharge-item {
    position: relative;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.recharge-item:hover {
    border-color: var(--primary-light);
}

.recharge-item.active {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

.recharge-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.recharge-tag {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 2px 10px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    border-radius: 0 var(--radius-md) 0 var(--radius-md);
}

.recharge-custom {
    margin-bottom: 20px;
}

.recharge-custom label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.recharge-custom input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.recharge-custom input:focus {
    border-color: var(--primary-color);
}

.recharge-tips {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.recharge-tips ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style: disc;
}

.recharge-tips li {
    margin-bottom: 4px;
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========================================
   搜索结果页
   ======================================== */
.search-results {
    padding: 30px 0;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .mobile-services {
        display: none;
    }
    .banner-section {
        display: block;
    }
    .header-actions {
        display: none;
    }
    .mobile-services {
        display: none;
    }
    .cheap-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-services {
        display: none;
    }
    .mobile-services {
        display: block;
    }
    .footer-service {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .main-nav {
        display: none;
    }
    .category-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .category-nav-card {
        padding: 16px 8px;
    }
    .cn-icon {
        font-size: 32px;
    }
    .cn-name {
        font-size: 14px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .banner-section {
        display: block;
    }
    .header-actions {
        display: none;
    }
    .mobile-services {
        display: none;
    }
    .banner-slider {
        height: 200px;
    }
    .banner-slide {
        padding: 0 24px;
    }
    .banner-title {
        font-size: 22px;
    }
    .banner-subtitle {
        font-size: 13px;
    }
    .banner-decor {
        display: none;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-name {
        height: 38px;
        font-size: 13px;
    }
    .price-current {
        font-size: 17px;
    }
    .cheap-categories {
        grid-template-columns: 1fr;
    }
    .all-cat-grid {
        grid-template-columns: 1fr;
    }
    .footer-service {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .section-title {
        font-size: 20px;
    }
    .section {
        padding: 24px 0;
    }
    .product-tabs {
        gap: 8px;
    }
    .tab-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    .back-to-top {
        bottom: 20px;
        right: 12px;
    }
    .auth-box {
        padding: 24px;
    }
    /* 购物车移动端 */
    .cart-header {
        display: none;
    }
    .cart-item {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
        padding: 16px;
    }
    .cart-check {
        grid-row: 1 / 3;
    }
    .cart-info {
        grid-column: 2;
    }
    .cart-price {
        display: none;
    }
    .cart-quantity {
        grid-column: 2;
        justify-content: flex-start;
    }
    .cart-subtotal {
        grid-column: 2;
        text-align: left;
    }
    .cart-action {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    .cart-footer {
        flex-wrap: wrap;
        gap: 12px;
    }
    .cart-footer-right {
        width: 100%;
        justify-content: space-between;
    }
    /* 用户中心移动端 */
    .user-layout {
        flex-direction: column;
    }
    .user-sidebar {
        width: 100%;
    }
    .user-menu {
        display: flex;
        overflow-x: auto;
        padding: 4px 8px;
    }
    .menu-item {
        flex-shrink: 0;
        padding: 10px 16px;
        border-left: none;
        border-bottom: 2px solid transparent;
        font-size: 13px;
    }
    .menu-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
    .menu-item.logout {
        border-top: none;
        margin-top: 0;
        padding-top: 10px;
    }
    .user-info-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px;
    }
    .user-avatar-lg {
        width: 56px;
        height: 56px;
        font-size: 22px;
        margin: 0;
    }
    .user-balance {
        margin-left: auto;
    }
    .user-form .form-row {
        grid-template-columns: 1fr;
    }
    .recharge-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .order-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .order-status {
        margin-left: 0;
    }
    .mobile-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .category-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-image {
        height: 110px;
    }
    .product-emoji {
        font-size: 44px;
    }
    .product-info {
        padding: 10px;
    }
    .product-name {
        font-size: 12px;
        height: 34px;
    }
    .price-current {
        font-size: 15px;
    }
    .product-sales {
        font-size: 11px;
    }
    .banner-slider {
        height: 160px;
    }
    .banner-title {
        font-size: 18px;
    }
    .banner-tags {
        display: none;
    }
    .banner-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    .footer-service {
        grid-template-columns: 1fr 1fr;
    }
    .service-item h4 {
        font-size: 13px;
    }
    .service-item p {
        font-size: 11px;
    }
}

/* 购买参数 */
.product-modal-params {
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}
.params-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}
.param-item {
    margin-bottom: 12px;
}
.param-item:last-child {
    margin-bottom: 0;
}
.param-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}
.param-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.param-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
select.param-input {
    cursor: pointer;
}
