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

:root {
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --primary-light: #2c5282;
  --accent: #2b6cb0;
  --text: #2d3748;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --radius: 4px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.logo-en {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-close { display: none; }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(43, 108, 176, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 54, 93, 0.5) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-link {
  color: var(--accent);
  font-weight: 500;
}
.btn-link:hover { color: var(--primary); }

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Preview ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-item {
  background: var(--bg-alt);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Business Cards ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.business-card {
  background: var(--bg);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(26, 54, 93, 0.12);
  border-color: var(--accent);
}

.business-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.business-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.business-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Advantages ===== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.advantage-item {
  padding: 24px;
}

.advantage-num {
  font-size: 48px;
  font-weight: 700;
  color: rgba(26, 54, 93, 0.1);
  margin-bottom: 12px;
  font-family: 'Arial', sans-serif;
}

.advantage-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ===== Page Hero ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* ===== Article ===== */
.article {
  max-width: 800px;
  margin: 0 auto;
}

.article h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 16px;
}

.article h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 32px 0 12px;
}

.article p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.article ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article li {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.contact-info-card {
  background: var(--bg-alt);
  padding: 32px;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-item span {
  font-size: 16px;
  color: var(--text);
}

/* ===== News List ===== */
.news-list {
  display: grid;
  gap: 24px;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.news-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.news-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
}

.news-content {
  padding: 24px;
}

.news-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.news-content .news-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-content .news-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-slogan {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
}

.footer-links, .footer-contact {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact li {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-contact strong {
  color: rgba(255,255,255,0.6);
  margin-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .news-item {
    grid-template-columns: 1fr;
  }
  
  .news-cover {
    height: 120px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
  }
  
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition);
  }
  
  .section { padding: 60px 0; }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .stat-item {
    padding: 20px 16px;
  }
  
  .stat-num {
    font-size: 26px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== Extras: 模板渲染附加样式 ===== */
.nav-link.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.card-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.card-text ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.card-text li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.product-subtitle {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item {
  color: inherit;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.page-info {
  font-size: 14px;
  color: var(--text-muted);
}

.empty-tip {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

a.news-item:hover h3 {
  color: var(--accent);
}
