/* ==========================================================================
   51cg官网 - 企业数字内容制作与传播服务
   样式表 style.css
   ========================================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --primary: #0f2b5b;
  --primary-light: #16407f;
  --accent: #1e6fff;
  --accent-2: #00c2a8;
  --gradient-main: linear-gradient(135deg, #0f2b5b 0%, #1e6fff 55%, #00c2a8 100%);
  --text-dark: #182235;
  --text-body: #4a5568;
  --text-light: #8a94a6;
  --bg-light: #f4f7fc;
  --bg-white: #ffffff;
  --border: #e3e9f2;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 14px rgba(15, 43, 91, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 43, 91, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 43, 91, 0.18);
  --font-main: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- 排版 ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-light);
  margin-top: 8px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-main);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 111, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(30, 111, 255, 0.45);
  color: #ffffff;
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
}

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

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 233, 242, 0.7);
  z-index: 1000;
  transition: var(--transition);
}

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

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-main);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(30, 111, 255, 0.3);
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 500;
  color: var(--text-dark);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(30, 111, 255, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--gradient-main);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(30, 111, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(30, 111, 255, 0.42);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background: var(--gradient-main);
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(0, 194, 168, 0.3) 0%, transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-copy h1 {
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-copy .hero-lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 36px;
}

.hero-stats .stat {
  text-align: left;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-stats .stat span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

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

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-6deg);
  transition: var(--transition);
}

.hero-visual:hover {
  transform: perspective(1200px) rotateY(0deg);
}

.hero-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* ---------- 特性卡片 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 111, 255, 0.12), rgba(0, 194, 168, 0.12));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-main);
  color: #ffffff;
  transform: scale(1.08) rotate(-4deg);
}

.feature-card h3 {
  font-size: 1.12rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ---------- 服务介绍 ---------- */
.services-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-card .service-img {
  height: 220px;
  overflow: hidden;
}

.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.06);
}

.service-body {
  padding: 28px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body .service-tag {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  color: var(--accent);
  background: rgba(30, 111, 255, 0.08);
  margin-bottom: 14px;
}

.service-body p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.service-link {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 流程 ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  transition: var(--transition);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.process-step .step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 111, 255, 0.3);
}

.process-step p {
  font-size: 0.92rem;
}

/* ---------- 详细内容区 ---------- */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-media img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.content-media:hover img {
  transform: scale(1.04);
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px dashed var(--border);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 194, 168, 0.15);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(30, 111, 255, 0.4);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(30, 111, 255, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #ffffff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--text-body);
  font-size: 0.96rem;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: var(--gradient-main);
  color: #ffffff;
  text-align: center;
  padding: 84px 0;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 50%);
  pointer-events: none;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0a1c3d;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 18px;
}

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

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: #ffffff;
}

/* ---------- 新闻列表 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

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

.news-card .news-img {
  height: 200px;
  overflow: hidden;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.06);
}

.news-body {
  padding: 24px 24px 28px;
}

.news-meta {
  display: flex;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.news-body h3 {
  font-size: 1.08rem;
  line-height: 1.5;
}

.news-body h3 a {
  color: var(--text-dark);
}

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

.news-body p {
  font-size: 0.94rem;
  margin-top: 10px;
}

/* ---------- 文章详情 ---------- */
.article {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 32px;
}

.article-body h3 {
  font-size: 1.12rem;
  margin-top: 24px;
}

.article-body p {
  margin: 16px 0;
}

.article-body figure {
  margin: 28px 0;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-light);
  margin-top: 10px;
}

.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0;
}

.article-body ul li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-light);
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dark);
}

/* ---------- 产品页 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 14px 40px rgba(30, 111, 255, 0.16);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.product-card .product-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0;
}

.product-card .product-price small {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.product-card ul li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.94rem;
}

.product-card ul li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

.product-card .btn {
  margin-top: auto;
}

/* ---------- 联系表单 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--gradient-main);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-card h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

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

.contact-item .c-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item strong {
  display: block;
  color: #ffffff;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-main);
  font-size: 0.98rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
}

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

.form-hint {
  font-size: 0.82rem;
  color: var(--text-light);
}

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

.team-card {
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: var(--transition);
}

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

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid rgba(30, 111, 255, 0.1);
}

.team-card h3 {
  font-size: 1.05rem;
}

.team-card .role {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 0.88rem;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(30, 111, 255, 0.25);
}

.timeline-item .year {
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- 滚动动画 ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual img {
    min-height: 320px;
  }

  .content-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-split.reverse {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .main-nav.open {
    max-height: 420px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 16px 6%;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 40px) 0 56px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .features-grid,
  .services-wrap,
  .product-grid,
  .news-grid,
  .process-steps,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .article {
    padding: 28px 22px;
  }

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

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

/* ---------- 无障碍 ---------- */
:focus-visible {
  outline: 3px solid rgba(30, 111, 255, 0.5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
