/* ===== Ocean Data Daily Report - Global Styles ===== */
:root {
  --primary: #0f4c75;
  --primary-light: #1b6ca8;
  --accent: #3282b8;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #6c7a89;
  --border: #e1e8ed;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.site-header h1 a {
  color: #fff;
  text-decoration: none;
}
.site-header p {
  opacity: 0.85;
  font-size: 0.95rem;
}
.site-header nav {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
}
.site-header nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.site-header nav a:hover,
.site-header nav a.active {
  border-bottom-color: #fff;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Post Card */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--accent);
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.post-card .post-date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.post-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.post-card h2 a {
  color: var(--primary);
  text-decoration: none;
}
.post-card h2 a:hover {
  color: var(--accent);
}
.post-card .post-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
.post-card .read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.post-card .read-more:hover {
  text-decoration: underline;
}

/* Archive Group */
.archive-group {
  margin-bottom: 2rem;
}
.archive-group h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.archive-group ul {
  list-style: none;
  padding: 0;
}
.archive-group li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.archive-group li:last-child {
  border-bottom: none;
}
.archive-group li a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}
.archive-group li a:hover {
  color: var(--accent);
}
.archive-group li .date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-left: 0.5rem;
}

/* Article */
.article-header {
  margin-bottom: 2rem;
}
.article-header h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.article-header .meta {
  font-size: 0.85rem;
  color: var(--text-light);
}
.article-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  line-height: 1.85;
}
.article-content h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 1.5rem 0 0.8rem;
}
.article-content h3 {
  font-size: 1.1rem;
  color: var(--primary-light);
  margin: 1.2rem 0 0.6rem;
}
.article-content p {
  margin-bottom: 1rem;
}
.article-content ul, .article-content ol {
  margin: 0.8rem 0 1rem 1.5rem;
}
.article-content li {
  margin-bottom: 0.4rem;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.article-content th,
.article-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--bg);
  font-weight: 600;
}
.article-content code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.88rem;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header h1 { font-size: 1.4rem; }
  .container { padding: 1.2rem 1rem 2rem; }
  .article-content { padding: 1.2rem; }
  .post-card { padding: 1.2rem; }
}
