/* ========================================
   华承万家企业官网 - 主样式表
   配色：中国红 + 深灰
   ======================================== */

:root {
  /* 主色调 */
  --primary: #C8102E;
  --primary-dark: #9B0E24;
  --primary-light: #E84356;
  --primary-bg: #FDF2F4;
  
  /* 中性色 */
  --dark: #2C2C2C;
  --gray-dark: #4A4A4A;
  --gray: #666666;
  --gray-light: #999999;
  --light: #F8F8F8;
  --lighter: #FCFCFC;
  --border: #E5E5E5;
  --white: #FFFFFF;
  
  /* 文字 */
  --text: #333333;
  --text-light: #888888;
  --text-white: #FFFFFF;
  
  /* 功能色 */
  --success: #52C41A;
  --warning: #FAAD14;
  --info: #1890FF;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-red: 0 4px 20px rgba(200,16,46,0.25);
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  
  /* 过渡 */
  --transition: all 0.3s ease;
  
  /* 布局 */
  --container: 1200px;
  --header-h: 72px;
}

/* ====== Reset ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; transition: var(--transition); }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

/* ====== 导航栏 ====== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}
.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo .logo-text .en {
  font-size: 0.65rem;
  color: var(--gray-light);
  letter-spacing: 1px;
  font-weight: 400;
}
.nav-logo .logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-weight: 500;
  position: relative;
}
.nav-menu a:hover {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav-menu a.active {
  color: var(--primary);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 16px; right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.nav-cta {
  padding: 8px 24px !important;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  color: var(--dark);
}

/* ====== Hero Banner ====== */
.hero {
  min-height: 600px;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 50%, #2C2C2C 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(200,16,46,0.15) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--white));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-content h1 {
  font-size: 3rem;
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.hero-content h1 .accent {
  color: var(--primary-light);
}
.hero-content .subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  letter-spacing: 1px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 100px;
  color: var(--primary-light);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ====== 按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
}
.btn-dark {
  background: var(--dark);
  color: white;
}
.btn-dark:hover {
  background: #1a1a1a;
  color: white;
}
.btn-lg {
  padding: 14px 40px;
  font-size: 1.1rem;
}

/* ====== 区段通用 ====== */
.section {
  padding: 80px 0;
}
.section-gray {
  background: var(--light);
}
.section-dark {
  background: var(--dark);
  color: white;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .label {
  display: inline-block;
  padding: 4px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-dark .section-header h2 {
  color: white;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}
.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ====== 公司简介 ====== */
.intro-block {
  display: flex;
  align-items: center;
  gap: 60px;
}
.intro-block .intro-text {
  flex: 1;
}
.intro-block .intro-text h3 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 700;
}
.intro-block .intro-text p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.9;
}
.intro-block .intro-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.intro-block .stat-item {
  text-align: center;
}
.intro-block .stat-item .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.intro-block .stat-item .label {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin-top: 4px;
}
.intro-block .intro-image {
  flex: 0 0 420px;
  height: 320px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.intro-block .intro-image::before {
  content: '\f6e2';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 8rem;
  color: rgba(255,255,255,0.15);
}
.intro-block .intro-image .image-text {
  position: absolute;
  color: white;
  text-align: center;
}
.intro-block .intro-image .image-text .big {
  font-size: 2rem;
  font-weight: 700;
}
.intro-block .intro-image .image-text .small {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 8px;
}

/* ====== 业务卡片 ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card .icon {
  width: 64px; height: 64px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.service-card:hover .icon {
  background: var(--primary);
  color: white;
}
.service-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ====== 核心优势 ====== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage-item {
  text-align: center;
  padding: 32px 20px;
}
.advantage-item .icon {
  width: 56px; height: 56px;
  background: rgba(200,16,46,0.1);
  color: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.advantage-item h3 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 8px;
  font-weight: 600;
}
.advantage-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

/* ====== CTA 区域 ====== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.cta-section .container {
  position: relative;
  z-index: 2;
}
.cta-section h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 12px;
  font-weight: 700;
}
.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}
.cta-section .btn {
  background: white;
  color: var(--primary);
}
.cta-section .btn:hover {
  background: var(--dark);
  color: white;
}

/* ====== 新闻动态 ====== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.news-card .news-img {
  height: 180px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-light);
}
.news-card .news-body {
  padding: 20px 24px;
}
.news-card .news-date {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 8px;
}
.news-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  font-size: 0.9rem;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* ====== 页脚 ====== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col p, .footer-col li {
  font-size: 0.9rem;
  line-height: 2;
}
.footer-col li a:hover {
  color: var(--primary-light);
}
.footer-brand .logo-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .logo-line .logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.footer-brand .logo-line span {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
}
.footer-brand .logo-line .footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  background: white;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ====== 图标图片（后台上传的自定义图标） ====== */
.icon .icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  box-sizing: border-box;
}
.avatar .icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ====== 二维码图片（后台上传） ====== */
.qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-sm);
}

/* ====== 文章封面 ====== */
.article-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: block;
}

/* ====== 页面Banner (内页通用) ====== */
.page-banner {
  height: 320px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(200,16,46,0.12) 0%, transparent 60%);
}
.page-banner h1 {
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  position: relative;
  z-index: 2;
  letter-spacing: 2px;
}
.page-banner .breadcrumb {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ====== 关于我们 ====== */
.about-section {
  padding: 60px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  height: 360px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image::before {
  content: '\f2bd';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10rem;
  color: rgba(255,255,255,0.1);
}
.about-image .image-overlay {
  position: absolute;
  text-align: center;
  color: white;
}
.about-image .image-overlay h3 {
  font-size: 1.8rem;
  font-weight: 700;
}
.about-text h3 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 700;
}
.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.9;
}

/* 使命愿景卡片 */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvv-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.mvv-card .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.mvv-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.mvv-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 团队 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-card .avatar {
  height: 180px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gray-light);
}
.team-card .info {
  padding: 20px;
}
.team-card .info h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.team-card .info .role {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.team-card .info p {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* 服务理念 */
.philosophy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.philosophy-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.philosophy-item .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}
.philosophy-item .content h4 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.philosophy-item .content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ====== 业务范围详情 ====== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.service-detail:nth-child(even) .service-detail-text {
  order: 2;
}
.service-detail .service-detail-text {
  padding: 48px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-detail .service-detail-text .icon {
  width: 56px; height: 56px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.service-detail .service-detail-text h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 700;
}
.service-detail .service-detail-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}
.service-detail .service-detail-text ul {
  margin-left: 4px;
}
.service-detail .service-detail-text ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--gray-dark);
  font-size: 0.95rem;
}
.service-detail .service-detail-text ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
}
.service-detail .service-detail-image {
  background: linear-gradient(135deg, var(--dark), #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.15);
}

/* ====== 在线咨询 ====== */
.consult-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.consult-option {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}
.consult-option:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.consult-option .icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.consult-option .icon.wechat {
  background: #07C160;
  color: white;
}
.consult-option .icon.phone {
  background: var(--primary);
  color: white;
}
.consult-option h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.consult-option p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* 微信二维码弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  position: relative;
}
.modal-content .close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.5rem;
  color: var(--gray-light);
  cursor: pointer;
  background: none;
}
.modal-content .qr-placeholder {
  width: 240px; height: 240px;
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  color: var(--gray-light);
}
.modal-content h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.modal-content p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ====== 在线预约表单 ====== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group label .required {
  color: var(--primary);
  margin-left: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  transition: var(--transition);
  background: white;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}
.form-msg.success {
  display: block;
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
}
.form-msg.error {
  display: block;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* ====== 法律知识 ====== */
.knowledge-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}
.knowledge-sidebar {
  position: sticky;
  top: 90px;
}
.knowledge-sidebar h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}
.knowledge-sidebar ul li {
  margin-bottom: 4px;
}
.knowledge-sidebar ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--gray);
  font-size: 0.95rem;
  transition: var(--transition);
}
.knowledge-sidebar ul li a:hover,
.knowledge-sidebar ul li a.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.article-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateX(4px);
}
.article-card .article-cat {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.article-card .article-cat .cat-text {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}
.article-card .article-body {
  flex: 1;
}
.article-card .article-body h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.article-card .article-body .summary {
  color: var(--gray);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.article-card .article-body .meta {
  font-size: 0.8rem;
  color: var(--gray-light);
  display: flex;
  gap: 16px;
}

/* 文章详情 */
.article-detail {
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-detail .article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.article-detail .article-header .cat-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.article-detail .article-header h1 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.article-detail .article-header .meta {
  color: var(--gray-light);
  font-size: 0.9rem;
}
.article-detail .article-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--gray-dark);
}
.article-detail .article-content h2 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 32px 0 16px;
  font-weight: 700;
}
.article-detail .article-content p {
  margin-bottom: 16px;
}
.article-detail .article-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
.article-detail .article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}
.article-back {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
}

/* ====== 联系我们 ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 24px;
  font-weight: 700;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-item .icon {
  width: 48px; height: 48px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item .info h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-item .info p {
  color: var(--gray);
  font-size: 0.95rem;
}
.contact-map {
  height: 400px;
  background: var(--light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* ====== 动画 ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .services-grid, .advantages-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .intro-block, .about-grid, .contact-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .intro-block .intro-image {
    flex: none;
    width: 100%;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .knowledge-layout {
    grid-template-columns: 1fr;
  }
  .knowledge-sidebar {
    position: static;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .consult-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .subtitle {
    font-size: 1rem;
  }
  .section {
    padding: 48px 0;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .services-grid, .advantages-grid, .team-grid, .mvv-grid, .philosophy-list {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .intro-block .intro-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .form-container {
    padding: 24px;
  }
  .article-detail {
    padding: 24px;
  }
  .article-card {
    flex-direction: column;
  }
  .article-card .article-cat {
    flex: none;
    flex-direction: row;
  }
  .article-card .article-cat .cat-text {
    writing-mode: horizontal-tb;
  }
}
