/* ============ Yanbian Phoenix Travel — style.css ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --bg-card: #ffffff;
  --text: #1c2b2d;
  --text-soft: #5b6b6d;
  --muted: #8a9a9c;
  --primary: #1f8a8c;
  --primary-2: #2f6fb3;
  --accent: #ff9f5a;
  --accent-soft: #fff1e3;
  --line: #e3ebea;
  --shadow: 0 10px 30px rgba(31, 74, 86, .10);
  --shadow-hover: 0 16px 40px rgba(31, 74, 86, .16);
  --radius: 18px;
  --nav-bg: rgba(255, 255, 255, .82);
}
html.dark {
  --bg: #10181a;
  --bg-soft: #16211f;
  --bg-card: #1a2626;
  --text: #e8f0ef;
  --text-soft: #a9bab8;
  --muted: #74868a;
  --primary: #3fb8ba;
  --primary-2: #5b9bd8;
  --accent: #ffb37c;
  --accent-soft: #3a2c1f;
  --line: #263636;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, .5);
  --nav-bg: rgba(16, 24, 26, .82);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans", "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--text-soft);
  transition: all .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-soft); }
.nav-links a.active { color: var(--primary); background: var(--bg-soft); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 2px; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.lang-switch a {
  padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--muted); letter-spacing: .5px; transition: all .2s;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a.active { background: var(--primary); color: #fff; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text-soft); font-size: 15px;
  display: grid; place-items: center; transition: all .2s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: rotate(15deg); }
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
  animation: heroZoom 14s ease-out forwards;
}
.hero-img.show { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 34, .18) 0%, rgba(10, 30, 34, .45) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 760px; padding: 90px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px); padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.18; font-weight: 800;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .3); margin-bottom: 18px;
}
.hero p {
  font-size: clamp(15px, 1.8vw, 18px); max-width: 620px;
  color: rgba(255, 255, 255, .92); text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-size: 15px; font-weight: 700;
  border: none; transition: all .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  box-shadow: 0 8px 22px rgba(31, 138, 140, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 138, 140, .45); }
.btn-ghost {
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .6); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Douyin button / modal ---------- */
.btn-douyin {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: #161823; color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(22, 24, 35, .22); transition: all .25s;
}
.btn-douyin:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 24, 35, .32); }
.btn-douyin .dy-ic { color: #25f4ee; font-size: 15px; }
.tour-card .body .btn-douyin { margin-top: 2px; }
.side-card .btn-douyin { padding: 13px 20px; font-size: 14.5px; }
.modal .dy-head { font-size: 17px; font-weight: 800; }
.modal .dy-tour { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; }
.modal .dy-note { font-size: 13px; color: var(--text-soft); line-height: 1.75; margin-top: 12px; text-align: left; }
.modal .dy-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .kicker {
  color: var(--primary); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 15.5px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tour-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tour-card .cover { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tour-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tour-card:hover .cover img { transform: scale(1.06); }
.tour-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, .92); color: var(--primary);
  font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 999px;
}
.tour-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-card h3 { font-size: 18.5px; font-weight: 700; line-height: 1.35; }
.tour-card .summary { font-size: 14px; color: var(--text-soft); flex: 1; }
.tour-card .meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tour-card .price { color: var(--accent); font-weight: 800; font-size: 15px; }
.tour-card .foot { display: flex; gap: 10px; margin-top: 4px; }
.tour-card .foot .btn { flex: 1; }

/* ---------- Advantage / feature cards ---------- */
.adv-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: all .3s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.adv-card .icon {
  width: 52px; height: 52px; border-radius: 14px; font-size: 24px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(47, 111, 179, .12), rgba(31, 138, 140, .16));
}
.adv-card h3 { font-size: 17px; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--text-soft); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about-text p { color: var(--text-soft); font-size: 15px; margin-bottom: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.fact {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; font-size: 13px; color: var(--text-soft);
}
.fact b { color: var(--text); display: block; font-size: 13.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; }
.info-list { display: grid; gap: 14px; }
.info-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px;
}
.info-row .ic {
  width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(31, 138, 140, .14), rgba(47, 111, 179, .14));
}
.info-row b { font-size: 13px; color: var(--muted); display: block; letter-spacing: .5px; }
.info-row span { font-size: 15px; }
.qr-box {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.qr-box img { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.qr-placeholder {
  width: 200px; height: 200px; border: 2px dashed var(--line); border-radius: 12px;
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 14px; line-height: 1.8;
}
.qr-placeholder small { font-size: 11.5px; color: var(--muted); }
.modal .qr-placeholder { width: 210px; height: 210px; margin: 18px auto 6px; }
.map-box {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map-box iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-fallback {
  padding: 34px; background: var(--bg-soft); text-align: center;
  color: var(--text-soft); font-size: 14.5px;
}

/* ---------- Detail page ---------- */
.detail-hero {
  height: min(56vh, 480px); position: relative; overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 24, 28, .65));
}
.detail-title {
  position: absolute; bottom: 28px; left: 0; right: 0; z-index: 2; color: #fff;
}
.detail-title .tag { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 13px; border-radius: 999px; margin-bottom: 10px; }
.detail-title h1 { font-size: clamp(26px, 4vw, 40px); text-shadow: 0 3px 16px rgba(0, 0, 0, .35); }
.detail-body { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; padding: 56px 0; }
.detail-main h2 { font-size: 20px; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; }
.detail-main h2::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: linear-gradient(var(--primary), var(--primary-2)); }
.detail-main p, .detail-main li { color: var(--text-soft); font-size: 15px; }
.detail-main ul { list-style: none; display: grid; gap: 10px; }
.detail-main ul li { padding-left: 26px; position: relative; }
.detail-main ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.detail-main ol { margin-left: 20px; display: grid; gap: 10px; }
.side-card {
  position: sticky; top: 84px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 14px;
  height: fit-content;
}
.side-card .price { font-size: 22px; font-weight: 800; color: var(--accent); }
.side-card .aud { font-size: 13.5px; color: var(--text-soft); }
.side-card .btn { width: 100%; }
.side-links { display: grid; gap: 8px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line); background: var(--bg-card); color: var(--text-soft);
  transition: all .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #0d1f21; color: #c6d6d5; padding: 60px 0 30px; }
html.dark .footer { background: #0a1214; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer p, .footer a { font-size: 13.5px; color: #9db4b3; }
.footer a:hover { color: #fff; }
.footer .socials { display: flex; gap: 10px; margin-top: 14px; }
.footer .socials a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); font-size: 14px; transition: all .2s;
}
.footer .socials a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #7d9493; }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 24, .6);
  backdrop-filter: blur(4px); display: none; place-items: center; padding: 20px;
}
.modal-mask.open { display: grid; }
.modal {
  background: var(--bg-card); border-radius: 22px; padding: 36px 34px; max-width: 380px;
  width: 100%; text-align: center; box-shadow: var(--shadow-hover);
  animation: pop .3s ease; position: relative;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--bg-soft); color: var(--text-soft); font-size: 15px;
}
.modal img { width: 210px; height: 210px; margin: 18px auto 6px; border-radius: 12px; border: 1px solid var(--line); }
.modal h3 { font-size: 18px; }
.modal .wechat-id { font-size: 15px; color: var(--primary); font-weight: 700; margin: 4px 0 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--text); color: var(--bg); padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 300; opacity: 0; transition: all .35s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Floating wechat button (mobile) ---------- */
.float-cta { display: none; }
@media (max-width: 720px) {
  .float-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; justify-content: center; padding: 15px; font-weight: 700; font-size: 15.5px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
  }
  body { padding-bottom: 54px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .detail-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); flex-direction: column; align-items: stretch;
    padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .menu-btn { display: grid; }
  .lang-switch a { padding: 4px 7px; font-size: 11px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 76vh; }
}
