/* ========================================
   灵犀数娱 - 全站样式表
   配色: 深空藏蓝主色 + 青蓝渐变 + 粉紫点缀
   ======================================== */

:root {
    /* 主色调 - 来自LOGO */
    --primary: #1a237e;           /* 深空藏蓝 */
    --primary-light: #3949ab;
    --primary-dark: #0d1240;
    --accent-cyan: #00bcd4;        /* 亮青蓝 */
    --accent-cyan-light: #4dd0e1;
    --accent-pink: #e91e63;       /* 粉紫 */
    --accent-pink-light: #f06292;

    /* 功能色 */
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;

    /* 中性色 */
    --bg: #f5f7fa;
    --bg-dark: #0d1240;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-dark: #d1d5db;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #00bcd4 100%);
    --gradient-accent: linear-gradient(135deg, #00bcd4 0%, #e91e63 100%);
    --gradient-hero: linear-gradient(135deg, #0d1240 0%, #1a237e 30%, #3949ab 60%, #00bcd4 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 20px rgba(26,35,126,0.2);

    /* 圆角 */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 6px;

    /* 过渡 */
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-cyan); }

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

/* ========================================
   导航栏
   ======================================== */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

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

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 4px;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.nav-user {
    position: relative;
    cursor: pointer;
}

.nav-user-name {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    display: none;
    z-index: 10;
}

.nav-user:hover .nav-dropdown { display: block; }

.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--bg); color: var(--primary); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========================================
   按钮
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 6px 12px;
}
.btn-text:hover { background: var(--bg); }

.btn-danger-text { color: var(--danger); }

.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ========================================
   Flash 消息
   ======================================== */
.flash-container {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 20px;
}

.flash {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.flash-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.flash-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}

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

/* ========================================
   主内容
   ======================================== */
.main-content {
    flex: 1;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    background: var(--gradient-hero);
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0,188,212,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(233,30,99,0.1) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.85;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(10px);
}

.hero-feature span {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   商品区域
   ======================================== */
.products-section { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

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

.product-card-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.product-badge {
    background: var(--gradient-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-discount-tag {
    background: var(--gradient-accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.product-game {
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.product-face-value {
    font-size: 13px;
    color: var(--text-light);
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-pink);
}

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

.product-card-footer {
    padding: 0 20px 20px;
}

/* ========================================
   购买流程
   ======================================== */
.how-it-works {
    background: #fff;
    padding: 60px 0;
}

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

.step-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.step-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   认证页面
   ======================================== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px - 200px);
    padding: 40px 20px;
    background: var(--gradient-hero);
}

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

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

.auth-logo {
    height: 60px;
    margin-bottom: 16px;
}

.auth-header h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 4px;
}

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

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

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

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input { flex: 1; }

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

.auth-footer a { font-weight: 600; }

/* ========================================
   商品详情
   ======================================== */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-lighter); }

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.product-detail-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
    font-weight: 800;
}

.product-detail-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.tag {
    padding: 4px 12px;
    background: #f0f4ff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.product-detail-price-box {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f4ff 100%);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-detail-price-label {
    color: var(--text-light);
    font-size: 14px;
}

.product-detail-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-pink);
}

.product-detail-original-price {
    font-size: 18px;
    color: var(--text-lighter);
    text-decoration: line-through;
}

.product-detail-info {
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-label {
    width: 100px;
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.info-value {
    color: var(--text);
    font-size: 14px;
}

.product-detail-buy {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-selector label {
    font-size: 14px;
    color: var(--text-light);
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-dark);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.quantity-selector button:hover { border-color: var(--primary); color: var(--primary); }

.quantity-selector input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.product-detail-notice {
    background: #fff9e6;
    border: 1px solid #ffe082;
    border-radius: var(--radius);
    padding: 16px 20px;
}

.product-detail-notice h4 {
    font-size: 14px;
    color: var(--warning);
    margin-bottom: 8px;
}

.product-detail-notice ul {
    list-style: none;
    font-size: 13px;
    color: var(--text-light);
}

.product-detail-notice li {
    padding: 2px 0;
}

.product-detail-notice li::before {
    content: "• ";
    color: var(--warning);
}

/* ========================================
   订单列表
   ======================================== */
.page-header {
    padding: 24px 0;
}

.page-header h2 {
    font-size: 28px;
    color: var(--primary);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

.order-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9ff;
    border-bottom: 1px solid var(--border);
}

.order-info-left { display: flex; gap: 16px; align-items: center; }
.order-no { font-weight: 600; font-size: 14px; color: var(--text); }
.order-date { font-size: 13px; color: var(--text-light); }

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

.order-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-product-name { font-size: 16px; font-weight: 600; }
.order-qty { color: var(--text-light); }

.order-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-pink);
}

.order-card-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
}

/* ========================================
   状态徽章
   ======================================== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-paid, .status-active, .status-unused { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-cancelled, .status-inactive, .status-used { background: #ffebee; color: #c62828; }

/* ========================================
   订单详情
   ======================================== */
.order-detail {
    padding-bottom: 40px;
}

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-highlight {
    border: 2px solid var(--accent-cyan);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9ff;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 18px;
    color: var(--primary);
}

.card-body { padding: 20px; }

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    width: 120px;
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text);
    font-size: 14px;
}

.detail-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-pink);
}

.card-notice {
    background: #e3f2fd;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--primary);
}

.qq-link {
    color: var(--accent-pink);
    font-weight: 700;
    text-decoration: underline;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.card-item-num {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    width: 60px;
    flex-shrink: 0;
}

.card-item-info { flex: 1; }

.card-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.card-item-label {
    font-size: 13px;
    color: var(--text-light);
    width: 50px;
}

.card-item-value {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
}

.btn-copy {
    padding: 2px 10px;
    font-size: 12px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover { opacity: 0.8; }

.order-actions {
    display: flex;
    gap: 12px;
    padding: 20px 0;
}

/* ========================================
   支付页面
   ======================================== */
.pay-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pay-header {
    text-align: center;
    margin-bottom: 32px;
}

.pay-header h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 4px;
}

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

.pay-order-info {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 24px;
}

.pay-order-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pay-order-row:last-child { border-bottom: none; }

.pay-order-total {
    border-top: 2px solid var(--border-dark);
    margin-top: 8px;
    padding-top: 16px;
}

.pay-label { color: var(--text-light); font-size: 14px; }
.pay-value { font-size: 15px; font-weight: 600; }
.pay-amount { font-size: 24px; font-weight: 800; color: var(--accent-pink); }

.pay-methods { margin-bottom: 24px; }
.pay-methods h3 { font-size: 16px; color: var(--text); margin-bottom: 12px; }

.pay-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.pay-method-selected {
    border-color: var(--primary);
    background: #f8f9ff;
}

.pay-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.alipay-icon { background: #1677ff; }

.pay-method-info { flex: 1; }
.pay-method-info strong { display: block; font-size: 16px; }
.pay-method-info span { font-size: 13px; color: var(--text-light); }

.pay-method-check {
    color: var(--primary);
    font-size: 24px;
}

.pay-action { margin-bottom: 16px; }
.pay-tip { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 8px; }

.pay-status {
    text-align: center;
    padding: 40px 20px;
}

.pay-status-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pay-status h3 { font-size: 20px; color: var(--primary); margin-bottom: 8px; }
.pay-status p { color: var(--text-light); font-size: 14px; }
.pay-status-order { margin-top: 16px; font-size: 13px; color: var(--text-lighter); }

.pay-notice-box {
    text-align: center;
    padding: 40px 20px;
    background: #fff9e6;
    border-radius: var(--radius);
    border: 1px solid #ffe082;
}

.pay-notice-box h3 { color: var(--warning); margin-bottom: 8px; }
.pay-notice-box p { color: var(--text-light); margin-bottom: 4px; font-size: 14px; }

.pay-cancel { text-align: center; }

/* ========================================
   关于页面
   ======================================== */
.about-page { padding: 40px 0; }

.about-hero {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: 40px;
}

.about-logo { height: 80px; margin-bottom: 16px; }
.about-hero h1 { font-size: 32px; margin-bottom: 8px; }
.about-hero p { opacity: 0.85; font-size: 16px; }

.about-section { margin-bottom: 40px; }
.about-section h2 { font-size: 24px; color: var(--primary); margin-bottom: 16px; }
.about-section p { font-size: 15px; color: var(--text-light); line-height: 1.8; }

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-feature-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.about-feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.about-feature-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 4px; }
.about-feature-card p { font-size: 13px; color: var(--text-light); }

.about-contact {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.contact-label { font-size: 14px; color: var(--text-light); width: 80px; }
.contact-value { font-size: 18px; font-weight: 700; color: var(--text); }

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

.empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 { font-size: 20px; color: var(--text-light); margin-bottom: 4px; }
.empty-state p { color: var(--text-lighter); margin-bottom: 16px; }

.empty-state-sm {
    text-align: center;
    padding: 40px;
    color: var(--text-lighter);
}

/* ========================================
   错误页面
   ======================================== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 96px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.error-page h2 { font-size: 24px; color: var(--text-light); margin-bottom: 24px; }

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 13px;
    margin-bottom: 6px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    padding: 3px 0;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--accent-cyan); }

.footer-logo {
    height: 40px;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    text-align: center;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ========================================
   管理后台
   ======================================== */
.admin-body { background: var(--bg); }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.admin-sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-logo { height: 32px; }
.admin-sidebar-header span { font-size: 16px; font-weight: 700; }

.admin-nav { flex: 1; padding: 16px 0; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.admin-nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav-link.active { background: rgba(0,188,212,0.2); color: var(--accent-cyan); border-left: 3px solid var(--accent-cyan); }
.admin-nav-link .icon { width: 20px; text-align: center; }

.admin-sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    background: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h1 { font-size: 20px; color: var(--primary); }

.admin-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

.admin-header-right { font-size: 14px; color: var(--text-light); }

.admin-content { padding: 24px; flex: 1; }

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.stat-blue { background: var(--gradient-primary); }
.stat-green { background: linear-gradient(135deg, #4caf50, #81c784); }
.stat-orange { background: linear-gradient(135deg, #ff9800, #ffb74d); }
.stat-purple { background: linear-gradient(135deg, #7b1fa2, #ba68c8); }
.stat-cyan { background: linear-gradient(135deg, #00bcd4, #4dd0e1); }
.stat-pink { background: linear-gradient(135deg, #e91e63, #f06292); }

.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 13px; color: var(--text-light); }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); }

/* 管理面板 */
.admin-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #f8f9ff;
}

.admin-panel-header h3 { font-size: 16px; color: var(--primary); }

.admin-panel-body { padding: 20px; }

.admin-filter { display: flex; gap: 8px; }
.admin-filter .btn.active { background: var(--primary); color: #fff; }

/* 表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: #f5f7fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:hover { background: #f8f9ff; }

/* 表单 */
.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,35,126,0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.config-info pre {
    background: #f5f7fa;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    overflow-x: auto;
    margin: 8px 0;
    color: var(--primary);
}

.config-info p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 12px;
    }
    .nav-menu.show { display: flex; }

    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-features { gap: 20px; }

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

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

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

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

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

    .form-row { grid-template-columns: 1fr; }

    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-sidebar-toggle { display: block; }
}
