/* ===========================================
   Dongji Island Travel · Shared Styles
   =========================================== */

:root {
  --deep: #0a1628;
  --navy: #0f2a4a;
  --ocean: #1a6fa0;
  --blue: #2a9fd8;
  --sky: #7ec8e3;
  --cream: #faf8f5;
  --white: #ffffff;
  --coral: #e86a4f;
  --gold: #d4a853;
  --ink: #1a2a3a;
  --muted: #6b7b8a;
  --line: rgba(15,42,74,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========== HEADER =========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 6px 0;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 28px; }
.logo-text strong { display: block; font-size: 18px; color: #fff; line-height: 1.2; }
.logo-text small { font-size: 11px; color: rgba(255,255,255,0.5); }
.header.scrolled .logo-text strong { color: var(--deep); }
.header.scrolled .logo-text small { color: var(--muted); }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
.header.scrolled .nav a { color: var(--muted); }
.header.scrolled .nav a:hover { color: var(--ocean); background: rgba(26,111,160,0.06); }
.header.scrolled .nav a.active { color: var(--ocean); background: rgba(26,111,160,0.1); }
.nav-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: #fff; }
.header.scrolled .nav-toggle { color: var(--ink); }

/* =========== HERO =========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, var(--deep) 0%, var(--navy) 35%, var(--ocean) 65%, var(--blue) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 30% at 20% 80%, rgba(42,159,216,0.15), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(126,200,227,0.12), transparent 50%);
  animation: heroPulse 8s ease infinite alternate;
}
@keyframes heroPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 800px; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 18px; border-radius: 30px;
  font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,0.55); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.8rem,7vw,5.5rem); font-weight: 700; color: #fff;
  letter-spacing: 6px; margin-bottom: 4px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.15);
}
.hero-en {
  font-family: Georgia, serif; font-style: italic;
  font-size: clamp(1.1rem,2.5vw,1.5rem);
  color: rgba(255,255,255,0.35); letter-spacing: 3px;
  font-weight: 300; margin-bottom: 20px;
}
.hero-desc {
  font-size: clamp(0.95rem,1.4vw,1.1rem);
  color: rgba(255,255,255,0.5); max-width: 560px; margin: 0 auto 32px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 30px;
  font-weight: 600; font-size: 15px; transition: all 0.3s ease;
}
.btn-primary { background: #fff; color: var(--ocean); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.btn-outline {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-badges span {
  padding: 5px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55); font-size: 12px;
}
.scroll-hint {
  position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,0.3);
  text-align: center; font-size: 11px; letter-spacing: 2px;
  cursor: pointer; animation: float 2.5s ease infinite;
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.scroll-hint .arrow { font-size: 18px; margin-top: 4px; }
.wave-divider { position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; }
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* =========== SECTION COMMON =========== */
.section { padding: 80px 0; }
.bg-cream { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 6px;
}
.section-head h2 {
  font-size: clamp(1.6rem,3vw,2.4rem); color: var(--deep);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 14px; color: var(--muted);
  font-family: Georgia, serif; font-style: italic;
}

/* =========== INTRO =========== */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.intro-text p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 14px; }
.intro-visual { display: flex; justify-content: center; }
.intro-card {
  text-align: center; padding: 50px 40px;
  background: linear-gradient(135deg, var(--navy), var(--ocean));
  border-radius: 20px; min-width: 280px;
}
.intro-card .icn { font-size: 4rem; margin-bottom: 10px; }
.intro-card .name { font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: 4px; }
.intro-card .sub { font-family: Georgia, serif; font-style: italic; color: rgba(255,255,255,0.4); font-size: 0.95rem; }
.intro-card .islands { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; }
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px;
}
.stat {
  text-align: center; padding: 20px 12px;
  background: var(--white); border-radius: 12px; border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--ocean); }
.stat .label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* =========== MAP SHOWCASE =========== */
.map-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.map-image {
  background: var(--white); border-radius: 16px; padding: 20px;
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.map-links { display: flex; flex-direction: column; gap: 12px; }
.map-link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.map-link-card:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.ml-icon { font-size: 24px; }
.ml-text strong { display: block; font-size: 15px; color: var(--deep); }
.ml-text small { font-size: 12px; color: var(--muted); }
.ml-arrow { margin-left: auto; font-size: 18px; color: var(--blue); }

/* =========== HOTELS =========== */
.hotel-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
.hotel-card {
  border-radius: 14px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  transition: all 0.4s ease;
}
.hotel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.h-visual { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.h-body { padding: 16px; }
.h-body h3 { font-size: 15px; font-weight: 700; color: var(--deep); margin-bottom: 2px; }
.stars { color: var(--gold); font-size: 12px; margin-bottom: 6px; }
.h-body p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.htag {
  display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 8px;
  background: var(--cream); color: var(--ocean); margin: 0 3px 8px 0;
}
.h-cta {
  display: block; text-align: center; padding: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  background: var(--ocean); color: #fff; transition: all 0.3s ease;
}
.h-cta:hover { background: var(--deep); }

/* =========== CONTACT STRIP =========== */
.contact-strip {
  background: linear-gradient(165deg, var(--deep), var(--navy));
  color: #fff; padding: 50px 0;
}
.cs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.cs-tel { font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; }
.qr-placeholder {
  display: inline-block; padding: 20px 30px;
  background: rgba(255,255,255,0.06); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}
.qr-icon { font-size: 3rem; margin-bottom: 8px; }

/* =========== FOOTER =========== */
.footer {
  background: var(--deep); color: rgba(255,255,255,0.4);
  padding: 36px 0 24px; text-align: center; font-size: 13px;
}
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--sky); }
.footer-links a:hover { color: #fff; }
.footer-tel { font-size: 13px; color: rgba(255,255,255,0.25); margin-top: 6px; }

/* =========== PAGE HEADER (subpages) =========== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(165deg, var(--deep), var(--navy), var(--ocean));
  color: #fff; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: 8px; }
.page-hero p { opacity: 0.6; font-size: 15px; max-width: 600px; margin: 0 auto; }

/* =========== FULL MAP PAGE =========== */
.map-full { padding: 40px 0 60px; }
.map-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px;
}
.map-tab {
  padding: 10px 22px; border-radius: 20px; font-size: 14px; font-weight: 500;
  background: var(--white); border: 1px solid var(--line); cursor: pointer;
  transition: all 0.2s ease;
}
.map-tab:hover { border-color: var(--blue); color: var(--ocean); }
.map-tab.active { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.map-view { display: none; }
.map-view.active { display: block; }
.map-view object { width: 100%; max-width: 900px; margin: 0 auto; display: block; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.06); }

/* =========== HOTEL PAGE =========== */
.hotel-page-list { display: grid; gap: 24px; margin: 40px 0; }
.hp-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); transition: all 0.3s ease;
}
.hp-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.hp-visual {
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hp-body { padding: 20px 20px 20px 0; }
.hp-body h3 { font-size: 18px; font-weight: 700; color: var(--deep); margin-bottom: 4px; }
.hp-body .hp-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.hp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hp-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 10px;
  background: var(--cream); color: var(--ocean);
}
.hp-cta {
  display: inline-block; padding: 10px 28px; border-radius: 25px;
  background: linear-gradient(135deg, var(--ocean), var(--blue));
  color: #fff; font-weight: 600; font-size: 14px; transition: all 0.3s ease;
}
.hp-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,111,160,0.3); }

/* =========== TRANSPORT PAGE =========== */
.transport-full { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.tp-card {
  background: var(--white); border-radius: 14px; padding: 28px;
  border: 1px solid var(--line);
}
.tp-card h3 { font-size: 17px; font-weight: 700; color: var(--deep); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.tp-steps { list-style: none; }
.tp-steps li {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.6;
}
.tp-steps li:last-child { border-bottom: none; }
.tp-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ocean); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.tp-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.tp-tip {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: var(--cream); font-size: 13px; color: var(--navy); line-height: 1.6;
}

/* =========== CONTACT PAGE =========== */
.contact-full {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 40px 0;
}
.ci {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.ci-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.qr-box {
  text-align: center; background: var(--white); border-radius: 16px;
  padding: 30px; border: 1px solid var(--line);
}
.qr-visual {
  width: 160px; height: 160px; margin: 0 auto;
  background: linear-gradient(135deg, var(--ocean), var(--blue));
  border-radius: 14px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff;
}
.qr-visual .q-icon { font-size: 2.8rem; }
.qr-visual .q-label { font-size: 11px; opacity: 0.7; margin-top: 8px; }

/* =========== RESPONSIVE =========== */
@media (max-width: 900px) {
  .intro-grid, .map-showcase, .transport-full, .contact-full { grid-template-columns: 1fr; }
  .hotel-grid { grid-template-columns: repeat(2,1fr); }
  .hp-card { grid-template-columns: 1fr; }
  .hp-visual { min-height: 120px; }
  .hp-body { padding: 16px; }
  .cs-grid { grid-template-columns: 1fr; text-align: center; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98); padding: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
  .nav.open a { color: var(--muted); padding: 10px 14px; }
  .nav.open a.active { color: var(--ocean); background: rgba(26,111,160,0.06); }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .section { padding: 50px 0; }
  .hotel-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .stat { padding: 14px 8px; }
  .hero h1 { letter-spacing: 3px; }
  .page-hero { padding: 120px 0 40px; }
  .map-tabs { gap: 6px; }
  .map-tab { padding: 8px 16px; font-size: 13px; }
}

/* =========== LANG TOGGLE =========== */
body.en .hero-en { display: block; }
body.en .hero-desc { display: none; }

/* =========== LANG MINI =========== */
.lang-mini {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 8px;
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.08); border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  user-select: none;
}
.lang-mini span {
  padding: 3px 8px; border-radius: 4px;
  transition: all 0.15s ease;
  color: rgba(255,255,255,0.4);
}
.lang-mini span.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.header.scrolled .lang-mini {
  background: rgba(0,0,0,0.04);
}
.header.scrolled .lang-mini span { color: #999; }
.header.scrolled .lang-mini span.active {
  background: var(--ocean);
  color: #fff;
}
