/* =========================================================
   阳知网络 · 全站统一设计系统
   所有页面共用此文件，保证导航、横幅、卡片、页脚完全一致
   ========================================================= */

/* ---------- 基础 ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1b9c85;
  --primary-dark: #147a69;
  --primary-light: rgba(27, 156, 133, 0.1);
  --accent: #e8a13a;
  --bg: #f4f7f6;
  --card-bg: #fff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #d5dcea;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

section {
  scroll-margin-top: 72px;
}

/* ---------- 统一导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  padding: 0 4vw;
  min-height: 58px;
}

.navbar .brand {
  font-family: "STXingkai", "华文行楷", "KaiTi", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 12px 26px 12px 0;
  border-bottom: none;
  white-space: nowrap;
}

.navbar .brand:hover {
  background: none;
  border-bottom: none;
}

.navbar a {
  padding: 17px 18px;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.navbar a:hover,
.navbar a.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

.navbar .nav-login {
  margin-left: auto;
  color: #fff;
  background: var(--primary);
  border-radius: 20px;
  padding: 7px 24px;
  margin-top: 8px;
  margin-bottom: 8px;
  border-bottom: none;
}

.navbar .nav-login:hover {
  background: var(--primary-dark);
  border-bottom: none;
}

/* ---------- 统一页面横幅 ---------- */
.page-banner {
  height: 260px;
  flex-shrink: 0;
  background: linear-gradient(rgba(10, 40, 50, 0.48), rgba(10, 40, 50, 0.64)),
    url("https://pub-e4520295a68c4056a79b1e76c1f32622.r2.dev/photo/hero-dafang-hd.jpg") center 45% / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 16px;
}

.page-banner h1 {
  font-size: 2.5rem;
  font-family: "STXingkai", "华文行楷", "KaiTi", serif;
  letter-spacing: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-banner p {
  margin-top: 8px;
  opacity: 0.92;
  letter-spacing: 2px;
  font-size: 1rem;
}

/* ---------- 内容容器 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 4vw;
  flex: 1;
}

.section-title {
  font-size: 1.45rem;
  color: var(--primary-dark);
  border-left: 5px solid var(--primary);
  padding-left: 12px;
  margin: 24px 0 14px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card p {
  color: var(--text-light);
  text-align: justify;
}

.card h2,
.card h3 {
  color: var(--primary-dark);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.indent-em {
  text-indent: 2em;
}

/* ---------- 个人资料 ---------- */
.profile {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.profile img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
  min-width: 220px;
}

.profile-text h2 {
  margin-bottom: 6px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tags li {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.84rem;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 时间线 ---------- */
.timeline {
  list-style: none;
  border-left: 3px solid rgba(27, 156, 133, 0.25);
  margin-left: 12px;
}

.timeline li {
  position: relative;
  padding: 0 0 20px 24px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline h3 {
  font-size: 1.02rem;
}

.timeline p {
  font-size: 0.92rem;
}

/* ---------- 图文卡片 ---------- */
.photo-card {
  margin-top: 14px;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.photo-card img:hover {
  transform: scale(1.02);
}

.photo-card figcaption {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
}

/* ---------- 首页：图文混排 ---------- */
.media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.media-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #123;
}

.media-item figcaption {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
}

.ad-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
  cursor: zoom-in;
}

.ad-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.thumb-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.thumb-grid img:hover {
  transform: scale(1.03);
}

/* ---------- 表单 ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.92rem;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fd;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #4a5568;
}

.inline-group label {
  display: inline;
  margin: 0;
  font-weight: 400;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 11px 30px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn:active {
  transform: scale(0.97);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hint {
  font-size: 0.84rem;
  color: var(--text-light);
  margin-top: 12px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  color: var(--primary-dark);
}

/* ---------- 画廊 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ---------- 登录 / 注册卡片 ---------- */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
}

.auth-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 440px;
  padding: 60px 34px 30px;
  margin-top: 20px;
}

.auth-logo {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #a68364;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  object-fit: contain;
  padding: 8px;
  z-index: 2;
}

.auth-card .title {
  text-align: center;
  font-size: 25px;
  color: var(--text);
  letter-spacing: 3px;
}

.auth-card .subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.auth-links {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 14px;
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* ---------- 统一页脚 ---------- */
.footer {
  background: linear-gradient(135deg, #147a69, #1b9c85);
  color: #fff;
  text-align: center;
  padding: 28px 16px 20px;
  position: relative;
  flex-shrink: 0;
}

.footer p {
  font-size: 0.88rem;
  opacity: 0.9;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.copyright {
  font-size: 0.78rem;
  opacity: 0.65;
  margin-top: 6px;
}

#fi1 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  position: absolute;
  left: 4vw;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- 返回顶部 ---------- */
#backTop {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 150;
}

#backTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backTop:hover {
  background: var(--primary-dark);
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- 详情页 ---------- */
.detail-back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.detail-back:hover {
  text-decoration: underline;
}

.field-list,
.source-list {
  list-style: none;
}

.field-list li {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.93rem;
}

.field-list li:last-child,
.source-list li:last-child {
  border-bottom: none;
}

.field-key {
  color: var(--primary-dark);
  font-weight: 600;
  min-width: 96px;
}

.field-val {
  color: var(--text-light);
  flex: 1;
  min-width: 180px;
}

.source-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  word-break: break-all;
}

.source-list a {
  color: var(--primary-dark);
}

.source-list a:hover {
  text-decoration: underline;
}

/* ---------- 景区导览：全站统一卡片体系 ---------- */
/* 区块头：所有栏目统一用这一套标题 + 操作按钮 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 6px;
}

.section-head .section-title {
  margin: 0;
}

.section-head .btn {
  padding: 7px 16px;
  font-size: 0.88rem;
}

.section-lead {
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 0 0 18px;
}

/* 景区卡片网格 */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.spot-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 84px;
  transition: box-shadow 0.28s, transform 0.28s;
}

.spot-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.spot-cover {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: #e8efed;
}

.spot-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

.spot-card:hover .spot-cover img {
  transform: scale(1.06);
}

.spot-level {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 122, 105, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.spot-level.gold {
  background: rgba(232, 161, 58, 0.94);
}

.spot-body {
  padding: 17px 19px 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spot-body h3 {
  color: var(--primary-dark);
  font-size: 1.14rem;
  line-height: 1.45;
  margin: 0 0 8px;
}

.spot-body p {
  color: var(--text-light);
  font-size: 0.89rem;
  line-height: 1.75;
  margin: 0 0 15px;
  flex: 1;
}

.spot-body .btn {
  align-self: flex-start;
  padding: 7px 16px;
  font-size: 0.88rem;
}

/* 顶部站点速览卡：与站长简介并排 */
.quick-card .ad-badge {
  margin-bottom: 10px;
}

.quick-card h2 {
  margin-bottom: 8px;
}

.quick-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.quick-stats span {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .navbar {
    justify-content: center;
    padding: 0;
  }

  .navbar .nav-login {
    margin: 8px auto;
  }

  .media-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-banner {
    height: 180px;
  }

  .page-banner h1 {
    font-size: 1.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  #fi1 {
    position: static;
    transform: none;
    margin: 0 auto 10px;
  }

  .auth-card {
    padding: 56px 22px 24px;
  }
}
