/* 宝鸡博南金属 GEOFlow 文章网站样式 */
:root {
  --primary: #1a5276;
  --primary-light: #2e86c1;
  --accent: #d35400;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #636e72;
  --border: #dfe6e9;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.site-logo {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
}

.site-tagline {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
}

/* Hero */
.hero {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin: 30px 0;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero h1 {
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-light);
  font-size: 15px;
}

/* Article Cards */
.article-list {
  margin-bottom: 40px;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-card h2 {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card h2 a {
  color: var(--primary);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--primary-light);
}

.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Article Detail */
.article-detail {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.article-header h1 {
  font-size: 26px;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-header time {
  font-size: 14px;
  color: var(--text-light);
}

.article-content {
  font-size: 16px;
  line-height: 1.9;
}

.article-content h1 { font-size: 24px; color: var(--primary); margin: 24px 0 12px; }
.article-content h2 { font-size: 20px; color: var(--primary); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.article-content h3 { font-size: 17px; color: var(--text); margin: 18px 0 8px; }
.article-content p { margin-bottom: 14px; }
.article-content strong { color: var(--primary); }
.article-content ul, .article-content ol { margin: 10px 0 16px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; }
.article-content td { padding: 10px 12px; border: 1px solid var(--border); }
.article-content tr:nth-child(even) { background: #f8f9fa; }
.article-content blockquote {
  background: #f0f8ff;
  border-left: 4px solid var(--primary-light);
  padding: 12px 18px;
  margin: 16px 0;
  color: var(--text);
  font-style: italic;
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-nav a:hover {
  color: var(--primary-light);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.footer-info h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-info p {
  font-size: 13px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.footer-info a {
  color: rgba(255,255,255,0.9);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 640px) {
  .article-detail { padding: 20px 16px; }
  .article-header h1 { font-size: 21px; }
  .article-card { padding: 18px 16px; }
  .article-card h2 { font-size: 17px; }
  .site-footer .container { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}
