/* ============================================
   大宗牛肉交易平台 - Modern UI Framework
   设计风格: Professional B2B / Deep Navy + Amber Gold
   ============================================ */

:root {
    /* 主色调 */
    --primary: #0f172a;        /* 深海军蓝 */
    --primary-light: #1e293b;  /* 浅海军蓝 */
    --primary-dark: #020617;   /* 深海蓝 */
    --accent: #f59e0b;         /* 琥珀金 */
    --accent-light: #fbbf24;   /* 亮金 */
    --accent-dark: #d97706;    /* 深金 */
    
    /* 功能色 */
    --success: #10b981;        /* 翡翠绿 */
    --info: #3b82f6;           /* 天蓝 */
    --warning: #f59e0b;        /* 琥珀 */
    --danger: #ef4444;         /* 红色 */
    
    /* 中性色 */
    --bg-body: #f8fafc;       /* 背景灰 */
    --bg-card: #ffffff;        /* 卡片白 */
    --text-primary: #0f172a;  /* 主文字 */
    --text-secondary: #64748b; /* 次要文字 */
    --text-muted: #94a3b8;     /* 弱文字 */
    --border: #e2e8f0;         /* 边框 */
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -1px rgba(15,23,42,0.04);
    --shadow-md: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -2px rgba(15,23,42,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15,23,42,0.1), 0 10px 10px -5px rgba(15,23,42,0.04);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

/* === 导航栏 === */
.navbar-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-modern .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.navbar-modern .nav-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.navbar-modern .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-modern .nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-modern .nav-links a:hover,
.navbar-modern .nav-links a.active {
    color: var(--primary);
    background: rgba(15,23,42,0.05);
}

.navbar-modern .nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.navbar-modern .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(15,23,42,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15,23,42,0.3);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245,158,11,0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(15,23,42,0.03);
    color: var(--primary);
}

.btn-ghost {
    background: rgba(15,23,42,0.04);
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: rgba(15,23,42,0.08);
    color: var(--primary);
}

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

/* === 卡片 === */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.card-body { padding: 24px; }

/* === 徽章 === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* === 表单 === */
.form-group { margin-bottom: 20px; }

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

.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,23,42,0.08);
}

.form-control::placeholder { color: var(--text-muted); }

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* === Hero 区域 === */
.hero-section {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-section .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-section .stat-item h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.hero-section .stat-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* === Section 通用 === */
.section { padding: 80px 0; }
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* === 产品卡片 === */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-card .card-img {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .card-img .img-placeholder {
    font-size: 48px;
    opacity: 0.3;
}

.product-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

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

.product-card .product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card .product-meta span {
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 4px;
}

.product-card .product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-card .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--danger);
}

.product-card .price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.product-card .stock {
    font-size: 12px;
    color: var(--text-muted);
}

/* === 需求卡片 === */
.inquiry-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
}

.inquiry-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.inquiry-card .inquiry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.inquiry-card .inquiry-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.inquiry-card .inquiry-detail {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.inquiry-card .inquiry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.inquiry-card .inquiry-tag {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-body);
    border-radius: 4px;
    color: var(--text-secondary);
}

.inquiry-card .inquiry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* === 优势卡片 === */
.advantage-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.advantage-card .adv-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.05) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.advantage-card h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* === 筛选栏 === */
.filter-bar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.filter-bar .filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--primary);
}

/* === Tab 切换 === */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.tab-nav a {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-nav a:hover { color: var(--primary); }

.tab-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* === 认证卡片 === */
.company-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
}

.company-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.company-card .cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* === 登录/注册框 === */
.auth-box {
    max-width: 440px;
    margin: 60px auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.auth-box .auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px 36px;
    text-align: center;
    color: white;
}

.auth-box .auth-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-box .auth-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.auth-box .auth-body {
    padding: 36px;
}

.auth-box .auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

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

.auth-box .auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-box .auth-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* === Footer === */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 4px 0;
    transition: var(--transition);
}

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

.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state .empty-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}
.empty-state h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* === 面包屑 === */
.breadcrumb-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.breadcrumb-bar .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-bar .breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-bar .breadcrumb span { color: var(--text-muted); }

/* === 详情页 === */
.detail-gallery {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.detail-gallery .main-img {
    height: 420px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-muted);
}

.detail-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
}

.detail-sidebar .detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
}

.detail-sidebar .detail-table {
    width: 100%;
    font-size: 14px;
}

.detail-sidebar .detail-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.detail-sidebar .detail-table td:first-child {
    color: var(--text-muted);
    width: 90px;
}

.detail-sidebar .detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* === 工具类 === */
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-body { background: var(--bg-body) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.container { max-width: 1200px; }

/* === 响应式 === */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 32px; }
    .hero-section .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 50px 0; }
    .auth-box { margin: 30px 16px; }
    .filter-bar .filter-row { flex-direction: column; align-items: stretch; }
}
