/* ============================================
   Tengda Intergroup — 主樣式
   配色: 中國紅 #C8102E + 金 #C9A961 + 深灰 #2A2A2A
   ============================================ */

:root {
  --brand:        #C8102E;   /* 主紅 (中國紅) */
  --brand-dark:   #9A0B23;   /* 深紅 (hover) */
  --brand-light:  #F5E6E9;   /* 淺紅 (區段背景) */
  --gold:         #C9A961;   /* 金色點綴 */
  --gold-dark:    #A88A45;
  --dark:         #1F1F1F;   /* 深灰文字/footer */
  --dark-2:       #2A2A2A;
  --text:         #333333;
  --text-light:   #6B6B6B;
  --text-muted:   #999999;
  --bg:           #ffffff;
  --bg-soft:      #F8F5F0;   /* 米黃淺底 (古典感) */
  --bg-soft-2:    #FAFAFA;
  --surface:      #ffffff;   /* 卡片表面 */
  --surface-2:    #ffffff;   /* 子選單、浮層 */
  --header-bg:    #ffffff;   /* header 背景 */
  --border:       #E8E0D5;
  --border-light: #F0EAE0;
  --shadow:       0 2px 10px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 28px rgba(200,16,46,0.18);
  --shadow-gold:  0 4px 16px rgba(201,169,97,0.25);
  --radius:       4px;
  --radius-lg:    8px;
  --max-width:    1200px;
}

[data-theme="dark"] {
  --brand:        #E63E5C;   /* 深底上用較亮的紅 */
  --brand-dark:   #C8102E;
  --brand-light:  #2A1014;   /* 深紅褐 (區段背景) */
  --gold:         #D4B872;   /* 深底上稍亮的金 */
  --gold-dark:    #B89856;
  --dark:         #0F0F0F;
  --dark-2:       #1A1A1A;
  --text:         #E8E6E2;
  --text-light:   #B8B5B0;
  --text-muted:   #8A8782;
  --bg:           #121212;
  --bg-soft:      #1A1614;   /* 深米黃底 */
  --bg-soft-2:    #181818;
  --surface:      #1E1B19;   /* 卡片表面 */
  --surface-2:    #252220;   /* 子選單、浮層 */
  --header-bg:    #181513;
  --border:       #34302C;
  --border-light: #2A2825;
  --shadow:       0 2px 10px rgba(0,0,0,0.5);
  --shadow-hover: 0 10px 28px rgba(230,62,92,0.30);
  --shadow-gold:  0 4px 16px rgba(212,184,114,0.25);
}

/* ====== Reset & Base ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Noto Sans SC", "Noto Sans Thai", "PingFang SC", "Microsoft YaHei",
               "Sarabun", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[lang="th"] {
  font-family: "Sarabun", "Noto Sans Thai", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin-bottom: 12px; }

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

/* ====== Top bar ====== */
.topbar {
  background: var(--dark);
  color: #ddd;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar-contact a { color: #ddd; }
.topbar-contact a:hover { color: var(--gold); }
.topbar-contact .sep { color: #555; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-slogan {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  font-family: "Noto Serif SC", "Sarabun", serif;
}
.lang-switch {
  color: #ddd;
  font-size: 13px;
  padding: 3px 12px;
  border: 1px solid #555;
  border-radius: 3px;
  letter-spacing: .5px;
  transition: all .2s;
}
.lang-switch:hover {
  color: var(--text);
  background: var(--gold);
  border-color: var(--gold);
}

/* ====== Header / Nav ====== */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand-logo {
  width: 64px; height: 64px;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.brand-name {
  font-size: 19px; font-weight: 700; color: var(--text);
  font-family: "Noto Serif SC", "STSong", "SimSun", "Sarabun", serif;
  letter-spacing: 1px;
}
.brand-en {
  font-size: 11px; color: var(--text-light);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  padding: 10px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.main-nav > a:hover { color: var(--brand); }
.main-nav > a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.main-nav .has-sub { position: relative; }
.main-nav .submenu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--surface-2);
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-top: 3px solid var(--brand);
  padding: 8px 0;
  display: none;
  z-index: 200;
}
.main-nav .has-sub:hover .submenu { display: block; }
.main-nav .submenu a {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  font-size: 14px;
  border-left: 2px solid transparent;
}
.main-nav .submenu a:hover {
  color: var(--brand);
  background: var(--bg-soft);
  border-left-color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none; border: 0;
  font-size: 26px; cursor: pointer;
  color: var(--text); padding: 6px 10px;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  height: 540px;
  padding: 0;
  overflow: hidden;
  background: #000;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.2) 100%);
}
.hero-text {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.hero-text .container { padding: 0 30px; }
.hero-title {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  max-width: 720px;
  font-family: "Noto Serif SC", "STSong", "Sarabun", serif;
  letter-spacing: 2px;
}
.hero-subtitle {
  color: #f0f0f0;
  font-size: 19px;
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 13px 32px;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(200,16,46,0.4);
  transition: all .2s;
}
.hero-cta:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,16,46,0.5);
}
.hero-dots {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active {
  background: var(--gold);
  border-color: var(--gold);
}

/* ====== Section ====== */
section {
  padding: 70px 0;
}
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #ddd; }

.section-head { text-align: center; margin-bottom: 50px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px;
  color: var(--text);
  font-family: "Noto Serif SC", "STSong", "Sarabun", serif;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 100%);
}
.section-lead {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--text-light);
  font-size: 16px;
}

/* ====== Service Grid (homepage cards) ====== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  display: block;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-card .thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.15) 100%);
}
.service-card .body {
  padding: 18px 20px 22px;
  border-top: 3px solid var(--brand);
}
.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Noto Serif SC", "Sarabun", serif;
}
.service-card .desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}
.service-card .more {
  margin-top: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

/* ====== Stats bar ====== */
.stats {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: rgba(201,169,97,0.1);
  border-radius: 50%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-num {
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-family: "Noto Serif SC", serif;
}
.stat-label { font-size: 14px; opacity: 0.95; }

/* ====== About highlight ====== */
.about-highlight {
  background: var(--bg-soft);
  padding: 60px 0;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.highlight-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.highlight-quote {
  font-size: 19px;
  line-height: 1.85;
  color: var(--text);
  font-family: "Noto Serif SC", "Sarabun", serif;
  position: relative;
  padding: 0 30px;
}
.highlight-quote::before, .highlight-quote::after {
  content: "\201C";
  font-size: 60px;
  color: var(--brand);
  opacity: 0.3;
  position: absolute;
  font-family: serif;
  line-height: 1;
}
.highlight-quote::before { left: 0; top: -10px; }
.highlight-quote::after { content: "\201D"; right: 0; bottom: -30px; }

/* ====== Page hero (smaller) ====== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #444 50%, var(--brand-dark) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 50%, var(--brand) 100%);
}
.page-hero h1 {
  color: #fff;
  font-size: 40px;
  font-family: "Noto Serif SC", "Sarabun", serif;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.page-hero .subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  max-width: 720px;
  margin: 0 auto;
}
.breadcrumb {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: #fff; }

/* ====== Content block ====== */
.content-block { padding: 60px 0; }
.content-block + .content-block { padding-top: 0; }
.content-narrow { max-width: 920px; margin: 0 auto; }
.lead-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
}
.brand-tagline {
  font-size: 19px;
  color: var(--brand);
  font-family: "Noto Serif SC", "Sarabun", serif;
  font-style: italic;
  letter-spacing: .5px;
  margin: -10px 0 22px;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
}
.subhead {
  font-size: 22px;
  color: var(--brand);
  font-family: "Noto Serif SC", "Sarabun", serif;
  margin: 30px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  letter-spacing: 1px;
}

ul.feature-list {
  list-style: none;
  padding: 0;
}
ul.feature-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
ul.feature-list li:last-child { border-bottom: 0; }
ul.feature-list li::before {
  content: "❖";
  position: absolute;
  left: 6px;
  color: var(--brand);
  font-size: 14px;
}

/* ====== Sector cards (about + business) ====== */
.sector-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sector-card {
  background: var(--surface);
  padding: 22px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow);
  transition: all .25s;
  display: block;
  color: inherit;
}
.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--gold);
}
.sector-card h3 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 18px;
}
.sector-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ====== Gallery ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery .item {
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s;
}
.gallery .item:hover { transform: scale(1.03); }
.gallery .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 10px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* ====== Cars/models list ====== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.model-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .25s;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.model-thumb {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.model-body { padding: 14px 16px 18px; }
.model-body h4 {
  color: var(--text); font-size: 15px;
  margin-bottom: 4px;
}
.model-body .en {
  font-size: 12px; color: var(--text-muted); letter-spacing: .5px;
}

/* ====== Attractions grid ====== */
.attraction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.attraction-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
  color: inherit;
  transition: all .25s;
}
.attraction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.attraction-thumb {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  position: relative;
}
.attraction-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}
.attraction-body { padding: 12px 14px 16px; }
.attraction-body h4 {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.attraction-body .time {
  color: var(--text-muted);
  font-size: 11.5px;
}

/* ====== News list ====== */
.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  transition: all .3s;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.news-thumb {
  flex: 0 0 38%;
  background-size: cover; background-position: center;
  min-height: 180px;
}
.news-body {
  padding: 20px 22px;
  flex: 1;
}
.news-thumb-placeholder {
  background: linear-gradient(135deg, #1F1F1F 0%, #2c2c2c 50%, #9A0B23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-thumb-placeholder img {
  width: 90px;
  height: 90px;
  opacity: 0.55;
  filter: brightness(2) invert(0.05);
}
.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.news-meta .date {
  color: var(--gold-dark);
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
}
.news-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 3px;
  letter-spacing: .5px;
  font-weight: 500;
}
.news-tag.tag-business {
  background: rgba(200, 16, 46, 0.1);
  color: var(--brand);
}
.news-tag.tag-cultural {
  background: rgba(201, 169, 97, 0.18);
  color: var(--gold-dark, #8a7430);
}
.news-body .date {
  color: var(--gold-dark);
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}
.news-body h3 {
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-body p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ====== Contact ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info { padding: 10px; }
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}
.contact-item:last-child { border-bottom: 0; }
.contact-icon {
  flex: 0 0 44px; height: 44px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: bold;
}
.contact-text .label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-text .value {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.contact-text .value a { color: var(--text); }
.contact-text .value a:hover { color: var(--brand); }
.contact-text .value a.map-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}
.contact-text .value a.map-link:hover { text-decoration: underline; }

.map-embed {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ====== Footer ====== */
.site-footer {
  background: var(--dark);
  color: #aaa;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  font-family: "Noto Serif SC", "Sarabun", serif;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: var(--gold);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--gold); }
.footer-brand-text {
  font-family: "Noto Serif SC", "Sarabun", serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.footer-en {
  font-size: 12px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-about {
  font-size: 13px;
  line-height: 1.8;
  color: #999;
}
.footer-contact-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-contact-line .ico {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
}
.footer-copy {
  border-top: 1px solid #333;
  padding: 24px 0;
  font-size: 12px;
  color: #777;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ====== Buttons & misc ====== */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200,16,46,0.3);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-dark); }

.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* ====== Lightbox ====== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 4px;
}
.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  background: none; border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  width: 44px; height: 44px;
}
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 0;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  background: rgba(0,0,0,0.4);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}
@media (max-width: 600px) {
  .lightbox .lb-prev,
  .lightbox .lb-next { width: 42px; height: 42px; font-size: 22px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
}

/* ====== Multi-image model card badge ====== */
.model-card.has-gallery {
  cursor: pointer;
  position: relative;
}
.model-card.has-gallery .model-thumb { position: relative; }
.model-card.has-gallery .model-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity .25s;
}
.model-card.has-gallery:hover .model-thumb::after { opacity: 1; }
.model-card .photo-count {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: .5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.model-card .photo-count::before {
  content: '📷';
  font-size: 11px;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-list { grid-template-columns: 1fr; }
  .attraction-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  section { padding: 50px 0; }

  .topbar { font-size: 12px; padding: 6px 0; }
  .topbar-contact { gap: 10px; }
  .topbar-contact .sep { display: none; }
  .topbar-slogan { display: none; }

  .header-inner { padding: 12px 0; }
  .brand-logo { width: 50px; height: 50px; }
  .brand-name { font-size: 16px; }
  .brand-en { font-size: 10px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface-2);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 20px; border-bottom: 1px solid var(--border-light); }
  .main-nav .submenu {
    position: static;
    box-shadow: none;
    background: var(--bg-soft);
    display: block;
    padding: 0;
    border-top: 0;
  }
  .main-nav .submenu a { padding: 10px 36px; font-size: 13px; }

  .hero { height: 380px; }
  .hero-title { font-size: 28px; letter-spacing: 1px; }
  .hero-subtitle { font-size: 15px; }
  .hero-cta { padding: 11px 26px; }

  .section-title { font-size: 24px; }
  .section-head { margin-bottom: 32px; }

  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card .thumb { height: 200px; }

  .stats { padding: 36px 0; }
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 13px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery.gallery-3 { grid-template-columns: repeat(2, 1fr); }

  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .attraction-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col h4 { font-size: 14px; }

  .news-card { flex-direction: column; }
  .news-thumb { flex: none; width: 100%; height: 200px; min-height: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .map-embed { height: 320px; }

  .page-hero { padding: 50px 0 40px; }
  .page-hero h1 { font-size: 28px; letter-spacing: 1px; }
  .page-hero .subtitle { font-size: 14px; }

  .highlight-quote { font-size: 16px; padding: 0 20px; }
  .highlight-quote::before, .highlight-quote::after { font-size: 40px; }

  .subhead { font-size: 18px; }
}

@media (max-width: 420px) {
  .attraction-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
}

/* ====== Dark Mode 切換按鈕 ====== */
.theme-toggle {
  background: none;
  border: 1px solid #555;
  color: #ddd;
  font-size: 14px;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  line-height: 1;
  margin-right: 8px;
  transition: all .2s;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ====== Dark Mode 細節調整 ====== */
[data-theme="dark"] body {
  color: var(--text);
  background: var(--bg);
}
[data-theme="dark"] .topbar {
  background: #0A0A0A;
  border-bottom: 1px solid #2A1014;
}
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1614 50%, #2A1014 100%);
}
[data-theme="dark"] .site-footer {
  background: #0A0A0A;
}
[data-theme="dark"] img:not(.brand-logo):not(.no-dim) {
  /* 圖片在 dark 下稍微減亮，避免太刺眼 */
  filter: brightness(0.92);
}
[data-theme="dark"] .gallery .item,
[data-theme="dark"] .model-thumb,
[data-theme="dark"] .news-thumb,
[data-theme="dark"] .service-card-image,
[data-theme="dark"] .attraction-card .thumb,
[data-theme="dark"] .thumb {
  filter: brightness(0.88);
}
/* 切換時平順過渡（但不要套到所有東西，避免 hover 變慢） */
body, .site-header, .topbar, .service-card, .sector-card,
.model-card, .news-card, .attraction-card, .submenu {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
