/* ===== CSS Variables - Warm Light Theme ===== */
:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fef9f3;
  --accent-primary: #e07a5f;
  --accent-secondary: #81b29a;
  --accent-tertiary: #3d405b;
  --accent-glow: rgba(224, 122, 95, 0.25);
  --text-primary: #2d2a26;
  --text-secondary: #6b6560;
  --text-muted: #9c9690;
  --border-color: #ebe6e0;
  --gradient-warm: linear-gradient(135deg, #e07a5f 0%, #f2cc8f 50%, #81b29a 100%);
  --gradient-glow: linear-gradient(135deg, rgba(224,122,95,0.08) 0%, rgba(129,178,154,0.08) 100%);
  --font-display: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle Warm Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(224,122,95,0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(129,178,154,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ===== Header ===== */
.header {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  padding: 20px 0;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-warm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.logo a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--accent-tertiary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.logo a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.logo img {
  height: 45px;
  border-radius: 8px;
}

.brand {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
  padding: 8px 16px;
  background: var(--gradient-glow);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

/* ===== Banner ===== */
.sjbdmap {
  margin: 30px 0;
  text-align: center;
}

.sjbdmap img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sjbdmap img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(224,122,95,0.12);
}

/* ===== Page Layout ===== */
.container-page {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  padding-bottom: 60px;
}

/* ===== Sidebar ===== */
.pageside {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px 0;
  position: sticky;
  top: 20px;
  height: fit-content;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.site-navbar {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-navbar li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.site-navbar li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gradient-warm);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s ease;
}

.site-navbar li a:hover {
  color: var(--accent-primary);
  background: linear-gradient(90deg, rgba(224,122,95,0.06) 0%, transparent 100%);
}

.site-navbar li a:hover::before {
  height: 60%;
}

.site-navbar li.active a {
  color: var(--accent-primary);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(224,122,95,0.08) 0%, transparent 100%);
}

.site-navbar li.active a::before {
  height: 70%;
}

/* ===== Main Content ===== */
.content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ===== Article Header ===== */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.article-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--gradient-warm);
  border-radius: 2px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

/* ===== Article Content ===== */
.article-content {
  font-size: 16px;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-tertiary);
  margin: 45px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--accent-primary);
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 30px 0 15px;
  font-weight: 600;
}

.article-content p {
  color: var(--text-secondary);
  margin: 15px 0;
  line-height: 1.8;
}

.article-content strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.article-content img {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.article-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(224,122,95,0.1);
}

/* Platform Title Styling */
.platform-title {
  margin: 40px 0 20px !important;
}

.platform-title strong {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px !important;
  font-weight: 600;
  color: var(--bg-primary) !important;
  padding: 10px 24px;
  background: var(--accent-tertiary);
  border-radius: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(61,64,91,0.2);
}

/* ===== Tables ===== */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 25px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.article-content thead {
  background: var(--bg-primary);
}

.article-content th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--accent-tertiary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border-color);
}

.article-content td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content tbody tr {
  transition: all 0.3s ease;
  background: transparent;
}

.article-content tbody tr:hover {
  background: linear-gradient(90deg, rgba(224,122,95,0.04) 0%, transparent 100%);
}

.article-content tbody tr:hover td {
  color: var(--text-primary);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-warm);
  color: var(--bg-primary);
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(224,122,95,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224,122,95,0.35);
  color: var(--bg-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== Waline Comments ===== */
#waline {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

#waline::before {
  content: '💬 评论区';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--bg-card);
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Alert Notices ===== */
.notice {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(224,122,95,0.1) 0%, rgba(224,122,95,0.05) 100%);
  border: 1px solid rgba(224,122,95,0.25);
  border-radius: 16px;
  margin: 25px 0;
  position: relative;
  overflow: hidden;
}

.notice::before {
  content: '⚠️';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.notice p {
  margin: 0;
  padding-left: 30px;
  color: var(--accent-primary) !important;
  font-weight: 500;
}

.notice strong {
  color: var(--accent-primary) !important;
}

.notice-light {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(129,178,154,0.12) 0%, rgba(129,178,154,0.05) 100%);
  border: 1px solid rgba(129,178,154,0.25);
  border-radius: 16px;
  margin: 20px 0;
}

.notice-light strong {
  color: var(--accent-secondary) !important;
  font-weight: 600;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container-page {
    flex-direction: column;
    gap: 20px;
  }

  .pageside {
    width: 100%;
    position: static;
  }

  .content {
    padding: 25px;
  }

  .article-title {
    font-size: 26px;
  }

  .logo a {
    font-size: 22px;
  }

  .site-navbar li a {
    padding: 12px 20px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
  }
}

/* ===== Animations on Load ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.content {
  animation: fadeInUp 0.6s ease-out;
}

.pageside {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.sjbdmap {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
