/* ============================================
   哈夫币出租平台 - 三角洲特种部队风格主题
   Delta Force / Tactical Theme - Black & White
   ============================================ */

/* --- 字体导入 --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* --- CSS 变量 --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-primary: #ffffff;
    --bg-secondary: #f6f6f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f2f2f2;
    --accent-dark: #1a1a1a;
    --accent-mid: #333333;
    --accent-light: #555555;
    --accent-primary: #000000;
    --accent-glow: rgba(0, 0, 0, 0.08);
    --orange-tactical: #e09020;
    --orange-bright: #f0a030;
    --orange-glow: rgba(224, 144, 32, 0.15);
    --gold: #c8960c;
    --gold-glow: rgba(200, 150, 12, 0.12);
    --red-alert: #d63030;
    --blue-intel: #4a90ff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border-dark: #e0e0e0;
    --border-glow: #cccccc;
    --scan-line: rgba(0, 0, 0, 0.015);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-orange: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* --- 全局重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- 扫描线背景覆盖 --- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, var(--scan-line) 2px, var(--scan-line) 4px);
    pointer-events: none; z-index: 9999;
    animation: scanLines 8s linear infinite;
}
@keyframes scanLines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* --- 网格背景 --- */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 9998;
}

/* --- 滚动条 --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ========================================
   顶部导航栏 - Top Navigation
   ======================================== */
.top-nav {
    position: sticky; top: 0; z-index: 1000;
    background: #ffffff;
    border-bottom: 2px solid #000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.top-nav::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #000, transparent);
    animation: navGlow 4s ease-in-out infinite;
}
@keyframes navGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

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

/* Logo */
.logo-section { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo-icon {
    width: 44px; height: 44px;
    background: #000;
    border: 2px solid #000;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; position: relative;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
    animation: logoPulse 3s ease-in-out infinite;
    transform: rotate(3deg);
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
    50% { box-shadow: 0 0 0 2px #fff, 0 0 0 6px #000, 0 0 20px rgba(0,0,0,0.15); }
}

.logo-text {
    font-size: 20px; font-weight: 700; letter-spacing: 3px;
    color: #000; text-transform: uppercase;
    -webkit-background-clip: unset; -webkit-text-fill-color: unset; background-clip: unset;
}
.logo-subtitle {
    font-size: 10px; color: var(--text-muted); letter-spacing: 4px; display: block;
    -webkit-text-fill-color: var(--text-muted);
}

/* 顶部导航链接 */
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; flex-shrink: 0; }

.nav-links li a {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; color: var(--text-secondary); text-decoration: none;
    font-size: 14px; font-weight: 600; letter-spacing: 1px;
    border: 1px solid transparent; border-radius: 4px;
    transition: all 0.3s ease; position: relative; white-space: nowrap;
}
.nav-links li a .nav-icon { font-size: 16px; }

.nav-links li a:hover {
    color: #000; background: #f5f5f5; border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-2px);
}
.nav-links li a.active {
    color: #fff; background: #000; border-color: #000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-links li a.active::after {
    content: '';
    position: absolute; bottom: -1px; left: 10%; width: 80%; height: 2px;
    background: #000;
}

/* 搜索框 */
.search-box {
    display: flex; align-items: center;
    background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px;
    overflow: hidden; transition: all 0.3s ease;
    flex-shrink: 1; min-width: 180px; max-width: 260px;
}
.search-box:focus-within { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.search-box input {
    background: transparent; border: none; padding: 10px 14px;
    color: var(--text-primary); font-family: inherit; font-size: 13px;
    outline: none; width: 100%; letter-spacing: 1px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-btn {
    background: #000; border: none; color: #fff; padding: 10px 14px;
    cursor: pointer; font-size: 16px; transition: all 0.3s ease;
}
.search-btn:hover { background: #333; box-shadow: 0 0 10px rgba(0,0,0,0.1); }

/* --- 移动端汉堡菜单 --- */
.mobile-toggle {
    display: none; background: transparent; border: 1px solid #ccc;
    color: #000; font-size: 24px; padding: 6px 12px; border-radius: 4px;
    cursor: pointer; transition: all 0.3s ease;
}
.mobile-toggle:hover { background: #f5f5f5; }

/* ========================================
   中部分类导航栏 - Mid Category Navigation
   ======================================== */
.mid-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0; position: sticky; top: 64px; z-index: 999;
}
.mid-nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: center;
    gap: 20px; height: 56px;
}
.mid-nav-category {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 28px; color: var(--text-secondary); text-decoration: none;
    font-size: 15px; font-weight: 600; letter-spacing: 2px;
    border: 1px solid transparent; border-radius: 4px;
    transition: all 0.3s ease; position: relative;
    background: transparent; cursor: pointer;
}
.mid-nav-category .cat-icon { font-size: 20px; }
.mid-nav-category .cat-badge {
    font-size: 10px; padding: 2px 8px; border-radius: 10px;
    background: #000; color: #fff; font-weight: 700; letter-spacing: 1px;
}

.mid-nav-category:hover {
    color: #000; border-color: #ccc; background: #f5f5f5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); transform: translateY(-2px);
}
.mid-nav-category.active {
    color: #fff; border-color: #000; background: #000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.mid-nav-category.active::after {
    content: '';
    position: absolute; bottom: -1px; left: 10%; width: 80%; height: 2px;
    background: #000;
}
.mid-nav-category.active .cat-badge { background: #fff; color: #000; }

/* 分类导航分隔符 */
.mid-nav-divider {
    width: 1px; height: 24px;
    background: linear-gradient(180deg, transparent, #ddd, transparent);
}

/* ========================================
   主要内容区域 - Main Content
   ======================================== */
.main-content {
    max-width: 1400px; margin: 0 auto; padding: 30px 20px 60px;
    position: relative; z-index: 1;
}

/* --- 页面标题 --- */
.page-header { text-align: center; margin-bottom: 40px; position: relative; }
.page-title {
    font-size: 36px; font-weight: 900; letter-spacing: 6px;
    color: #000; text-transform: uppercase;
    margin-bottom: 8px; position: relative; display: inline-block;
}
.page-title::before, .page-title::after {
    content: '◆'; color: #000; font-size: 14px;
    position: absolute; top: 50%; transform: translateY(-50%);
}
.page-title::before { left: -40px; animation: diamondLeft 2s ease-in-out infinite; }
.page-title::after { right: -40px; animation: diamondRight 2s ease-in-out infinite; }
@keyframes diamondLeft {
    0%, 100% { opacity: 0.3; left: -40px; }
    50% { opacity: 1; left: -30px; }
}
@keyframes diamondRight {
    0%, 100% { opacity: 0.3; right: -40px; }
    50% { opacity: 1; right: -30px; }
}
.page-subtitle {
    font-size: 14px; color: var(--text-muted); letter-spacing: 4px; display: block;
}
.page-header::after {
    content: ''; display: block; width: 120px; height: 2px;
    background: linear-gradient(90deg, transparent, #000, transparent);
    margin: 15px auto 0;
}

/* --- 战术分割线 --- */
.tactical-divider { display: flex; align-items: center; gap: 15px; margin: 40px 0; opacity: 0.4; }
.tactical-divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #999, transparent); }
.tactical-divider .diamond { color: #000; font-size: 12px; animation: diamondPulse 2s ease-in-out infinite; }
@keyframes diamondPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ========================================
   首页特色 - Hero Section
   ======================================== */
.hero-section {
    position: relative; overflow: hidden;
    border: 1px solid #e0e0e0; border-radius: 8px;
    background: #fff;
    margin-bottom: 40px; box-shadow: var(--shadow-card);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,0,0,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.03) 0%, transparent 50%);
}
.hero-content {
    position: relative; z-index: 1; padding: 60px 50px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.hero-text { flex: 1; }

.hero-badge {
    display: inline-block; padding: 6px 18px;
    background: #000; border: 1px solid #000; border-radius: 3px;
    color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px; font-weight: 900; letter-spacing: 4px;
    line-height: 1.2; margin-bottom: 15px; color: #000;
}
.hero-title .highlight {
    color: #000;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.08) 60%);
}
.hero-title .green-highlight { color: #000; font-style: italic; }
.hero-desc {
    font-size: 16px; color: var(--text-secondary);
    letter-spacing: 1px; margin-bottom: 30px; max-width: 500px;
}
.hero-actions { display: flex; gap: 15px; }

/* 按钮 */
.btn-tactical {
    padding: 12px 30px; font-family: inherit; font-size: 14px;
    font-weight: 700; letter-spacing: 2px; border: 2px solid;
    border-radius: 4px; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
    text-transform: uppercase;
}
.btn-tactical::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-tactical:hover::before { left: 100%; }

.btn-primary {
    background: #000; border-color: #000; color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.2); transform: translateY(-3px);
}
.btn-orange {
    background: #fff; border-color: #000; color: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.btn-orange:hover {
    background: #000; color: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15); transform: translateY(-3px);
}

/* Hero 属性卡 */
.hero-stats { display: flex; gap: 30px; flex-shrink: 0; }
.stat-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 30px 25px; text-align: center; min-width: 130px;
    transition: all 0.3s ease; position: relative;
}
.stat-card:hover { border-color: #000; box-shadow: var(--shadow-glow); transform: translateY(-5px); }
.stat-card .stat-value { font-size: 42px; font-weight: 900; letter-spacing: 2px; color: #000; }
.stat-card .stat-value.green { color: #000; }
.stat-card .stat-value.orange { color: #333; }
.stat-card .stat-value.gold { color: #555; }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 2px; margin-top: 8px; }
.stat-card .stat-icon { font-size: 28px; margin-bottom: 5px; }

/* ========================================
   公告横幅 - Alert Banner
   ======================================== */
.alert-banner {
    background: #fafafa; border: 1px solid #e0e0e0; border-left: 4px solid #000;
    border-radius: 6px; padding: 14px 24px;
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 40px; animation: bannerSlideIn 0.6s ease-out;
}
@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-icon { font-size: 24px; }
.alert-text { flex: 1; font-size: 14px; letter-spacing: 1px; color: var(--text-secondary); }
.alert-text .alert-highlight { color: #000; font-weight: 700; }

/* ========================================
   卡片网格 - Card Grid
   ======================================== */
.section-title {
    font-size: 22px; font-weight: 700; letter-spacing: 4px;
    margin-bottom: 25px; display: flex; align-items: center; gap: 12px;
    color: #000;
}
.section-title .section-icon { color: #000; font-size: 24px; }
.section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, #ccc, transparent);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; margin-bottom: 50px;
}

/* 商品卡片 */
.product-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    overflow: hidden; transition: all 0.4s ease; position: relative;
    animation: cardFadeIn 0.6s ease-out backwards;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.40s; }

.product-card:hover {
    border-color: #000; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.product-card .card-badge {
    position: absolute; top: 15px; right: 15px;
    padding: 4px 12px; border-radius: 3px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; z-index: 2;
}
.badge-hot {
    background: #fff; border: 1px solid var(--red-alert);
    color: var(--red-alert);
    animation: hotPulse 1.5s ease-in-out infinite;
}
@keyframes hotPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(214,48,48,0.15); }
    50% { box-shadow: 0 0 20px rgba(214,48,48,0.3); }
}
.badge-new { background: #f5f5f5; border: 1px solid #000; color: #000; }
.badge-premium { background: #fff; border: 1px solid var(--gold); color: var(--gold); }

.card-img-wrapper {
    position: relative; height: 180px; overflow: hidden;
    background: #fafafa; display: flex; align-items: center; justify-content: center;
}
.card-img-placeholder {
    font-size: 64px; opacity: 0.5;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.card-img-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(transparent, #fff);
}

.card-body { padding: 20px; }
.card-title { font-size: 18px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; color: #000; }
.card-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-price { font-size: 24px; font-weight: 900; color: #000; letter-spacing: 1px; }
.card-price .unit { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.card-stock { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }
.card-stock .in-stock { color: #2a2a2a; }
.card-meta { display: flex; gap: 15px; font-size: 12px; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 15px; }
.card-footer { display: flex; gap: 10px; }

.btn-sm {
    padding: 8px 18px; font-size: 12px; font-weight: 600;
    letter-spacing: 2px; border: 1px solid #ddd; border-radius: 4px;
    background: transparent; color: var(--text-secondary);
    cursor: pointer; font-family: inherit; text-decoration: none;
    transition: all 0.3s ease; text-align: center; flex: 1;
}
.btn-sm:hover { border-color: #000; color: #000; background: #f5f5f5; }
.btn-sm.btn-buy { background: #000; border-color: #000; color: #fff; }
.btn-sm.btn-buy:hover { background: #333; border-color: #333; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ========================================
   数据面板 - Stats Dashboard
   ======================================== */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; margin-bottom: 40px;
}
.dash-stat {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 20px; display: flex; align-items: center; gap: 15px;
    transition: all 0.3s ease;
}
.dash-stat:hover { border-color: #000; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.dash-stat .dash-icon {
    font-size: 36px; width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
    background: #f5f5f5; border-radius: 8px; border: 1px solid #e0e0e0;
}
.dash-stat .dash-info .dash-value { font-size: 28px; font-weight: 900; letter-spacing: 1px; color: #000; }
.dash-stat .dash-info .dash-label { font-size: 12px; color: var(--text-muted); letter-spacing: 2px; }

/* ========================================
   个人中心 - Profile Page
   ======================================== */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 25px; }
.profile-sidebar {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 30px 20px; text-align: center; height: fit-content;
    position: sticky; top: 140px;
}
.profile-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    border: 3px solid #000; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; background: #fafafa;
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px #000;
    animation: avatarGlow 3s ease-in-out infinite;
}
@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #000; }
    50% { box-shadow: 0 0 0 4px #fff, 0 0 0 9px #000, 0 0 20px rgba(0,0,0,0.1); }
}
.profile-name { font-size: 22px; font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; color: #000; }
.profile-id { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 15px; }
.profile-level {
    display: inline-block; padding: 4px 16px;
    background: #000; border: 1px solid #000; border-radius: 3px;
    color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 20px;
}
.profile-menu { list-style: none; text-align: left; }
.profile-menu li { margin-bottom: 2px; }
.profile-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; color: var(--text-secondary); text-decoration: none;
    font-size: 14px; font-weight: 500; letter-spacing: 1px;
    border-radius: 4px; transition: all 0.3s ease;
}
.profile-menu li a:hover,
.profile-menu li a.active { background: #f5f5f5; color: #000; }

.profile-content { display: flex; flex-direction: column; gap: 25px; }
.profile-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 25px; transition: all 0.3s ease;
}
.profile-card:hover { border-color: #ccc; box-shadow: var(--shadow-card); }
.profile-card .card-header {
    font-size: 18px; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 20px; padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex; align-items: center; gap: 10px; color: #000;
}

/* 信息行 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-item .info-label { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; }
.info-item .info-value { font-size: 15px; font-weight: 600; color: #000; letter-spacing: 1px; }

/* ========================================
   发布出租 - Publish Form
   ======================================== */
.publish-form {
    max-width: 800px; margin: 0 auto;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 40px;
}
.form-group { margin-bottom: 25px; }
.form-label {
    display: block; font-size: 14px; font-weight: 600;
    letter-spacing: 2px; color: #000; margin-bottom: 10px;
}
.form-label .required { color: var(--red-alert); margin-left: 4px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 16px;
    background: #fafafa; border: 1px solid #ddd; border-radius: 4px;
    color: #000; font-family: inherit; font-size: 14px;
    letter-spacing: 1px; transition: all 0.3s ease; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; letter-spacing: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- 表单分区标题 --- */
.form-section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    padding: 16px 0 12px;
    margin: 30px 0 20px;
    border-bottom: 2px solid #000;
}

/* --- 芯片多选组件 --- */
.chip-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-option {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fafafa;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.chip-option:hover {
    border-color: #999;
    background: #f0f0f0;
}

.chip-option.selected {
    background: #000;
    border-color: #000;
    color: #fff;
}

.chip-multi .chip-option.selected {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* 双列网格芯片（武器皮肤） */
.chip-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.chip-grid-2 .chip-option {
    text-align: center;
}

/* --- 价目表 --- */
.price-table {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    letter-spacing: 1px;
}

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

.price-row span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.price-row span:last-child {
    color: #000;
    font-weight: 700;
}

/* 文件上传区 */
.upload-zone {
    border: 2px dashed #ddd; border-radius: 8px; padding: 40px;
    text-align: center; transition: all 0.3s ease; cursor: pointer;
    background: #fafafa;
}
.upload-zone:hover { border-color: #000; background: #f5f5f5; }
.upload-zone .upload-icon { font-size: 48px; margin-bottom: 10px; }
.upload-zone .upload-text { font-size: 14px; color: var(--text-secondary); letter-spacing: 1px; }
.upload-zone .upload-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; letter-spacing: 1px; }

/* ========================================
   消息中心 - Messages
   ======================================== */
.messages-layout {
    display: grid; grid-template-columns: 300px 1fr; gap: 0;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    overflow: hidden; min-height: 600px;
}
.message-list { border-right: 1px solid #e0e0e0; overflow-y: auto; max-height: 600px; }
.message-list-header {
    padding: 20px; border-bottom: 1px solid #e0e0e0;
    font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #000;
}
.message-item {
    display: flex; gap: 12px; padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: all 0.3s ease;
}
.message-item:hover, .message-item.active { background: #f8f8f8; }
.message-item.unread { border-left: 3px solid #000; }
.message-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: #f5f5f5; border: 1px solid #e0e0e0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.message-preview { flex: 1; min-width: 0; }
.message-preview .msg-sender { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: #000; }
.message-preview .msg-excerpt {
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px;
}
.message-preview .msg-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.message-detail { padding: 30px; display: flex; flex-direction: column; }
.message-detail-empty {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 16px; letter-spacing: 2px;
}

/* ========================================
   商品咨询 - Consultation
   ======================================== */
.consultation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1100px; margin: 0 auto; }
.consult-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 30px; transition: all 0.3s ease;
}
.consult-card:hover { border-color: #ccc; box-shadow: var(--shadow-card); }
.consult-card .consult-icon { font-size: 48px; margin-bottom: 15px; display: block; }
.consult-card .consult-title { font-size: 20px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; color: #000; }
.consult-card .consult-desc {
    font-size: 14px; color: var(--text-secondary); letter-spacing: 1px;
    margin-bottom: 20px; line-height: 1.8;
}

/* FAQ列表 */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid #e0e0e0; padding: 18px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    font-size: 15px; font-weight: 600; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px; transition: color 0.3s ease; color: #000;
}
.faq-question .q-mark { color: #000; font-weight: 900; font-size: 18px; }
.faq-item:hover .faq-question { color: #555; }
.faq-answer {
    font-size: 13px; color: var(--text-secondary); margin-top: 10px;
    padding-left: 28px; line-height: 1.8; display: none;
    animation: faqSlideDown 0.3s ease-out;
}
.faq-item.open .faq-answer { display: block; }
@keyframes faqSlideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}

/* ========================================
   专区页面 - Category Pages
   ======================================== */
.category-banner {
    background: #fff;
    border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 40px; text-align: center; margin-bottom: 35px;
    position: relative; overflow: hidden;
}
.category-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.02), transparent 60%);
    animation: bannerRotate 20s linear infinite;
}
@keyframes bannerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.category-banner .cat-banner-icon {
    font-size: 72px; display: block; margin-bottom: 15px;
    position: relative; z-index: 1;
    animation: floatIcon 3s ease-in-out infinite;
}
.category-banner .cat-banner-title {
    font-size: 36px; font-weight: 900; letter-spacing: 6px;
    color: #000; position: relative; z-index: 1;
}
.category-banner .cat-banner-desc {
    font-size: 14px; color: var(--text-secondary);
    letter-spacing: 2px; margin-top: 10px; position: relative; z-index: 1;
}

/* 筛选栏 */
.filter-bar {
    display: flex; gap: 15px; flex-wrap: wrap; align-items: center;
    padding: 20px; background: #fff; border: 1px solid #e0e0e0;
    border-radius: 8px; margin-bottom: 25px;
}
.filter-chip {
    padding: 8px 18px; border: 1px solid #ddd; border-radius: 20px;
    background: transparent; color: var(--text-secondary);
    font-family: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease;
}
.filter-chip:hover, .filter-chip.active {
    border-color: #000; color: #fff; background: #000;
}
.filter-sort {
    margin-left: auto; padding: 8px 16px;
    background: #fafafa; border: 1px solid #ddd; border-radius: 4px;
    color: var(--text-secondary); font-family: inherit;
    font-size: 13px; letter-spacing: 1px; cursor: pointer; outline: none;
}

/* ========================================
   筛选导航栏 - Filter Nav Bar
   ======================================== */
.filter-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 998;
    position: sticky;
    top: 120px;
}

.filter-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 48px;
    flex-wrap: wrap;
}

.filter-nav-item {
    position: relative;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-nav-item:hover {
    color: #000;
    background: #f5f5f5;
    border-color: #ddd;
}

.filter-nav-item.active {
    color: #fff;
    background: #000;
    border-color: #000;
}

.filter-nav-item .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.filter-nav-item.open .arrow {
    transform: rotate(180deg);
}

/* --- 下拉弹出小窗口 --- */
.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
    animation: dropdownIn 0.2s ease-out;
}

.filter-dropdown.show {
    display: block;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.filter-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.filter-dropdown-item:hover {
    background: #f5f5f5;
    color: #000;
}

.filter-dropdown-item.selected {
    background: #000;
    color: #fff;
}

/* 下拉窗口分割线 */
.filter-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

/* 两列布局的下拉（刀皮等选项多的） */
.filter-dropdown.cols-2 {
    min-width: 280px;
    display: none;
    flex-wrap: wrap;
    padding: 8px;
}

.filter-dropdown.cols-2.show {
    display: flex;
}

.filter-dropdown.cols-2 .filter-dropdown-item {
    width: 50%;
    padding: 8px 16px;
    border-radius: 4px;
}

/* ========================================
   页脚 - Footer
   ======================================== */
.site-footer {
    background: #fff; border-top: 2px solid #000;
    padding: 40px 20px 20px; margin-top: 60px; position: relative;
}
.site-footer::before {
    content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #000, transparent); opacity: 0.3;
}
.footer-container {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
}
.footer-col h4 { font-size: 16px; font-weight: 700; letter-spacing: 2px; margin-bottom: 15px; color: #000; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: var(--text-muted); text-decoration: none;
    font-size: 13px; letter-spacing: 1px; transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: #000; }
.footer-bottom {
    max-width: 1400px; margin: 30px auto 0; padding-top: 20px;
    border-top: 1px solid #e0e0e0; text-align: center;
    font-size: 12px; color: var(--text-muted); letter-spacing: 2px;
}

/* ========================================
   通知提示 - Toast
   ======================================== */
.toast {
    position: fixed; top: 80px; right: 20px;
    background: #000; border: 1px solid #000; border-radius: 6px;
    padding: 16px 24px; color: #fff; font-weight: 600; letter-spacing: 1px;
    z-index: 10000; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: toastIn 0.4s ease-out, toastOut 0.4s ease-in 2.6s forwards;
    display: flex; align-items: center; gap: 10px;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ========================================
   加载动画 - Loading
   ======================================== */
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid #eee;
    border-top-color: #000; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   页码导航 - Pagination
   ======================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ddd; border-radius: 4px;
    background: transparent; color: var(--text-secondary);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.pagination .page-btn:hover { border-color: #000; color: #000; }
.pagination .page-btn.active {
    background: #000; border-color: #000; color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* ========================================
   弹窗/模态框 - Modal
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.25s ease-out;
}
.modal-overlay.show { display: flex; }
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-panel {
    background: #fff;
    border-radius: 10px;
    width: 520px;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #eee;
}
.modal-title { font-size: 18px; font-weight: 700; letter-spacing: 2px; color: #000; }
.modal-close {
    width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 50%;
    background: #fff; font-size: 16px; cursor: pointer; color: #999;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.modal-close:hover { background: #000; color: #fff; border-color: #000; }

.modal-body { padding: 24px; }
.modal-footer {
    display: flex; gap: 12px; justify-content: flex-end;
    padding: 16px 24px; border-top: 1px solid #eee;
}

/* 支付方式切换标签 */
.payment-tabs {
    display: flex; gap: 12px; margin-bottom: 24px;
}
.payment-tab {
    flex: 1; padding: 14px 20px;
    border: 2px solid #ddd; border-radius: 8px;
    background: #fafafa; color: var(--text-secondary);
    font-family: inherit; font-size: 15px; font-weight: 600;
    letter-spacing: 1px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.25s ease;
}
.payment-tab:hover { border-color: #999; background: #f0f0f0; }
.payment-tab.active { border-color: #000; background: #000; color: #fff; }

/* 支付面板 */
.payment-panel { display: none; }
.payment-panel.active { display: block; animation: modalFadeIn 0.3s ease; }

/* 收款码上传区 */
.upload-qr-zone {
    border: 2px dashed #ddd; border-radius: 10px;
    padding: 30px; text-align: center; cursor: pointer;
    transition: all 0.3s ease; min-height: 180px;
    display: flex; align-items: center; justify-content: center;
    background: #fafafa; position: relative;
}
.upload-qr-zone:hover { border-color: #000; background: #f5f5f5; }

.upload-qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-qr-icon { font-size: 48px; }
.upload-qr-text { font-size: 14px; color: var(--text-secondary); letter-spacing: 1px; font-weight: 600; }
.upload-qr-hint { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }

.upload-qr-preview { position: relative; }
.upload-qr-preview img {
    max-width: 200px; max-height: 200px; border-radius: 6px;
    border: 1px solid #e0e0e0;
}
.upload-qr-delete {
    display: block; margin-top: 10px;
    font-size: 12px; color: #d63030; cursor: pointer; letter-spacing: 1px;
}
.upload-qr-delete:hover { text-decoration: underline; }

/* ========================================
   响应式设计 - Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; padding: 40px 25px; }
    .hero-desc { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
    .messages-layout { grid-template-columns: 1fr; }
    .message-list { max-height: 300px; border-right: none; border-bottom: 1px solid #e0e0e0; }
    .consultation-grid { grid-template-columns: 1fr; }
    .nav-links li a { padding: 8px 10px; font-size: 12px; }
    .mid-nav-category { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; width: 100%;
        flex-direction: column; background: #fff;
        border-bottom: 2px solid #000; padding: 10px 0; gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: 14px 20px; border-radius: 0; border: none; border-bottom: 1px solid #f0f0f0; }
    .search-box { max-width: none; flex: 1; }
    .mid-nav-container { flex-wrap: wrap; height: auto; padding: 10px; gap: 8px; }
    .mid-nav-divider { display: none; }
    .mid-nav-category { padding: 8px 14px; font-size: 12px; }
    .hero-title { font-size: 32px; }
    .hero-stats { flex-wrap: wrap; gap: 15px; }
    .stat-card { min-width: 100px; padding: 20px 15px; }
    .stat-card .stat-value { font-size: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-sort { margin-left: 0; }
    .info-grid { grid-template-columns: 1fr; }

    .filter-nav { top: auto; position: relative; }
    .filter-nav-container { height: auto; padding: 8px; gap: 4px; justify-content: flex-start; }
    .filter-nav-item { padding: 6px 10px; font-size: 11px; }
    .filter-dropdown { left: 0; transform: none; min-width: 140px; }
    .filter-dropdown.cols-2 { min-width: 220px; }
    .filter-dropdown.cols-2 .filter-dropdown-item { width: 100%; }
    .modal-panel { width: 95vw; }
    .payment-tabs { flex-direction: column; }
}

/* ========================================
   特效粒子 - Particle Effects
   ======================================== */
.particle-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.particle {
    position: absolute; width: 2px; height: 2px;
    background: #000; border-radius: 50%;
    animation: particleFloat linear infinite; opacity: 0;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* 页面过渡动画 */
.page-transition { animation: pageFadeIn 0.5s ease-out; }
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HUD角落装饰 */
.hud-corner {
    position: fixed; width: 30px; height: 30px;
    border-color: #ccc; border-style: solid;
    z-index: 100; pointer-events: none; opacity: 0.3;
}
.hud-corner.top-left  { top: 20px; left: 20px; border-width: 2px 0 0 2px; }
.hud-corner.top-right { top: 20px; right: 20px; border-width: 2px 2px 0 0; }
.hud-corner.bottom-left { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; }
.hud-corner.bottom-right { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; }
