/*
Theme Name: 驰力科技官网
Theme URI: https://gdchili.com
Author: 佛山驰力科技有限公司
Description: 佛山驰力科技有限公司官网主题，青绿色制造业风格
Version: 2.0
Text Domain: gdchili
*/

/* =================================
   GD Chili Plastic Film - Global Styles
   青绿色制造业官网
   ==================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色：青绿 / 鼠尾草绿 */
  --primary-900: #1F4D3A;
  --primary-800: #2A6349;
  --primary-700: #3A8D6A;
  --primary-600: #4FA37D;
  --primary-500: #6FB594;
  --primary-400: #8FCAAD;
  --primary-300: #B5DCC6;
  --primary-200: #D4ECDD;
  --primary-100: #EBF5F0;
  --primary-50:  #F5FAF7;

  /* 中性色 */
  --neutral-900: #1C2420;
  --neutral-800: #2D3A33;
  --neutral-700: #47524B;
  --neutral-600: #6B756E;
  --neutral-500: #8A948C;
  --neutral-400: #B0B8B2;
  --neutral-300: #D4DAD6;
  --neutral-200: #E8EDE9;
  --neutral-100: #F0F3F1;
  --neutral-50:  #F7F9F8;

  /* 强调色 */
  --accent: #D4A04A;
  --accent-light: #E8C07A;

  /* 字体 */
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 容器 */
  --container: 1400px;
  --container-narrow: 960px;

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--neutral-800);
  background: var(--neutral-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility --- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--primary-700);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--neutral-900);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--neutral-600);
  max-width: 600px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 2px;
  transition: all var(--transition);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-700);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-800);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(58, 141, 106, 0.25);
}

.btn-outline {
  border: 1.5px solid var(--primary-700);
  color: var(--primary-700);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-700);
  color: #fff;
}

.btn-ghost {
  color: var(--neutral-800);
  padding: 14px 0;
}
.btn-ghost:hover {
  color: var(--primary-700);
}

.btn-ghost svg {
  transition: transform var(--transition);
}
.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* --- Top Bar --- */
.top-bar {
  background: #16402e;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 36px;
  align-items: center;
}

.top-bar-info.right {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.top-bar-info a:hover span {
  color: var(--primary-300);
}

.top-bar-info svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* --- Header / Navigation --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img,
.logo .custom-logo {
  display: block;
  height: 50px !important;
  width: auto !important;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--primary-700);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  justify-content: center;
}

.logo-text .cn {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 700;
  color: #1a3d2d;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-text .en {
  font-size: 0.6875rem;
  color: var(--neutral-500);
  letter-spacing: 0.12em;
  margin-top: 3px;
  white-space: nowrap;
  font-weight: 500;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 52px;
  align-items: center;
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-700);
  padding: 32px 0;
  position: relative;
  display: block;
  letter-spacing: 0.02em;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-700);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item > a {
  color: var(--primary-700);
}

.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav .current-menu-item > a::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 1px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: var(--primary-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  transform: scale(1.08);
  animation: heroZoom 20s ease-out forwards;
  filter: saturate(0.85) contrast(1.05);
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(20, 56, 41, 0.92) 0%,
      rgba(20, 56, 41, 0.75) 35%,
      rgba(31, 77, 58, 0.4) 60%,
      rgba(31, 77, 58, 0.15) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 56, 41, 0.3) 0%,
      transparent 20%,
      transparent 80%,
      rgba(20, 56, 41, 0.5) 100%
    );
}

/* 装饰元素 */
.hero-decoration {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(111, 181, 148, 0.3) 20%,
    rgba(111, 181, 148, 0.3) 80%,
    transparent 100%
  );
  z-index: 3;
}

.hero-deco-line {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(143, 202, 173, 0.15) 20%,
    rgba(143, 202, 173, 0.15) 80%,
    transparent 100%
  );
}

.hero-deco-text {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.4em;
  color: rgba(143, 202, 173, 0.5);
  white-space: nowrap;
  font-weight: 500;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 0 80px;
}

/* 眉标 */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 0.8125rem;
  letter-spacing: 0.35em;
  color: var(--primary-300);
  font-weight: 500;
  text-transform: uppercase;
}

.hero-eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--primary-400);
}

/* 标题 */
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 28px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title-line {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  letter-spacing: 0.04em;
  text-wrap: nowrap;
}

.hero-title-accent {
  color: var(--primary-300);
  position: relative;
  display: inline-block;
}

/* 分隔符 */
.hero-divider {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-divider::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(143, 202, 173, 0.5);
}

.hero-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  display: block;
}

.hero-divider::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(143, 202, 173, 0.5);
}

/* 副标题 */
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 48px;
  max-width: 560px;
  line-height: 2;
  letter-spacing: 0.02em;
}

/* 按钮组 */
.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-hero svg {
  transition: transform 0.3s ease;
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

.btn-hero-primary {
  background: var(--primary-500);
  color: #fff;
  border: 1px solid var(--primary-500);
  box-shadow: 0 8px 30px rgba(79, 163, 125, 0.3);
}

.btn-hero-primary:hover {
  background: var(--primary-400);
  border-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(79, 163, 125, 0.4);
}

.btn-hero-ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}

.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
}

/* 数据统计条 */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 520px;
}

.hero-stat {
  flex: 1;
  text-align: left;
  padding: 0 32px 0 0;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.hero-stat-num sup {
  font-size: 0.55em;
  color: var(--primary-300);
  top: -0.6em;
  margin-left: 2px;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(143, 202, 173, 0.2);
  margin: 0 24px 0 0;
}

/* 滚动提示 */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(143, 202, 173, 0.5),
    transparent
  );
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* --- Section Base --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.section-header.left {
  text-align: left;
  margin-bottom: 48px;
}

.section-header.left .section-desc {
  margin: 0;
}

/* --- Features (Core Advantages) --- */
.features-section {
  background: #fff;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-card {
  padding: 48px 36px;
  border-right: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  transition: all var(--transition);
  background: #fff;
  position: relative;
}

.feature-card:nth-child(4n) {
  border-right: none;
}

.feature-card:nth-child(n+5) {
  border-bottom: none;
}

.feature-card:hover {
  background: var(--primary-50);
  z-index: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary-700);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-700);
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--transition);
}

.feature-card:hover .feature-icon svg {
  stroke: #fff;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--neutral-600);
  line-height: 1.7;
}

/* --- Products Section --- */
.products-section {
  background: var(--neutral-50);
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--primary-300);
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--neutral-100);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 12px;
  align-self: flex-start;
  letter-spacing: 0.05em;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.product-link {
  font-size: 0.875rem;
  color: var(--primary-700);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.product-link:hover {
  gap: 10px;
}

.product-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* --- About Section (Video Background) --- */
.about-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: #fff;
}

.about-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(0.75) contrast(1.1);
  transform: scale(1.08);
}

.about-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      135deg,
      rgba(15, 44, 31, 0.88) 0%,
      rgba(25, 72, 51, 0.78) 40%,
      rgba(20, 56, 41, 0.85) 100%
    );
}

.about-container {
  position: relative;
  z-index: 2;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* 左侧图片 */
.about-image {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--primary-400);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.6;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5/4;
  display: block;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  right: -24px;
  background: var(--primary-600);
  color: #fff;
  padding: 20px 28px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.badge-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.badge-text {
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
}

/* 右侧文字 */
.about-content {
  color: #fff;
}

.about-label {
  color: var(--primary-300);
  margin-bottom: 24px;
  display: inline-block;
}

.about-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-title .title-accent {
  color: var(--primary-300);
}

.about-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(143, 202, 173, 0.2);
}

.about-stat-item {
  text-align: left;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num sup {
  font-size: 0.55em;
  color: var(--primary-300);
  top: -0.6em;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.about-actions {
  margin-top: 40px;
}

/* --- Certificates --- */
.cert-section {
  background: var(--primary-50);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cert-card {
  background: #fff;
  border: 1px solid var(--primary-200);
  border-radius: 4px;
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(58, 141, 106, 0.12);
}

.cert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-700);
  fill: none;
  stroke-width: 1.5;
}

.cert-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 4px;
}

.cert-sub {
  font-size: 0.75rem;
  color: var(--neutral-500);
}

/* --- Applications Section --- */
.app-section {
  background: #fff;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--neutral-200);
  border-radius: 4px;
  overflow: hidden;
}

.app-card {
  padding: 48px 40px;
  background: #fff;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  background: var(--primary-50);
}

.app-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-600);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.app-icon svg {
  width: 100%;
  height: 100%;
}

.app-featured-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  background: var(--primary-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  line-height: 1.4;
}

.app-card-featured {
  background: var(--primary-50);
  border: 2px solid var(--primary-600);
  grid-row: span 1;
}

.app-card-featured .app-icon {
  color: var(--primary-700);
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
}

.app-card-featured .app-title {
  font-size: 1.5rem;
  color: var(--primary-800);
}

.app-num {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  color: var(--primary-700);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.app-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 12px;
}

.app-desc {
  font-size: 0.9375rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-top: auto;
}

/* --- News Section --- */
.news-section {
  background: var(--neutral-50);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.news-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--neutral-100);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-body {
  padding: 24px;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--neutral-500);
  margin-bottom: 12px;
}

.news-category {
  color: var(--primary-700);
  font-weight: 500;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--primary-900);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.cta-actions .btn-primary {
  background: #fff;
  color: var(--primary-900);
}
.cta-actions .btn-primary:hover {
  background: var(--primary-100);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-actions .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.cta-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Footer --- */
.site-footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text .cn {
  color: #fff;
}

.footer-brand .logo-text .en {
  color: rgba(255,255,255,0.4);
}

.footer-brand .logo-mark {
  background: var(--primary-500);
}

.footer-brand-desc {
  margin-top: 20px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--primary-400);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-400);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item span {
  line-height: 1.6;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--primary-400);
}

/* --- WordPress 兼容 --- */
.wp-site-blocks { padding-top: 0 !important; }
.wp-block-group { margin: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    height: 600px;
  }

  .hero-content {
    padding: 0 24px 0 64px;
  }

  .hero-title-line {
    font-size: clamp(2rem, 4vw, 3.25rem);
  }

  .hero-deco-text {
    left: 20px;
  }

  .hero-deco-line {
    left: 40px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(2n) {
    border-right: none;
  }

  .feature-card:nth-child(4n) {
    border-right: 1px solid var(--neutral-200);
  }

  .feature-card:nth-child(n+3) {
    border-bottom: 1px solid var(--neutral-200);
  }

  .feature-card:nth-child(n+5) {
    border-bottom: none;
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-section {
    padding: 80px 0;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-badge {
    right: 24px;
    bottom: 24px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header-inner {
    height: 64px;
    gap: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .logo img,
  .logo .custom-logo {
    height: 44px !important;
  }

  .logo-text .cn {
    font-size: 0.9375rem;
  }

  .logo-text .en {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--neutral-200);
    padding: 16px 24px;
    transform: translateY(-150%);
    transition: transform var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--neutral-100);
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-decoration,
  .hero-scroll-hint {
    display: none;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-eyebrow {
    margin-bottom: 24px;
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
  }

  .hero-eyebrow-line {
    width: 28px;
  }

  .hero-title-line {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-divider {
    margin-bottom: 24px;
    gap: 10px;
  }

  .hero-divider::before,
  .hero-divider::after {
    width: 32px;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 36px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-bottom: 44px;
    gap: 12px;
  }

  .btn-hero {
    padding: 14px 28px;
    font-size: 0.875rem;
  }

  .hero-stats {
    max-width: 100%;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .hero-stat-divider {
    margin-right: 16px;
  }

  .hero-stat {
    padding-right: 20px;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  .section {
    padding: 60px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card-featured {
    grid-column: span 1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: none;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-section {
    padding: 60px 0;
  }

  .about-wrap {
    gap: 36px;
  }

  .about-image-badge {
    right: 16px;
    bottom: 16px;
    padding: 14px 20px;
  }

  .badge-num {
    font-size: 1.75rem;
  }

  .badge-text {
    font-size: 0.75rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 28px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .about-actions .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .cta-wrap {
    flex-direction: column;
    text-align: center;
  }

  .cta-content p {
    margin: 0 auto;
  }
}
