/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e4393c;
    --primary-hover: #c9302c;
    --secondary-color: #ff6b6b;
    --price-color: #e4393c;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 4px;
    --radius-lg: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== 顶部工具栏 ========== */
.top-bar {
    background: #f1f1f1;
    border-bottom: 1px solid #e1e1e1;
    font-size: 12px;
}

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

.location {
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.location i {
    color: var(--primary-color);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-links a {
    color: #999;
    transition: var(--transition);
}

.top-links a:hover,
.top-links .highlight {
    color: var(--primary-color);
}

.top-links .sep {
    color: #ddd;
}

/* ========== 头部搜索区 ========== */
.header {
    background: #fff;
    padding: 25px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 40px;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-text span {
    font-size: 12px;
    color: #999;
}

.search-box {
    flex: 1;
    max-width: 560px;
    margin: 0 40px;
}

.search-wrapper {
    position: relative;
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
}

.search-category {
    position: relative;
}

.search-category select {
    padding: 0 10px;
    height: 36px;
    border: none;
    border-right: 1px solid #e0e0e0;
    background: #f5f5f5;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    outline: none;
}

.search-wrapper input {
    flex: 1;
    padding: 0 15px;
    height: 36px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-btn {
    width: 60px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

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

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 80px;
    right: 60px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.hot-keywords {
    margin-top: 5px;
    display: flex;
    gap: 15px;
}

.hot-keywords a {
    font-size: 12px;
    color: #999;
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-box a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 13px;
    position: relative;
}

.cart-box i {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

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

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

.category-trigger {
    width: 200px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-top: none;
    display: none;
    z-index: 100;
}

.category-trigger:hover .category-menu {
    display: block;
}

.category-menu ul li {
    position: relative;
}

.category-menu ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 14px;
    transition: var(--transition);
}

.category-menu ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}

.category-menu ul li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-links {
    display: flex;
    margin-left: 40px;
    gap: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 40px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-tag {
    position: absolute;
    top: -5px;
    right: -25px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.nav-tag.new {
    background: #10b981;
}

/* ========== 首屏焦点区 ========== */
.hero-section {
    background: #fff;
    padding: 10px 0 20px;
}

.hero-wrapper {
    display: flex;
    gap: 10px;
    height: 400px;
}

/* 左侧分类导航 */
.hero-sidebar {
    width: 200px;
    background: #fff;
}

.category-list {
    height: 100%;
}

.category-list li {
    border-bottom: 1px solid #f5f5f5;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 15px;
    color: #333;
    font-size: 13px;
    transition: var(--transition);
}

.category-list li a:hover {
    background: #d9d9d9;
    color: var(--primary-color);
}

.category-list li i {
    font-size: 11px;
    color: #999;
}

/* 中间轮播图 */
.hero-carousel {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.carousel-wrapper {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

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

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

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.btn-buy {
    padding: 10px 25px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    background: var(--primary-hover);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 70px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.hero-carousel:hover .carousel-prev,
.hero-carousel:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0,0,0,0.5);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: var(--primary-color);
}

/* 右侧用户面板 */
.hero-right {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-panel {
    background: #fff;
    padding: 15px;
    border-radius: var(--radius);
    flex: 1;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-login,
.btn-register {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-align: center;
}

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

.btn-register {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.user-assets {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.asset-item {
    text-align: center;
}

.asset-item .number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.asset-item .label {
    font-size: 11px;
    color: #999;
}

.vip-banner {
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(90deg, #ffd700, #ffec8b);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.vip-banner .price {
    color: var(--primary-color);
    font-weight: 700;
}

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

.quick-item {
    background: #fff;
    padding: 10px 5px;
    text-align: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.quick-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.quick-item span {
    font-size: 12px;
}

/* ========== 限时秒杀 ========== */
.seckill-section {
    background: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

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

.seckill-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seckill-title i {
    font-size: 24px;
    color: var(--primary-color);
}

.seckill-title h2 {
    font-size: 20px;
    color: var(--price-color);
}

.countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.time-box {
    display: inline-block;
    padding: 3px 8px;
    background: #333;
    color: #fff;
    font-weight: 700;
    border-radius: 3px;
}

.view-all {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--primary-color);
}

.seckill-slider {
    position: relative;
}

.seckill-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.seckill-list::-webkit-scrollbar {
    display: none;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.seckill-item {
    min-width: 220px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: var(--radius);
    text-align: center;
}

.seckill-img {
    position: relative;
    margin-bottom: 10px;
}

.seckill-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto;
}

.discount-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.seckill-item h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seckill-price {
    margin-bottom: 10px;
}

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

.seckill-price .original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.progress-bar {
    background: #ddd;
    height: 8px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    height: 100%;
    border-radius: 4px;
}

.progress-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #fff;
}

/* ========== 推荐分类 ========== */
.category-section {
    background: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.category-item {
    text-align: center;
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-5px);
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: #fff;
    transition: var(--transition);
}

.cat-icon.phone { background: linear-gradient(135deg, #667eea, #764ba2); }
.cat-icon.computer { background: linear-gradient(135deg, #f093fb, #f5576c); }
.cat-icon.clothing { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cat-icon.beauty { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cat-icon.food { background: linear-gradient(135deg, #fa709a, #fee140); }
.cat-icon.home { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.cat-icon.sports { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.cat-icon.baby { background: linear-gradient(135deg, #ffecd2, #fcb69f); }

.category-item span {
    font-size: 13px;
    color: #666;
}

/* ========== 热门品牌 ========== */
.brand-section {
    background: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

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

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header.center {
    justify-content: center;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.brand-item {
    border: 1px solid #e0e0e0;
    padding: 10px;
    transition: var(--transition);
}

.brand-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.brand-item img {
    width: 100%;
    height: 60px;
    object-fit: contain;
}

/* ========== 品类楼层 ========== */
.floor-section {
    padding: 20px 0;
}

.floor {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
}

.floor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.floor-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floor-num {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    font-size: 14px;
}

.floor-tabs {
    display: flex;
    gap: 20px;
}

.floor-tabs li {
    position: relative;
}

.floor-tabs a {
    color: #666;
    font-size: 14px;
}

.floor-tabs li.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.floor-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.floor-content {
    display: flex;
    gap: 15px;
}

.floor-banner {
    width: 280px;
    position: relative;
    overflow: hidden;
}

.floor-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.floor-banner:hover img {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
}

.banner-text h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.floor-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 10px;
    transition: var(--transition);
    position: relative;
}

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

.product-img {
    position: relative;
    margin-bottom: 10px;
}

.product-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: var(--transition);
}

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

.tag {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
}

.tag.self {
    background: var(--primary-color);
    color: #fff;
}

.tag.free {
    background: #10b981;
    color: #fff;
}

.product-info h4 {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

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

.price i {
    font-size: 14px;
}

.original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.sales {
    font-size: 12px;
    color: #999;
}

.shop {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.shop i {
    margin-right: 3px;
}

.btn-cart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* ========== 直播带货 ========== */
.live-section {
    background: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.live-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.live-cover {
    position: relative;
}

.live-cover img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.live-viewers {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.live-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
}

.anchor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.live-meta h4 {
    font-size: 13px;
    margin-bottom: 3px;
}

.live-meta p {
    font-size: 11px;
    color: #999;
}

/* ========== 为你推荐 ========== */
.recommend-section {
    background: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

.btn-load {
    padding: 12px 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ========== 页脚 ========== */
.footer {
    background: #2e2e2e;
    color: #999;
    margin-top: 30px;
}

.service-bar {
    display: flex;
    justify-content: space-around;
    padding: 30px 0;
    border-bottom: 1px solid #444;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
}

.service-item i {
    font-size: 36px;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 1px solid #444;
}

.link-group h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a {
    color: #999;
    font-size: 12px;
    transition: var(--transition);
}

.link-group ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-nav {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #999;
    margin: 0 10px;
    font-size: 12px;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 12px;
}

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

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

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ========== 购物车飞入动画 ========== */
.cart-fly {
    position: fixed;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

.cart-fly.flying {
    animation: flyToCart 0.8s ease-in-out forwards;
}

@keyframes flyToCart {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .floor-content {
        flex-direction: column;
    }

    .floor-banner {
        width: 100%;
        height: 200px;
    }

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

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

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

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

    .header .container {
        flex-wrap: wrap;
    }

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

    .logo-text h1 {
        font-size: 18px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0;
    }

    .hot-keywords {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hero-wrapper {
        flex-direction: column;
        height: auto;
    }

    .hero-sidebar,
    .hero-right {
        display: none;
    }

    .hero-carousel {
        height: 200px;
    }

    .slide-content {
        bottom: 20px;
        left: 20px;
    }

    .slide-content h3 {
        font-size: 18px;
    }

    .slide-content p {
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .cat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .seckill-item {
        min-width: 160px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .link-group {
        width: 45%;
    }

    .service-bar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .service-item {
        font-size: 14px;
    }

    .service-item i {
        font-size: 24px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}

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

    .live-grid {
        grid-template-columns: 1fr;
    }

    .floor-grid {
        grid-template-columns: 1fr;
    }

    .link-group {
        width: 100%;
    }

    .footer-nav a {
        display: block;
        margin: 5px 0;
    }
}
