:root {
  --primary: #0a1628;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --surface: #111d2e;
  --surface-light: #1a2d42;
  --surface-hover: #223a52;
  --text: #e8ecf1;
  --text-muted: #8a9bb0;
  --border: rgba(255,255,255,0.08);
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --gradient-gold: linear-gradient(135deg, #c9a96e 0%, #e8d5a3 50%, #c9a96e 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--primary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo img { height: 36px; }
.nav-logo span {
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
}

/* Article Page Styles */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.article-header {
  background: var(--gradient-hero);
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 169, 110, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.article-header-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85em;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-title {
  font-size: 2.5em;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--text-muted);
  font-size: 0.9em;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px;
  margin: 40px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.article-body h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--accent);
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.5px;
}

.article-body h3 {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--gold);
  margin: 30px 0 15px;
  letter-spacing: -0.3px;
}

.article-body h4 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text);
  margin: 25px 0 12px;
}

.article-body p {
  font-size: 1.05em;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  text-align: justify;
}

.article-body ul, .article-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text);
}

.article-body li::marker {
  color: var(--accent);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--surface-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body th {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95em;
}

.article-body tr:hover {
  background: var(--surface-hover);
}

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

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.article-body a:hover {
  border-bottom-color: var(--accent);
}

/* Tags */
.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-tag {
  background: var(--surface-light);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.article-tag:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

/* Recommendations */
.recommendations {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
}

.recommendations h3 {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommendations h3::before {
  content: '◆';
  color: var(--gold);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.rec-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: block;
}

.rec-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.rec-card-title {
  font-weight: 600;
  font-size: 0.95em;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}

.rec-card-match {
  font-size: 0.8em;
  color: var(--gold);
  font-weight: 600;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 30px 40px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95em;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9em;
  margin-top: 60px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .article-header { padding: 60px 20px 40px; }
  .article-title { font-size: 1.8em; }
  .article-body { padding: 30px 20px; }
  .article-container { padding: 20px; }
  .nav-links { display: none; }
  .rec-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Selection */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text);
}
