/* ===== 早早科技 · 官网样式 ===== */
:root {
  --primary: #0e9f6e;
  --primary-dark: #0a7f57;
  --accent: #4ce3a5;
  --navy: #0c2e24;
  --navy-2: #123d2f;
  --text: #2c3e50;
  --text-light: #5e7d6f;
  --bg: #ffffff;
  --bg-alt: #f3f8f5;
  --border: #dfeee6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 159, 110, .10);
  --shadow-lg: 0 20px 50px rgba(14, 159, 110, .16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
b, strong { color: var(--navy); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.empty-tip { text-align: center; color: var(--text-light); padding: 40px 0; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: all .25s; text-align: center; line-height: 1.4;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(14, 159, 110, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 159, 110, .45); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-block { display: block; width: 100%; }

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 46, 36, .92); backdrop-filter: blur(10px);
  transition: all .3s;
}
.site-header.scrolled { background: rgba(12, 46, 36, .98); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: 22px; font-weight: 800; font-style: italic;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { color: #fff; font-size: 18px; letter-spacing: 1px; }
.logo-text small { color: var(--accent); font-size: 10px; letter-spacing: 2px; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: rgba(255, 255, 255, .85); padding: 8px 16px; border-radius: 30px;
  font-size: 15px; transition: all .25s; font-weight: 500;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.main-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.header-cta { padding: 9px 22px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all .3s; }

/* ===== Hero 轮播 ===== */
.hero { position: relative; height: 620px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
  background-size: cover; background-position: center; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 46, 36, .85) 0%, rgba(12, 46, 36, .45) 60%, rgba(12, 46, 36, .2) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 40px; }
.hero-tag {
  display: inline-block; color: var(--accent); letter-spacing: 4px; font-size: 13px;
  border: 1px solid rgba(76, 227, 165, .5); padding: 6px 16px; border-radius: 30px; margin-bottom: 20px;
}
.hero-content h1 { color: #fff; font-size: 48px; line-height: 1.25; margin-bottom: 16px; }
.hero-content p { color: rgba(255, 255, 255, .85); font-size: 18px; margin-bottom: 30px; max-width: 560px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .4); cursor: pointer; transition: all .3s; }
.hero-dots i.active { background: var(--accent); width: 26px; border-radius: 6px; }

/* ===== 区块 ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; color: var(--navy); margin: 8px 0 12px; }
.section-head p { color: var(--text-light); }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, .7); }
.section-tag {
  display: inline-block; color: var(--primary); font-size: 13px; letter-spacing: 3px;
  border: 1px solid var(--primary); border-radius: 30px; padding: 5px 18px;
}
.section-head.light .section-tag { color: var(--accent); border-color: var(--accent); }

/* ===== 栅格 & 卡片 ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; border: 1px solid var(--border);
  display: block;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { overflow: hidden; aspect-ratio: 16/10; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 22px; }
.card-body h3 { font-size: 18px; color: var(--navy); margin: 10px 0 8px; }
.card-body p { color: var(--text-light); font-size: 14px; }
.tag { display: inline-block; color: var(--primary); background: rgba(14, 159, 110, .08); font-size: 12px; padding: 3px 12px; border-radius: 30px; }
.link-more { color: var(--primary); font-size: 14px; font-weight: 600; display: inline-block; margin-top: 12px; }

/* ===== 简介条 & 统计 ===== */
.about-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about-strip-text h2 { font-size: 30px; color: var(--navy); margin: 10px 0; }
.about-strip-text p { color: var(--text-light); }
.about-strip-lead { margin: 16px 0 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
  background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff;
  border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow);
}
.stat-card b { display: block; font-size: 36px; color: var(--accent); font-weight: 800; }
.stat-card span { color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ===== 功能卡 ===== */
.feature-card { text-align: center; padding: 34px 26px; }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 159, 110, .12), rgba(76, 227, 165, .12));
  display: grid; place-items: center; font-size: 12px; color: var(--primary);
  border: 1px solid rgba(14, 159, 110, .2);
}

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--primary), #08734f); padding: 70px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: 30px; }
.cta p { color: rgba(255, 255, 255, .85); margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 20px 40px; }
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-desc { margin-bottom: 16px; font-size: 14px; }
.footer-social { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.footer-social i { font-style: normal; font-size: 12px; border: 1px dashed rgba(255, 255, 255, .4); padding: 8px 10px; border-radius: 8px; color: rgba(255,255,255,.5); }
.footer-contact li { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.admin-link { color: rgba(255, 255, 255, .45); margin-left: 10px; }
.admin-link:hover { color: var(--accent); }

/* ===== 页头横幅 ===== */
.page-banner {
  background-size: cover; background-position: center; padding: 130px 0 70px; margin-top: 0;
  position: relative; background-color: var(--navy);
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(12, 46, 36, .72); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: 38px; }
.page-banner p { color: rgba(255, 255, 255, .8); margin-top: 10px; }
.page-banner.small { padding: 110px 0 40px; }
.page-banner.small h1 { font-size: 26px; }
.dark-band { background: var(--navy); }

/* ===== 筛选标签 ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.filter-tabs a {
  padding: 9px 24px; border-radius: 30px; border: 1px solid var(--border); color: var(--text-light);
  transition: all .25s; background: #fff;
}
.filter-tabs a:hover { border-color: var(--primary); color: var(--primary); }
.filter-tabs a.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }

/* ===== 详情页 ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.detail-main { min-width: 0; }
.detail-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.detail-body { padding: 30px 0 0; }
.detail-body h1 { font-size: 30px; color: var(--navy); margin: 14px 0 18px; }
.detail-sub { font-size: 19px; color: var(--navy); margin: 26px 0 14px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list li {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; color: var(--text);
}
.feature-list li::before { content: "✓"; color: var(--primary); margin-right: 8px; font-weight: 700; }
.detail-cta { display: flex; gap: 14px; margin-top: 30px; }
.detail-side { display: flex; flex-direction: column; gap: 24px; }
.side-box {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.side-box h3 { color: var(--navy); font-size: 17px; margin-bottom: 16px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.side-item:last-child { border-bottom: none; }
.side-item img { width: 66px; height: 48px; object-fit: cover; border-radius: 8px; }
.side-item span { font-size: 14px; color: var(--text); }
.side-item:hover span { color: var(--primary); }
.side-contact p { font-size: 14px; margin-bottom: 8px; color: var(--text-light); }

/* ===== 富文本 ===== */
.rich-text p { margin-bottom: 16px; color: var(--text); }
.rich-text h3 { color: var(--navy); margin: 18px 0 10px; }

/* ===== 文章 ===== */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.article { min-width: 0; }
.article h1 { font-size: 30px; color: var(--navy); margin-bottom: 14px; }
.article-meta { color: var(--text-light); font-size: 14px; margin-bottom: 22px; }
.article-meta span { margin-right: 20px; }
.article-cover { border-radius: var(--radius); margin-bottom: 26px; }
.article-back { margin-top: 30px; }
.news-row {
  display: flex; gap: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 18px; margin-bottom: 20px; transition: all .3s; box-shadow: var(--shadow);
}
.news-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-row-img { width: 220px; height: 130px; flex-shrink: 0; overflow: hidden; border-radius: 10px; }
.news-row-img img { width: 100%; height: 100%; object-fit: cover; }
.news-row-body h3 { color: var(--navy); font-size: 18px; }
.news-row-body p { color: var(--text-light); font-size: 14px; margin-top: 8px; }
.news-row-date { color: var(--primary); font-size: 13px; margin-top: 10px; display: inline-block; }

/* ===== 关于页 ===== */
.about-head { max-width: 860px; margin: 0 auto 70px; text-align: center; }
.about-head h2 { font-size: 32px; color: var(--navy); margin: 12px 0 20px; }
.about-richtext { text-align: left; color: var(--text); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 70px; }
.timeline-item {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--primary); transition: all .3s;
}
.timeline-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.timeline-item b { color: var(--primary); font-size: 24px; }
.timeline-item h4 { color: var(--navy); margin: 8px 0 6px; }
.timeline-item p { color: var(--text-light); font-size: 14px; }
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.honor-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; font-size: 16px; color: var(--navy); font-weight: 600;
  box-shadow: var(--shadow);
}

/* ===== 联系页 ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info h2, .contact-form h2 { color: var(--navy); font-size: 26px; margin-bottom: 26px; }
.contact-info li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.contact-info b { width: 80px; color: var(--navy); flex-shrink: 0; }
.contact-info span { color: var(--text); }
.contact-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 600; font-size: 14px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; transition: all .25s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.form-success { background: #e6f7ee; color: #1a9e5c; border: 1px solid #b8ecd0; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }

/* ===== 动画 ===== */
[data-anim] { opacity: 0; transform: translateY(26px); transition: all .7s ease; }
[data-anim].in-view { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .grid-3, .timeline, .honor-grid { grid-template-columns: 1fr 1fr; }
  .about-strip, .detail-layout, .article-wrap, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { height: 520px; }
  .hero-content h1 { font-size: 34px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; padding: 20px; gap: 4px; transform: translateY(-120%); transition: all .35s;
  }
  .main-nav.open { transform: none; }
  .header-cta { display: none; }
  .grid-3, .grid-2, .timeline, .honor-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { height: 480px; }
  .hero-content h1 { font-size: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-list, .cta-inner { grid-template-columns: 1fr; flex-direction: column; }
  .news-row { flex-direction: column; }
  .news-row-img { width: 100%; height: 180px; }
  .section { padding: 56px 0; }
}