/* ============================================
   梧州 · 千年岭南水都 旅游指南
   风格：新中式文旅 · 墨绿鎏金
   style.css — 全站样式
   ============================================ */

/* ===== 主题变量 ===== */
:root {
  --ink: #101f1a;          /* 近黑墨绿 */
  --green-deep: #1e4638;   /* 深墨绿 */
  --green: #2d5c4a;        /* 主墨绿 */
  --gold: #c9a35c;         /* 鎏金 */
  --gold-bright: #e0bc7e;  /* 亮金 */
  --paper: #f6f1e7;        /* 宣纸米白 */
  --paper-dark: #efe7d7;   /* 深宣纸 */
  --text: #2a2a26;
  --muted: #7d7a70;
  --radius: 4px;           /* 新中式用小圆角、直线条 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.8;
}
img { display: block; max-width: 100%; }

/* ===== 导航 ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 31, 26, .93);
  backdrop-filter: blur(10px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid rgba(201, 163, 92, .35);
}
nav .logo {
  color: var(--paper); font-family: var(--serif);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 6px;
}
nav .logo span { color: var(--gold); font-size: .72rem; letter-spacing: 3px; margin-left: 10px; }
nav ul { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
nav a {
  color: #cfc8b4; text-decoration: none; font-size: .88rem;
  letter-spacing: 2px; padding: 8px 16px; transition: .3s;
  position: relative;
}
nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 1px; background: var(--gold); transform: scaleX(0); transition: .3s;
}
nav a:hover, nav a.active-link { color: var(--gold-bright); }
nav a:hover::after, nav a.active-link::after { transform: scaleX(1); }

/* ===== Hero 全屏首屏 ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: -8% 0;
  background: url("../images/hero-jiangjiang.jpg") center 35% / cover no-repeat;
  will-change: transform;
}
.hero .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,31,26,.55) 0%, rgba(16,31,26,.25) 40%, rgba(16,31,26,.75) 100%);
}
.hero .frame {
  position: absolute; inset: 26px;
  border: 1px solid rgba(201,163,92,.5);
  pointer-events: none;
}
.hero .frame::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(201,163,92,.22);
}
.hero > .inner { position: relative; padding: 60px 6%; }
.hero .seal {
  display: inline-block;
  font-family: var(--serif);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 7px 26px;
  font-size: .82rem; letter-spacing: 8px;
  margin-bottom: 30px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  letter-spacing: clamp(10px, 2.5vw, 26px);
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(0,0,0,.5);
  color: #f7f0df;
}
.hero h1 .gold { color: var(--gold-bright); }
.hero .tagline {
  font-family: var(--serif);
  margin-top: 22px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 5px;
  color: #e6dcc3;
}
.hero .stats {
  margin-top: 44px; display: flex; gap: 0; flex-wrap: wrap; justify-content: center;
}
.hero .stats .st {
  padding: 4px 34px;
  border-right: 1px solid rgba(201,163,92,.4);
}
.hero .stats .st:last-child { border-right: none; }
.hero .stats b {
  display: block; font-family: var(--serif);
  font-size: 1.5rem; color: var(--gold-bright); letter-spacing: 1px;
}
.hero .stats span { font-size: .78rem; letter-spacing: 3px; color: #cfc6ac; }
.hero .cta { margin-top: 46px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--serif);
  padding: 14px 44px; border-radius: 0; text-decoration: none;
  font-size: .95rem; font-weight: 600; transition: .3s; letter-spacing: 4px;
  border: 1px solid transparent;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #b08a45); color: #1c1508; }
.btn-gold:hover { box-shadow: 0 8px 26px rgba(201,163,92,.45); transform: translateY(-2px); }
.btn-line { border-color: rgba(224,188,126,.7); color: var(--gold-bright); }
.btn-line:hover { background: rgba(201,163,92,.15); }
.hero .scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: var(--gold-bright); font-size: .75rem; letter-spacing: 4px;
  animation: float 2.2s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== 通用 Section ===== */
section { padding: 110px 6%; max-width: 1200px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 70px; }
.sec-head .chapter {
  font-family: var(--serif);
  color: var(--gold); font-size: .95rem; letter-spacing: 10px;
}
.sec-head .chapter::before, .sec-head .chapter::after {
  content: "—"; color: rgba(201,163,92,.5); margin: 0 16px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-top: 18px; letter-spacing: 10px; color: var(--ink);
  font-weight: 800;
}
.sec-head p { color: var(--muted); margin-top: 16px; font-size: .95rem; letter-spacing: 2px; }

/* ===== 城市印象 ===== */
#about { background: var(--paper); }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: rgba(201,163,92,.35);
  border: 1px solid rgba(201,163,92,.35);
}
.about-card {
  background: var(--paper); padding: 44px 30px; text-align: center;
  transition: .35s;
}
.about-card:hover { background: #fffdf7; }
.about-card .glyph {
  font-family: var(--serif); font-size: 1.9rem; color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border: 1px solid rgba(201,163,92,.6);
  border-radius: 50%; margin-bottom: 20px;
}
.about-card h3 {
  font-family: var(--serif); font-size: 1.12rem; letter-spacing: 3px;
  color: var(--green-deep); margin-bottom: 12px;
}
.about-card p { color: var(--muted); font-size: .88rem; text-align: justify; }

/* ===== 必游景点 ===== */
#spots { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dark) 100%); }
.spots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px; }
.spot {
  background: #fffdf7; border: 1px solid rgba(201,163,92,.4);
  overflow: hidden; transition: .4s;
  display: flex; flex-direction: column;
}
.spot:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,31,26,.16); }
.spot .pic { height: 200px; overflow: hidden; position: relative; }
.spot .pic img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease;
}
.spot:hover .pic img { transform: scale(1.07); }
.spot .pic .free {
  position: absolute; top: 14px; right: 14px;
  background: rgba(16,31,26,.82); color: var(--gold-bright);
  font-size: .72rem; letter-spacing: 3px; padding: 4px 12px;
  border: 1px solid rgba(201,163,92,.6);
}
.spot .body { padding: 24px 24px 26px; flex: 1; }
.spot .body h3 {
  font-family: var(--serif); font-size: 1.18rem; letter-spacing: 2px;
  color: var(--ink); margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 10px;
}
.spot .body h3 .num {
  font-size: .78rem; color: var(--gold); letter-spacing: 1px;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.spot .body .meta { font-size: .78rem; color: #a58a55; letter-spacing: 1px; margin-bottom: 10px; }
.spot .body p { color: var(--muted); font-size: .88rem; text-align: justify; }

/* ===== 美食 ===== */
#food { background: var(--ink); color: #e9e2d0; }
#food .sec-head h2 { color: #f3ecda; }
#food .sec-head p { color: #9aa694; }
.food-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
  margin-bottom: 90px;
}
.food-feature .pic {
  position: relative; overflow: hidden;
  border: 1px solid rgba(201,163,92,.5); padding: 10px;
}
.food-feature .pic::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(201,163,92,.35); pointer-events: none; z-index: 1;
}
.food-feature .pic img { width: 100%; height: 380px; object-fit: cover; }
.food-feature .txt .label {
  font-family: var(--serif); color: var(--gold); letter-spacing: 6px; font-size: .85rem;
}
.food-feature .txt h3 {
  font-family: var(--serif); font-size: 2rem; letter-spacing: 4px;
  color: #f5eed9; margin: 14px 0 16px;
}
.food-feature .txt .where { color: #a8b3a1; font-size: .85rem; letter-spacing: 1px; display: block; margin-bottom: 14px; }
.food-feature .txt .price { color: var(--gold-bright); font-size: .88rem; letter-spacing: 2px; display: block; margin-bottom: 14px; }
.food-feature .txt p { color: #c4c9b8; font-size: .92rem; }
.food-feature.flip .pic { order: 2; }
.food-feature.flip .txt { order: 1; }

.food-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px; background: rgba(201,163,92,.3); border: 1px solid rgba(201,163,92,.3);
}
.food-item { background: var(--ink); padding: 30px 26px; transition: .3s; }
.food-item:hover { background: #16261f; }
.food-item h3 {
  font-family: var(--serif); font-size: 1.06rem; letter-spacing: 2px;
  color: #f0e8d2; margin-bottom: 8px;
}
.food-item .where { font-size: .78rem; color: #97a394; display: block; margin: 6px 0; }
.food-item .price { font-size: .8rem; color: var(--gold-bright); letter-spacing: 1px; }
.food-item p { color: #b3b8a8; font-size: .86rem; margin-top: 10px; text-align: justify; }

/* ===== 行程 ===== */
#itinerary { background: var(--paper); }
.tabs { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--serif);
  padding: 12px 36px; background: transparent; cursor: pointer;
  border: 1px solid rgba(201,163,92,.7); color: var(--green-deep);
  font-size: .95rem; letter-spacing: 3px; transition: .3s;
}
.tab-btn.active {
  background: var(--green-deep); color: var(--gold-bright); border-color: var(--green-deep);
}
.itinerary { display: none; }
.itinerary.active { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.day-block {
  background: #fffdf7; border: 1px solid rgba(201,163,92,.4);
  padding: 44px 46px; margin-bottom: 30px; position: relative;
}
.day-block::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(201,163,92,.22); pointer-events: none;
}
.day-block h3 {
  font-family: var(--serif); color: var(--green-deep);
  font-size: 1.3rem; letter-spacing: 3px; margin-bottom: 4px;
}
.day-block .day-theme {
  font-family: var(--serif); color: #a58a55; font-size: .85rem;
  letter-spacing: 3px; margin-bottom: 26px;
}
.tl { list-style: none; border-left: 1px solid rgba(201,163,92,.6); margin-left: 10px; }
.tl li { position: relative; padding: 0 0 26px 30px; }
.tl li::before {
  content: ""; position: absolute; left: -5px; top: 8px;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 0 3px var(--paper);
}
.tl .time {
  font-family: var(--serif); font-weight: 700; color: var(--gold);
  font-size: .88rem; letter-spacing: 2px;
}
.tl .tl-title { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; margin: 4px 0 4px; color: var(--ink); letter-spacing: 1px; }
.tl p { color: var(--muted); font-size: .88rem; text-align: justify; }

/* ===== 贴士 ===== */
#tips { background: var(--green-deep); color: #e7e3d3; border: 1px solid rgba(201,163,92,.4); }
#tips .sec-head h2 { color: #f5eed9; }
#tips .sec-head p { color: #a4b3a6; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tip {
  background: rgba(255,255,255,.05); border: 1px solid rgba(201,163,92,.35);
  padding: 28px; transition: .3s;
}
.tip:hover { background: rgba(201,163,92,.1); }
.tip h3 { font-family: var(--serif); color: var(--gold-bright); font-size: 1rem; letter-spacing: 3px; margin-bottom: 10px; }
.tip p { font-size: .87rem; color: #c5cdbd; text-align: justify; }

/* ===== Footer ===== */
footer {
  text-align: center; padding: 70px 6% 60px;
  background: var(--ink); color: #8f9889;
  font-size: .82rem; line-height: 2.1; letter-spacing: 1px;
}
footer .f-seal {
  font-family: var(--serif); color: var(--gold); font-size: 1.3rem;
  letter-spacing: 12px; display: block; margin-bottom: 18px;
}
footer .line { width: 70px; height: 1px; background: rgba(201,163,92,.5); margin: 22px auto; }

/* ===== 滚动入场动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 移动端 ===== */
@media (max-width: 760px) {
  nav { height: auto; padding: 12px 4%; flex-direction: column; gap: 10px; }
  section { padding: 70px 6%; }
  .food-feature { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .food-feature.flip .pic { order: 0; }
  .food-feature .pic img { height: 240px; }
  .day-block { padding: 30px 22px; }
  .hero .stats .st { padding: 4px 16px; }
  .hero .frame { inset: 14px; }
}
