/* 星之宝文旅官网 - 全站样式 */
:root {
  --green-deep: #0b4d3a;
  --green: #117a54;
  --green-light: #e6f4ee;
  --amber: #f5a623;
  --amber-deep: #e8940a;
  --ink: #1c2b26;
  --gray: #5c6f68;
  --line: #e4ebe7;
  --bg: #ffffff;
  --bg-soft: #f6faf8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 77, 58, 0.08);
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 10px;
  object-fit: cover; display: block;
  box-shadow: 0 2px 10px rgba(11, 77, 58, 0.18);
}
.brand-name { font-size: 17px; font-weight: 700; color: var(--green-deep); line-height: 1.25; }
.brand-name small { display: block; font-size: 10.5px; font-weight: 400; color: var(--gray); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--ink);
  transition: all .2s;
}
.nav-links a:hover { color: var(--green); background: var(--green-light); }
.nav-links a.active { color: var(--green); font-weight: 600; background: var(--green-light); }
.nav-auth { display: flex; align-items: center; gap: 12px; }
.nav-user { font-size: 13.5px; color: var(--gray); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn {
  display: inline-block; padding: 9px 22px; border-radius: 10px; font-size: 15px;
  cursor: pointer; border: none; transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-amber { background: var(--amber); color: #fff; font-weight: 600; }
.btn-amber:hover { background: var(--amber-deep); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-ghost { background: transparent; color: var(--gray); }
.btn-ghost:hover { color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 13px 32px; font-size: 16px; border-radius: 12px; }

/* ===== 首页 Hero ===== */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,42,32,0.86) 0%, rgba(7,42,32,0.55) 45%, rgba(7,42,32,0.15) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 90px 24px; width: 100%; }
.hero-tag {
  display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px; font-size: 13.5px; letter-spacing: 2px; margin-bottom: 22px;
  background: rgba(255,255,255,0.08);
}
.hero h1 { font-size: 36px; line-height: 1.5; font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.88); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 数据条 ===== */
.stats-band { background: var(--green-deep); color: #fff; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.stat b { font-size: 34px; font-weight: 700; display: block; }
.stat b i { font-style: normal; font-size: 16px; margin-left: 2px; color: var(--amber); }
.stat span { font-size: 14px; color: rgba(255,255,255,0.72); }

/* ===== 通用 Section ===== */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-kicker { color: var(--green); font-size: 14px; font-weight: 600; letter-spacing: 3px; margin-bottom: 10px; }
.sec-head h2 { font-size: 32px; color: var(--ink); margin-bottom: 12px; }
.sec-head p { color: var(--gray); font-size: 16px; }

/* ===== 卡片 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green-light);
  color: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 14.5px; }

/* ===== 图文分栏 ===== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: 30px; margin-bottom: 18px; }
.split .lead { color: var(--gray); margin-bottom: 22px; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15.5px; }
.check-list .ck {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-light);
  color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 3px;
}

/* ===== 合作流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 40px; font-weight: 800; color: var(--green-light);
  position: absolute; top: 14px; right: 20px; line-height: 1;
}
.step .icon { font-size: 30px; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--gray); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  border-radius: 20px; color: #fff; padding: 58px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { font-size: 28px; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.8); }

/* ===== 页脚 ===== */
.site-footer { background: #08291f; color: rgba(255,255,255,0.72); margin-top: 84px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding: 60px 0 40px; }
.footer-main h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-main a, .footer-main li { font-size: 14px; margin-bottom: 10px; display: block; }
.footer-main a:hover { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 13px; text-align: center; color: rgba(255,255,255,0.45); }

/* ===== 案例视频 ===== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .25s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #08291f; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 12px; border-radius: 999px; background: rgba(8, 41, 31, 0.78);
  color: #fff; font-size: 12px; backdrop-filter: blur(4px);
}
.video-body { padding: 20px 22px 24px; }
.video-body h3 { font-size: 17px; margin-bottom: 6px; }
.video-body p { color: var(--gray); font-size: 13.5px; }
.video-empty {
  grid-column: 1 / -1; border: 1.5px dashed #c8d8d0; border-radius: var(--radius);
  padding: 56px 30px; text-align: center; color: var(--gray); background: var(--bg-soft);
}
.video-empty .big { font-size: 40px; margin-bottom: 14px; }
.video-empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.video-empty p { font-size: 14px; max-width: 460px; margin: 0 auto; }

/* ===== 页面内页 banner ===== */
.page-banner { background: linear-gradient(120deg, var(--green-deep), var(--green)); color: #fff; padding: 72px 0; }
.page-banner h1 { font-size: 34px; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.8); max-width: 640px; }

/* ===== 产品服务 ===== */
.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.product-row:last-child { margin-bottom: 0; }
.product-row.reverse .product-img { order: 2; }
.product-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.product-img img { width: 100%; height: 380px; object-fit: cover; transition: transform .4s; }
.product-img:hover img { transform: scale(1.04); }
.product-body .p-kicker { color: var(--amber-deep); font-size: 13.5px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.product-body h2 { font-size: 26px; margin-bottom: 14px; }
.product-body p { color: var(--gray); margin-bottom: 16px; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  padding: 6px 14px; border-radius: 999px; background: var(--green-light);
  color: var(--green); font-size: 13px; font-weight: 500;
}

/* ===== 关于我们 ===== */
.about-block { max-width: 820px; margin: 0 auto; }
.about-block h2 { font-size: 26px; margin-bottom: 18px; }
.about-block p { color: var(--gray); margin-bottom: 14px; font-size: 15.5px; }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.value-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--green-deep); }
.value-item p { font-size: 14px; margin: 0; }

/* ===== 联系我们 ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info .c-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .c-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--green-light);
  color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-info h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-info p { color: var(--gray); font-size: 14px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card .form-hint { color: var(--gray); font-size: 13.5px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-field label .req { color: #d0453b; margin-left: 2px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fff; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green); }
.form-field textarea { resize: vertical; min-height: 110px; }
.file-field { border: 1.5px dashed #c8d8d0; border-radius: 10px; padding: 16px; text-align: center; color: var(--gray); font-size: 13.5px; cursor: pointer; }
.file-field.has-file { border-color: var(--green); color: var(--green); background: var(--green-light); }
.file-field input[type=file] { display: none; }
.msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.msg.ok { display: block; background: var(--green-light); color: var(--green-deep); }
.msg.err { display: block; background: #fdeeec; color: #b3352b; }

/* 我的咨询记录 */
.my-records { margin-top: 40px; }
.record-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.record-item .r-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.record-item .r-name { font-weight: 600; font-size: 15px; }
.record-item .r-time { font-size: 12.5px; color: var(--gray); }
.record-item .r-msg { color: var(--gray); font-size: 14px; }
.record-item .r-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--green); cursor: pointer; }
.record-item .r-file:hover { text-decoration: underline; }
.status-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--green-light); color: var(--green); }

/* ===== 登录页 ===== */
.auth-page { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 48px 0; background: var(--bg-soft); }
.auth-card {
  max-width: 440px; width: 100%; margin: 0 auto; background: #fff;
  border-radius: 20px; padding: 40px 38px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--gray); font-size: 14px; margin-bottom: 26px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button {
  flex: 1; background: none; border: none; padding: 12px 4px; font-size: 14.5px;
  font-family: inherit; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent;
}
.auth-tabs button.active { color: var(--green); font-weight: 600; border-bottom-color: var(--green); }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--gray); margin-top: 18px; }
.auth-foot a { color: var(--green); cursor: pointer; }
.auth-foot a:hover { text-decoration: underline; }

/* ===== 公园资讯 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-date { font-size: 12.5px; color: var(--gray); }
.news-body h3 { font-size: 17.5px; line-height: 1.55; }
.news-body p { color: var(--gray); font-size: 13.5px; flex: 1; }
.news-more { color: var(--green); font-size: 14px; font-weight: 600; }
.news-card:hover .news-more { color: var(--green-deep); }

/* 文章页 */
.article-page { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.article-meta { color: var(--gray); font-size: 13.5px; margin-bottom: 28px; }
.article-hero { border-radius: 16px; overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.article-hero img { width: 100%; }
.article-body h2 { font-size: 21px; margin: 34px 0 14px; color: var(--green-deep); }
.article-body h3 { font-size: 18px; margin: 26px 0 12px; color: var(--ink); }
.article-body p { color: #3c4a44; font-size: 15.5px; margin-bottom: 14px; line-height: 1.9; }
.article-body strong { color: var(--ink); }
.article-note {
  background: var(--green-light); border-radius: 10px;
  padding: 14px 18px; font-size: 13.5px; color: var(--green-deep); margin: 18px 0;
}
.back-link { display: inline-block; margin-bottom: 26px; color: var(--green); font-size: 14.5px; }
.back-link:hover { text-decoration: underline; }

/* ===== 一键拨打 ===== */
.call-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  display: none; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px;
  background: var(--amber); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(232, 148, 10, 0.4);
  animation: fab-in .3s ease;
}
.call-fab:hover { background: var(--amber-deep); color: #fff; }
@keyframes fab-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) { .call-fab { display: inline-flex; } }
.btn-call { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero h1 { font-size: 32px; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .video-grid, .news-grid { grid-template-columns: 1fr; }
  .grid-2, .value-grid { grid-template-columns: 1fr; }
  .split, .contact-wrap, .product-row { grid-template-columns: 1fr; }
  .product-row.reverse .product-img { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .hero-inner { padding: 60px 24px; }
  .section { padding: 60px 0; }
}

/* ===== 移动端导航修复：≤960px 时改为第二行横向滑动导航 ===== */
@media (max-width: 960px) {
  .nav {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 0 0;
    row-gap: 2px;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .nav-auth { flex: 0 0 auto; }
  .nav-links {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 8px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 11px;
    font-size: 14px;
  }
}

/* ===== 移动端悬浮电话按钮：改为圆形图标，避免遮挡首屏按钮 ===== */
@media (max-width: 768px) {
  .call-fab {
    width: 52px; height: 52px; padding: 0;
    justify-content: center; align-items: center;
    border-radius: 50%;
    font-size: 20px; line-height: 1;
    right: 14px; bottom: 16px;
  }
  .call-fab .fab-text { display: none; }
}
