/* ==========================================================
   guangde.css — 广德页面独有样式（水墨风格）
   ========================================================== */

/* --- 配色覆盖 --- */
:root {
  --color-primary: #264653;
  --color-secondary: #F4E4BA;
  --color-accent: #E76F51;
  --color-bg: #FEFAF0;
  --color-text: #264653;
  --color-text-light: #5a6b73;
  --color-card-bg: #ffffff;
  --font-body: "Noto Serif SC", serif;
  --font-heading: "Noto Serif SC", serif;
  --color-border: rgba(38, 70, 83, 0.1);
  --shadow-card: 0 2px 12px rgba(38, 70, 83, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(38, 70, 83, 0.12);
}

body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* --- 水墨风格背景 --- */
.guangde-page {
  position: relative;
}

.guangde-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(244, 228, 186, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(244, 228, 186, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(254, 250, 240, 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- 竹节侧边装饰 --- */
.guangde-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 80px,
      rgba(38, 70, 83, 0.06) 80px,
      rgba(38, 70, 83, 0.06) 82px,
      transparent 82px,
      transparent 120px,
      rgba(38, 70, 83, 0.04) 120px,
      rgba(38, 70, 83, 0.04) 121px
    ),
    linear-gradient(
      to right,
      rgba(38, 70, 83, 0.03) 0%,
      transparent 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* 右侧对称竹节 */
.guangde-page .bamboo-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 100px,
      rgba(38, 70, 83, 0.06) 100px,
      rgba(38, 70, 83, 0.06) 102px,
      transparent 102px,
      transparent 150px,
      rgba(38, 70, 83, 0.04) 150px,
      rgba(38, 70, 83, 0.04) 151px
    ),
    linear-gradient(
      to left,
      rgba(38, 70, 83, 0.03) 0%,
      transparent 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* --- Hero 区域特殊样式 --- */
.hero {
  background:
    linear-gradient(
      160deg,
      #264653 0%,
      #3a6b7a 30%,
      #5a8a96 60%,
      #F4E4BA 100%
    );
  color: #fff;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(244, 228, 186, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(231, 111, 81, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

/* 水墨晕染效果 */
.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80'%3E%3Cpath d='M0,40 Q150,10 300,35 T600,30 T900,40 T1200,25 L1200,80 L0,80 Z' fill='%23FEFAF0'/%3E%3C/svg%3E")
    no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}

.hero__title {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.hero__tagline {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

/* --- 卡片 hover 效果：translateY(-8px) --- */
@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-8px);
  }
}

/* 筛选器背景 */
.filter-bar {
  background: rgba(244, 228, 186, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(38, 70, 83, 0.08);
}

/* 推荐卡片 - 珊瑚色顶部色条 */
.card--featured {
  border-top: 4px solid var(--color-accent);
}

/* 分组标题样式 */
.group-header {
  border-bottom: none;
  padding-bottom: 8px;
  position: relative;
}

.group-header::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
  margin-top: 12px;
}

.filter-btn {
  font-family: "Noto Serif SC", serif;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.filter-btn--active,
.filter-btn.active,
.filter-btn[aria-selected="true"] {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}

/* --- 水墨风格分隔线 --- */
.card-group__title {
  border-bottom-color: var(--color-accent);
  position: relative;
}

.card-group__title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--color-accent), transparent);
  border-radius: 2px;
}

/* 广德特有卡片样式 — 水墨边框 */
.card {
  border: 1px solid rgba(38, 70, 83, 0.12);
  box-shadow: 0 2px 16px rgba(38, 70, 83, 0.08);
}

.card__category {
  color: var(--color-accent);
  background: rgba(231, 111, 81, 0.08);
  font-family: "Noto Serif SC", serif;
}

.card__tag {
  background: rgba(244, 228, 186, 0.5);
  color: var(--color-primary);
}

/* --- 返回链接 --- */
.back-link {
  font-family: "Noto Serif SC", serif;
  color: var(--color-primary);
  background: rgba(254, 250, 240, 0.8);
}

.back-link:hover {
  background: rgba(254, 250, 240, 0.95);
}

/* --- 地图区域 --- */
.map-section__container {
  border: 1px solid rgba(38, 70, 83, 0.08);
}

/* --- Footer --- */
.footer {
  border-top-color: rgba(38, 70, 83, 0.08);
}

.footer__link:hover {
  color: var(--color-accent);
}

/* --- 水墨装饰元素（卡片内用） --- */
.guangde-ornament {
  position: relative;
}

.guangde-ornament::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 48px;
  height: 48px;
  background:
    radial-gradient(circle at 100% 0%, rgba(38, 70, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 0 var(--radius-md) 0 0;
}

/* --- 动画微调 --- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation-name: fadeInUp;
  }

  .guangde-page::after,
  .guangde-page .bamboo-right {
    transition: opacity 0.5s ease;
  }
}
