/* ============================================
   VVMOB Blog Stylesheet
   品牌色：深蓝 #0a1628 | 金色 #ffc107 | 青色 #22d3ee
   ============================================ */

/* CSS Variables */
:root {
  --vv-blue: #0a1628;
  --vv-gold: #ffc107;
  --vv-cyan: #22d3ee;
  --vv-text: #333333;
  --vv-light: #f8f9fa;
  --vv-border: #e0e0e0;
  --vv-gray: #6c757d;
}

/* Reset & Base */
* { 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;
  color: var(--vv-text);
  line-height: 1.8;
  background: var(--vv-light);
}

a { color: var(--vv-blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--vv-gold); }

/* Header */
.blog-header {
  background: linear-gradient(135deg, var(--vv-blue) 0%, #1a2d4a 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-header h1 span { color: var(--vv-gold); }

.blog-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation Tabs */
.blog-nav {
  background: white;
  border-bottom: 2px solid var(--vv-border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-nav a {
  display: block;
  padding: 15px 5px;
  color: var(--vv-gray);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.blog-nav a:hover,
.blog-nav a.active {
  color: var(--vv-blue);
  border-bottom-color: var(--vv-gold);
}

/* Main Container */
.blog-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Article Card */
.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 30px;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--vv-blue), #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.article-card-body { padding: 25px; }

.article-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--vv-gold), #ffdb4d);
  color: var(--vv-blue);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card h2 a { color: var(--vv-blue); }
.article-card h2 a:hover { color: var(--vv-gold); }

.article-excerpt {
  color: var(--vv-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--vv-border);
  font-size: 0.85rem;
  color: var(--vv-gray);
}

.article-meta .read-time {
  background: var(--vv-light);
  padding: 4px 12px;
  border-radius: 15px;
}

/* Sidebar */
.sidebar { position: sticky; top: 80px; height: fit-content; }

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  color: var(--vv-blue);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--vv-gold);
}

/* Category List */
.category-list { list-style: none; }

.category-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--vv-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list li:last-child { border-bottom: none; }

.category-list a { color: var(--vv-text); font-weight: 500; }
.category-list a:hover { color: var(--vv-gold); }

.category-count {
  background: var(--vv-light);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--vv-gray);
}

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: var(--vv-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--vv-gray);
  transition: all 0.3s;
}

.tag:hover {
  background: var(--vv-blue);
  color: white;
}

/* Article Page (Single) */
.article-hero {
  background: linear-gradient(135deg, var(--vv-blue) 0%, #1a2d4a 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.article-hero h1 {
  font-size: 2.2rem;
  max-width: 800px;
  margin: 0 auto 15px;
  line-height: 1.4;
}

.article-meta-hero {
  opacity: 0.85;
  font-size: 0.95rem;
}

.article-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.article-content h2 {
  color: var(--vv-blue);
  margin: 35px 0 15px;
  font-size: 1.6rem;
  border-left: 4px solid var(--vv-gold);
  padding-left: 15px;
}

.article-content h3 {
  color: var(--vv-blue);
  margin: 25px 0 12px;
  font-size: 1.3rem;
}

.article-content p {
  margin-bottom: 18px;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin: 15px 0 15px 25px;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--vv-blue); }

.article-content blockquote {
  border-left: 4px solid var(--vv-gold);
  background: var(--vv-light);
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--vv-gray);
}

.article-content .highlight-box {
  background: linear-gradient(135deg, rgba(10,22,40,0.05), rgba(34,211,238,0.08));
  border: 1px solid var(--vv-cyan);
  border-radius: 10px;
  padding: 25px;
  margin: 25px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-content th,
.article-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--vv-border);
}

.article-content th {
  background: var(--vv-blue);
  color: white;
  font-weight: 600;
}

.article-content tr:hover { background: var(--vv-light); }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--vv-blue), #1a3a5c);
  color: white;
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}

.cta-box h3 { color: var(--vv-gold) !important; border: none !important; padding: 0 !important; margin-bottom: 15px !important; }
.cta-box p { opacity: 0.9; margin-bottom: 20px; }
.cta-box a {
  display: inline-block;
  background: var(--vv-gold);
  color: var(--vv-blue);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s;
}
.cta-box a:hover { transform: scale(1.05); color: var(--vv-blue); }

/* Footer */
.blog-footer {
  background: var(--vv-blue);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.blog-footer a { color: var(--vv-gold); }

/* Responsive */
@media (max-width: 992px) {
  .blog-container { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .blog-header h1 { font-size: 1.8rem; }
  .blog-nav ul { gap: 20px; overflow-x: auto; }
  .article-content { padding: 25px; }
  .article-hero h1 { font-size: 1.6rem; }
}
