/* ============================================
   绘梦科技 - 企业官方网站 全局样式
   HuiMeng Tech Official Website
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-secondary: #0F172A;
  --color-accent: #F59E0B;
  --color-accent-light: #FEF3C7;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-dark: #0F172A;
  --color-text: #1E293B;
  --color-text-light: #64748B;
  --color-text-lighter: #94A3B8;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-white: #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-width: 1200px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  height: 64px;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: left center;
}

.logo:hover .logo-img {
  transform: scale(1.18);
}

.footer-brand .logo:hover .logo-img {
  transform: scale(1.12);
}

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

.nav a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 600;
}

.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: var(--color-white);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

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

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

/* ---- Page Header ---- */
.page-header {
  padding: 120px 0 30px;
  background: var(--color-white);
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Sections ---- */
.section {
  padding: 60px 0;
}

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

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

.section-header .label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Hero ---- */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-secondary);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--color-primary), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

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

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary-light), #EDE9FE);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 50%;
}

.hero-image-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-image-inner .hero-icon-large {
  font-size: 80px;
  margin-bottom: 16px;
  display: block;
}

.hero-image-inner .hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- Stats Bar ---- */
.stats-bar {
  padding: 48px 0;
  margin-top: 32px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-item .stat-plus {
  color: var(--color-accent);
  margin-left: 0;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #7C3AED);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.service-card:nth-child(1) .service-icon {
  background: #DBEAFE;
  color: var(--color-primary);
}

.service-card:nth-child(2) .service-icon {
  background: #EDE9FE;
  color: #7C3AED;
}

.service-card:nth-child(3) .service-icon {
  background: #FEF3C7;
  color: #D97706;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card .service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card .service-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.service-card:hover .service-link::after {
  transform: translateX(4px);
}

/* ---- Feature Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-text h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- Process / Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.step-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-secondary), #1E3A5F);
  text-align: center;
  color: var(--color-white);
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ---- News / Blog Grid ---- */
.news-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn .filter-icon {
  font-size: 16px;
  line-height: 1;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ---- Media Partners (合作媒体) ---- */
.media-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.media-panels {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.media-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
}

.media-panel:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.media-panel.hidden {
  display: none;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.panel-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, var(--color-primary-light), #EDE9FE);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.media-panel:nth-child(2) .panel-icon {
  background: linear-gradient(135deg, #FEF3C7, #FED7AA);
  color: #D97706;
}

.media-panel:nth-child(3) .panel-icon {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1D4ED8;
}

.media-panel:nth-child(4) .panel-icon {
  background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
  color: #DB2777;
}

.media-panel:nth-child(5) .panel-icon {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #059669;
}

.panel-title h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.panel-title p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.media-showcase {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.media-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.media-meta {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.meta-tag {
  padding: 5px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}

.news-image.news-type-1 {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.news-image.news-type-2 {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}

.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
}

.news-tag.tag-news {
  background: var(--color-primary);
}

.news-tag.tag-article {
  background: #7C3AED;
}

.news-body {
  padding: 24px;
}

.news-date {
  font-size: 13px;
  color: var(--color-text-lighter);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Service Detail ---- */
.service-detail {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:first-of-type {
  padding-top: 30px;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail.reverse .container {
  direction: rtl;
}

.service-detail.reverse .service-detail-content {
  direction: ltr;
}

.service-detail.reverse .service-detail-visual {
  direction: ltr;
}

.service-detail-content .tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-detail:nth-child(1) .tag { background: #DBEAFE; color: var(--color-primary); }
.service-detail:nth-child(2) .tag { background: #EDE9FE; color: #7C3AED; }
.service-detail:nth-child(3) .tag { background: #FEF3C7; color: #D97706; }

.service-detail-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.service-detail-content > p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.service-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.service-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-point-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.service-point-text strong {
  display: block;
  font-size: 15px;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.service-point-text span {
  font-size: 14px;
  color: var(--color-text-light);
}

.service-detail-visual {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.service-detail:nth-child(1) .service-detail-visual {
  background: linear-gradient(135deg, #DBEAFE, #EFF6FF);
}

.service-detail:nth-child(2) .service-detail-visual {
  background: linear-gradient(135deg, #EDE9FE, #F5F3FF);
}

.service-detail:nth-child(3) .service-detail-visual {
  background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
}

.service-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* ---- About Page ---- */
.about-intro {
  padding: 40px 0;
}

.about-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro .about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary-light), #EDE9FE);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

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

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), #BFDBFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}

.team-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.team-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Qualifications */
.quals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.qual-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.qual-card:hover {
  box-shadow: var(--shadow-md);
}

.qual-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.qual-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.qual-card p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.contact-form > p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #EF4444;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: all 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--color-white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-side h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.contact-info-side > p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-info-text strong {
  display: block;
  font-size: 15px;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--color-text-light);
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #D1FAE5;
  color: #065F46;
}

.form-feedback.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
}

/* ---- Contact WeChat ---- */
.contact-wechat {
  margin-top: 28px;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
}

.contact-wechat-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.5;
  margin: 0 0 14px;
}

.contact-wechat-qr {
  width: 160px;
  height: 160px;
  margin: 0 auto 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.contact-wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contact-wechat-hint {
  font-size: 13px;
  color: var(--color-text-lighter);
  margin: 0;
}

/* ---- News Detail ---- */
.news-detail {
  padding: 60px 0;
}

.news-detail .container {
  max-width: 800px;
}

.news-detail-header {
  margin-bottom: 40px;
}

.news-detail-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-detail-category {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
}

.news-detail-date {
  font-size: 14px;
  color: var(--color-text-lighter);
}

.news-detail-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.news-detail-content p {
  margin-bottom: 20px;
}

.news-detail-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 36px 0 16px;
}

.news-detail-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 28px 0 12px;
}

.news-detail-content ul,
.news-detail-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.news-detail-content ul {
  list-style: disc;
}

.news-detail-content ol {
  list-style: decimal;
}

.news-detail-content li {
  margin-bottom: 8px;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 40px;
  font-size: 15px;
}

.news-detail-back:hover {
  gap: 10px;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-lighter);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  height: 56px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-lighter);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-text-lighter);
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--color-text-lighter);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .service-detail .container,
  .service-detail.reverse .container {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .service-detail.reverse .service-detail-content {
    direction: ltr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

  .about-intro .container {
    grid-template-columns: 1fr;
  }

  .about-intro .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .logo,
  .logo-img {
    height: 52px;
  }

  .page-header {
    padding: 100px 0 20px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .menu-toggle {
    display: flex;
  }

  .media-filter {
    gap: 6px;
  }

  .media-filter .filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .media-panel {
    padding: 20px;
  }

  .panel-header {
    gap: 14px;
  }

  .panel-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 22px;
  }

  .panel-title h3 {
    font-size: 18px;
  }

  .panel-title p {
    font-size: 13px;
  }

  .media-showcase {
    padding: 16px;
    min-height: 180px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    gap: 4px;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item .stat-number {
    font-size: 32px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .quals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

  .cta-section h2 {
    font-size: 28px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .quals-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .section-header h2 {
    font-size: 24px;
  }
}

/* ============================================
   Float Widget (可拖动浮动弹框)
   ============================================ */
.float-widget {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1500;
  overflow: hidden;
  border: 1px solid var(--color-border);
  user-select: none;
  transition: box-shadow 0.3s ease;
}

.float-widget.dragging {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: grabbing;
}

.float-widget:hover:not(.dragging) {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.08);
}

.float-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  cursor: grab;
}

.float-header:active {
  cursor: grabbing;
}

.float-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.float-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.float-dots span:nth-child(2) {
  background: rgba(255, 255, 255, 0.7);
}

.float-dots span:nth-child(3) {
  background: rgba(255, 255, 255, 0.9);
}

.float-title {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.float-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.float-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.float-body {
  padding: 16px;
  text-align: center;
}

.float-qr {
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.float-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.float-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0 0 14px;
}

.float-btn {
  display: inline-block;
  width: 100%;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background 0.2s ease;
}

.float-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .float-widget {
    width: 170px;
    right: 12px;
  }

  .float-qr {
    width: 130px;
    height: 130px;
  }

  .float-desc {
    font-size: 12px;
  }

  .float-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .float-widget {
    width: 150px;
    right: 8px;
  }

  .float-qr {
    width: 115px;
    height: 115px;
  }
}

/* ============================================
   Media Search
   ============================================ */
.media-search-section {
  background: #F8FAFC;
  padding: 50px 0 40px;
}

.media-search-box {
  max-width: 700px;
  margin: 0 auto;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  font-size: 20px;
  color: var(--color-text-lighter);
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 16px 48px 16px 52px;
  font-size: 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--color-white);
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
  color: var(--color-text-lighter);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-light);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.search-clear-btn.visible {
  display: flex;
}

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

.search-stats {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-light);
  min-height: 20px;
}

.search-stats .highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.search-results {
  max-width: 900px;
  margin: 24px auto 0;
  display: none;
}

.search-results.visible {
  display: block;
}

.search-result-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.3s ease;
}

.search-result-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.search-result-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-name mark {
  background: #FEF3C7;
  color: var(--color-secondary);
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-cat {
  font-size: 12px;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.search-result-content {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  word-break: break-all;
}

.search-result-content mark {
  background: #FEF3C7;
  color: var(--color-text);
  padding: 0 2px;
  border-radius: 2px;
}

.search-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-lighter);
  font-size: 15px;
}

.search-empty .empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .search-input {
    padding: 14px 42px 14px 48px;
    font-size: 15px;
  }

  .search-result-item {
    padding: 14px 16px;
  }

  .search-result-name {
    font-size: 15px;
  }

  .search-result-content {
    font-size: 13px;
  }
}
