/* =========================================================
   西双版纳千瑞文旅集团官网 — 设计系统
   配色：雨林深绿 + 暖金 + 孔雀蓝点缀，米白底，克制留白
   ========================================================= */

:root {
  --green-900: #14342b;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --gold-600: #b8860b;
  --gold-500: #c9a227;
  --gold-300: #e9c46a;
  --blue-600: #168aad;
  --blue-500: #1a759f;
  --red-600: #bc4749;

  --ink: #1a2421;
  --ink-soft: #4a5853;
  --ink-mute: #7d8a84;
  --line: #e3ded2;
  --bg: #faf8f3;
  --bg-alt: #ffffff;
  --bg-deep: #14342b;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(20, 52, 43, 0.18);
  --shadow-sm: 0 4px 14px -8px rgba(20, 52, 43, 0.22);

  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC",
    "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 52, 43, 0.92);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}
.site-header .nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand .logo-mark {
  width: 34px; height: 34px;
  flex: none;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gold-300);
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-300);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 24px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold-600);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.section-head h2 {
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: 1px;
  font-weight: 700;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
}
.section--deep .section-head p { color: rgba(255,255,255,0.78); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.25s;
}
.btn--primary { background: var(--gold-500); color: #2a2206; }
.btn--primary:hover { background: var(--gold-300); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline { border-color: var(--green-700); color: var(--green-800); background: #fff; }
.btn--outline:hover { background: var(--green-800); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(82,183,136,0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(201,162,39,0.28), transparent 55%),
    linear-gradient(160deg, #0f2a22 0%, #14342b 45%, #1b4332 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 8 L34 26 L52 30 L34 34 L30 52 L26 34 L8 30 L26 26 Z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(233,196,106,0.5);
  border-radius: 999px;
  color: var(--gold-300);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 1px;
  max-width: 16em;
}
.hero h1 .accent { color: var(--gold-300); }
.hero .lead {
  margin: 26px 0 38px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,0.82);
  max-width: 40em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats .stat .num { font-size: 32px; font-weight: 700; color: var(--gold-300); }
.hero-stats .stat .label { font-size: 14px; color: rgba(255,255,255,0.7); }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  letter-spacing: 2px;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-500); }
.card .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: 0.5px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* 子公司卡片 */
.sub-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.sub-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.sub-card .sub-top {
  padding: 26px 26px 22px;
  background: linear-gradient(150deg, var(--green-800), var(--green-700));
  color: #fff;
}
.sub-card .sub-top .badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  letter-spacing: 1px;
}
.sub-card .sub-top .badge.new { background: var(--gold-500); color: #2a2206; }
.sub-card .sub-top h3 { font-size: 21px; margin: 14px 0 4px; letter-spacing: 0.5px; }
.sub-card .sub-top .seg { font-size: 13px; color: rgba(255,255,255,0.78); }
.sub-card .sub-body { padding: 22px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.sub-card .sub-body ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.sub-card .sub-body li {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1ede2;
  color: var(--green-800);
}
.sub-card .sub-foot {
  margin-top: auto;
  font-size: 14px;
  color: var(--gold-600);
  font-weight: 600;
}

/* ---------- 业务板块列表 ---------- */
.biz-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.biz-row:last-child { border-bottom: none; }
.biz-row .biz-no {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--green-500);
  font-weight: 700;
}
.biz-row h3 { font-size: 20px; margin-bottom: 6px; }
.biz-row p { color: var(--ink-soft); font-size: 15px; }
.biz-row .biz-arrow { color: var(--gold-600); font-size: 22px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--line); transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 18px 40px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item .dot {
  position: absolute; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-500); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--green-700);
}
.tl-item:nth-child(odd) .dot { right: -7px; }
.tl-item:nth-child(even) .dot { left: -7px; }
.tl-item .year { font-size: 20px; font-weight: 700; color: var(--green-800); }
.tl-item .tl-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 8px;
  box-shadow: var(--shadow-sm);
}
.tl-item:nth-child(odd) .tl-card { text-align: left; }
.tl-item .tl-card h4 { font-size: 17px; margin-bottom: 6px; }
.tl-item .tl-card p { color: var(--ink-soft); font-size: 14px; }

/* ---------- 闭环图 ---------- */
.loop-wrap { overflow-x: auto; padding-bottom: 12px; }
.loop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  min-width: 880px;
}
.loop-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(233,196,106,0.35);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.loop-node .step {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-500); color: #2a2206;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 12px;
}
.loop-node h4 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.loop-node p { font-size: 13px; color: rgba(255,255,255,0.72); }
.loop-node .arrow {
  position: absolute;
}

/* ---------- 新闻列表 ---------- */
.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; transition: 0.3s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--green-700), var(--blue-600));
  position: relative;
}
.news-thumb .cat {
  position: absolute; left: 16px; top: 16px;
  background: rgba(255,255,255,0.92); color: var(--green-800);
  font-size: 12px; padding: 3px 12px; border-radius: 999px; font-weight: 600;
}
.news-body { padding: 20px 22px 24px; }
.news-body .date { font-size: 13px; color: var(--ink-mute); }
.news-body h3 { font-size: 18px; margin: 8px 0 10px; line-height: 1.4; }
.news-body p { color: var(--ink-soft); font-size: 14px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 22px; margin-bottom: 18px; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-info .info-item .ic {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: var(--green-800); display: flex; align-items: center; justify-content: center;
}
.contact-info .info-item .txt strong { display: block; font-size: 15px; }
.contact-info .info-item .txt span { color: var(--ink-soft); font-size: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-600);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- 子公司详情区块 ---------- */
.sub-section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.sub-section:last-child { border-bottom: none; }
.sub-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 26px;
}
.sub-head .sub-icon {
  width: 64px; height: 64px; border-radius: 16px; flex: none;
  background: linear-gradient(150deg, var(--green-800), var(--green-600));
  display: flex; align-items: center; justify-content: center;
}
.sub-head h2 { font-size: 28px; }
.sub-head .meta { font-size: 14px; color: var(--ink-mute); }
.sub-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.sub-cols .desc p { color: var(--ink-soft); margin-bottom: 14px; }
.sub-side {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.sub-side h4 { font-size: 15px; color: var(--gold-600); margin-bottom: 14px; letter-spacing: 1px; }
.sub-side ul li {
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; font-size: 14px;
}
.sub-side ul li:last-child { border-bottom: none; }
.sub-side ul li span { color: var(--ink-mute); }

.side-nav {
  position: sticky; top: 88px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.side-nav h4 { font-size: 13px; color: var(--ink-mute); letter-spacing: 1px; margin-bottom: 10px; }
.side-nav a {
  display: block; padding: 8px 0; font-size: 15px; color: var(--ink-soft);
  border-left: 2px solid transparent; padding-left: 12px; transition: 0.2s;
}
.side-nav a:hover, .side-nav a.active { color: var(--green-800); border-left-color: var(--gold-500); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid .f-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-grid .f-brand p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 30em; }
.footer-grid h5 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-grid a { display: block; font-size: 14px; padding: 6px 0; color: rgba(255,255,255,0.68); transition: 0.2s; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-cols { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; right: 0;
    width: 78%; max-width: 320px; height: calc(100vh - 68px);
    background: var(--green-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 17px; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 27px; }
  .grid-2, .grid-3, .grid-4, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .biz-row { grid-template-columns: 60px 1fr; }
  .biz-row .biz-arrow { display: none; }
  .timeline::before { left: 18px; }
  .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: 14px 0 14px 50px; }
  .tl-item .dot { left: 11px !important; right: auto !important; }
  .hero-stats { gap: 28px; }
  .loop-grid { grid-template-columns: 1fr; min-width: 0; }
}

/* ---------- 返回顶部 ---------- */
.back-to-top:hover { background: var(--gold-500) !important; transform: translateY(-3px); }

/* ---------- Logo 图片 ---------- */
.logo-mark { object-fit: contain; }

/* ---------- 新闻筛选 ---------- */
.news-filter {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px;
}
.news-filter button {
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft); font-size: 14px; cursor: pointer; transition: 0.2s;
}
.news-filter button:hover, .news-filter button.active {
  background: var(--green-800); color: #fff; border-color: var(--green-800);
}

/* ---------- 搜索页 ---------- */
.search-box {
  max-width: 600px; margin: 0 auto 36px; position: relative;
}
.search-box input {
  width: 100%; padding: 16px 22px; padding-left: 52px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 16px; font-family: inherit;
}
.search-box svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--ink-mute);
}
#searchResults { max-width: 800px; margin: 0 auto; }
.search-result {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px; transition: 0.2s;
}
.search-result:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.search-result h4 { font-size: 17px; margin-bottom: 6px; color: var(--green-800); }
.search-result p { color: var(--ink-soft); font-size: 14px; margin-bottom: 6px; }
.search-result span { font-size: 12px; color: var(--ink-mute); }

/* ---------- 管理后台 ---------- */
.inquiry-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; margin-bottom: 14px;
}
.inquiry-item strong { color: var(--green-800); }
.inquiry-item span { font-size: 13px; color: var(--ink-mute); }
.inquiry-item p { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }

/* ---------- 投资者关系表格 ---------- */
.investor-table {
  width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.investor-table th, .investor-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px;
}
.investor-table th { background: #f4f1ea; color: var(--green-800); font-weight: 600; }
.investor-table td { color: var(--ink-soft); }
.investor-table tr:last-child td { border-bottom: none; }

