/* ===== 基础变量 ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    --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);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ===== 重置与基础 ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 布局 ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    min-height: calc(100vh - 64px - 300px);
}

/* ===== 导航栏 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.nav-search form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
}

.dropdown-arrow {
    font-size: 0.625rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

.logout-link {
    color: var(--danger) !important;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
}

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

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}

/* ===== 消息提示 ===== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-success { border-color: var(--success); }
.flash-danger { border-color: var(--danger); }
.flash-warning { border-color: var(--warning); }
.flash-info { border-color: var(--info); }

.flash-icon {
    font-size: 1.25rem;
}

.flash-text {
    flex: 1;
    font-size: 0.875rem;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
}

.flash-close:hover {
    color: var(--gray-600);
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--secondary);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ===== 区块通用 ===== */
section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-badge {
    padding: 0.25rem 0.625rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.section-subtitle {
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

/* ===== 分类区域 ===== */
.categories-section {
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.category-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
}

.category-arrow {
    margin-top: 1rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 商品网格 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.products-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

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

.product-link {
    display: block;
    color: inherit;
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}

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

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

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.product-badge.stock-low {
    background: var(--danger);
    color: white;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-tag {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}

.price-symbol {
    font-size: 0.875rem;
    color: var(--danger);
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--danger);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.product-stock {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ===== 特色服务 ===== */
.features-section {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== 流程区域 ===== */
.process-section {
    background: white;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    min-width: 180px;
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--gray-300);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--secondary);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    font-size: 0.875rem;
    padding: 0.375rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    font-size: 0.875rem;
    padding: 0.375rem 0;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ===== 页面头部 ===== */
.page-header {
    background: var(--secondary);
    color: white;
    padding: 3rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--gray-400);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb-separator {
    color: var(--gray-600);
}

.breadcrumb-current {
    color: white;
}

/* ===== 筛选栏 ===== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-item {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.2s;
}

.filter-item:hover,
.filter-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-keyword {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.clear-keyword {
    color: white;
    font-weight: 700;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all 0.2s;
}

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

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn.disabled {
    color: var(--gray-400);
    cursor: default;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state.small {
    padding: 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ===== 认证页面 ===== */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 50%, var(--gray-50) 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-box {
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-textarea.code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.forgot-link {
    font-size: 0.875rem;
}

.form-agreement {
    padding: 0.5rem 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-social {
    text-align: center;
}

.social-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.auth-info {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
}

.benefit-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

.benefit-icon {
    font-size: 1.5rem;
}

.benefit-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-text p {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ===== 商品详情 ===== */
.product-detail {
    padding: 2rem 0 4rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
}

.thumb-item {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb-item:hover {
    border-color: var(--primary);
}

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

.product-info-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.product-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--gray-600);
    line-height: 1.7;
}

.product-pricing {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.price-value-large {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-value-large .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--danger);
}

.price-value-large .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--danger);
}

.price-value-large .unit {
    font-size: 1rem;
    color: var(--gray-500);
}

.price-option {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--gray-200);
    font-size: 0.875rem;
}

.price-option-label {
    color: var(--gray-500);
}

.price-option-value {
    font-weight: 600;
    color: var(--gray-700);
}

.price-deposit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.deposit-info {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: help;
}

.product-specs-detail h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.spec-label {
    color: var(--gray-500);
}

.spec-value {
    font-weight: 500;
    color: var(--gray-900);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stock-value.stock-low {
    color: var(--danger);
    font-weight: 600;
}

.product-services {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.service-icon {
    font-size: 1.25rem;
}

/* ===== 租赁规则 ===== */
.product-rules {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.product-rules h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.rules-custom {
    line-height: 1.8;
    font-size: .9rem;
    color: var(--gray-600);
}
.rules-custom h4 {
    font-size: .9375rem;
    font-weight: 600;
    margin: .75rem 0 .25rem;
    color: var(--gray-800);
}
.rules-custom p {
    margin: 0 0 .5rem;
    color: var(--gray-500);
}
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.rule-item {
    display: flex;
    gap: 1rem;
}

.rule-icon {
    font-size: 1.5rem;
}

.rule-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rule-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ===== 相关商品 ===== */
.related-products {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* ===== 个人中心 ===== */
.profile-page {
    padding: 2rem 0 4rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.profile-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-banned {
    background: #fee2e2;
    color: #991b1b;
}

.profile-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.credit-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.credit-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-nav {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.profile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.profile-nav .nav-item:hover,
.profile-nav .nav-item.active {
    background: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-icon {
    font-size: 1.125rem;
}

.profile-content {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.content-panel {
    display: none;
    padding: 2rem;
}

.content-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.panel-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.idcard-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.idcard-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.idcard-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.upload-box {
    aspect-ratio: 3/2;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-label input {
    display: none;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
}

.upload-icon {
    font-size: 2rem;
}

.upload-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 订单页面 ===== */
.orders-page {
    padding: 2rem 0 4rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.tab-item {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
}

.tab-item:hover,
.tab-item.active {
    background: var(--primary);
    color: white;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.order-info {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.order-no {
    font-weight: 500;
    color: var(--gray-700);
}

.order-date {
    color: var(--gray-500);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.order-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.status-paid {
    background: #dbeafe;
    color: #1e40af;
}

.order-status.status-renting {
    background: #dcfce7;
    color: #166534;
}

.order-status.status-completed {
    background: #f3f4f6;
    color: var(--gray-600);
}

.order-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
}

.order-product {
    display: flex;
    gap: 1rem;
}

.product-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
}

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

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-details {
    flex: 1;
}

.product-details .product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.product-rental {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.rental-days {
    color: var(--primary);
}

.order-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.price-row.total {
    padding-top: 0.5rem;
    border-top: 1px dashed var(--gray-200);
    font-size: 0.9375rem;
    font-weight: 600;
}

.total-amount {
    color: var(--danger);
}

.order-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
}

/* ===== 订单详情页 ===== */
.order-detail-page {
    padding: 2rem 0 4rem;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.order-status-card {
    grid-column: 1 / -1;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 2rem;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.status-badge-large {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
}

.status-badge-large.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-large.status-paid,
.status-badge-large.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge-large.status-renting,
.status-badge-large.status-shipping {
    background: #dcfce7;
    color: #166534;
}

.status-badge-large.status-completed,
.status-badge-large.status-returned {
    background: #f3f4f6;
    color: var(--gray-600);
}

.status-badge-large.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-number {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.status-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 1rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 2px solid var(--gray-300);
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.timeline-item.completed .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-content {
    text-align: center;
}

.timeline-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.timeline-item.completed .timeline-title {
    color: var(--gray-900);
}

.timeline-time {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.order-info-card,
.order-payment-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.order-info-card h3,
.order-payment-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.product-detail {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.product-thumb {
    width: 100px;
    height: 75px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

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

.product-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rental-period {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.rental-period .days {
    color: var(--primary);
}

.info-list {
    padding: 0.5rem 0;
}

.info-row {
    display: flex;
    padding: 0.625rem 0;
    font-size: 0.875rem;
}

.info-label {
    width: 100px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.info-value {
    color: var(--gray-900);
    font-weight: 500;
}

.order-note {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    border-left: 3px solid var(--primary);
}

.payment-detail {
    padding: 0.5rem 0;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.payment-row.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-200);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.payment-row.total .total-amount {
    color: var(--danger);
    font-size: 1.25rem;
    font-weight: 700;
}

.payment-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== 前台商品页 ===== */
.products-page {
    padding: 2rem 0 4rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .status-timeline {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .status-timeline::before {
        top: 0;
        bottom: 0;
        left: 12px;
        width: 2px;
        height: auto;
        right: auto;
    }
    
    .timeline-item {
        flex-direction: row;
        gap: 1rem;
    }
    
    .timeline-dot {
        margin-bottom: 0;
    }
    
    .timeline-content {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-search {
        display: none;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-info {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-body {
        grid-template-columns: 1fr;
    }
    
    .product-thumb {
        width: 80px;
        height: 60px;
    }
}

/* ===== 工具类 ===== */
.text-muted {
    color: var(--gray-500);
}

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

.mt-4 {
    margin-top: 1.5rem;
}