
/* ====== 电商网站共享样式 - 基于NOIR暗黑主题 ====== */

@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a0a0a;
    --accent: #ff3366;
    --accent-hover: #ff1149;
    --text-light: #ffffff;
    --text-muted: #999;
    --bg-dark: #000;
    --bg-section: #0a0a0a;
    --bg-card: #1a1a1a;
    --border-color: #222;
    --success: #4CAF50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196F3;
}

html { scroll-behavior: smooth; }
section { scroll-margin-top: 70px; }

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Arial', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ====== 导航栏 ====== */
nav {
    position: fixed;
    width: 100%;
    padding: 20px 50px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
nav.scrolled {
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}
.logo-link:hover { transform: scale(1.05); }
.logo-svg {
    width: 40px;
    height: 40px;
}
.logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: var(--text-light);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 10px;
    opacity: 0.7;
}
.nav-links a::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent);
    opacity: 0;
    transform: skewX(-10deg);
    transition: all 0.3s ease;
    z-index: -1;
}
.nav-links a:hover { color: white; opacity: 1; }
.nav-links a:hover::before { opacity: 1; }
.nav-links a.active { color: white; opacity: 1; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 2px;
    background: var(--accent);
}
.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 25px;
    font-weight: 600;
    opacity: 1 !important;
}
.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}
.nav-cta::before { display: none; }

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    transition: all 0.3s ease;
}
.cart-icon:hover { color: var(--accent); }
.cart-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    width: 25px; height: 2px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 999;
}
.mobile-nav.active { right: 0; }
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}
.mobile-nav-links a {
    color: var(--text-light);
    font-size: 24px;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}
.mobile-nav-links a:hover { color: var(--accent); transform: translateX(10px); }

/* ====== Hero 区域 ====== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: #000;
    padding-top: 90px;
}
.hero-bg {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    width: 150%; height: 150%;
    top: -25%; left: -25%;
    background: conic-gradient(from 180deg at 50% 50%, #ff3366 0deg, #000 60deg, #ff3366 120deg, #000 180deg, #ff3366 240deg, #000 300deg, #ff3366 360deg);
    animation: spin 20s linear infinite;
    opacity: 0.15;
}
.hero-bg::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-container {
    height: calc(100% - 90px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2;
    align-items: center;
}
.hero-left { padding-right: 60px; }
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.hero-badge::before {
    content: '';
    position: absolute;
    width: 30px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 102, 0.5), transparent);
    left: -30px;
    animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
    0% { left: -30px; }
    100% { left: calc(100% + 30px); }
}
.hero-title {
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
    display: inline-block;
    animation: slideUp 1s ease backwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.4s; }
.hero-title .accent {
    background: linear-gradient(90deg, #ff3366, #ff6690);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.6s backwards;
}
.hero-stats {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    animation: fadeIn 1s ease 0.8s backwards;
}
.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}
.cta-group {
    display: flex;
    gap: 20px;
    animation: fadeIn 1s ease 1s backwards;
}
.cta-button {
    padding: 18px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-block;
}
.cta-button.primary { background: var(--accent); color: white; }
.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.cta-button.primary:hover::before { width: 300px; height: 300px; }
.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.3);
}
.cta-button.outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.cta-button.outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.hero-right {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
}
.hero-carousel {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.carousel-slide {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}
.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    animation: kenburns 12s ease-out;
}
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}
.carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.carousel-indicators {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.indicator {
    width: 40px; height: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}
.indicator.active { background: var(--accent); width: 60px; }
.carousel-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}
.floating-tags {
    position: absolute;
    width: 100%; height: 100%;
    pointer-events: none;
}
.tag {
    position: absolute;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 11px;
    letter-spacing: 1px;
    animation: fadeInScale 1s ease backwards;
}
.tag:nth-child(1) { top: 20%; left: -50px; animation-delay: 1.2s; }
.tag:nth-child(2) { top: 40%; right: -60px; animation-delay: 1.4s; }
.tag:nth-child(3) { bottom: 30%; left: -40px; animation-delay: 1.6s; }
@keyframes fadeInScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease infinite;
    z-index: 3;
}
.scroll-indicator span {
    display: block;
    width: 30px; height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    position: relative;
}
.scroll-indicator span::after {
    content: '';
    display: block;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    animation: scrollDot 2s ease infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}
@keyframes scrollDot {
    0% { top: 10px; opacity: 1; }
    50% { top: 30px; opacity: 0.5; }
    100% { top: 10px; opacity: 1; }
}

/* ====== 商品集合区 ====== */
.collections {
    padding: 120px 50px 100px;
    max-width: 1400px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 48px;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    letter-spacing: 2px;
}
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-size: 12px;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 商品卡片 */
.product-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    border-radius: 8px;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 51, 102, 0.2);
    border-color: rgba(255, 51, 102, 0.3);
}
.product-thumbnail {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    position: relative;
    overflow: hidden;
}
.product-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-image {
    width: 100%;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    position: relative;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card:hover .product-thumbnail img { transform: scale(1.08); }
.product-thumbnail::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 51, 102, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}
.product-card:hover .product-thumbnail::after { transform: translateX(100%); }
.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    letter-spacing: 1px;
    border-radius: 2px;
    position: absolute;
    top: 15px; left: 15px;
    z-index: 2;
}
.product-badge.featured {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
}
.product-video-icon {
    position: absolute;
    top: 15px; right: 15px;
    width: 36px; height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 14px;
    transition: all 0.3s ease;
}
.product-card:hover .product-video-icon {
    background: var(--accent);
    transform: scale(1.1);
}
.product-content {
    padding: 20px 25px;
}
.product-merchant {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.merchant-avatar {
    width: 24px; height: 24px;
    background: linear-gradient(135deg, var(--accent), #ff6690);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
}
.merchant-name {
    font-size: 12px;
    color: var(--text-muted);
}
.product-title {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 700;
}
.product-subtitle {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.product-price {
    font-size: 20px;
    color: var(--accent);
    font-weight: 700;
}
.product-old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.btn-add-cart:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-view-detail {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.btn-view-detail:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ====== 推荐商家区 ====== */
.featured-merchants {
    padding: 100px 50px;
    background: var(--bg-section);
}
.featured-merchants .section-header { margin-bottom: 50px; }
.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}
.merchant-card {
    padding: 40px 30px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.merchant-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    transition: opacity 0.4s ease;
}
.merchant-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.merchant-card:hover::before { opacity: 0.1; }
.merchant-card-avatar {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--accent), #ff6690);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin: 0 auto 20px;
}
.merchant-card-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.merchant-card-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.merchant-card-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.merchant-stat-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
}
.merchant-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.merchant-card-link {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.merchant-card-link:hover {
    background: var(--accent);
    color: white;
}

/* ====== 视频弹窗 ====== */
.video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.video-modal.active { display: flex; }
.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
}
.video-modal-content video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.video-modal-close {
    position: absolute;
    top: -40px; right: 0;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}
.video-modal-close:hover { color: var(--accent); }

/* ====== 商品详情弹窗 ====== */
.detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}
.detail-modal.active { display: block; }
.detail-modal-content {
    max-width: 900px;
    margin: 80px auto;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.detail-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.detail-close:hover { background: var(--bg-card); color: var(--accent); }
.detail-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.detail-modal-image {
    background: #111;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-modal-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}
.detail-modal-video {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    max-height: 100%;
    background: #000;
}
.detail-modal-info {
    padding: 50px 45px;
}
.detail-modal-info .detail-title {
    font-size: 28px;
    margin-bottom: 28px;
    font-weight: 800;
    line-height: 1.4;
}
.detail-modal-info .detail-merchant {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.detail-modal-info .detail-merchant .merchant-logo {
    width: 34px; height: 34px;
    font-size: 14px;
}
.detail-modal-info .detail-merchant .merchant-name {
    font-size: 14px;
    color: var(--text-muted);
}
.detail-modal-info .detail-price-row {
    margin-bottom: 28px;
}
.detail-modal-info .detail-price-row .detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}
.detail-modal-info .detail-stock {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 2;
    letter-spacing: 0.5px;
}
.detail-modal-info .detail-stock span {
    color: var(--text-primary);
    font-weight: 600;
}
.detail-modal-info .detail-description {
    margin-bottom: 40px;
}
.detail-modal-info .detail-description h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.detail-modal-info .detail-description p {
    color: var(--text-muted);
    line-height: 2.2;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.detail-modal-info .detail-actions {
    margin-top: 20px;
}
.detail-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.detail-meta-label { color: var(--text-muted); }
.detail-meta-value { font-weight: 600; }

/* ====== 微信购买弹窗 ====== */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2500;
    opacity: 0;
    transition: opacity 0.3s;
}
.cart-overlay.active { display: block; opacity: 1; }
.wechat-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 0;
    z-index: 2501;
    max-width: 720px;
    width: 92%;
    max-height: 90vh;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}
.wechat-popup.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}
.wechat-popup-content { position: relative; }
.wechat-popup-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    z-index: 5;
    transition: background 0.3s;
}
.wechat-popup-close:hover { background: rgba(0, 0, 0, 0.75); }
.huisheng-image-wrapper {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.huisheng-service-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    object-fit: contain;
}

/* ====== 联系/关于区 ====== */
.featured-section {
    padding: 120px 50px 100px;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}
.featured-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 70%, var(--accent) 0%, transparent 50%);
    opacity: 0.05;
}
.featured-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.highlight-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
.highlight-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}
.highlight-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--accent), #ff6690);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}
.highlight-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.highlight-desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ====== 页脚 ====== */
footer {
    background: #000;
    padding: 80px 50px 30px;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand h3 {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}
.social-links { display: flex; gap: 15px; }
.social-link {
    width: 40px; height: 40px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}
.footer-column h4 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}
.footer-column a {
    color: var(--text-muted);
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}
.footer-column a:hover { color: var(--accent); transform: translateX(5px); }
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom p { color: var(--text-muted); font-size: 14px; }

/* ====== 后台管理通用样式 ====== */
.admin-body { background: #0f0f0f; }

.admin-layout {
    min-height: 100vh;
}

/* 侧边栏 */
.admin-sidebar {
    width: 240px;
    background: #000;
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1;
}
.admin-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
}
.admin-sidebar-header h2 {
    font-size: 22px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.admin-sidebar-header p { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.admin-sidebar-nav { padding: 20px 0; }
.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: var(--text-muted);
    font-size: 14px;
    background: transparent;
    border-left: 3px solid transparent;
    text-decoration: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.admin-sidebar-nav a:hover {
    color: var(--accent);
    background: rgba(255, 51, 102, 0.15);
    border-left-color: var(--accent);
}
.admin-sidebar-nav a:active {
    background: rgba(255, 51, 102, 0.2);
}
.admin-sidebar-nav a.active {
    color: var(--accent);
    background: rgba(255, 51, 102, 0.1);
    border-left-color: var(--accent);
}
.admin-sidebar-nav a:focus,
.admin-sidebar-nav a:focus-visible {
    outline: none;
    background: rgba(255, 51, 102, 0.08);
}
.admin-sidebar-nav a span { font-size: 18px; }

/* 主内容区 */
.admin-main {
    margin-left: 240px;
    padding: 30px;
    min-height: 100vh;
    min-width: 0;
    position: relative;
    z-index: 2;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.admin-topbar h1 { font-size: 24px; }
.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.admin-user-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), #ff6690);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.btn-logout {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.3s;
    border-radius: 4px;
}
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    padding: 25px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-card-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}
.stat-card-icon.red { background: rgba(255, 51, 102, 0.15); color: var(--accent); }
.stat-card-icon.green { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.stat-card-icon.blue { background: rgba(33, 150, 243, 0.15); color: var(--info); }
.stat-card-icon.orange { background: rgba(255, 152, 0, 0.15); color: var(--warning); }
.stat-card-value { font-size: 32px; font-weight: 900; margin-bottom: 5px; }
.stat-card-label { font-size: 13px; color: var(--text-muted); }

/* 数据表格 */
.admin-panel {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
}
.admin-panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-panel-header h3 { font-size: 18px; }
.admin-panel-body { padding: 0; }
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}
.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.data-table tr:last-child td { border-bottom: none; }
.table-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.table-product-thumb {
    width: 50px; height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #222;
}
.table-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.table-product-name { font-weight: 600; }
.table-product-cat { font-size: 12px; color: var(--text-muted); }

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}
.status-active { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.status-inactive { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.status-blocked { background: rgba(244, 67, 54, 0.15); color: var(--danger); }
.status-featured { background: rgba(255, 215, 0, 0.15); color: #ffd700; }

/* 操作按钮 */
.action-btn {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
    margin-right: 5px;
}
.btn-edit { background: rgba(33, 150, 243, 0.15); color: var(--info); }
.btn-edit:hover { background: var(--info); color: white; }
.btn-delete { background: rgba(244, 67, 54, 0.15); color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: white; }
.btn-block { background: rgba(255, 152, 0, 0.15); color: var(--warning); }
.btn-block:hover { background: var(--warning); color: white; }
.btn-feature { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.btn-feature:hover { background: #ffd700; color: #000; }
.btn-unblock { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.btn-unblock:hover { background: var(--success); color: white; }

.btn-primary {
    padding: 10px 25px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-radius: 4px;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3); }
.btn-secondary {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 13px;
    transition: all 0.3s;
    border-radius: 4px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ====== 表单 ====== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 6px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
}
/* 自定义下拉框组件 */
.custom-select {
    position: relative;
    width: 100%;
}
.custom-select-trigger {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.custom-select.open .custom-select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.15);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.custom-select-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}
.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}
.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--accent);
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.custom-select.open .custom-select-options {
    display: block;
}
.custom-select-option {
    padding: 12px 15px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.custom-select-option:last-child {
    border-bottom: none;
}
.custom-select-option:hover {
    background: rgba(255, 51, 102, 0.15);
    color: var(--accent);
}
.custom-select-option.selected {
    background: rgba(255, 51, 102, 0.2);
    color: var(--accent);
}
.custom-select-option.empty {
    color: var(--text-muted);
    cursor: default;
}
.custom-select-option.empty:hover {
    background: transparent;
    color: var(--text-muted);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* 文件上传 */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}
.file-upload-area:hover {
    border-color: var(--accent);
    background: rgba(255, 51, 102, 0.05);
}
.file-upload-area.has-file {
    border-style: solid;
    border-color: var(--success);
}
.file-upload-icon { font-size: 36px; margin-bottom: 10px; }
.file-upload-text { color: var(--text-muted); font-size: 14px; }
.file-upload-preview {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}
.file-upload-preview img,
.file-upload-preview video {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* ====== 弹窗/对话框 ====== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}
.modal-box.large { max-width: 800px; }
.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 20px; }
.modal-close { font-size: 24px; cursor: pointer; color: var(--text-muted); transition: color 0.3s; }
.modal-close:hover { color: var(--accent); }
.modal-body { padding: 30px; }
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ====== Toast 提示 ====== */
.toast-container {
    position: fixed;
    top: 80px; right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 15px 25px;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    color: white;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastSlide 0.3s ease;
    max-width: 350px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }
@keyframes toastSlide {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ====== 登录页 ====== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #000;
}
.login-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: conic-gradient(from 180deg at 50% 50%, #ff3366 0deg, #000 60deg, #ff3366 120deg, #000 180deg, #ff3366 240deg, #000 300deg, #ff3366 360deg);
    opacity: 0.08;
    animation: spin 30s linear infinite;
}
.login-box {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 420px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 16px;
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}
.login-box h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-box p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 14px;
}
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.login-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s;
}
.login-tab.active { background: var(--accent); color: white; }
.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s;
    border-radius: 6px;
    margin-top: 10px;
}
.login-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}
.login-back {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.3s;
}
.login-back:hover { color: var(--accent); }
.login-hint {
    margin-top: 20px;
    padding: 15px;
    background: rgba(33, 150, 243, 0.08);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ====== 空状态 ====== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 15px; opacity: 0.5; }
.empty-state-text { font-size: 16px; }

/* ====== 搜索框 ====== */
.search-box {
    position: relative;
    width: 300px;
}
.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
}
.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}
.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* ====== 分页 ====== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination button {
    min-width: 38px; height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}
.pagination button:hover { border-color: var(--accent); }
.pagination button.active { background: var(--accent); border-color: var(--accent); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ====== 动画 ====== */
@keyframes fadeInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ====== 响应式 ====== */
@media (max-width: 1070px) and (min-width: 769px) {
    nav { padding: 15px 30px; }
    nav.scrolled { padding: 12px 30px; }
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { width: 100%; justify-content: center; gap: 14px; }
    .nav-links a { font-size: 12px; }
    .nav-user-info { gap: 4px; }
    .nav-my-orders { padding: 4px 8px !important; font-size: 12px; }
    .nav-user-name { max-width: 60px; font-size: 12px; }
    .nav-user-avatar { width: 26px; height: 26px; font-size: 12px; }
    .nav-logout-btn { padding: 3px 8px; font-size: 11px; }
    .hero-container { padding: 0 30px; }
    .hero-title { font-size: 60px; }
    .hero-image-wrapper { max-width: 400px; }
    .tag { display: none; }
    .collections, .featured-section { padding-top: 120px; }
}

@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .mobile-nav { display: block; }
    .hero-container { grid-template-columns: 1fr; padding: 0 20px; text-align: center; }
    .hero-left { padding-right: 0; padding-top: 100px; }
    .hero-title { font-size: 42px; }
    .hero-stats { justify-content: center; gap: 30px; }
    .hero-right { display: none; }
    .cta-group { flex-direction: column; align-items: center; }
    .cta-button { width: 220px; text-align: center; padding: 16px 30px; }
    .collections, .featured-section, .featured-merchants { padding: 80px 20px 50px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-thumbnail { height: 220px; }
    .product-content { padding: 15px; }
    .product-title { font-size: 16px; }
    .feature-highlights { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .detail-modal-body { grid-template-columns: 1fr; }
    .detail-modal-image { height: 300px; }
    .wechat-popup { width: 95%; padding: 30px 20px; }
    .admin-sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .admin-sidebar.active { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 10px 12px; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .search-box { width: 100%; }
}

/* 中等屏幕优化（内置浏览器/小窗口） */
@media (max-width: 1024px) and (min-width: 769px) {
    .admin-sidebar { width: 200px; }
    .admin-main { margin-left: 200px; padding: 20px; }
    .admin-sidebar-header { padding: 20px 15px; }
    .admin-sidebar-header h2 { font-size: 18px; }
    .admin-sidebar-nav a { padding: 12px 15px; font-size: 13px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 10px 12px; }
    .admin-topbar h1 { font-size: 20px; }
}

/* ====== 店铺页面样式 ====== */
.shop-back-bar {
    padding: 20px 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}
.shop-back-link {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}
.shop-back-link:hover { color: var(--accent); }

.shop-header {
    position: relative;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.shop-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,51,102,0.05) 0%, transparent 60%);
    border-radius: 12px;
    z-index: -1;
}
.shop-header-content {
    display: flex;
    gap: 40px;
    align-items: center;
}
.shop-hero-left { flex-shrink: 0; }
.shop-merchant-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 51, 102, 0.3);
    border: 4px solid var(--bg-card);
}
.shop-hero-right { flex: 1; }
.shop-merchant-name {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 10px;
    letter-spacing: 1px;
}
.shop-merchant-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 20px;
}
.shop-merchant-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
}
.shop-stat {
    display: flex;
    flex-direction: column;
}
.shop-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}
.shop-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}
.shop-featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b8a 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.shop-collections {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}
.shop-section-header {
    margin-bottom: 30px;
}
.shop-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 20px;
}
.shop-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.shop-filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.shop-filter-btn:hover {
    border-color: rgba(255, 51, 102, 0.5);
    color: var(--text-light);
}
.shop-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.shop-empty {
    text-align: center;
    padding: 80px 40px;
}
.shop-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.shop-empty p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 0 20px;
}
.shop-empty-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}
.shop-empty-link:hover { opacity: 0.9; }

/* 店铺页响应式 */
@media (max-width: 768px) {
    .shop-back-bar { padding: 15px 20px 0; }
    .shop-header { padding: 30px 20px; }
    .shop-header-content { flex-direction: column; text-align: center; gap: 20px; }
    .shop-merchant-avatar { width: 90px; height: 90px; font-size: 36px; }
    .shop-merchant-name { font-size: 28px; }
    .shop-merchant-stats { justify-content: center; gap: 30px; }
    .shop-collections { padding: 30px 20px; }
    .shop-section-title { font-size: 24px; }
    .shop-filter-bar { justify-content: center; }
    .shop-filter-btn { padding: 8px 16px; font-size: 13px; }
}

/* ====== 账号登录/注册弹窗 ====== */
.auth-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.auth-modal.active { display: flex; }
.auth-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 420px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: authFadeIn 0.3s ease;
}
@keyframes authFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.auth-modal-header {
    position: relative;
    padding: 30px 30px 0;
    text-align: center;
}
.auth-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
}
.auth-modal-close:hover { color: var(--accent); }
.auth-tabs {
    display: flex;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.auth-modal-body {
    padding: 30px;
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form-group {
    margin-bottom: 20px;
}
.auth-form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.auth-form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s;
}
.auth-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
}
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b8a 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}
.auth-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-hint {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}
.auth-hint span {
    color: var(--accent);
    cursor: pointer;
}
.auth-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}
.auth-error.show { display: block; }
.auth-demo-accounts {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}
.auth-demo-accounts strong { color: var(--text-light); }

/* 导航栏用户信息 */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 我的订单链接 - 覆盖 .nav-links a 的通用样式避免布局扭曲 */
.nav-my-orders {
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 6px 12px !important;
    opacity: 1 !important;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.nav-my-orders::before {
    display: none !important; /* 移除 .nav-links a::before 的悬停背景 */
}
.nav-my-orders:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(255, 51, 102, 0.1);
}
.nav-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}
.nav-user-name {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-logout-btn {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}
.nav-logout-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
