/* ========================================
   我爱扬州 — 全局样式
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #2D9CDB;
  --primary-dark: #1A7BB8;
  --primary-light: #D6ECFA;
  --secondary: #F2994A;
  --secondary-dark: #E0852E;
  --accent: #27AE60;
  --accent-dark: #1E9350;
  --bg: #FAFBFC;
  --bg-alt: #F0F4F8;
  --text: #2C3E50;
  --text-light: #7F8C8D;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(135deg, var(--bg-alt), var(--primary-light));
  min-height: 120px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }

p {
  color: var(--text-light);
  line-height: 1.8;
}

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

/* --- Section Spacing --- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section__divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 20px;
  border-radius: 2px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav--scrolled .nav__logo {
  color: var(--primary);
}

.nav__logo-icon {
  font-size: 1.6rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition);
}

.nav--scrolled .nav__link {
  color: var(--text);
}

.nav__link:hover,
.nav__link--active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  background: var(--primary);
  color: var(--white);
}

/* Hamburger Menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav--scrolled .nav__hamburger span {
  background: var(--text);
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 32px 24px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav__mobile.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile .nav__link {
  font-size: 1.15rem;
  padding: 14px 28px;
  color: var(--text);
  width: 100%;
  text-align: center;
}

.nav__mobile .nav__link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(45, 156, 219, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 156, 219, 0.4);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 153, 74, 0.35);
}

.btn--accent:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  padding: 14px 20px;
}

.btn--ghost:hover {
  background: var(--primary-light);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* --- Grid Helpers --- */
.grid {
  display: grid;
  gap: 28px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Page Banner --- */
.page-banner {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 156, 219, 0.45), rgba(39, 174, 96, 0.3));
}

.page-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.page-banner__title {
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.page-banner__breadcrumb {
  font-size: 0.95rem;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.page-banner__breadcrumb a {
  color: #FFFFFF;
}

.page-banner__breadcrumb a:hover {
  text-decoration: underline;
}

.page-banner__breadcrumb span {
  margin: 0 6px;
  opacity: 0.7;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
}

.footer__quote {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer__link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer__copy {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__copy .heart {
  color: #E74C3C;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal__body {
  padding: 28px;
}

.modal__title {
  margin-bottom: 8px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal__info {
  display: flex;
  gap: 24px;
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.modal__info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.modal__info-icon {
  font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .section {
    padding: 56px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .grid--3,
  .grid--4,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .page-banner {
    height: 320px;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .modal__info {
    flex-direction: column;
    gap: 12px;
  }
}
