/* 点豆科技官网 - 全站样式 v4（绿蓝渐变·通透国际风） */
:root {
  --green: #08C18A;
  --blue: #0099CC;
  --primary: #0099CC;
  --primary-dark: #00799E;
  --primary-deep: #063A4B;
  --primary-light: #E8F7F4;
  --accent: #08C18A;
  --accent-2: #33C9B0;
  --brand-orange: #E8722B;
  --text: #16333C;
  --text-2: #5A7078;
  --bg: #ffffff;
  --bg-2: #F3FAF9;
  --border: #DDEDEA;
  --radius: 14px;
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 滚动进入动效（仅在 JS 可用时隐藏，避免无脚本时内容不可见） */
.reveal { transition: opacity .7s ease, transform .7s ease; }
html.js-ready .reveal { opacity: 0; transform: translateY(26px); }
html.js-ready .reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .page-hero::before, .hero .sweep::before, .page-hero .sweep::before,
  .hero h1, .hero p.sub, .hero .tagline, .hero-actions { animation: none !important; }
}

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary-deep); }
.logo img { height: 52px; width: auto; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text-2);
  transition: all .2s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px; transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary-dark); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* 首页 Hero（绿蓝渐变科技大图 + 缓慢推拉 + 扫光） */
.hero {
  background: #35A9A0;
  color: var(--primary-deep); overflow: hidden; position: relative;
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: -5%;
  background: url("../assets/images/hero-home.jpg") center right/cover no-repeat;
  animation: kenburns 30s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}
/* 左侧提亮留白，保证深色标题清晰 */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.84) 32%, rgba(255,255,255,.32) 62%, rgba(255,255,255,.02) 100%);
}
.hero .sweep { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.hero .sweep::before {
  content: ""; position: absolute; top: -25%; left: -35%; width: 26%; height: 150%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-14deg);
  animation: sweep 9s ease-in-out infinite;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.6%, -1.2%, 0); }
}
@keyframes sweep {
  0% { left: -35%; opacity: 0; }
  10% { opacity: 1; }
  55% { left: 115%; opacity: .85; }
  60%, 100% { left: 115%; opacity: 0; }
}
.hero-inner {
  position: relative; z-index: 3; padding: 118px 24px;
  max-width: 640px; margin: 0 auto 0 max(24px, calc((100% - var(--maxw)) / 2));
}
.hero .tagline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(0,153,204,.3);
  color: var(--primary-deep);
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
  animation: floatIn .8s ease both;
}
.hero .tagline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(8,193,138,.6);} 50% { box-shadow: 0 0 0 7px rgba(8,193,138,0);} }
@keyframes floatIn { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: none;} }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 700; margin-bottom: 18px; animation: floatIn .8s .1s ease both; }
.hero h1 .grad {
  background: linear-gradient(90deg, #069E76, #007FA6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 17px; color: #2B535D; max-width: 520px; margin-bottom: 32px; animation: floatIn .8s .2s ease both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: floatIn .8s .3s ease both; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-size: 15px;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(100deg, var(--green), var(--blue)); color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(0,153,204,.26); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,153,204,.38); }
.btn-ghost { border: 1.5px solid rgba(6,58,75,.45); color: var(--primary-deep); background: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.7); }
.btn-blue { background: var(--blue); color: #fff; font-weight: 600; }
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,153,204,.3); }
.hero-art { width: 100%; height: auto; animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* 通用区块 */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .kicker { color: var(--primary-dark); font-size: 14px; font-weight: 600; letter-spacing: 2px; margin-bottom: 8px; }
.sec-head .kicker::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-orange); margin-right: 9px; vertical-align: middle;
}
.sec-head h2 { font-size: 30px; font-weight: 700; }
.sec-head p { color: var(--text-2); margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,153,204,.12); border-color: rgba(8,193,138,.5); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-2); }
.card .badge {
  position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--brand-orange);
  background: #FFF1E8; border-radius: 999px; padding: 2px 10px;
}

/* 数据承诺条 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 36px; font-weight: 700; color: var(--primary-dark); }
.stat .lab { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* 时间线 */
.timeline { position: relative; max-width: 640px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--primary-light);
}
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--primary-light);
}
.tl-item .year { font-weight: 700; color: var(--primary-dark); }
.tl-item p { color: var(--text-2); font-size: 14px; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow-step { text-align: center; padding: 22px 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: all .25s; }
.flow-step:hover { border-color: var(--green); transform: translateY(-4px); }
.flow-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff;
  align-items: center; justify-content: center; font-weight: 600; margin-bottom: 10px;
}
.flow-step h4 { font-size: 15px; margin-bottom: 4px; }
.flow-step p { font-size: 12.5px; color: var(--text-2); }

/* 新闻 */
.news-card { display: flex; flex-direction: column; }
.news-card .date { font-size: 13px; color: var(--primary-dark); font-weight: 600; }
.news-card h3 { font-size: 17px; margin: 8px 0; }
.news-card p { font-size: 14px; color: var(--text-2); flex: 1; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 26px; margin-bottom: 8px; }
.article .meta { color: var(--text-2); font-size: 14px; margin-bottom: 28px; }
.article p { margin-bottom: 18px; color: #333; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 26px; }
.contact-item .icon {
  width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 15px; }
.contact-item p { color: var(--text-2); font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-note { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.form-success { display: none; background: var(--primary-light); color: var(--primary-deep); padding: 14px 18px; border-radius: 8px; font-size: 14px; }

/* 页脚 */
.site-footer { background: linear-gradient(120deg, #063A4B, #042C3A); color: #BFD8DC; padding: 56px 0 24px; margin-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 14px; opacity: .8; margin-top: 10px; max-width: 320px; }
.copyright { border-top: 1px solid rgba(232,114,43,.45); padding-top: 20px; font-size: 13px; opacity: .7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* 页面头图（内页通用：绿蓝渐变科技图 + 推拉 + 扫光） */
.page-hero {
  background: #35A9A0; color: var(--primary-deep); padding: 0; position: relative; overflow: hidden;
  min-height: 320px; display: flex; align-items: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: -6%; z-index: 0;
  background: url("../assets/images/banner-about.jpg") center/cover no-repeat;
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 38%, rgba(255,255,255,.28) 72%, rgba(255,255,255,.04) 100%);
}
.page-hero .sweep { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.page-hero .sweep::before {
  content: ""; position: absolute; top: -25%; left: -35%; width: 24%; height: 150%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.48), transparent);
  transform: skewX(-14deg);
  animation: sweep 11s ease-in-out infinite;
}
.page-hero .container { position: relative; z-index: 3; width: 100%; padding-top: 86px; padding-bottom: 86px; }
.page-hero h1 { font-size: 34px; animation: floatIn .7s ease both; }
.page-hero p { color: #2B535D; margin-top: 8px; animation: floatIn .7s .12s ease both; }

/* 各内页专属头图 */
.page-hero.about::before { background-image: url("../assets/images/banner-about.jpg"); }
.page-hero.services::before { background-image: url("../assets/images/banner-services.jpg"); background-position: center 46%; }
.page-hero.advantages::before { background-image: url("../assets/images/banner-advantages.jpg"); }
.page-hero.news::before { background-image: url("../assets/images/banner-news.jpg"); }
.page-hero.contact::before { background-image: url("../assets/images/banner-contact.jpg"); }

/* 响应式 */
@media (max-width: 900px) {
  .nav-inner { height: 64px; }
  .logo img { height: 42px; }
  .hero-inner { padding: 76px 22px; max-width: none; margin: 0; }
  .hero h1 { font-size: 32px; }
  .hero::after { background: linear-gradient(95deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.84) 55%, rgba(255,255,255,.35) 100%); }
  .page-hero::after { background: linear-gradient(95deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.84) 55%, rgba(255,255,255,.35) 100%); }
  .page-hero .container { padding-top: 54px; padding-bottom: 54px; }
  .page-hero h1 { font-size: 27px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .flow, .stats { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
