/* ========================================
   歌鸲旅馆 Komadori Inn — Bird Inn Cozy Theme
   Songbird Blue + Nest Browns + Feather Whites
   ======================================== */

:root {
  --bg: #fdf8f0;
  --bg-card: #faf6ef;
  --feather: #faf8f5;
  --songbird: #5b8fa8;
  --songbird-hover: #4a7d96;
  --songbird-light: #d4e5ef;
  --songbird-pale: #eaf2f7;
  --nest: #8b6914;
  --nest-hover: #7a5c11;
  --nest-light: #d4c4a0;
  --nest-pale: #ede3cf;
  --wood: #6b4c3b;
  --wood-light: #a08070;
  --text: #3e2b1f;
  --text-muted: #8d7b6b;
  --text-light: #b8a898;
  --shadow: rgba(107, 76, 59, 0.08);
  --shadow-hover: rgba(107, 76, 59, 0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1100px;
  --font-heading: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.75;
  letter-spacing: 0.01em;
  position: relative;
  overflow-x: hidden;
}

/* Bird feather background motif */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 5% 10%, rgba(91, 143, 168, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(139, 105, 20, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(91, 143, 168, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(139, 105, 20, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(253, 248, 240, 0.97) 0%, rgba(250, 246, 239, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nest-pale);
  box-shadow: 0 1px 12px var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo with bird motif */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--songbird) 0%, var(--songbird-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--feather);
  box-shadow: 0 2px 8px rgba(91, 143, 168, 0.25);
  position: relative;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--songbird);
  background: var(--songbird-pale);
}

/* Nav CTA button */
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 9px 22px !important;
  background: linear-gradient(135deg, var(--songbird) 0%, var(--songbird-hover) 100%) !important;
  color: var(--feather) !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 3px 12px rgba(91, 143, 168, 0.3);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(91, 143, 168, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 70px 20px 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91, 143, 168, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(139, 105, 20, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 750px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  background: var(--songbird-pale);
  color: var(--songbird);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--songbird) 0%, var(--nest) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--songbird) 0%, var(--songbird-hover) 100%);
  color: var(--feather);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91, 143, 168, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 143, 168, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: transparent;
  color: var(--songbird);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 28px;
  border: 2px solid var(--songbird);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--songbird);
  color: var(--feather);
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  text-align: center;
  padding: 50px 20px 40px;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(91, 143, 168, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BIRD DIVIDER ===== */
.bird-divider {
  text-align: center;
  margin: 20px 0 36px;
  color: var(--songbird-light);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  user-select: none;
}

/* ===== INFO CARDS ===== */
.info-section {
  padding: 60px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--nest-pale);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.info-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ===== FEATURE CARDS ===== */
.features-section {
  padding: 60px 0;
  background: var(--feather);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 24px;
  border-left: 4px solid var(--songbird);
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
  border-left-color: var(--nest);
}

.feature-card .feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--songbird-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--songbird);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ===== SCREENSHOT GALLERY ===== */
.gallery-section {
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== STORY BLOCKS ===== */
.story-section {
  padding: 60px 0;
}

.story-block {
  max-width: var(--max-width);
  margin: 0 auto 30px;
  padding: 0 20px;
}

.story-block h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 4px solid var(--songbird);
}

.story-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  padding-left: 20px;
}

/* ===== CHARACTER CARDS ===== */
.chars-section {
  padding: 60px 0;
  background: var(--feather);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.char-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--nest-pale);
  transition: transform 0.3s, box-shadow 0.3s;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.char-header {
  background: linear-gradient(135deg, var(--songbird-light) 0%, var(--songbird-pale) 100%);
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--songbird-light);
}

.char-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--songbird) 0%, var(--nest) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  color: var(--feather);
  box-shadow: 0 3px 12px rgba(91, 143, 168, 0.25);
}

.char-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 4px;
}

.char-role {
  font-size: 0.85rem;
  color: var(--songbird);
  font-weight: 500;
}

.char-body {
  padding: 20px;
}

.char-body p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-blue {
  background: var(--songbird-pale);
  color: var(--songbird);
}

.tag-brown {
  background: var(--nest-pale);
  color: var(--nest);
}

/* ===== GUIDE STEPS ===== */
.guide-section {
  padding: 60px 0;
}

.guide-steps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--songbird) 0%, var(--songbird-hover) 100%);
  color: var(--feather);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(91, 143, 168, 0.25);
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== TIPS BOX ===== */
.tip-box {
  background: var(--songbird-pale);
  border-left: 4px solid var(--songbird);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 30px auto;
  max-width: var(--max-width);
  padding: 0 20px;
}

.tip-box .tip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
}

.tip-box strong {
  color: var(--songbird);
}

.tip-box p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ===== FAQ ACCORDION ===== */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--nest-pale);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
}

.faq-q:hover { background: var(--songbird-pale); }

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--songbird);
  transition: transform 0.3s;
}

.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ===== CTA BANNER ===== */
.cta-section {
  padding: 60px 0;
}

.cta-banner {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--songbird-pale) 0%, var(--feather) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--songbird-light);
  box-shadow: 0 2px 14px var(--shadow);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto 0;
  padding: 16px 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--songbird);
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--nest-pale);
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(62, 43, 31, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--feather);
  font-size: 2rem;
  cursor: pointer;
  z-index: 201;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--songbird);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== INFO TABLE ===== */
.info-table {
  width: 100%;
  max-width: 650px;
  margin: 30px auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.info-table th, .info-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--nest-pale);
}

.info-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  width: 130px;
  white-space: nowrap;
}

.info-table td {
  color: var(--text);
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  border-left: 4px solid var(--nest);
  padding: 12px 18px;
  margin: 24px 0;
  background: var(--nest-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 99;
  }

  .nav-links.active { transform: translateX(0); }

  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }

  .section-title { font-size: 1.4rem; }

  .info-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .char-grid { grid-template-columns: 1fr; }

  .guide-step { flex-direction: column; gap: 12px; }
  .stats-row { gap: 24px; }
  .stat-value { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .info-table th { width: 100px; font-size: 0.85rem; }
  .info-table td { font-size: 0.85rem; }
}
