/* =============================
   山河货运线专题站 - 全局样式
   WinXP凹凸质感 + Win7 Aero + 现代感
   ============================= */

:root {
  --aero-bg: rgba(20, 35, 55, 0.92);
  --aero-border: rgba(100, 160, 220, 0.35);
  --aero-glow: rgba(80, 150, 220, 0.18);
  --panel-bg: rgba(28, 45, 68, 0.95);
  --panel-border: #2e4d72;
  --accent: #4a9fd4;
  --accent-dark: #2a6496;
  --accent-light: #7ec8f0;
  --text-main: #d0dde8;
  --text-muted: #7a95aa;
  --text-heading: #a8d4f0;
  --danger: #c0392b;
  --success: #27ae60;
  --warning: #e67e22;
  --xp-highlight: rgba(255,255,255,0.07);
  --xp-shadow: rgba(0,0,0,0.4);
  --xp-inset: inset 0 2px 4px rgba(0,0,0,0.5), inset 0 -1px 2px rgba(255,255,255,0.06);
  --xp-raised: 0 2px 0 rgba(255,255,255,0.08), 0 3px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
  background: #0d1b2a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="%230d1b2a"/><circle cx="30" cy="30" r="1" fill="%23162840" opacity="0.8"/></svg>');
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ===== AERO GLASS PANEL ===== */
.aero-panel {
  background: linear-gradient(160deg, rgba(40,65,95,0.92) 0%, rgba(20,38,60,0.96) 100%);
  border: 1px solid var(--aero-border);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.aero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150,210,255,0.3), transparent);
}

/* ===== XP BUTTON ===== */
.btn-xp {
  display: inline-block;
  padding: 8px 22px;
  background: linear-gradient(180deg, #3a7ab8 0%, #1e5a96 50%, #164980 100%);
  border: 1px solid #1a4878;
  border-top-color: #5599cc;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--xp-raised);
  transition: all 0.15s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.btn-xp:hover {
  background: linear-gradient(180deg, #4a8acf 0%, #2d6aa8 50%, #1e5a96 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74,159,212,0.4), var(--xp-raised);
}
.btn-xp:active {
  background: linear-gradient(180deg, #1a4878 0%, #255a8a 100%);
  box-shadow: var(--xp-inset);
  transform: translateY(1px);
}
.btn-xp.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-xp.btn-lg { padding: 11px 32px; font-size: 15px; }
.btn-xp.btn-danger {
  background: linear-gradient(180deg, #c0392b 0%, #922b21 50%, #7b241c 100%);
  border-color: #7b241c;
  border-top-color: #d45045;
}
.btn-xp.btn-success {
  background: linear-gradient(180deg, #27ae60 0%, #1e8449 50%, #196f3d 100%);
  border-color: #196f3d;
  border-top-color: #2ecc71;
}
.btn-xp.btn-secondary {
  background: linear-gradient(180deg, #4a5a6a 0%, #2d3d4d 50%, #1e2d3d 100%);
  border-color: #1e2d3d;
  border-top-color: #6a7a8a;
}

/* ===== XP INSET INPUT ===== */
.input-xp {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: rgba(10, 20, 35, 0.8);
  border: 1px solid #1a3a5a;
  border-top-color: #0a1a2a;
  border-radius: 3px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  box-shadow: var(--xp-inset);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-xp:focus {
  border-color: var(--accent);
  box-shadow: var(--xp-inset), 0 0 0 2px rgba(74,159,212,0.2);
}
.input-xp::placeholder { color: #4a6a8a; }

/* ===== NAVBAR ===== */
#navbar {
  background: linear-gradient(180deg, rgba(30,50,75,0.98) 0%, rgba(15,28,45,0.98) 100%);
  border-bottom: 1px solid rgba(74,159,212,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(12px);
}
#navbar .nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; height: 56px;
}
#navbar .nav-logo {
  font-size: 17px; font-weight: bold; color: #a8d4f0;
  text-shadow: 0 0 12px rgba(74,159,212,0.5);
  margin-right: 32px; white-space: nowrap;
  flex-shrink: 0;
}
#navbar .nav-logo span { color: var(--accent); }
#navbar .nav-links { display: flex; gap: 2px; flex: 1; }
#navbar .nav-links a {
  padding: 6px 14px; color: #8ab0cc; font-size: 13px;
  border-radius: 4px; transition: all 0.2s; white-space: nowrap;
}
#navbar .nav-links a:hover,
#navbar .nav-links a.active {
  background: rgba(74,159,212,0.15);
  color: #d0e8f8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
#navbar .nav-user {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
  font-size: 13px;
}
#navbar .nav-user .avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--aero-border);
  object-fit: cover;
}

/* ===== MAIN CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-wrap { padding: 28px 0; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 18px; font-weight: bold; color: var(--text-heading);
  border-left: 3px solid var(--accent);
  padding-left: 12px; margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(74,159,212,0.3);
}
.section-title small { font-size: 12px; color: var(--text-muted); font-weight: normal; margin-left: 8px; }

/* ===== CARD GRID ===== */
.card-grid { display: grid; gap: 16px; }
.card-grid-3 { grid-template-columns: repeat(3,1fr); }
.card-grid-4 { grid-template-columns: repeat(4,1fr); }
.card-grid-2 { grid-template-columns: repeat(2,1fr); }

.card {
  background: linear-gradient(160deg, rgba(35,55,80,0.9), rgba(20,35,55,0.95));
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(74,159,212,0.2);
}
.card-img { width:100%; height:160px; object-fit:cover; display:block; }
.card-body { padding: 14px 16px; }
.card-title { font-size: 14px; font-weight:bold; color: var(--text-heading); margin-bottom:6px; }
.card-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.card-meta { font-size: 11px; color: #4a6a8a; margin-top: 8px; }

/* ===== ANNOUNCEMENT BAR ===== */
.announce-bar {
  background: linear-gradient(90deg, rgba(26,70,110,0.9), rgba(15,40,65,0.9));
  border: 1px solid rgba(74,159,212,0.25);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.announce-bar .tag {
  background: var(--accent-dark);
  color: #fff; font-size: 11px; padding: 2px 8px;
  border-radius: 3px; white-space: nowrap; flex-shrink: 0;
}
.announce-bar .text { font-size: 13px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== HERO BANNER ===== */
.hero {
  background: linear-gradient(135deg, #0d2240 0%, #1a3a60 40%, #0d2240 100%);
  border-radius: 8px;
  padding: 48px 48px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74,159,212,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><line x1="0" y1="50" x2="100" y2="50" stroke="%234a9fd4" stroke-width="0.3" opacity="0.15"/><line x1="50" y1="0" x2="50" y2="100" stroke="%234a9fd4" stroke-width="0.3" opacity="0.15"/></svg>');
  pointer-events: none;
}
.hero-title { font-size: 32px; font-weight: bold; color: #c8e8ff; margin-bottom: 10px; text-shadow: 0 2px 16px rgba(74,159,212,0.5); }
.hero-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

/* ===== QUICK LINKS ===== */
.quick-links { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-link-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 90px; padding: 14px 8px;
  background: linear-gradient(160deg, rgba(40,65,95,0.9), rgba(20,38,60,0.95));
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text-main); font-size: 12px;
  transition: all 0.2s; text-align: center;
  box-shadow: var(--xp-raised);
  cursor: pointer;
}
.quick-link-btn:hover {
  background: linear-gradient(160deg, rgba(55,85,120,0.95), rgba(30,55,85,0.98));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74,159,212,0.3), var(--xp-raised);
  transform: translateY(-1px);
}
.quick-link-btn .icon { font-size: 24px; margin-bottom: 6px; display: block; }

/* ===== TABLE ===== */
.table-xp {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.table-xp th {
  background: linear-gradient(180deg, #1e3a5a, #162d4a);
  color: #7ab8e0; padding: 10px 14px; text-align: left;
  border-bottom: 1px solid rgba(74,159,212,0.3);
  font-weight: normal; white-space: nowrap;
}
.table-xp td {
  padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-main);
}
.table-xp tr:hover td { background: rgba(74,159,212,0.06); }
.table-xp tr:nth-child(even) td { background: rgba(0,0,0,0.1); }
.table-xp tr:nth-child(even):hover td { background: rgba(74,159,212,0.08); }

/* ===== BADGE ===== */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 11px; font-weight: bold;
}
.badge-primary { background: rgba(42,100,150,0.8); color: #7ec8f0; border: 1px solid #2a6496; }
.badge-success { background: rgba(39,174,96,0.2); color: #6fbd8f; border: 1px solid #27ae60; }
.badge-warning { background: rgba(230,126,34,0.2); color: #e8a55a; border: 1px solid #e67e22; }
.badge-danger  { background: rgba(192,57,43,0.2); color: #e07060; border: 1px solid #c0392b; }
.badge-new { background: rgba(74,159,212,0.3); color: #a8d8f8; border: 1px solid #4a9fd4; }

/* ===== ALERT ===== */
.alert {
  padding: 12px 16px; border-radius: 4px; font-size: 13px; margin-bottom: 16px;
}
.alert-success { background: rgba(39,174,96,0.15); border: 1px solid #27ae60; color: #6fbd8f; }
.alert-danger  { background: rgba(192,57,43,0.15); border: 1px solid #c0392b; color: #e07060; }
.alert-info    { background: rgba(74,159,212,0.15); border: 1px solid #4a9fd4; color: #7ec8f0; }
.alert-warning { background: rgba(230,126,34,0.15); border: 1px solid #e67e22; color: #e8a55a; }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: #8ab0cc; margin-bottom: 6px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--panel-border); margin-bottom: 20px; }
.tab-btn {
  padding: 8px 18px; font-size: 13px; cursor: pointer; border: none;
  background: transparent; color: var(--text-muted); border-radius: 4px 4px 0 0;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  color: var(--accent-light);
  background: linear-gradient(180deg, rgba(74,159,212,0.12), rgba(74,159,212,0.05));
  border-bottom: 2px solid var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.page-btn {
  padding: 6px 12px; border-radius: 3px; font-size: 13px;
  background: linear-gradient(180deg, rgba(40,65,95,0.9), rgba(20,38,60,0.95));
  border: 1px solid var(--panel-border); color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: linear-gradient(180deg, rgba(74,159,212,0.3), rgba(42,100,150,0.4));
  border-color: var(--accent); color: #fff;
}

/* ===== FOOTER ===== */
#footer {
  background: linear-gradient(180deg, rgba(12,22,35,0.98), rgba(8,15,25,0.99));
  border-top: 1px solid rgba(74,159,212,0.15);
  padding: 32px 0 20px;
  margin-top: 48px;
  font-size: 12px; color: var(--text-muted);
}
#footer .footer-inner { max-width:1280px; margin:0 auto; padding:0 24px; }
#footer .footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
#footer .footer-links a { color: #4a7a9a; }
#footer .footer-links a:hover { color: var(--accent-light); }
#footer .footer-copy { color: #2a4a6a; }
#footer .footer-icp { margin-top: 8px; }
#footer .footer-icp a { color: #2a4a6a; font-size: 12px; transition: color 0.2s; }
#footer .footer-icp a:hover { color: var(--accent-light); }

/* ===== LOGIN/REGISTER FORM ===== */
.auth-wrap {
  min-height: calc(100vh - 56px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-box {
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, rgba(35,55,80,0.97), rgba(18,32,52,0.98));
  border: 1px solid var(--aero-border);
  border-radius: 10px;
  padding: 36px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.07);
}
.auth-logo { text-align:center; margin-bottom:28px; }
.auth-logo h2 { font-size: 20px; color: var(--text-heading); }
.auth-logo p { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--panel-border); margin-bottom: 24px; }
.auth-tab {
  flex: 1; text-align: center; padding: 10px; cursor: pointer;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.auth-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0d1b2a; }
::-webkit-scrollbar-thumb { background: #2a4a6a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2,1fr); }
  .card-grid-4 { grid-template-columns: repeat(2,1fr); }
  #navbar .nav-links { display: none; }
}
@media (max-width: 600px) {
  .card-grid-3, .card-grid-4, .card-grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px; }
  .hero-title { font-size: 22px; }
  .auth-box { padding: 28px 20px; }
}

/* ===== MISC UTILS ===== */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-light); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 20px 0; }

/* ===== IP NOTICE BAR ===== */
.ip-notice-bar {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(40,20,10,0.95), rgba(60,30,10,0.9));
  border: 1px solid rgba(230,126,34,0.4);
  border-radius: 6px;
  padding: 10px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #e8a55a;
}
.ip-notice-icon { font-size: 16px; flex-shrink: 0; }

/* ===== RANK TABLE ===== */
.rank-1 td:first-child { color: #ffd700; }
.rank-2 td:first-child { color: #c0c0c0; }
.rank-3 td:first-child { color: #cd7f32; }

/* ===== MEDAL ===== */
.medal-item {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 12px;
  background: linear-gradient(160deg, rgba(40,65,95,0.8), rgba(20,38,60,0.9));
  border: 1px solid rgba(74,159,212,0.2);
  border-radius: 6px; font-size: 11px; color: var(--text-muted);
  min-width: 70px; text-align: center;
}
.medal-item img { width: 40px; height: 40px; }
.medal-item.earned { border-color: rgba(255,215,0,0.4); background: linear-gradient(160deg, rgba(60,50,20,0.8), rgba(40,30,10,0.9)); color: #e8c86a; }

/* ===== COMMUNITY POST ===== */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.post-card {
  background: rgba(20,35,55,0.9);
  border: 1px solid var(--panel-border);
  border-radius: 6px; overflow: hidden;
  transition: all 0.2s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
.post-card-img { width:100%; height:180px; object-fit:cover; display:block; background: #0d1b2a; }
.post-card-body { padding: 10px 12px; }
.post-card-title { font-size: 13px; color: var(--text-main); font-weight:bold; margin-bottom:4px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.post-card-meta { font-size: 11px; color: var(--text-muted); display:flex; gap:10px; }
.post-card-meta span { display:flex; align-items:center; gap:3px; }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ===== SIDEBAR LAYOUT ===== */
.layout-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .layout-sidebar { grid-template-columns: 1fr; } }

/* ===== TOP NOTICE TICKER ===== */
.ticker-wrap {
  background: rgba(10,25,42,0.9);
  border-bottom: 1px solid rgba(74,159,212,0.2);
  padding: 5px 0; overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 0 24px; gap: 12px;
}
.ticker-label { background: var(--accent-dark); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; }
.ticker-text { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== PROGRESS BAR ===== */
.progress { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); border-radius: 3px; transition: width 0.3s; }

/* ===== NEWS ITEM ===== */
.news-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}
.news-item:last-child { border-bottom: none; }
.news-item-cover { width: 100px; height: 65px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #0d1b2a; }
.news-item-body { flex: 1; }
.news-item-title { font-size: 14px; color: var(--text-main); font-weight: bold; margin-bottom: 4px; }
.news-item-title:hover { color: var(--accent-light); }
.news-item-date { font-size: 11px; color: var(--text-muted); }
.news-item-excerpt { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ===== STAT BOX ===== */
.stat-boxes { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.stat-box {
  background: linear-gradient(160deg, rgba(30,55,85,0.9), rgba(15,30,50,0.95));
  border: 1px solid var(--panel-border);
  border-radius: 6px; padding: 16px 18px;
  box-shadow: var(--xp-raised);
}
.stat-box-value { font-size: 26px; font-weight: bold; color: var(--accent-light); line-height: 1; }
.stat-box-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 700px) { .stat-boxes { grid-template-columns: repeat(2,1fr); } }
