/* ========================================
   3fpass - Modern E-commerce Frontend Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --bg-gray: #f1f5f9;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   Top Announcement Bar
   ======================================== */
.top-announcement {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.top-announcement i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary) !important;
    text-decoration: none;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.08);
}

.nav-link-icon {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 1.1rem;
}

.btn-admin-link {
    background: var(--bg-gray);
    border-radius: 8px !important;
}

.btn-admin-link:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.dropdown-menu-animated {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

/* ========================================
   Hero Section / Banner
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-tag {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* ========================================
   Category Navigation
   ======================================== */
.category-nav {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 64px;
    z-index: 100;
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-gray);
    border: none;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.category-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   Product Cards
   ======================================== */
.products-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.product-badge.minecraft { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); }
.product-badge.roblox { background: linear-gradient(135deg, #f87171 0%, #ef4444 100%); }
.product-badge.genshin { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); }
.product-badge.christmas { background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%); }
.product-badge.default { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.product-body {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}

.product-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--danger);
}

.product-price small {
    font-size: 14px;
    font-weight: 400;
}

.btn-view-detail {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-view-detail:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 60px 0;
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-gray);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.feature-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.feature-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   Product Detail Page
   ======================================== */
.product-detail-section {
    padding: 40px 0;
}

.product-gallery {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.product-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 商品标签列表样式 */
.product-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-tags-list .badge {
    transition: all 0.3s ease;
}

.product-tags-list .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 商品卡片中的标签预览 */
.product-tags-preview {
    min-height: 1.5rem;
}

.product-tags-preview .badge {
    font-weight: 500;
    transition: all 0.2s ease;
}

.product-tags-preview .badge:hover {
    opacity: 0.8;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-tag.category {
    background: var(--primary);
    color: var(--white);
}

.product-tag.feature {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

/* 购买类型选择器 */
.product-type-selection {
    background: var(--white);
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.selection-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.type-option {
    display: block;
    cursor: pointer;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
    background: var(--white);
}

.type-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.type-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.type-option input[type="radio"] {
    display: none;
}

.type-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.type-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.type-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.type-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.type-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.price-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-display {
    margin: 8px 0;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--danger);
    margin: 0;
}

.price-breakdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.breakdown-label {
    color: var(--text-secondary);
}

.breakdown-value {
    color: var(--text-primary);
    font-weight: 500;
}

.price-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.product-description {
    margin-bottom: 24px;
}

.product-description h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-description p {
    color: var(--text-secondary);
    font-size: 14px;
}

.specs-table {
    background: var(--bg-gray);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.specs-table table {
    width: 100%;
    margin: 0;
}

.specs-table th {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-secondary);
    font-weight: 500;
    padding: 12px 16px;
    width: 120px;
    font-size: 14px;
}

.specs-table td {
    padding: 12px 16px;
    font-size: 14px;
    background: var(--white);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-buy {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-back {
    padding: 14px 32px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-back:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Info Cards */
.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-header i {
    font-size: 1.25rem;
}

.info-card-header.shipping i { color: var(--primary); }
.info-card-header.aftersale i { color: var(--success); }

.info-card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.info-card-body {
    padding: 20px;
}

.info-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   Order Detail Page
   ======================================== */
.order-status-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.status-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.status-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.status-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.status-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.delivery-badge.shipping {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.delivery-badge.download {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.order-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.order-info-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-info-header i {
    font-size: 1.25rem;
    color: var(--primary);
}

.order-info-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.order-info-body {
    padding: 24px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 100px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.info-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.shipped {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

/* Product Preview in Order */
.product-preview {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.product-preview-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.product-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-preview-info h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.product-preview-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.price-summary {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.price-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--border-color);
}

.price-row.total .price-value {
    color: var(--danger);
}

/* ========================================
   Certificate Page
   ======================================== */
.certificate-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
}

.certificate-header {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary);
}

.certificate-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.certificate-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.certificate-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.download-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
    text-align: center;
    margin: 24px 0;
}

.download-code {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    background: rgba(255,255,255,0.2);
    padding: 20px 40px;
    border-radius: var(--radius);
    display: inline-block;
    margin: 16px 0;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    margin-top: 60px;
}

.footer-main {
    padding: 60px 0;
}

.footer-brand h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-slogan {
    color: var(--primary-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-contact i {
    font-size: 1.1rem;
    color: var(--primary-light);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.footer-badges {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.badge-item i {
    color: var(--primary-light);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb-section {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* ========================================
   Alerts
   ======================================== */
.custom-alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.custom-alert.info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-dark);
}

.custom-alert i {
    font-size: 1.25rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .category-nav {
        top: 56px;
    }

    .footer-badges {
        justify-content: flex-start;
        margin-top: 16px;
    }
}

@media (max-width: 767.98px) {
    .top-announcement {
        font-size: 12px;
        padding: 6px 0;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .product-info-title {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .certificate-container {
        padding: 30px 20px;
    }

    .download-code {
        font-size: 1.75rem;
        letter-spacing: 4px;
        padding: 15px 25px;
    }

    .footer-main {
        padding: 40px 0;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .top-announcement,
    .navbar,
    .site-footer,
    .back-to-top,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .certificate-container {
        box-shadow: none;
        border: none;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation */
.product-card { animation: fadeInUp 0.5s ease forwards; }
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }

/* ==================== 支付弹窗样式 ==================== */
.payment-modal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.payment-modal .modal-header {
    border-bottom: 2px solid var(--bg-gray);
    padding: 20px 24px;
}

.payment-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-modal .modal-body {
    padding: 24px;
}

/* 订单信息 */
.payment-order-info {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.order-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.order-label {
    color: var(--text-secondary);
}

.order-value {
    color: var(--text-primary);
    font-weight: 500;
}

.order-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.price-highlight {
    color: var(--danger);
    font-size: 1.5rem;
    font-weight: 700;
}

/* 支付方式标签 */
.payment-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.payment-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.payment-tab i {
    font-size: 1.25rem;
}

/* 二维码容器 */
.payment-qrcode {
    display: none;
    text-align: center;
}

.payment-qrcode.active {
    display: block;
}

.qrcode-container {
    background: var(--white);
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius);
    padding: 24px;
    display: inline-block;
}

.qrcode-image {
    width: 220px;
    height: 220px;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
}

.qrcode-tip {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 支付提示 */
.payment-notice {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.payment-notice i {
    color: var(--primary);
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 575.98px) {
    .payment-modal .modal-body {
        padding: 20px 16px;
    }
    
    .qrcode-image {
        width: 180px;
        height: 180px;
    }
    
    .payment-tabs {
        flex-direction: column;
    }

    .payment-tab {
        width: 100%;
    }
}

/* ========================================
   订单查询页面样式
   ======================================== */

.order-query-section {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
}

.query-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.query-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.query-header {
    text-align: center;
    margin-bottom: 32px;
}

.query-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.query-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.query-header p {
    color: var(--text-secondary);
}

.query-form .form-group {
    margin-bottom: 20px;
}

.query-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.query-form label i {
    color: var(--primary);
    margin-right: 6px;
}

.query-form .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.query-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.query-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.query-form .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-query {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-query:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-query:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 查询结果样式 */
.query-results {
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.results-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}

.order-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.order-item .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-item .order-id {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-item .order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-status.status-pending { background: #fef3c7; color: #92400e; }
.order-status.status-unpaid { background: #fee2e2; color: #991b1b; }
.order-status.status-paid { background: #dbeafe; color: #1e40af; }
.order-status.status-shipped { background: #d1fae5; color: #065f46; }
.order-status.status-received { background: #e0e7ff; color: #3730a3; }
.order-status.status-completed { background: #dcfce7; color: #166534; }

.order-item .order-body {
    margin-bottom: 12px;
}

.order-item .order-body p {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-item .order-body p i {
    margin-right: 6px;
    color: var(--text-muted);
}

.order-item .product-name {
    font-weight: 500;
    color: var(--text-primary) !important;
}

.order-item .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.order-item .order-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--danger);
}

.order-item .btn-detail {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.order-item .btn-detail:hover {
    text-decoration: underline;
}

/* 空结果和错误提示 */
.empty-result, .error-result, .loading-state {
    text-align: center;
    padding: 40px 20px;
    margin-top: 24px;
}

.empty-result i, .error-result i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.empty-result i { color: var(--text-muted); }
.error-result i { color: var(--danger); }

.empty-result p, .error-result p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-result small, .error-result small {
    color: var(--text-muted);
}

.loading-state p {
    margin-top: 12px;
    color: var(--text-secondary);
}

/* 查询提示 */
.query-tips {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.query-tips h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.query-tips h4 i {
    color: var(--info);
    margin-right: 6px;
}

.query-tips ul {
    margin: 0;
    padding-left: 20px;
}

.query-tips li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ========================================
   下单弹窗两步流程样式
   ======================================== */

/* 步骤指示器 */
.order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.order-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.order-steps .step.active {
    color: var(--primary);
}

.order-steps .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.order-steps .step.active .step-num {
    background: var(--primary);
    color: var(--white);
}

.order-steps .step-text {
    font-weight: 500;
}

.order-steps .step-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 16px;
}

/* 商品信息摘要 */
.product-summary {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
}

.product-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.product-summary .summary-row:not(:last-child) {
    border-bottom: 1px dashed var(--border-color);
}

.product-summary .summary-label {
    color: var(--text-secondary);
}

.product-summary .summary-value {
    font-weight: 500;
    color: var(--text-primary);
}

.product-summary .summary-value.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--danger);
}

/* 下单表单 */
.order-form .form-group {
    margin-bottom: 20px;
}

.order-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.order-form label i {
    color: var(--primary);
    margin-right: 6px;
}

.order-form .required {
    color: var(--danger);
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.order-form .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-next {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-next:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 订单创建成功提示 */
.order-success-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: #166534;
    font-weight: 600;
}

.order-success-tip i {
    font-size: 1.25rem;
}

/* 订单信息展示 */
.order-info-box {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.order-info-box .info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.order-info-box .info-row:not(:last-child) {
    border-bottom: 1px dashed var(--border-color);
}

.order-info-box .info-label {
    color: var(--text-secondary);
}

.order-info-box .info-value {
    font-weight: 500;
    color: var(--text-primary);
}

.order-info-box .info-value.order-id {
    font-family: monospace;
    color: var(--primary);
}

.order-info-box .info-value.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--danger);
}

/* 步骤操作按钮 */
.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-back-step {
    flex: 1;
    padding: 12px 20px;
    background: var(--white);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back-step:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-view-order {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.btn-view-order:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 响应式适配 */
@media (max-width: 576px) {
    .order-query-section {
        padding: 30px 0;
    }

    .query-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }

    .query-header i {
        font-size: 2.5rem;
    }

    .query-header h2 {
        font-size: 1.5rem;
    }

    .order-steps {
        flex-wrap: wrap;
        gap: 8px;
    }

    .order-steps .step-line {
        width: 30px;
        margin: 0 8px;
    }

    .step-actions {
        flex-direction: column;
    }
}

/* ========================================
   首页推荐区块样式
   ======================================== */

.recommend-section {
    padding: 40px 0;
}

.hot-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.new-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
}

.section-header-fancy {
    text-align: center;
    margin-bottom: 28px;
}

.section-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-title-wrap i {
    font-size: 1.75rem;
}

.hot-section .section-title-wrap i {
    color: #ef4444;
}

.new-section .section-title-wrap i {
    color: #6366f1;
}

.section-title-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* 横向滚动容器 */
.product-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.product-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.product-scroll::-webkit-scrollbar {
    height: 6px;
}

.product-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.product-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.product-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.product-scroll-item {
    flex: 0 0 auto;
    width: 180px;
    scroll-snap-align: start;
}

/* Mini 商品卡片 */
.product-card.mini {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card.mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card.mini .product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card.mini .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card.mini:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-card.mini .product-body {
    padding: 12px;
}

.product-card.mini .product-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.product-card.mini .product-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-card.mini .product-title a:hover {
    color: var(--primary);
}

.product-card.mini .product-footer {
    display: flex;
    justify-content: flex-start;
}

.product-card.mini .product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--danger);
}

.product-card.mini .product-price small {
    font-size: 0.75rem;
}

/* HOT 徽章 */
.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.hot-badge i {
    font-size: 0.65rem;
}

/* NEW 徽章 */
.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.new-badge i {
    font-size: 0.65rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .recommend-section {
        padding: 30px 0;
    }

    .section-title-wrap h2 {
        font-size: 1.25rem;
    }

    .section-title-wrap i {
        font-size: 1.5rem;
    }

    .product-scroll-item {
        width: 150px;
    }

    .product-card.mini .product-body {
        padding: 10px;
    }

    .product-card.mini .product-title {
        font-size: 0.8rem;
    }
}
