/* ============================================
   Only优品 - 京东×抖音融合风格 v8
   融合京东的专业大气 + 抖音的时尚现代
   设计理念: 高端、舒适、精致、活力
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* 品牌色 - 小米橙 */
    --primary: #FF6700;
    --primary-dark: #E55D00;
    --primary-light: #FF8533;
    --primary-50: #FFF7F0;
    --primary-100: #FFE8CC;
    --primary-glow: rgba(255,103,0,0.12);

    /* 辅助色 */
    --accent: #FF6700;
    --accent-light: #FFAD8E;
    --gold: #D4A853;
    --gold-light: #F0D68A;
    --cyan: #00D4FF;
    --purple: #8B5CF6;

    /* 中性色 - 舒适的灰度 */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* 背景 */
    --bg: #F8F9FA;
    --white: #FFFFFF;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #FF6700 0%, #FF8533 100%);
    --gradient-warm: linear-gradient(135deg, #FF6700 0%, #FFB347 100%);
    --gradient-cool: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    --gradient-gold: linear-gradient(135deg, #D4A853 0%, #F0D68A 100%);

    /* 阴影 - 精致柔和 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
    --shadow-primary: 0 8px 32px rgba(255,103,0,0.15);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);

    /* 圆角 - 现代感 */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* 过渡 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.15s var(--ease-out);
    --transition: all 0.3s var(--ease-out);
    --transition-slow: all 0.5s var(--ease-out);

    /* 布局 */
    --max-width: 1280px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }

/* ===== 顶部通栏 - 小米商城风格 ===== */
.site-topbar {
    background: #333;
    height: 40px;
    font-size: 12px;
    color: #b0b0b0;
    border-bottom: none;
}

.site-topbar .container {
    max-width: 1226px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.topbar-nav {
    display: flex;
    align-items: center;
}

.topbar-nav a {
    color: #b0b0b0;
    padding: 0 6px;
    transition: color 0.15s;
    font-size: 12px;
}

.topbar-nav a:hover {
    color: #fff;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.topbar-info {
    display: flex;
    align-items: center;
}

.topbar-info a {
    color: #b0b0b0;
    padding: 0 6px;
    transition: color 0.15s;
    font-size: 12px;
}

.topbar-info a:hover {
    color: #fff;
}

.topbar-cart {
    display: flex;
    align-items: center;
}

.topbar-cart .cart-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b0b0b0;
    padding: 0 8px;
    font-size: 12px;
    transition: color 0.15s;
}

.topbar-cart .cart-mini:hover {
    color: #fff;
}

.topbar-cart .cart-mini-num {
    color: var(--primary);
    font-weight: 700;
    margin-left: 2px;
}

.sep {
    color: #424242;
    font-size: 10px;
    margin: 0 2px;
}

/* ===== 头部 - 小米商城风格 ===== */
.site-header {
    background: var(--white);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 1226px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo - 小米商城风格 */
.header-logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.header-logo .logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.header-logo .logo:hover {
    opacity: 0.85;
}

.header-logo .logo img {
    height: 56px;
    max-width: 200px;
    object-fit: contain;
}

.header-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -1px;
}

.header-logo .logo-accent {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

/* 导航 - 小米风格 */
.header-nav {
    flex-shrink: 0;
    margin-right: auto;
}

.header-nav .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
}

.header-nav .nav-list li {
    position: relative;
}

.header-nav .nav-list li a {
    display: block;
    padding: 0 14px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 100px;
    transition: color 0.15s;
    white-space: nowrap;
}

.header-nav .nav-list li a:hover {
    color: var(--primary);
}

.header-nav .nav-list .link-category {
    color: var(--gray-700);
}

.header-nav .nav-list .link-category:hover {
    color: var(--primary);
}

/* 搜索框 - 小米风格 */
.header-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.header-search .search-box {
    display: flex;
    background: var(--white);
    border: 1px solid var(--gray-300);
    overflow: hidden;
    transition: border-color 0.15s;
    width: 296px;
}

.header-search .search-box:focus-within {
    border-color: var(--primary);
}

.header-search .search-box input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    color: var(--gray-800);
}

.header-search .search-box input::placeholder {
    color: var(--gray-400);
}

.header-search .search-box button {
    padding: 10px 16px;
    background: var(--white);
    color: var(--gray-600);
    border: none;
    border-left: 1px solid var(--gray-300);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.header-search .search-box button:hover {
    background: var(--primary);
    color: var(--white);
}

/* 搜索框热门关键词 */
.search-hot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.search-hot::-webkit-scrollbar {
    display: none;
}

.hot-keyword {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    transition: color 0.15s;
}

.hot-keyword:hover {
    color: var(--primary);
}

/* ===== 主体布局 - 小米商城风格 ===== */
.main-container {
    max-width: 1226px;
    margin: 0 auto;
    padding: 0 48px;
}

.container {
    max-width: 1226px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ===== 轮播图 - 小米商城风格 ===== */
.hero-banner {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 460px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 48px 48px 48px 250px;
    position: relative;
    overflow: hidden;
}

/* 粒子效果 */
.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

.banner-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 55%;
}

/* 徽章 */
.banner-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: badgePulse 2s ease-in-out infinite;
}

.banner-badge-hot {
    background: rgba(255,103,0,0.3);
    border-color: rgba(255,103,0,0.5);
    color: #FF8533;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 标题 */
.banner-title {
    margin-bottom: 20px;
}

.banner-title-line {
    display: block;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: titleSlideIn 0.6s ease forwards;
}

.banner-title-line:nth-child(2) {
    animation-delay: 0.15s;
}

.banner-title-accent {
    background: linear-gradient(135deg, #FFD700, #FF8533, #FF6700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-desc {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 28px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 0.8; }
}

/* 按钮组 */
.banner-actions {
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.45s forwards;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s var(--ease-out);
    letter-spacing: 0;
}

.banner-btn-primary {
    background: var(--white);
    color: #1a1a2e;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.banner-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.banner-btn-primary span {
    transition: transform 0.3s;
}

.banner-btn-primary:hover span {
    transform: translateX(4px);
}

.banner-btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.banner-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

/* 装饰元素 */
.banner-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 圆形装饰 */
.banner-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}

.banner-circle-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    animation: circleRotate 20s linear infinite;
    border-color: rgba(255,255,255,0.15);
}

.banner-circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    animation: circleRotate 15s linear infinite reverse;
    border-style: dashed;
}

.banner-circle-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    animation: circleRotate 25s linear infinite;
    border-color: rgba(255,255,255,0.05);
}

@keyframes circleRotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.banner-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    right: 25%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255,215,0,0.3), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* 浮动元素 */
.banner-float {
    position: absolute;
    font-size: 48px;
    opacity: 0.6;
    animation: floatUpDown 3s ease-in-out infinite;
}

.banner-float-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.banner-float-2 {
    top: 50%;
    right: 30%;
    animation-delay: 0.5s;
    font-size: 36px;
}

.banner-float-3 {
    top: 70%;
    right: 10%;
    animation-delay: 1s;
    font-size: 40px;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 线条装饰 */
.banner-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    height: 2px;
    animation: lineSlide 3s ease-in-out infinite;
}

.banner-line-1 {
    width: 200px;
    top: 30%;
    right: 10%;
    animation-delay: 0s;
}

.banner-line-2 {
    width: 150px;
    top: 50%;
    right: 25%;
    animation-delay: 0.5s;
}

.banner-line-3 {
    width: 180px;
    top: 70%;
    right: 5%;
    animation-delay: 1s;
}

@keyframes lineSlide {
    0% { opacity: 0; transform: translateX(-30px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(30px); }
}

/* 进度条 */
.banner-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 4;
}

.banner-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0;
    transition: width 5s linear;
}

.banner-slide.active ~ .banner-progress .banner-progress-bar {
    width: 100%;
}

/* 指示器 */
.banner-dots {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-dot {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-dot span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.banner-dot:hover {
    background: rgba(255,255,255,0.25);
}

.banner-dot.active {
    background: var(--white);
    border-color: var(--white);
}

.banner-dot.active span {
    color: #1a1a2e;
}

/* 箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.hero-banner:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* ===== 英雄区 - 小米商城风格 ===== */
.hero-section {
    margin-bottom: 16px;
}

.hero-layout {
    position: relative;
}

/* 轮播图 */
.hero-banner {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* 浮动分类菜单 - 覆盖在轮播图左侧 */
.hero-category {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 234px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.hero-category-list {
    list-style: none;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.hero-category-list::-webkit-scrollbar {
    width: 3px;
}

.hero-category-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.hero-category-item {
    padding: 12px 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-category-item::after {
    content: '›';
    font-size: 15px;
    color: rgba(255,255,255,0.3);
    transition: all 0.15s;
}

.hero-category-item:hover {
    background: rgba(255,103,0,0.7);
    color: var(--white);
}

.hero-category-item:hover::after {
    color: rgba(255,255,255,0.8);
    transform: translateX(2px);
}

.hero-category-item.active {
    background: rgba(255,103,0,0.85);
    color: var(--white);
    font-weight: 500;
}

.hero-category-item.active::after {
    color: rgba(255,255,255,0.9);
}

/* ===== 快捷入口 - 小米商城风格 ===== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-bottom: 16px;
    background: var(--white);
}

.quick-link {
    background: var(--white);
    border-radius: 0;
    padding: 28px 16px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border-right: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.quick-link:last-child {
    border-right: none;
}

.quick-link:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.quick-link-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.2s;
}

.quick-link:hover .quick-link-icon {
    transform: translateY(-2px);
}

.quick-link-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.15s;
}

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

/* ===== 商品模块 ===== */
.section {
    background: var(--white);
    border-radius: 0;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: none;
    border: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
}

.section-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-icon {
    font-size: 22px;
}

.section-more {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
    padding: 6px 16px;
    border-radius: 0;
    border: 1px solid var(--gray-200);
    transition: all 0.15s;
}

.section-more:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 商品卡片 */
.product-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--gray-50);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 商品标签 */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badge {
    padding: 4px 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.product-badge.hot {
    background: #FF6B6B;
}

.product-badge.new {
    background: #10B981;
}

.product-badge.sale {
    background: #8B5CF6;
}

/* 商品信息区 */
.product-info {
    padding: 14px;
}

.product-name {
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

/* 价格区域 */
.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.price-current::before {
    content: '¥';
    font-size: 12px;
}

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

/* 购物车按钮 */
.product-cart-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.15s;
}

.product-cart-btn:hover {
    background: var(--primary-dark);
}

/* 商品底部信息 */
.product-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== 筛选栏 ===== */
.filter-bar {
    background: var(--white);
    border-radius: 0;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

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

.filter-option {
    padding: 6px 16px;
    border-radius: 0;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s;
    color: var(--gray-600);
    background: transparent;
    font-weight: 400;
}

.filter-option:hover {
    color: var(--primary);
}

.filter-option.active {
    color: var(--primary);
    font-weight: 600;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100px;
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 0;
    font-size: 13px;
    text-align: center;
    outline: none;
    transition: var(--transition-fast);
}

.price-inputs input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.price-inputs span {
    color: var(--gray-400);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 28px 0;
}

.pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.15s;
    color: var(--gray-600);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}

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

.empty-state-text {
    font-size: 15px;
    font-weight: 500;
}

/* ===== 服务保障 ===== */
.service-section {
    background: var(--white);
    border-radius: 0;
    padding: 24px 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.service-item {
    text-align: center;
    padding: 16px;
    border-radius: 0;
    transition: none;
    background: transparent;
    border-right: 1px solid var(--gray-100);
}

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

.service-item:hover {
    background: transparent;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.service-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.service-desc {
    font-size: 12px;
    color: var(--gray-500);
}

/* ===== 底部 ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    margin-top: 48px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-inner {
    max-width: 1226px;
    margin: 0 auto;
    padding: 56px 32px 40px;
}

.footer-top {
    display: flex;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-section {
    width: 0;
    flex: 1;
}

.footer-section:last-child {
    flex: 0 0 auto;
    width: auto;
    text-align: right;
}

.footer-section:last-child h4::after {
    left: auto;
    right: 0;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
}

.footer-link {
    padding: 8px 0;
    font-size: 13px;
    transition: var(--transition-fast);
    display: block;
}

.footer-link:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
    font-size: 13px;
    line-height: 2;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ===== 响应式 - 小米商城风格 ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .banner-bg {
        padding: 48px 48px 48px 230px;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-category {
        width: 180px;
    }

    .banner-bg {
        padding: 48px 48px 48px 200px;
    }
}

@media (max-width: 768px) {
    .site-topbar .container,
    .site-header .container,
    .main-container,
    .container {
        padding: 0 16px;
    }

    .topbar-nav,
    .topbar-info {
        display: none;
    }

    .site-header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 10px;
    }

    .header-logo {
        margin-right: auto;
    }

    .header-nav {
        display: none;
    }

    .header-search {
        order: 3;
        width: 100%;
    }

    .header-search .search-box {
        width: 100%;
    }

    .search-hot {
        display: none;
    }

    .banner-slider {
        min-height: 300px;
    }

    .banner-bg {
        padding: 32px 24px;
    }

    .banner-content {
        max-width: 100%;
    }

    .banner-title-line {
        font-size: 28px;
    }

    .banner-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .banner-actions {
        flex-direction: column;
        gap: 8px;
    }

    .banner-btn {
        padding: 12px 24px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }

    .banner-visual {
        display: none;
    }

    .banner-dots {
        bottom: 16px;
        right: 16px;
    }

    .banner-dot {
        width: 40px;
        height: 28px;
    }

    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-link {
        padding: 16px 10px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .quick-link:nth-child(3n) {
        border-right: none;
    }

    .quick-link:nth-child(-n+3) {
        border-bottom: 1px solid var(--gray-200);
    }

    .quick-link-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .quick-link-text {
        font-size: 11px;
    }

    .hero-section {
        margin-bottom: 12px;
    }

    .hero-category {
        display: none;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s var(--ease-out) both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* ===== 商品详情页 ===== */
.detail-container {
    max-width: 1226px;
    margin: 24px auto;
    padding: 0 32px;
}

.detail-main {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* 商品图片 */
.detail-images {
    position: sticky;
    top: 100px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-50);
    margin-bottom: 12px;
    border: 1px solid var(--gray-100);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.detail-cover:hover img {
    transform: scale(1.05);
}

.detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.detail-thumbs::-webkit-scrollbar {
    display: none;
}

.detail-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.detail-thumb:hover {
    border-color: var(--gray-300);
}

.detail-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

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

/* 商品信息 */
.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 8px;
}

.detail-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 价格区域 */
.detail-price-box {
    background: linear-gradient(135deg, var(--primary-50) 0%, #FFF0F1 100%);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.detail-price::before {
    content: '¥';
    font-size: 18px;
}

.detail-price-original {
    font-size: 16px;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* 商品属性 */
.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.detail-meta-label {
    color: var(--gray-500);
    min-width: 60px;
}

/* 规格选择 */
.detail-specs {
    margin-bottom: 24px;
}

.detail-specs-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.detail-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-spec {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray-600);
}

.detail-spec:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.detail-spec.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
    font-weight: 600;
}

/* 数量选择 */
.detail-quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.detail-quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-50);
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.quantity-control button:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.quantity-control input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

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

/* 操作按钮 */
.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-buy {
    flex: 1;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,103,0,0.3);
}

.btn-favorite {
    padding: 16px 24px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

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

.btn-favorite.active {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

/* 商品详情Tab */
.detail-tabs {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.detail-tab-header {
    display: flex;
    border-bottom: 2px solid var(--gray-100);
    padding: 0 24px;
}

.detail-tab-btn {
    padding: 16px 28px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

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

.detail-tab-btn.active {
    color: var(--primary);
}

.detail-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
}

.detail-tab-content {
    padding: 24px;
}

.detail-tab-panel {
    display: none;
}

.detail-tab-panel.active {
    display: block;
}

.detail-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-700);
}

.detail-description img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

/* 评价列表 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.review-nickname {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.review-rating {
    font-size: 14px;
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.review-images {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

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

.review-admin-reply {
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
}

.review-admin-reply-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.review-time {
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== 响应式 - 详情页 ===== */
@media (max-width: 1024px) {
    .detail-main {
        grid-template-columns: 400px 1fr;
        gap: 24px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 0 16px;
    }

    .detail-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .detail-images {
        position: static;
    }

    .detail-name {
        font-size: 20px;
    }

    .detail-price {
        font-size: 28px;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        flex-direction: column;
    }

    .btn-buy {
        padding: 14px 24px;
        font-size: 15px;
    }

    .detail-tab-header {
        padding: 0 16px;
    }

    .detail-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .detail-tab-content {
        padding: 16px;
    }
}
