/* ========================================
   ESG周报 - 全局样式表
   ======================================== */

/* CSS变量 - 主题色 */
:root {
  --primary: #1B5E20;
  --primary-light: #2E7D32;
  --primary-lighter: #4CAF50;
  --primary-bg: #E8F5E9;
  --accent: #FF6F00;
  --accent-light: #FFF3E0;
  --text-dark: #1a1a1a;
  --text-body: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f2f5;
  --border: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: all 0.25s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-lighter);
}

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

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  padding: 8px 0;
  z-index: 200;
  margin-top: 4px;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-body);
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.btn-subscribe {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.btn-subscribe:hover {
  background: var(--primary-light) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-body);
  padding: 4px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #43A047 100%);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================================
   Section Layout
   ======================================== */
.section {
  padding: 48px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon {
  font-size: 1.2rem;
}

.section-more {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.section-more:hover {
  color: var(--primary-lighter);
}

/* ========================================
   Article Cards
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-image {
  height: 180px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-lighter);
  position: relative;
  overflow: hidden;
}

.card-image .tag-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: var(--text-dark);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-tags {
  display: flex;
  gap: 6px;
}

.card-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-light);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.card-source-link:hover {
  color: var(--primary);
  text-decoration: underline;
}
.card-source-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-finance { background: #E3F2FD; color: #1565C0; }
.tag-construction { background: #FFF3E0; color: #E65100; }
.tag-tech { background: #F3E5F5; color: #7B1FA2; }
.tag-agriculture { background: #E8F5E9; color: #2E7D32; }
.tag-policy { background: #FFEBEE; color: #C62828; }
.tag-esg { background: var(--primary-bg); color: var(--primary); }

/* ========================================
   Industry Quick View
   ======================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid transparent;
}

.industry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.industry-card.finance { border-top-color: #1565C0; }
.industry-card.construction { border-top-color: #E65100; }
.industry-card.tech { border-top-color: #7B1FA2; }
.industry-card.agriculture { border-top-color: #2E7D32; }

.industry-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.industry-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.industry-item:last-child {
  border-bottom: none;
}

.industry-item a {
  color: var(--text-body);
  display: block;
}

.industry-item a:hover {
  color: var(--primary);
}

.industry-item .date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
}

.industry-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

/* ========================================
   Policy List
   ======================================== */
.policy-list {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.policy-item:last-child {
  border-bottom: none;
}

.policy-item:hover {
  background: var(--primary-bg);
}

.policy-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 56px;
}

.policy-date .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.policy-date .month {
  font-size: 0.78rem;
  color: var(--text-light);
}

.policy-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.policy-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   Sidebar / Subscribe CTA
   ======================================== */
.subscribe-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}

.subscribe-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.subscribe-cta p {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.subscribe-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.subscribe-form button:hover {
  background: #E65100;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.social-links a:hover {
  color: white;
}

/* ========================================
   Article Detail Page
   ======================================== */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.article-header {
  margin-bottom: 32px;
}

.article-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 32px 0 16px;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

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

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

.article-source {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  font-size: 0.92rem;
}

.article-source strong {
  color: var(--primary);
}

.article-source .source-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.article-source .source-link-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.article-source .source-link-btn svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   Subscribe Page
   ======================================== */
.subscribe-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.subscribe-page h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.subscribe-page .subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.subscribe-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--primary-light);
}

/* ========================================
   About Page
   ======================================== */
.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.about-page h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.about-page h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 32px 0 12px;
}

.about-page p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.about-feature {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.about-feature .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-feature h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.about-feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-stats {
    gap: 24px;
  }
  .hero-stat .number {
    font-size: 1.3rem;
  }
  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Week indicator badge */
.week-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: none;
  z-index: 50;
}

.scroll-top:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
