/*
Theme Name: Brand Dark
Theme URI: https://northadamsschools.com
Description: 品牌深色主题 - 与首页风格统一
Version: 1.0
Author: SEO Bot
Text Domain: brand-dark
*/

:root {
  --primary: #1a6dff;
  --primary-dark: #0a4fd6;
  --primary-light: #4d8eff;
  --accent: #2ecc71;
  --dark: #0a0e27;
  --darker: #060918;
  --text: #f1f5f9;
  --text-muted: #b0bec5;
  --white: #ffffff;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
}

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

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--darker);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header {
  background: rgba(6,9,24,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header .logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--white); }
.site-header .logo img { height: 35px; }
.site-header nav a {
  color: var(--text-muted);
  margin-left: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: color .3s;
}
.site-header nav a:hover { color: var(--white); }
.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white) !important;
  padding: 8px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  margin-left: 25px;
}

/* === BLOG CONTENT === */
.blog-hero {
  padding: 60px 0 30px;
  text-align: center;
}
.blog-hero h1 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero p { color: var(--text-muted); margin-top: 10px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 30px 0 60px;
}

.post-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .4s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(26,109,255,0.15);
}
.post-card .post-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.post-card .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.post-card:hover .post-img img { transform: scale(1.05); }
.post-card .post-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.post-card .post-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}
.post-card .post-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card .post-info h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--white);
}
.post-card .post-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.post-card .read-more {
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  margin-top: 15px;
  display: inline-block;
}

/* === SINGLE POST === */
.single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.single-content .post-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}
.single-content h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 30px;
  color: var(--white);
}
.single-content .entry-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
}
.single-content .entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 15px;
  color: var(--white);
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}
.single-content .entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 10px;
  color: var(--primary-light);
}
.single-content .entry-content p { margin-bottom: 20px; }
.single-content .entry-content img {
  border-radius: 12px;
  margin: 20px 0;
}
.single-content .entry-content ul,
.single-content .entry-content ol {
  margin: 15px 0 15px 25px;
  color: var(--text);
}
.single-content .entry-content li { margin-bottom: 8px; }
.single-content .entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--glass);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
}
.single-content .entry-content a { color: var(--accent); }
.single-content .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.single-content .entry-content th,
.single-content .entry-content td {
  border: 1px solid var(--glass-border);
  padding: 10px 15px;
  text-align: left;
}
.single-content .entry-content th {
  background: var(--glass);
  color: var(--primary-light);
}

/* === PAGINATION === */
.pagination {
  text-align: center;
  padding: 30px 0 60px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all .3s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* === FOOTER === */
.site-footer {
  background: var(--darker);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 15px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 13px;
}

/* === RESPONSIVE === */
@media(max-width:768px) {
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
  .blog-hero h1 { font-size: 24px; }
  .single-content h1 { font-size: 22px; }
}
@media(min-width:769px) and (max-width:1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
