/* =============================================================
   bydsf.com 全站全局样式（黏土手作风 · 奶白+浅黄+浅绿）
   所有页面共用：配色变量 / 基础排版 / 统一导航 / 统一页脚 / 按钮 / 动画基类
   页面独有模块样式一律写在 css/<页面名>.css 中
   ============================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 主色板：奶白 / 浅黄 / 浅绿 / 深墨 */
  --cream:      #FFF9EF;
  --cream-2:    #FBF3E2;
  --cream-3:    #F6EDD9;
  --yellow:     #F6E3B4;
  --yellow-2:   #EED191;
  --yellow-3:   #E3BE6E;
  --green:      #BFD8B2;
  --green-2:    #A7C99A;
  --green-3:    #8BB47E;
  --ink:        #5B5346;
  --ink-2:      #7C7465;
  --ink-3:      #A49B8A;
  --line:       #EAE0CC;
  --white:      #FFFFFF;

  /* 黏土阴影（外柔和投影 + 内高光 + 内底部暗边） */
  --clay-shadow:  0 20px 35px -20px rgba(91, 83, 70, .30),
                  inset 0 -8px 14px -8px rgba(227, 190, 110, .45),
                  inset 0 3px 6px rgba(255, 255, 255, .80);
  --clay-shadow-sm: 0 12px 22px -12px rgba(91, 83, 70, .26),
                  inset 0 -5px 9px -5px rgba(227, 190, 110, .40),
                  inset 0 2px 4px rgba(255, 255, 255, .75);
  --clay-shadow-lg: 0 30px 55px -25px rgba(91, 83, 70, .38),
                  inset 0 -10px 18px -10px rgba(227, 190, 110, .55),
                  inset 0 4px 8px rgba(255, 255, 255, .85);

  /* 尺寸 */
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 64px;
  --topbar-h: 40px;
  --container: 1240px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- 2. 重置与基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity .35s var(--ease);
}

/* 页面切换过渡：离开态 */
body.page-leave { opacity: 0; }

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), transform .25s var(--ease); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--ink); }

::selection { background: var(--yellow-2); color: var(--ink); }

/* 语义化标题层级 */
h1, h2, h3, h4, h5 { line-height: 1.35; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { color: var(--ink-2); }

/* ---------- 3. 通用工具 ---------- */
.container { width: min(var(--container), 92%); margin: 0 auto; }

.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; position: relative; }

/* 段落标题（各页可自行换样式） */
.sec-head { max-width: 720px; margin-bottom: 42px; }
.sec-head .sec-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; letter-spacing: 2px; color: var(--green-3);
  font-weight: 700; margin-bottom: 12px;
}
.sec-head .sec-kicker::before {
  content: ""; width: 26px; height: 10px; border-radius: 999px;
  background: var(--green); display: inline-block;
}
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { max-width: 620px; }

/* 黏土按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(180deg, #FDF6E4 0%, var(--yellow) 60%, var(--yellow-2) 100%);
  color: var(--ink); font-weight: 700; font-size: .98rem;
  box-shadow: var(--clay-shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}
.btn::after {
  content: ""; position: absolute; inset: 4px; border-radius: 999px;
  border: 1px dashed rgba(227, 190, 110, .75); pointer-events: none;
}
.btn:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: var(--clay-shadow); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-green {
  background: linear-gradient(180deg, #E4EFDA 0%, var(--green) 55%, var(--green-2) 100%);
}
.btn-green::after { border-color: rgba(139, 180, 126, .75); }
.btn-line {
  background: transparent; box-shadow: 0 0 0 2px var(--yellow-2) inset;
}
.btn-line::after { border-color: rgba(227, 190, 110, .5); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }

/* 黏土标签 */
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--cream-2); border: 1.5px dashed var(--yellow-2);
  font-size: .82rem; color: var(--ink-2); font-weight: 600;
}

/* 黏土卡片基类 */
.clay-card {
  background: linear-gradient(165deg, #FFFDF6 0%, var(--cream-2) 100%);
  border-radius: var(--radius);
  box-shadow: var(--clay-shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.clay-card:hover { transform: translateY(-6px); box-shadow: var(--clay-shadow); }

/* 圆形/方形嵌套的通用形态 */
.blob {
  border-radius: 62% 38% 55% 45% / 52% 46% 54% 48%;
}
.blob-2 {
  border-radius: 45% 55% 40% 60% / 60% 40% 58% 42%;
}
.dough {
  border-radius: 32px;
  box-shadow: var(--clay-shadow-sm);
  background: linear-gradient(165deg, #FFFDF6 0%, var(--cream-2) 100%);
}

/* 悬浮装饰圆 */
.float-dot {
  position: absolute; border-radius: 50%;
  pointer-events: none; opacity: .9;
}

/* ---------- 4. 统一顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}

/* 顶部联系工具条 */
.header-top {
  background: var(--green);
  color: #3F5238;
  height: var(--topbar-h);
  transition: max-height .35s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.header-top-inner {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: .85rem;
}
.header-top-slogan { font-weight: 600; letter-spacing: 1px; white-space: nowrap; }
.header-top-contact { display: flex; gap: 22px; align-items: center; }
.header-top-contact a { font-weight: 700; border-bottom: 1px dashed rgba(63,82,56,.5); }
.header-top-contact a:hover { color: #2F4029; }
.header-top-contact li { display: inline-flex; align-items: center; gap: 6px; }

/* 主导航 */
.header-nav {
  background: var(--cream);
  box-shadow: 0 2px 18px -8px rgba(91, 83, 70, .14);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header-nav-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-size: 1.22rem; color: var(--ink); letter-spacing: .5px; }
.logo-text em { font-style: normal; font-size: .74rem; color: var(--green-3); letter-spacing: 2px; font-weight: 600; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--ink-2);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--cream-2); transform: translateY(-2px); }
.nav-link.active {
  background: linear-gradient(180deg, #E5EFDC 0%, var(--green) 100%);
  color: #3F5238; box-shadow: var(--clay-shadow-sm);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 14px;
  background: var(--cream-2); box-shadow: var(--clay-shadow-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar {
  width: 20px; height: 3px; border-radius: 3px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 滚动变色 */
.site-header.scrolled .header-top { max-height: 0; opacity: 0; transform: translateY(-40px); }
.site-header.scrolled .header-nav {
  background: rgba(255, 249, 239, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -10px rgba(91, 83, 70, .25);
}

/* 移动端导航抽屉 */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream);
    padding: 14px 5% 26px;
    box-shadow: 0 30px 40px -20px rgba(91, 83, 70, .4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .3s var(--ease), visibility .3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-list.open { transform: none; opacity: 1; visibility: visible; }
  .nav-list > li { border-bottom: 1px dashed var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-link { display: block; padding: 13px 10px; border-radius: 12px; font-size: 1.02rem; }
  .header-top-slogan { display: none; }
  .header-top-contact { gap: 12px; font-size: .8rem; }
  .header-top-contact li:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  :root { --topbar-h: 36px; --header-h: 58px; }
  .logo-text b { font-size: 1.05rem; }
  .logo img { height: 40px; }
  .header-top-contact li:nth-child(3) { display: none; }
}

/* ---------- 5. 统一页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #F1E9D6 0%, #E9DFC8 100%);
  border-top: 3px solid var(--yellow-2);
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 64px 0 44px;
}
.footer-col h4 {
  font-size: 1rem; margin-bottom: 18px; position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 8px; border-radius: 999px; background: var(--green);
}
.footer-col-about img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-col-about p { font-size: .92rem; color: var(--ink-2); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: .93rem; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col ul a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow-2); display: inline-block;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.footer-col ul a:hover { color: var(--ink); }
.footer-col ul a:hover::before { background: var(--green-3); transform: scale(1.35); }
.footer-col-contact ul a::before { display: none; }
.footer-col-contact li { font-size: .94rem; color: var(--ink-2); margin-bottom: 12px; }
.footer-col-contact li b { color: var(--ink); }

.footer-bottom {
  border-top: 1px dashed var(--yellow-3);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: var(--ink-3);
}
.footer-icp { font-size: .84rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 26px; padding: 46px 0 34px; }
}

/* ---------- 6. 内页首屏（hero） ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--topbar-h) + 56px) 0 64px;
  background: linear-gradient(160deg, var(--yellow) 0%, var(--cream) 55%, var(--green) 130%);
  overflow: hidden;
}
.page-hero .hero-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 14px; position: relative; z-index: 2; }
.page-hero .hero-sub { max-width: 640px; color: var(--ink-2); position: relative; z-index: 2; }
.page-hero .hero-bread { position: relative; z-index: 2; margin-bottom: 18px; font-size: .86rem; color: var(--ink-3); }
.page-hero .hero-bread a { font-weight: 600; color: var(--ink-2); }
.page-hero .hero-bread a:hover { color: var(--green-3); }
.hero-deco { position: absolute; z-index: 1; }
.hero-deco-1 { width: 300px; height: 300px; background: rgba(255,255,255,.4); border-radius: 50%; top: -90px; right: -60px; }
.hero-deco-2 { width: 190px; height: 190px; background: rgba(163,201,154,.4); border-radius: 40px; bottom: -70px; left: 8%; transform: rotate(18deg); }
.hero-deco-3 { width: 90px; height: 90px; background: rgba(238,209,145,.55); border-radius: 50%; top: 30%; right: 16%; }

/* 面包屑 */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- 7. 表单控件 ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 13px 16px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(191, 216, 178, .35);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- 8. 滚动渐入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-36px); }
.reveal-left.is-in { transform: none; }
.reveal-right { transform: translateX(36px); }
.reveal-right.is-in { transform: none; }
.reveal-scale { transform: scale(.9); }
.reveal-scale.is-in { transform: none; }

/* 延迟辅助 */
.d-1 { transition-delay: .08s; }
.d-2 { transition-delay: .16s; }
.d-3 { transition-delay: .24s; }
.d-4 { transition-delay: .32s; }

/* 漂浮动画 */
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
.float-anim { animation: floatY 5.5s ease-in-out infinite; }
.float-anim-slow { animation: floatY 8s ease-in-out infinite; }

@keyframes spinSlow { to { transform: rotate(360deg); } }
.spin-slow { animation: spinSlow 22s linear infinite; }

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.pulse-soft { animation: pulseSoft 4s ease-in-out infinite; }

/* 横幅文字动画 */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.rise-in { animation: riseIn .9s var(--ease) both; }
.rise-in-2 { animation: riseIn .9s var(--ease) .18s both; }
.rise-in-3 { animation: riseIn .9s var(--ease) .36s both; }
.rise-in-4 { animation: riseIn .9s var(--ease) .54s both; }

/* 跑马灯 */
@keyframes marqueeX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marqueeX 26s linear infinite; }

/* ---------- 9. 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 990;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(180deg, #FDF6E4 0%, var(--yellow) 100%);
  color: var(--ink); font-size: 1.2rem; font-weight: 800;
  box-shadow: var(--clay-shadow-sm);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-4px); box-shadow: var(--clay-shadow); }

/* ---------- 10. 通用列表/表格细节 ---------- */
.list-dot li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
.list-dot li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--green-2);
}
.list-num { counter-reset: ln; }
.list-num li { counter-increment: ln; padding-left: 40px; position: relative; margin-bottom: 12px; color: var(--ink-2); }
.list-num li::before {
  content: counter(ln, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 11. 响应式通用 ---------- */
@media (max-width: 1024px) {
  .page-hero { padding-top: calc(var(--header-h) + var(--topbar-h) + 44px); }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .sec-head { margin-bottom: 30px; }
}
