/* ==========================================================
   长沙舟达信息技术有限公司 · 官网
   暖色乡村风格，单页响应式布局
   ========================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --green-deep: #2f5233;
  --green: #4a7c3f;
  --green-soft: #eef3e8;
  --orange: #e07b39;
  --orange-deep: #c56125;
  --cream: #faf7f0;
  --card: #ffffff;
  --ink: #33312c;
  --ink-soft: #6b685f;
  --line: #e8e2d5;
  --shadow: 0 10px 30px rgba(47, 82, 51, 0.10);
  --radius: 16px;
  --header-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(51, 49, 44, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(47, 82, 51, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong { font-size: 16px; color: var(--green-deep); white-space: nowrap; }
.brand-text small { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
  transition: background .25s, color .25s;
}

.nav-link:hover { background: var(--green-soft); color: var(--green-deep); }

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  font-weight: 600;
  margin-left: 8px;
}

.nav-cta:hover { background: var(--orange-deep); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: none;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.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 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(31, 42, 26, 0.52), rgba(31, 42, 26, 0.55)),
    url("../assets/hero-village.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(4px);
}

.hero h1 {
  margin: 26px 0 18px;
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: 4px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: transform .25s, box-shadow .25s, background .25s;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 24px rgba(224, 123, 57, 0.4);
}

.btn-primary:hover { background: var(--orange-deep); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.hero-stats {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 6vw, 72px);
  flex-wrap: wrap;
}

.stat {
  padding: 0 12px;
  text-align: center;
}

.stat dt {
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.75;
}

.stat dd {
  margin-top: 4px;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  width: 26px;
  height: 42px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
}

.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0);     opacity: 1; }
  70%  { transform: translateY(14px);  opacity: 0; }
  100% { transform: translateY(0);     opacity: 0; }
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 96px 0;
}

.section-alt { background: var(--green-soft); }

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

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--orange-deep);
  margin-bottom: 10px;
}

.section-head h2,
.about-text h2,
.section-contact h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  color: var(--green-deep);
  letter-spacing: 2px;
  line-height: 1.4;
}

.section-desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- 产品特性卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .3s, box-shadow .3s;
}

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

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8ead9, #f3dcc2);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- 价值主张 ---------- */
.value-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.value-item {
  background: var(--card);
  padding: 32px 30px;
}

.value-item h4 {
  font-size: 17px;
  color: var(--orange-deep);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text .section-tag { margin-bottom: 6px; }

.about-text p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
  text-align: justify;
}

.about-points {
  margin-top: 24px;
  list-style: none;
}

.about-points li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}

.about-points li:last-child { border-bottom: none; }

.about-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.about-points strong { color: var(--green-deep); }

/* ---------- 企业信息 ---------- */
.company-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 20px 30px;
  text-align: left;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-table th {
  width: 140px;
  font-weight: 600;
  color: var(--green-deep);
  background: #fbf9f3;
  white-space: nowrap;
}

.company-note {
  padding: 18px 30px;
  font-size: 14px;
  color: var(--ink-soft);
  background: #fbf9f3;
  border-top: 1px solid var(--line);
}

.company-note a {
  color: var(--orange-deep);
  font-weight: 600;
  word-break: break-all;
}

.company-note a:hover { text-decoration: underline; }

/* ---------- 联系我们 ---------- */
.section-contact {
  background: linear-gradient(160deg, var(--green-deep), #1f3a24);
  color: #fff;
  text-align: center;
}

.section-contact h2 { color: #fff; }

.section-contact > .container > p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: left;
}

.contact-item {
  padding: 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: background .3s, transform .3s;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.contact-item h4 {
  font-size: 15px;
  letter-spacing: 2px;
  color: #f3c893;
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1c2b1f;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
}

.footer-inner {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover { color: #f3c893; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(31, 58, 36, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--green); }

/* ---------- 滚动进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

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

  .brand-text small { display: none; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 5% 22px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(51, 49, 44, 0.10);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: 10px;
    text-align: center;
  }

  .nav-cta { margin-left: 0; }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 20px;
  }

  .company-table th {
    padding-bottom: 2px;
    background: transparent;
  }

  .company-table td { padding-top: 0; }

  .company-note { padding: 16px 20px; }

  .footer-inner { justify-content: center; text-align: center; }
}
