/* ==========================================================================
   呼叫铃警备员 — Security Guard Theme
   Navy Blues + Badge Golds + Alert Red Accents
   Clean institutional aesthetic on light background
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --navy-dark: #1a2a4a;
  --navy: #2c3e6b;
  --navy-light: #3a5080;
  --navy-pale: #e8ecf4;
  --gold: #c9a030;
  --gold-light: #d4af37;
  --gold-pale: #faf3dc;
  --red-accent: #c41e3a;
  --red-hover: #a0182e;
  --red-light: #fde8ec;
  --bg: #f5f2eb;
  --bg-card: #ffffff;
  --bg-header: #1a2a4a;
  --text: #2c2c2c;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-light: #ffffff;
  --border: #d9d5cc;
  --border-light: #ebe7dd;
  --shadow-sm: 0 1px 3px rgba(26,42,74,0.08);
  --shadow-md: 0 3px 10px rgba(26,42,74,0.10);
  --shadow-lg: 0 6px 20px rgba(26,42,74,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
  --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1100px;
}

/* --- 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: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.header {
  background: var(--bg-header);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}
.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: #c8cdd8;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
  background: rgba(255,255,255,0.1);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 4px !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: #000 !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--text-light);
  text-align: center;
  padding: 60px 20px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: brightness(0.7);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,42,74,0.85) 0%, rgba(26,42,74,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}
.hero h1 .accent-gold { color: var(--gold-light); }
.hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 24px;
  opacity: 0.9;
  line-height: 1.8;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.25);
}
.tag-gold {
  background: rgba(201,160,48,0.3);
  border-color: var(--gold);
  color: var(--gold-light);
}
.tag-red {
  background: rgba(196,30,58,0.3);
  border-color: var(--red-accent);
  color: #f08895;
}

.btn-hero {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,160,48,0.4); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--text-light);
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--text-light); background: rgba(255,255,255,0.1); }

/* --- Page Hero (sub pages) --- */
.page-hero {
  background: var(--navy);
  color: var(--text-light);
  text-align: center;
  padding: 50px 20px 36px;
  position: relative;
  border-bottom: 3px solid var(--gold);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201,160,48,0.12), transparent 60%);
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
}
.page-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 8px auto 0;
  position: relative;
  z-index: 1;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--navy);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

/* --- Main Content --- */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* --- Section Headings --- */
.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-dark);
  text-align: center;
  margin: 48px 0 10px;
  font-family: var(--font-heading);
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}
.accent-line {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 28px;
  border-radius: 2px;
}

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--navy-pale);
}
.info-card .info-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.info-card .info-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--navy);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--gold);
}
.feature-card .feature-num {
  display: inline-block;
  background: var(--navy-dark);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.15rem;
  color: var(--navy-dark);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* --- Story Blocks --- */
.story-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--navy);
}
.story-block h3 {
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.story-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.char-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.char-card-header {
  background: var(--navy);
  color: var(--text-light);
  padding: 16px 20px;
  text-align: center;
}
.char-card-header h3 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  margin-bottom: 2px;
}
.char-card-header .char-name-jp {
  font-size: 0.85rem;
  opacity: 0.7;
}
.char-card-body {
  padding: 20px;
}
.char-card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.char-card-body .char-role {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.char-traits .tag {
  background: var(--navy-pale);
  color: var(--navy);
  border-color: var(--navy-pale);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 14px;
  font-weight: 500;
}

/* --- Guide Steps --- */
.guide-steps {
  margin: 32px 0;
}
.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.guide-step:hover {
  box-shadow: var(--shadow-md);
}
.guide-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy-dark);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.guide-step-content h3 {
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}
.guide-step-content p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* --- Tip Box --- */
.tip-box {
  background: var(--navy-pale);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.93rem;
  color: var(--navy-dark);
}
.tip-box strong { color: var(--navy); }

/* --- Alert Box --- */
.alert-box {
  background: var(--red-light);
  border-left: 4px solid var(--red-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.93rem;
  color: var(--red-accent);
}

/* --- Gallery / Screenshots --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-item .gallery-caption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 32px auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: var(--transition);
}
.faq-question:hover { background: var(--navy-pale); }
.faq-question .faq-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--text-light);
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  margin: 48px 0 32px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(201,160,48,0.15), transparent 50%);
}
.cta-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  font-family: var(--font-heading);
}
.cta-banner p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 22px;
  position: relative;
}
.cta-banner .btn-gold {
  position: relative;
  font-size: 1.05rem;
  padding: 14px 36px;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 32px 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-dark);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-item .stat-accent { color: var(--gold); }

/* --- Review Cards --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review-card .review-rating {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.review-card .review-text {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
  font-style: italic;
}
.review-card .review-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table thead tr { background: var(--navy); color: var(--text-light); }
.info-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: var(--navy-pale); }

/* --- Footer --- */
.footer {
  background: var(--bg-header);
  color: var(--text-light);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 3px solid var(--gold);
}

/* --- Divider --- */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* --- Ending Cards --- */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.ending-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--navy);
}
.ending-card h4 {
  font-size: 1rem;
  color: var(--navy-dark);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.ending-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }

/* --- Hero page-specific backgrounds --- */
.hero-index .hero-bg { background-image: url('../img/hero.webp'); }
.page-hero-story .hero-bg { background-image: url('../img/screenshot-01.webp'); }
.page-hero-characters .hero-bg { background-image: url('../img/screenshot-03.webp'); }
.page-hero-guide .hero-bg { background-image: url('../img/screenshot-02.webp'); }
.page-hero-faq .hero-bg { background-image: url('../img/screenshot-04.webp'); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    flex-direction: column;
    padding: 12px 20px;
    gap: 4px;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.active { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-tags { gap: 6px; }
  .btn-outline { margin-left: 0; margin-top: 10px; display: block; }
  .section-title { font-size: 1.4rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .stats-row { gap: 20px; }
  .guide-step { flex-direction: column; gap: 12px; }
  .page-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; }
}
