/* 基础主题变量 */
:root {
  --color-bg: #fffdf7; /* 温馨背景近白 */
  --color-bg-alt: #fff8e1; /* 浅暖黄 */
  --color-primary: #ffcc33; /* 主色亮黄 */
  --color-primary-dark: #e0a800; /* 深一些用于hover */
  --color-accent: #ffb347; /* 辅助橙黄 */
  --color-text: #553b06; /* 暖棕文本 */
  --color-text-light: #8a6d2a;
  --color-border: #f3e2b8;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --transition: .35s cubic-bezier(.25,.8,.25,1);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* 全局暖色柔和动态背景层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,230,160,.55), rgba(255,230,160,0) 62%),
    radial-gradient(circle at 78% 72%, rgba(255,205,100,.45), rgba(255,205,100,0) 60%),
    radial-gradient(circle at 50% 50%, rgba(255,240,190,.38), rgba(255,240,190,0) 70%);
  animation: bgMove 16s ease-in-out infinite alternate;
  filter: blur(0px);
}
/* 细腻颗粒/光斑层 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3; /* 在更底层以免干扰主体 */
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 60%),
    radial-gradient(circle at 88% 68%, rgba(255,255,255,.28) 0, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 42% 76%, rgba(255,255,255,.22) 0, rgba(255,255,255,0) 55%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 2px, rgba(255,255,255,0) 3px 18px);
  mix-blend-mode: screen;
  opacity: .45;
  animation: sparkleDrift 26s linear infinite;
}
@keyframes sparkleDrift {
  0% { transform: translate3d(0,0,0); filter: brightness(1); }
  50% { transform: translate3d(0,-10px,0); filter: brightness(1.05); }
  100% { transform: translate3d(0,0,0); filter: brightness(1); }
}
@keyframes bgMove {
  0% { transform: scale(1); filter: brightness(1) saturate(1); }
  50% { transform: scale(1.015) translateY(-6px); filter: brightness(1.04) saturate(1.06); }
  100% { transform: scale(1.03) translateY(-12px); filter: brightness(1.08) saturate(1.1); }
}
/* 斜向光束层 */
.beam-layer {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background: linear-gradient(115deg,
    rgba(255,240,180,0) 5%,
    rgba(255,225,120,0.22) 32%,
    rgba(255,215,90,0.28) 46%,
    rgba(255,225,120,0.18) 60%,
    rgba(255,240,180,0) 78%);
  mix-blend-mode: screen;
  opacity: .55;
  animation: beamFlash 9s ease-in-out infinite;
}
@keyframes beamFlash {
  0% { opacity:.25; transform: translateY(-4%) scale(1); filter: brightness(1); }
  30% { opacity:.55; }
  50% { opacity:.42; transform: translateY(2%) scale(1.01); filter: brightness(1.05); }
  70% { opacity:.6; }
  100% { opacity:.25; transform: translateY(-4%) scale(1); filter: brightness(1); }
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.6rem;
  max-width: var(--max-width);
}

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(255,248,225,.85);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap:1.6rem; }
.main-nav { flex:1; }
.logo { font-weight: 700; font-size: 1.4rem; letter-spacing: .5px; color: var(--color-primary-dark); text-align:right; }
.big-logo { font-size:2.3rem; font-weight:800; letter-spacing:1.4px; background:linear-gradient(100deg,#ffd86b,#ffcc33,#ffb347); -webkit-background-clip:text; background-clip:text; color:transparent; filter: drop-shadow(0 2px 4px rgba(255,180,50,.35)); position:relative; padding:.45rem .4rem .7rem .2rem; animation: logoBreath 5.5s ease-in-out infinite; }
.big-logo::after { content:""; position:absolute; left:0; bottom:6px; height:6px; width:58%; background:linear-gradient(90deg,rgba(255,204,51,.65),rgba(255,179,71,.0)); border-radius:4px; opacity:.55; }
.big-logo:hover { filter: drop-shadow(0 5px 14px rgba(255,180,50,.55)); transform: translateY(-2px) scale(1.02); transition: var(--transition); }
@keyframes logoBreath { 0% { filter: drop-shadow(0 2px 4px rgba(255,180,50,.35)); } 50% { filter: drop-shadow(0 3px 10px rgba(255,180,50,.55)); } 100% { filter: drop-shadow(0 2px 4px rgba(255,180,50,.35)); } }
.nav-list { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.main-nav .nav-list { justify-content: flex-end; width:100%; }
.nav-list a {
  position: relative;
  text-decoration: none;
  padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  font-weight: 600;
  transition: var(--transition);
}
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: linear-gradient(90deg,var(--color-primary),var(--color-accent)); opacity: 0; transform: scaleX(.3); transition: var(--transition);
}
.nav-list a:hover { background: rgba(255,204,51,.12); color: var(--color-text); }
.nav-list a:hover::after { opacity: 1; transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: 72vh; display: flex; align-items: center; padding: 4rem 0 3rem; }
.hero-bg {
  position: absolute; inset: 0; background: radial-gradient(circle at 40% 40%, #ffe8a6, #fff8e1 60%, #fffdf7 100%);
  z-index: -1;
  animation: softGlow 10s ease-in-out infinite alternate;
}
@keyframes softGlow { from { filter: brightness(1); } to { filter: brightness(1.08); } }
.hero-title { font-size: clamp(2.4rem,6vw,3.6rem); margin: 0 0 1rem; font-weight: 700; letter-spacing: .5px; }
.hero-subtitle { font-size: 1.2rem; max-width: 640px; margin: 0 0 2rem; color: var(--color-text-light); }
.hero-actions { display: flex; gap: 1rem; }

/* 按钮 */
.btn {
  --btn-bg: var(--color-primary);
  --btn-color: var(--color-text);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .85rem 1.4rem;
  font-size: .95rem; font-weight: 600;
  border: none; cursor: pointer;
  border-radius: var(--radius-lg);
  background: var(--btn-bg);
  color: var(--btn-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.btn.primary { --btn-bg: linear-gradient(135deg,#ffcc33,#ffb347); }
.btn.secondary { --btn-bg: #fff; border: 2px solid var(--color-primary); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--color-bg-alt); }
.lang-toggle { margin-left:.6rem; align-self:center; cursor:pointer; font-size:.8rem; font-weight:700; padding:.55rem .9rem; border-radius:var(--radius-lg); background:#fff; border:2px solid var(--color-primary); color:var(--color-text); box-shadow:var(--shadow-sm); transition:var(--transition); }
.lang-toggle:hover { background: var(--color-bg-alt); transform: translateY(-2px); }
.lang-toggle:active { transform: translateY(0); }

/* Ripple 效果 (JS 注入 .ripple-span) */
.ripple-span { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .6; background: rgba(255,255,255,.7); animation: ripple .7s ease-out forwards; }
@keyframes ripple { to { transform: scale(3.5); opacity: 0; } }

.section { padding: 4.2rem 0 3.2rem; position: relative; }
.section.alt { background: var(--color-bg-alt); }
.section-title { font-size: 2rem; margin: 0 0 1rem; position: relative; }
.section-title::after { content: ""; display: block; width: 72px; height: 6px; margin-top: .6rem; border-radius: 4px; background: linear-gradient(90deg,var(--color-primary),var(--color-accent)); }
.section-intro { max-width: 720px; margin: 0 0 2.4rem; color: var(--color-text-light); }

/* 卡片网格 */
.cards-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  opacity: 0; transform: translateY(28px);
}
.card h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.card p { margin: 0; font-size: .9rem; color: var(--color-text-light); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg,rgba(255,204,51,.15),rgba(255,179,71,.15)); opacity: 0; transition: var(--transition); }
.card:hover::before { opacity: 1; }

/* 时间线 */
.timeline { position: relative; margin: 0 auto; max-width: 820px; display: grid; gap: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--color-primary),var(--color-accent)); border-radius: 4px; }
.timeline-item { position: relative; padding-left: 70px; opacity: 0; transform: translateX(-40px); transition: var(--transition); }
.timeline-item.in-view { opacity: 1; transform: translateX(0); }
.timeline-item .dot { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; background: #fff; border: 5px solid var(--color-primary); border-radius: 50%; box-shadow: var(--shadow-sm); }
.timeline-item .content h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.timeline-item .content p { margin: 0; font-size: .9rem; color: var(--color-text-light); }

/* 客户评价轮播 */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial { opacity: 0; transform: translateY(30px); transition: var(--transition); position: absolute; inset: 0; padding: 1rem 0; }
.testimonial.active { opacity: 1; transform: translateY(0); position: relative; }
.quote { font-size: 1.05rem; background: #fff; padding: 1.4rem 1.6rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.author { margin: .8rem 0 0; font-size: .85rem; color: var(--color-text-light); }

/* 关于公司 */
.about-grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); align-items: start; }
.about-text { opacity: 0; transform: translateY(28px); transition: var(--transition); }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.feature-list li { position: relative; padding-left: 1.4rem; font-size: .9rem; }
.feature-list li::before { content: "★"; position: absolute; left: 0; top: 1px; font-size: .8rem; color: var(--color-primary-dark); }
.about-visual { display: flex; flex-direction: column; gap: 1.2rem; }
.soft-card { background: #fff; border: 1px solid var(--color-border); padding: 1rem 1.1rem 1.2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: var(--transition); }
.soft-card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.soft-card p { margin: 0; font-size: .85rem; color: var(--color-text-light); }
.soft-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
/* 营业执照展示块 */
.license-show { background:#fff; border:1px solid var(--color-border); padding:1rem 1rem 1.3rem; border-radius:var(--radius-md); box-shadow:var(--shadow-sm); opacity:0; transform:translateY(28px); transition:var(--transition); overflow:hidden; position:relative; }
.license-title { margin:.2rem 0 .6rem; font-size:1rem; font-weight:700; color:var(--color-text); }
.license-desc { margin:0 0 .9rem; font-size:.78rem; color:var(--color-text-light); }
.license-img { display:block; width:260px; height:auto; border:1px solid var(--color-border); border-radius:12px; box-shadow:0 4px 16px rgba(0,0,0,.08); transform: rotate(-90deg) scale(.85); transform-origin:center; transition:.6s ease; margin:0 auto; }
.license-img:hover { transform: rotate(-90deg) scale(.9); }
.license-show.in-view { opacity:1; transform:translateY(0); }

/* 浮动动画 */
.float { animation: float 5.5s ease-in-out infinite; }
.float.delay-1 { animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* 联系表单 */
.contact-form { max-width: 640px; display: grid; gap: 1.2rem; opacity: 0; transform: translateY(30px); transition: var(--transition); }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-size: .8rem; font-weight: 700; letter-spacing: .5px; color: var(--color-text-light); }
.form-row input, .form-row textarea {
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: #fff;
  resize: vertical;
  transition: var(--transition);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-primary); box-shadow: 0 0 0 4px rgba(255,204,51,.25); }

/* 页脚 */
.site-footer { background: #fff2c9; padding: 2.4rem 0 2rem; margin-top: 2rem; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; gap: 1rem; align-items: center; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); font-size: .85rem; }
.footer-brand { font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.footer-links a { text-decoration: none; color: var(--color-text-light); padding: .25rem .6rem; border-radius: var(--radius-sm); transition: var(--transition); }
.footer-links a:hover { background: rgba(255,204,51,.25); color: var(--color-text); }
.footer-extra { color: var(--color-text-light); }
.footer-extra a {
  color: #FFD700; /* 默认黄色 */
  text-decoration: none;
  transition: color 0.2s;
}
.footer-extra a:hover {
  color: #000; /* 悬停时黑色 */
  text-decoration: underline;
}
/* 返回顶部 */
.back-to-top { position: fixed; right: 18px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg,#ffcc33,#ffb347); color: var(--color-text); border: none; cursor: pointer; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; opacity: 0; pointer-events: none; transition: var(--transition); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

/* 进场动画通用 */
.fade-in-up { opacity: 0; transform: translateY(30px); }
.in-view.fade-in-up, .fade-in-up.in-view { opacity: 1; transform: translateY(0); transition: var(--transition); }
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }

/* IntersectionObserver 激活后显示 */
.in-view { opacity: 1 !important; transform: translateY(0) !important; }

/* 响应式优化 */
@media (max-width: 760px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .nav-list { gap: .4rem; }
  .nav-list a { padding: .5rem .6rem; }
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 56px; }
  .timeline-item .dot { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
