/* 公共样式 - 誉文生态官网 */
/* ===== CSS 变量 ===== */
:root {
  --color-primary: #0068C9;
  --color-primary-dark: #005BAA;
  --color-primary-light: #1E88E5;
  --color-bg: #F5F8FC;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-border: #E5E5E5;
  --color-white: #fff;
  --color-footer-bg: #1B4D8C;
  --max-width: 1200px;
  --header-height: 85px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

/* ===== 容器 ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 通用 Section 标题 ===== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  color: var(--color-primary);
  font-weight: bold;
  display: inline-block;
  position: relative;
  padding: 0 30px;
}
.section-title h2::before,
.section-title h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary));
}
.section-title h2::before { right: 100%; }
.section-title h2::after { left: 100%; transform: scaleX(-1); }
.section-title p {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  background: var(--color-white);
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}
.btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn .arrow {
  width: 14px;
  height: 14px;
  transition: var(--transition);
}
.btn:hover .arrow { filter: brightness(0) invert(1); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  height: var(--header-height);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo strong {
  font-size: 22px;
  color: #2A6F4F;
  font-weight: bold;
  line-height: 1.1;
}
.logo span {
  font-size: 11px;
  color: #999;
  letter-spacing: 1.5px;
  display: block;
  margin-top: 2px;
}
.logo img { height: 50px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 0;
}
.main-nav a {
  display: block;
  padding: 0 28px;
  height: var(--header-height);
  line-height: var(--header-height);
  font-size: 16px;
  color: var(--color-text);
  transition: var(--transition);
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

/* ===== Page Banner(子页大图) ===== */
.page-banner {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 84, 165, 0.85) 0%, rgba(0, 84, 165, 0.3) 60%, transparent 100%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .banner-content {
  color: var(--color-white);
}
.page-banner h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 8px;
}
.page-banner .subtitle {
  font-size: 24px;
  letter-spacing: 4px;
  opacity: 0.95;
  font-weight: 300;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
  padding: 50px 0 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: normal;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--color-white); }
.footer-contact {
  text-align: center;
}
.footer-contact .label {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.85;
}
.footer-contact .phone {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 1px;
}
.footer-qrcodes {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.qrcode-item {
  text-align: center;
}
.qrcode-item .qrcode-img {
  width: 90px;
  height: 90px;
  background: var(--color-white);
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}
.qrcode-item .qrcode-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qrcode-item span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}
.footer-copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 12px;
  opacity: 0.75;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .main-nav a { padding: 0 16px; font-size: 15px; }
  .section-title h2 { font-size: 28px; }
  .footer-contact .phone { font-size: 30px; }
}
@media (max-width: 768px) {
  :root { --header-height: 70px; }
  .container { padding: 0 16px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--color-white);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; }
  .main-nav a {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  .page-banner { height: 220px; }
  .page-banner h1 { font-size: 32px; }
  .page-banner .subtitle { font-size: 16px; letter-spacing: 2px; }
  .section-title h2 { font-size: 24px; padding: 0 20px; }
  .section-title h2::before,
  .section-title h2::after { width: 30px; }
  .section-title { margin-bottom: 30px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-nav ul { justify-content: center; }
  .footer-qrcodes { justify-content: center; }
  .footer-contact .phone { font-size: 28px; }
}
