* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* 深色模式变量 */
body.dark-mode {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --secondary-color: #34d399;
    --danger-color: #f87171;
    --warning-color: #fbbf24;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-light: #6b7280;
    --background: #111827;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* 深色模式特殊样式 */
body.dark-mode .auth-left h2,
body.dark-mode .auth-left p {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

body.dark-mode .auth-container {
    background: #1f2937;
}

body.dark-mode .auth-tab {
    color: #9ca3af;
}

body.dark-mode .auth-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

body.dark-mode .form-group label {
    color: #f3f4f6;
}

body.dark-mode .form-group input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .form-group input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.dark-mode .password-toggle {
    color: #6b7280;
}

body.dark-mode .password-toggle:hover {
    color: #60a5fa;
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

body.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

body.dark-mode .btn-secondary {
    background: #374151;
    color: #60a5fa;
}

body.dark-mode .footer {
    background: #0f172a;
}

body.dark-mode .banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

body.dark-mode .category-item {
    background: #1f2937;
    color: #9ca3af;
}

body.dark-mode .category-item:hover {
    background: #3b82f6;
    color: #ffffff;
}

body.dark-mode .product-card {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .product-card h3 {
    color: #f3f4f6;
}

body.dark-mode .product-card .deposit {
    color: #9ca3af;
}

body.dark-mode .product-card .seller {
    color: #9ca3af;
}

body.dark-mode .user-sidebar {
    background: #1f2937;
}

body.dark-mode .user-nav a {
    color: #9ca3af;
}

body.dark-mode .user-nav a:hover,
body.dark-mode .user-nav a.active {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

body.dark-mode .dropdown-toggle {
    background: #1f2937;
    color: #9ca3af;
}

body.dark-mode .dropdown-toggle:hover,
body.dark-mode .dropdown-toggle.active {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

body.dark-mode .dropdown-menu {
    background: #1f2937;
}

body.dark-mode .dropdown-menu a {
    color: #9ca3af;
}

body.dark-mode .dropdown-menu a:hover,
body.dark-mode .dropdown-menu a.active {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-left-color: #60a5fa;
}

body.dark-mode .user-content {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .data-table {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .data-table th {
    background: #374151;
    color: #f3f4f6;
}

body.dark-mode .data-table tr:hover {
    background: #374151;
}

body.dark-mode .data-table a {
    color: #60a5fa;
}

body.dark-mode .stat-card {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .stat-icon {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

body.dark-mode .stat-value {
    color: #60a5fa;
}

body.dark-mode .stat-label {
    color: #9ca3af;
}

body.dark-mode .product-detail {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .product-info h1 {
    color: #f3f4f6;
}

body.dark-mode .product-meta {
    color: #9ca3af;
}

body.dark-mode .seller-info {
    background: #374151;
    border-color: #4b5563;
}

body.dark-mode .seller-info h4 {
    color: #f3f4f6;
}

body.dark-mode .out-of-stock {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .product-tabs {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .tab-btn {
    color: #9ca3af;
}

body.dark-mode .tab-btn:hover {
    color: #60a5fa;
}

body.dark-mode .tab-btn.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

body.dark-mode .publish-form {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .publish-form h2 {
    color: #f3f4f6;
}

body.dark-mode .sidebar {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .sidebar h3 {
    color: #f3f4f6;
}

body.dark-mode .sidebar ul li a {
    color: #9ca3af;
}

body.dark-mode .sidebar ul li a:hover,
body.dark-mode .sidebar ul li a.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

body.dark-mode .search-bar {
    background: #1f2937;
}

body.dark-mode .search-bar input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .search-bar input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.dark-mode .filter-btn {
    background: #1f2937;
    border-color: #4b5563;
    color: #9ca3af;
}

body.dark-mode .filter-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

body.dark-mode .filter-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

body.dark-mode .balance-tab {
    background: #1f2937;
    border-color: #4b5563;
    color: #9ca3af;
}

body.dark-mode .balance-tab:hover {
    background: #374151;
    color: #60a5fa;
}

body.dark-mode .balance-tab.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

body.dark-mode .balance-tab-content {
    background: #1f2937;
    border-color: #4b5563;
}

body.dark-mode .withdraw-records {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .balance-logs {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .withdraw-form h3 {
    color: #f3f4f6;
}

body.dark-mode .notification-item {
    background: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .notification-item:hover {
    background: #374151;
}

body.dark-mode .notification-item.unread {
    background: rgba(96, 165, 250, 0.1);
    border-left-color: #60a5fa;
}

body.dark-mode .notification-item h4 {
    color: #f3f4f6;
}

body.dark-mode .notification-item p {
    color: #9ca3af;
}

body.dark-mode .notification-item .time {
    color: #6b7280;
}

body.dark-mode .nav.mobile-active {
    background: #1f2937;
}

/* 切换按钮样式 */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .theme-toggle {
    color: var(--text-primary);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 分页器样式 */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    pointer-events: none;
    background-color: var(--background);
    border-color: var(--border-color);
}

.justify-content-center {
    justify-content: center;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

/* 登录和注册页面背景 */
body.login-page, body.register-page {
    background-color: #f9f6f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* 登录和注册页面Logo */
.auth-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.auth-logo .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-logo .logo:hover {
    color: #f57c00;
}

/* 登录和注册容器 */
.auth-container {
    display: flex;
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 左侧欢迎区域 */
.auth-left {
    flex: 1;
    background-image: url('/assets/ing/dl.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.auth-left h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.auth-left p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.auth-image {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
}

/* 右侧表单区域 */
.auth-right {
    flex: 1;
    padding: 3rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #ff9800;
    border-bottom: 2px solid #ff9800;
}



.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* 密码输入框样式 */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ff9800;
}

/* 验证码输入框样式 */
.verification-code {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-code input {
    flex: 1;
}

.verification-code .btn {
    white-space: nowrap;
    min-width: 120px;
    padding: 0.75rem 1rem;
}

/* 手机号输入框样式 */
.phone-input {
    position: relative;
    display: flex;
    align-items: center;
}

.country-code {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 0.875rem;
}

.phone-input input {
    padding-left: 3rem;
}

/* 输入框占位符样式 */
::placeholder {
    color: #999;
    font-size: 0.875rem;
}

.btn-primary {
    background: #ff9800;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.auth-link a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left, .auth-right {
        flex: none;
        width: 100%;
    }
    
    .auth-left {
        padding: 2rem;
    }
    
    .auth-right {
        padding: 2rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-hover);
}

.nav a {
    margin-left: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Main */
.main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-images img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 30px;
    height: 400px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.banner-section {
    flex: 1;
    height: 100%;
}

.login-section {
    width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: transparent;
}

.login-module {
    flex: 0.8;
    background: linear-gradient(to bottom, #FFF5F0, #FFFFFF);
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    min-height: 150px;
}

.verification-module {
    flex: 1.2;
    background: linear-gradient(to bottom, #FFF9F0, #FFFFFF);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    min-height: 180px;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.banner p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* 英雄按钮样式 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #2563eb;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Responsive button height */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
    }
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    flex: 1;
    min-width: 150px;
}

.btn-danger {
    background: var(--danger-color);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Categories */
.categories {
    margin-bottom: 2rem;
}

.categories h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-item {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.category-item:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card a {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.product-card .image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.ratio-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 比例颜色 - 每个比例值都有特定颜色，从低到高逐渐醒目 */
/* 1-10: 蓝色系 */
.ratio-badge.ratio-1 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); box-shadow: 0 4px 12px rgba(191, 219, 254, 0.4); }
.ratio-badge.ratio-2 { background: linear-gradient(135deg, #bfdbfe, #93c5fd); box-shadow: 0 4px 12px rgba(147, 197, 253, 0.4); }
.ratio-badge.ratio-3 { background: linear-gradient(135deg, #93c5fd, #60a5fa); box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4); }
.ratio-badge.ratio-4 { background: linear-gradient(135deg, #60a5fa, #3b82f6); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.ratio-badge.ratio-5 { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); }
.ratio-badge.ratio-6 { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4); }
.ratio-badge.ratio-7 { background: linear-gradient(135deg, #1d4ed8, #1e40af); box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4); }
.ratio-badge.ratio-8 { background: linear-gradient(135deg, #1e40af, #1e3a8a); box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4); }
.ratio-badge.ratio-9 { background: linear-gradient(135deg, #1e3a8a, #1e3a8a); box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4); }
.ratio-badge.ratio-10 { background: linear-gradient(135deg, #1e3a8a, #1e3a8a); box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4); }

/* 11-20: 绿色系 */
.ratio-badge.ratio-11 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); box-shadow: 0 4px 12px rgba(167, 243, 208, 0.4); }
.ratio-badge.ratio-12 { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); box-shadow: 0 4px 12px rgba(110, 231, 183, 0.4); }
.ratio-badge.ratio-13 { background: linear-gradient(135deg, #6ee7b7, #34d399); box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4); }
.ratio-badge.ratio-14 { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); }
.ratio-badge.ratio-15 { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4); }
.ratio-badge.ratio-16 { background: linear-gradient(135deg, #059669, #047857); box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4); }
.ratio-badge.ratio-17 { background: linear-gradient(135deg, #047857, #065f46); box-shadow: 0 4px 12px rgba(6, 95, 70, 0.4); }
.ratio-badge.ratio-18 { background: linear-gradient(135deg, #065f46, #065f46); box-shadow: 0 4px 12px rgba(6, 95, 70, 0.4); }
.ratio-badge.ratio-19 { background: linear-gradient(135deg, #065f46, #065f46); box-shadow: 0 4px 12px rgba(6, 95, 70, 0.4); }
.ratio-badge.ratio-20 { background: linear-gradient(135deg, #065f46, #065f46); box-shadow: 0 4px 12px rgba(6, 95, 70, 0.4); }

/* 21-30: 紫色系 */
.ratio-badge.ratio-21 { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); box-shadow: 0 4px 12px rgba(233, 213, 255, 0.4); }
.ratio-badge.ratio-22 { background: linear-gradient(135deg, #e9d5ff, #d8b4fe); box-shadow: 0 4px 12px rgba(216, 180, 254, 0.4); }
.ratio-badge.ratio-23 { background: linear-gradient(135deg, #d8b4fe, #c084fc); box-shadow: 0 4px 12px rgba(192, 132, 252, 0.4); }
.ratio-badge.ratio-24 { background: linear-gradient(135deg, #c084fc, #a855f7); box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4); }
.ratio-badge.ratio-25 { background: linear-gradient(135deg, #a855f7, #9333ea); box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4); }
.ratio-badge.ratio-26 { background: linear-gradient(135deg, #9333ea, #7e22ce); box-shadow: 0 4px 12px rgba(126, 34, 206, 0.4); }
.ratio-badge.ratio-27 { background: linear-gradient(135deg, #7e22ce, #6b21a8); box-shadow: 0 4px 12px rgba(107, 33, 168, 0.4); }
.ratio-badge.ratio-28 { background: linear-gradient(135deg, #6b21a8, #581c87); box-shadow: 0 4px 12px rgba(88, 28, 135, 0.4); }
.ratio-badge.ratio-29 { background: linear-gradient(135deg, #581c87, #4c1d95); box-shadow: 0 4px 12px rgba(76, 29, 149, 0.4); }
.ratio-badge.ratio-30 { background: linear-gradient(135deg, #4c1d95, #4338ca); box-shadow: 0 4px 12px rgba(67, 56, 202, 0.4); }

/* 31-40: 红色系 */
.ratio-badge.ratio-31 { background: linear-gradient(135deg, #fee2e2, #fecaca); box-shadow: 0 4px 12px rgba(254, 202, 202, 0.4); }
.ratio-badge.ratio-32 { background: linear-gradient(135deg, #fecaca, #fca5a5); box-shadow: 0 4px 12px rgba(252, 165, 165, 0.4); }
.ratio-badge.ratio-33 { background: linear-gradient(135deg, #fca5a5, #f87171); box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4); }
.ratio-badge.ratio-34 { background: linear-gradient(135deg, #f87171, #ef4444); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
.ratio-badge.ratio-35 { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); }
.ratio-badge.ratio-36 { background: linear-gradient(135deg, #dc2626, #b91c1c); box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4); }
.ratio-badge.ratio-37 { background: linear-gradient(135deg, #b91c1c, #991b1b); box-shadow: 0 4px 12px rgba(153, 27, 27, 0.4); }
.ratio-badge.ratio-38 { background: linear-gradient(135deg, #991b1b, #7f1d1d); box-shadow: 0 4px 12px rgba(127, 29, 29, 0.4); }
.ratio-badge.ratio-39 { background: linear-gradient(135deg, #7f1d1d, #651b1b); box-shadow: 0 4px 12px rgba(101, 27, 27, 0.4); }
.ratio-badge.ratio-40 { background: linear-gradient(135deg, #651b1b, #581c1c); box-shadow: 0 4px 12px rgba(88, 28, 28, 0.4); }

/* 41-50: 黄色/橙色系（最醒目） */
.ratio-badge.ratio-41 { background: linear-gradient(135deg, #fef9c3, #fef3c7); box-shadow: 0 4px 12px rgba(254, 243, 199, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-42 { background: linear-gradient(135deg, #fef3c7, #fde68a); box-shadow: 0 4px 12px rgba(253, 230, 138, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-43 { background: linear-gradient(135deg, #fde68a, #fcd34d); box-shadow: 0 4px 12px rgba(252, 211, 77, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-44 { background: linear-gradient(135deg, #fcd34d, #fbbf24); box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-45 { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-46 { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-47 { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-48 { background: linear-gradient(135deg, #b45309, #92400e); box-shadow: 0 4px 12px rgba(146, 64, 14, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-49 { background: linear-gradient(135deg, #92400e, #78350f); box-shadow: 0 4px 12px rgba(120, 53, 15, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }
.ratio-badge.ratio-50 { background: linear-gradient(135deg, #78350f, #78350f); box-shadow: 0 4px 12px rgba(120, 53, 15, 0.4); color: #111827; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3); }

/* 悬停效果 */
.ratio-badge:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* 为每个比例值添加悬停效果 */
.ratio-badge.ratio-1:hover { background: linear-gradient(135deg, #bfdbfe, #dbeafe); box-shadow: 0 6px 16px rgba(191, 219, 254, 0.5); }
.ratio-badge.ratio-2:hover { background: linear-gradient(135deg, #93c5fd, #bfdbfe); box-shadow: 0 6px 16px rgba(147, 197, 253, 0.5); }
.ratio-badge.ratio-3:hover { background: linear-gradient(135deg, #60a5fa, #93c5fd); box-shadow: 0 6px 16px rgba(96, 165, 250, 0.5); }
.ratio-badge.ratio-4:hover { background: linear-gradient(135deg, #3b82f6, #60a5fa); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5); }
.ratio-badge.ratio-5:hover { background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5); }
.ratio-badge.ratio-6:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); box-shadow: 0 6px 16px rgba(29, 78, 216, 0.5); }
.ratio-badge.ratio-7:hover { background: linear-gradient(135deg, #1e40af, #1d4ed8); box-shadow: 0 6px 16px rgba(30, 64, 175, 0.5); }
.ratio-badge.ratio-8:hover { background: linear-gradient(135deg, #1e3a8a, #1e40af); box-shadow: 0 6px 16px rgba(30, 58, 138, 0.5); }
.ratio-badge.ratio-9:hover { background: linear-gradient(135deg, #1e3a8a, #1e3a8a); box-shadow: 0 6px 16px rgba(30, 58, 138, 0.5); }
.ratio-badge.ratio-10:hover { background: linear-gradient(135deg, #1e3a8a, #1e3a8a); box-shadow: 0 6px 16px rgba(30, 58, 138, 0.5); }

.ratio-badge.ratio-11:hover { background: linear-gradient(135deg, #a7f3d0, #d1fae5); box-shadow: 0 6px 16px rgba(167, 243, 208, 0.5); }
.ratio-badge.ratio-12:hover { background: linear-gradient(135deg, #6ee7b7, #a7f3d0); box-shadow: 0 6px 16px rgba(110, 231, 183, 0.5); }
.ratio-badge.ratio-13:hover { background: linear-gradient(135deg, #34d399, #6ee7b7); box-shadow: 0 6px 16px rgba(52, 211, 153, 0.5); }
.ratio-badge.ratio-14:hover { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5); }
.ratio-badge.ratio-15:hover { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 6px 16px rgba(5, 150, 105, 0.5); }
.ratio-badge.ratio-16:hover { background: linear-gradient(135deg, #047857, #059669); box-shadow: 0 6px 16px rgba(4, 120, 87, 0.5); }
.ratio-badge.ratio-17:hover { background: linear-gradient(135deg, #065f46, #047857); box-shadow: 0 6px 16px rgba(6, 95, 70, 0.5); }
.ratio-badge.ratio-18:hover { background: linear-gradient(135deg, #065f46, #065f46); box-shadow: 0 6px 16px rgba(6, 95, 70, 0.5); }
.ratio-badge.ratio-19:hover { background: linear-gradient(135deg, #065f46, #065f46); box-shadow: 0 6px 16px rgba(6, 95, 70, 0.5); }
.ratio-badge.ratio-20:hover { background: linear-gradient(135deg, #065f46, #065f46); box-shadow: 0 6px 16px rgba(6, 95, 70, 0.5); }

.ratio-badge.ratio-21:hover { background: linear-gradient(135deg, #e9d5ff, #f3e8ff); box-shadow: 0 6px 16px rgba(233, 213, 255, 0.5); }
.ratio-badge.ratio-22:hover { background: linear-gradient(135deg, #d8b4fe, #e9d5ff); box-shadow: 0 6px 16px rgba(216, 180, 254, 0.5); }
.ratio-badge.ratio-23:hover { background: linear-gradient(135deg, #c084fc, #d8b4fe); box-shadow: 0 6px 16px rgba(192, 132, 252, 0.5); }
.ratio-badge.ratio-24:hover { background: linear-gradient(135deg, #a855f7, #c084fc); box-shadow: 0 6px 16px rgba(168, 85, 247, 0.5); }
.ratio-badge.ratio-25:hover { background: linear-gradient(135deg, #9333ea, #a855f7); box-shadow: 0 6px 16px rgba(147, 51, 234, 0.5); }
.ratio-badge.ratio-26:hover { background: linear-gradient(135deg, #7e22ce, #9333ea); box-shadow: 0 6px 16px rgba(126, 34, 206, 0.5); }
.ratio-badge.ratio-27:hover { background: linear-gradient(135deg, #6b21a8, #7e22ce); box-shadow: 0 6px 16px rgba(107, 33, 168, 0.5); }
.ratio-badge.ratio-28:hover { background: linear-gradient(135deg, #581c87, #6b21a8); box-shadow: 0 6px 16px rgba(88, 28, 135, 0.5); }
.ratio-badge.ratio-29:hover { background: linear-gradient(135deg, #4c1d95, #581c87); box-shadow: 0 6px 16px rgba(76, 29, 149, 0.5); }
.ratio-badge.ratio-30:hover { background: linear-gradient(135deg, #4338ca, #4c1d95); box-shadow: 0 6px 16px rgba(67, 56, 202, 0.5); }

.ratio-badge.ratio-31:hover { background: linear-gradient(135deg, #fecaca, #fee2e2); box-shadow: 0 6px 16px rgba(254, 202, 202, 0.5); }
.ratio-badge.ratio-32:hover { background: linear-gradient(135deg, #fca5a5, #fecaca); box-shadow: 0 6px 16px rgba(252, 165, 165, 0.5); }
.ratio-badge.ratio-33:hover { background: linear-gradient(135deg, #f87171, #fca5a5); box-shadow: 0 6px 16px rgba(248, 113, 113, 0.5); }
.ratio-badge.ratio-34:hover { background: linear-gradient(135deg, #ef4444, #f87171); box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5); }
.ratio-badge.ratio-35:hover { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5); }
.ratio-badge.ratio-36:hover { background: linear-gradient(135deg, #b91c1c, #dc2626); box-shadow: 0 6px 16px rgba(185, 28, 28, 0.5); }
.ratio-badge.ratio-37:hover { background: linear-gradient(135deg, #991b1b, #b91c1c); box-shadow: 0 6px 16px rgba(153, 27, 27, 0.5); }
.ratio-badge.ratio-38:hover { background: linear-gradient(135deg, #7f1d1d, #991b1b); box-shadow: 0 6px 16px rgba(127, 29, 29, 0.5); }
.ratio-badge.ratio-39:hover { background: linear-gradient(135deg, #651b1b, #7f1d1d); box-shadow: 0 6px 16px rgba(101, 27, 27, 0.5); }
.ratio-badge.ratio-40:hover { background: linear-gradient(135deg, #581c1c, #651b1b); box-shadow: 0 6px 16px rgba(88, 28, 28, 0.5); }

.ratio-badge.ratio-41:hover { background: linear-gradient(135deg, #fef3c7, #fef9c3); box-shadow: 0 6px 16px rgba(254, 243, 199, 0.5); }
.ratio-badge.ratio-42:hover { background: linear-gradient(135deg, #fde68a, #fef3c7); box-shadow: 0 6px 16px rgba(253, 230, 138, 0.5); }
.ratio-badge.ratio-43:hover { background: linear-gradient(135deg, #fcd34d, #fde68a); box-shadow: 0 6px 16px rgba(252, 211, 77, 0.5); }
.ratio-badge.ratio-44:hover { background: linear-gradient(135deg, #fbbf24, #fcd34d); box-shadow: 0 6px 16px rgba(251, 191, 36, 0.5); }
.ratio-badge.ratio-45:hover { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5); }
.ratio-badge.ratio-46:hover { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.5); }
.ratio-badge.ratio-47:hover { background: linear-gradient(135deg, #b45309, #d97706); box-shadow: 0 6px 16px rgba(180, 83, 9, 0.5); }
.ratio-badge.ratio-48:hover { background: linear-gradient(135deg, #92400e, #b45309); box-shadow: 0 6px 16px rgba(146, 64, 14, 0.5); }
.ratio-badge.ratio-49:hover { background: linear-gradient(135deg, #78350f, #92400e); box-shadow: 0 6px 16px rgba(120, 53, 15, 0.5); }
.ratio-badge.ratio-50:hover { background: linear-gradient(135deg, #78350f, #78350f); box-shadow: 0 6px 16px rgba(120, 53, 15, 0.5); }

.product-card h3 {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    height: auto;
    min-height: 48px;
}

.product-card .price-deposit {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .price {
    color: var(--danger-color);
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.product-card .deposit {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.product-card .seller {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Sold Badge */
.product-card {
    position: relative;
}

.sold-badge {
    position: absolute;
    top: 10px;
    right: -10px;
    display: inline-block;
    background: var(--danger-color);
    color: white;
    padding: 4px 20px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.sold-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--danger-color);
}

.sold-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--danger-color);
}

/* Rented Badge - 左边 */
.rented-badge {
    left: -10px;
    right: auto;
    transform: rotate(-45deg);
    background: var(--danger-color);
}

.rented-badge::before {
    left: auto;
    right: -10px;
    border-right: 10px solid transparent;
    border-left: 10px solid var(--danger-color);
}

.rented-badge::after {
    right: auto;
    left: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid var(--danger-color);
}

.product-card .bottom-info {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Auth Form */
.auth-form {
    max-width: 400px;
    margin: 3rem auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.75rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* User Center */
.user-center {
    display: flex;
    gap: 1.5rem;
}

.user-sidebar {
    width: 250px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.user-info {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.user-nav a {
    display: block;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.user-nav a:hover,
.user-nav a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

/* Navigation Dropdown */
.nav-dropdown {
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    background: var(--card-bg);
    cursor: pointer;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-icon.rotated {
    transform: rotate(180deg);
}

.dropdown-menu {
    background: var(--card-bg);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    max-height: 250px;
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.user-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Data Table */
.data-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--text-primary);
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 180px;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 40%;
    white-space: normal;
    word-break: break-word;
}

/* 商品名称文本截断 */
.product-name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 100px;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 80px;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 120px;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 120px;
}

.data-table th:nth-child(6),
.data-table th:nth-child(7) {
    width: 150px;
    text-align: center;
}

.data-table td:nth-child(6),
.data-table td:nth-child(7) {
    width: 150px;
}

/* 时间列样式 - 仅适用于卖家订单（第6列） */
.sell-orders .data-table td:nth-child(6) {
    white-space: normal;
    word-wrap: break-word;
    vertical-align: middle;
    padding: 8px 0;
}

/* 时间列样式 - 适用于买家订单（第5列） */
.buy-orders .data-table td:nth-child(5) {
    white-space: normal;
    word-wrap: break-word;
    vertical-align: middle;
    padding: 8px 0;
}

/* 订单操作列垂直排列 */
.buy-orders .data-table td:nth-child(6),
.sell-orders .data-table td:nth-child(7) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    vertical-align: middle;
    justify-content: center;
    padding: 8px 0;
}

.buy-orders .data-table td:nth-child(6) a,
.sell-orders .data-table td:nth-child(7) a {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px 0;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.buy-orders .data-table td:nth-child(6) a:hover,
.sell-orders .data-table td:nth-child(7) a:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table tr:hover {
    background: #f9fafb;
}

.data-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.data-table a:hover {
    text-decoration: underline;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* 表格中的暂无数据提示居中 */
.data-table td.no-data {
    text-align: center !important;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.product-images {
    flex: 1;
}

.product-images img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-images img:hover {
    box-shadow: var(--shadow-md);
}

.no-image-large {
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: var(--border-radius);
    font-size: 4rem;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-price .price {
    font-size: 2rem;
    color: var(--danger-color);
    font-weight: bold;
}

.seller-info {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.seller-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.buy-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.buy-actions .btn {
    flex: 1;
    font-size: 1rem;
    padding: 1rem;
}

.out-of-stock {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Tabs */
.product-tabs {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.tab-headers {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    display: flex;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Publish Form */
.publish-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.publish-form h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Products Page */
.products-page {
    display: flex;
    gap: 1.5rem;
}

.sidebar {
    width: 250px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.75rem;
}

.sidebar ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.products-content {
    flex: 1;
}

.search-bar {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.search-bar form {
    display: flex;
    gap: 0.75rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.search-bar button:hover {
    background: var(--primary-hover);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 14px;
}

.pagination span {
    color: var(--text-secondary);
}

.pagination .page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.pagination .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .current-page {
    font-weight: 600;
    margin: 0 1rem;
    color: var(--text-primary);
}

/* Filter */
.filter-tabs {
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    margin-right: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Balance */
.balance-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.balance-card {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.balance-card:hover {
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4), 0 10px 10px -5px rgba(79, 70, 229, 0.2);
    transform: translateY(-4px) scale(1.02);
}

.balance-card h3 {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 0.75rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.balance-card .amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.balance-card .amount::before {
    content: '¥';
    font-size: 1.25rem;
    vertical-align: top;
    margin-right: 0.25rem;
    opacity: 0.8;
}

/* 冻结金额卡片特殊样式 */
.balance-card:nth-child(2) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

.balance-card:nth-child(2):hover {
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.4), 0 10px 10px -5px rgba(245, 158, 11, 0.2);
}

.balance-card:nth-child(2)::before {
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
}

.balance-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.balance-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.balance-tab:hover {
    background: #f9fafb;
    color: #3b82f6;
}

.balance-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.balance-tab-content {
    background: white;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.withdraw-records {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.amount-cell {
    font-weight: 600;
    color: var(--danger-color);
}

.account-cell {
    font-family: 'Courier New', monospace;
}

.time-cell {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.action-cell {
    white-space: nowrap;
}

.balance-logs {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.withdraw-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Notifications */
.notification-list {
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.notification-item:hover {
    background: #f9fafb;
    box-shadow: var(--shadow-md);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary-color);
}

.notification-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.notification-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.notification-item .time {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Operation Buttons */
.operation-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.operation-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.operation-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.operation-btn.edit {
    background-color: #3b82f6;
    color: white;
}

.operation-btn.login {
    background-color: #10b981;
    color: white;
}

.operation-btn.disable {
    background-color: #ef4444;
    color: white;
}

.operation-btn.order {
    background-color: #8b5cf6;
    color: white;
}

.operation-btn.detail {
    background-color: #6b7280;
    color: white;
}

.operation-btn.reject-reason {
    background-color: #f59e0b;
    color: white;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
    white-space: nowrap;
}

.status-pending {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-inactive {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-sold {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    .main-content {
        flex-direction: column;
        height: auto;
    }
    
    .banner-section {
        width: 100%;
        height: 300px;
    }
    
    .login-section {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--card-bg);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: left 0.3s ease;
        z-index: 99;
    }
    
    .nav.mobile-active {
        left: 0;
    }
    
    .nav a {
        margin: 10px 0;
        font-size: 16px;
    }
    
    .header-content {
        padding: 1rem;
        justify-content: space-between;
    }
    
    .header-content > div:nth-child(2) {
        order: 3;
        justify-content: flex-end;
    }
    
    /* 隐藏移动端的导航链接容器 */
    .header-content > div:nth-child(3) {
        display: none;
        position: absolute;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    .user-center,
    .products-page,
    .product-detail {
        flex-direction: column;
    }
    
    .user-sidebar,
    .sidebar {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .buy-actions {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    .hot-accounts-table {
        font-size: 12px;
    }
    
    .hot-accounts-table th,
    .hot-accounts-table td {
        padding: 6px 4px;
    }
    
    .floating-sidebar {
        right: 5px;
        width: 160px;
    }
    
    .floating-sidebar.collapsed {
        width: 50px;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left,
    .auth-right {
        flex: none;
        width: 100%;
    }
    
    .auth-left {
        padding: 2rem;
    }
    
    .auth-right {
        padding: 2rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
    }
    
    .balance-info {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination .page-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* 隐藏移动端页脚 */
    .footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }
    
    .banner h1 {
        font-size: 1.5rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hot-accounts-table {
        font-size: 10px;
    }
    
    .hot-accounts-table th,
    .hot-accounts-table td {
        padding: 4px 2px;
    }
    
    .floating-sidebar {
        display: none;
    }
    
    /* 隐藏移动端页脚 */
    .footer {
        display: none;
    }
    
    .hero-buttons .btn {
        width: 160px;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .auth-form {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .publish-form {
        padding: 1.5rem;
    }
    
    .user-content {
        padding: 1.5rem;
    }
    
    .product-detail {
        padding: 1.5rem;
    }
}
