/* ==========================================================================
   仿 Talay Thai 核心视觉样式（黑、金、极简、高雅）
   ========================================================================== */

:root {
  --bg-dark: #121212;       /* 主背景色：泰式优雅纯黑 */
  --bg-card: #1a1a1a;       /* 卡片背景 */
  --gold: #D4AF37;          /* 核心高亮：泰国皇家金 */
  --text-light: #f5f5f5;    /* 主文字颜色 */
  --text-muted: #b3b3b3;    /* 次要文字颜色 */
  --font-title: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 页眉导航 */
.site-header {
  background-color: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}
.logo {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
}
.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: var(--gold);
}
.main-nav .nav-order-btn {
  background-color: var(--gold);
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
}
.main-nav .nav-order-btn:hover {
  background-color: #fff;
  color: #000;
}

/* 主视觉区 Hero */
.hero-section {
  background-image: url('https://images.unsplash.com/photo-1552566626-52f8b828add9?q=80&w=1800'); /* 示例高档餐厅暗色背景图 */
  background-size: cover;
  background-position: center;
  height: 70vh;
  position: relative;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65); /* 压暗背景图片 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}
.hero-title {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 3.5rem;
  margin: 0 0 10px 0;
  letter-spacing: 3px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.cta-button {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 12px 30px;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background-color: var(--gold);
  color: #000;
}

/* 简介区块 */
.about-brief-section {
  padding: 8px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 10px;
}
.gold-divider {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  margin: 0 auto 30px auto;
}
.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.text-link {
  color: var(--gold);
  text-decoration: none;
}

/* 页脚 */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 60px;
}

/* ==========================================================================
   Talay Thai 风格菜单专属样式
   ========================================================================== */

.menu-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.menu-page-header {
  text-align: center;
  margin-bottom: 50px;
}

.menu-main-title {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 2.8rem;
  letter-spacing: 4px;
  margin: 0 0 10px 0;
}

.menu-notice {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 分类标题区 */
.menu-section {
  margin-bottom: 60px;
}

.category-title {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 10px;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 菜品双列平铺网格 */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 30px 40px;
}

/* 当屏幕较小时自动缩减为单列 */
@media (max-width: 768px) {
  .menu-items-grid {
    grid-template-columns: 1fr;
  }
}

/* 单个菜品卡片 */
.menu-item-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.menu-item-image-box {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.menu-item-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-content {
  flex-grow: 1;
}

/* 核心：名字 . 虚线 . 价格的传统菜单排版 */
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 6px;
}

.dish-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item-dot-leader {
  flex-grow: 1;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  margin: 0 10px;
  position: relative;
  top: -4px;
}

.dish-price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gold);
  font-size: 1.15rem;
}

/* 辣度标签微调 */
.spicy-badge {
  font-size: 0.9rem;
}

.dish-description p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* 双栏弹性网格布局 */
.menu-interactive-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  position: relative;
}

/* 左侧主体内容区 */
.menu-content-area {
  flex-grow: 1;
  flex-basis: 70%;
}

/* 选项卡面板默认隐藏，激活时显示 */
.menu-category-panel {
  display: none;
}
.menu-category-panel.active {
  display: block;
  animation: fadeInMenu 0.4s ease-in-out;
}

/* 左侧侧边栏 */
.menu-sidebar-navigation {
  flex-basis: 25%;
  position: sticky;
  top: 40px; /* 滚动到上方时自动卡住悬浮 */
}

.sidebar-nav-title {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}

.category-tabs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-tabs-list li {
  margin-bottom: 12px;
}

/* 切换按钮样式 */
.category-tab-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.category-tab-btn:hover {
  color: var(--gold);
  padding-left: 18px;
}

/* 激活状态分类样式 */
.category-tab-btn.active {
  color: var(--gold);
  font-weight: 700;
  border-left-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式断点：当屏幕较小时（手机端），将右侧侧边栏转换为顶部滚动条 */
@media (max-width: 900px) {
  .menu-interactive-layout {
    flex-direction: column-reverse; /* 分类栏移到内容上方 */
    gap: 30px;
  }
  .menu-sidebar-navigation {
    position: relative;
    top: 0;
    width: 100%;
  }
  .category-tabs-list {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 10px;
  }
  .category-tab-btn {
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .category-tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
  }
}

:root {
  --legacy-red: #a51a16;
  --legacy-gold: #e8af03;
  --legacy-text: #e8e8e8;
  --legacy-muted: #999;
  --legacy-panel: #171717;
}

* { box-sizing: border-box; }

html { background: #000; }

body {
  background: #000 url('/assets/legacy/bg.png') repeat;
  color: var(--legacy-text);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto 20px;
  padding: 0;
}

a { color: var(--legacy-gold); }

#main {
  width: 978px;
  max-width: 100%;
  min-height: 100vh;
  background: #111 url('/assets/legacy/main_bg.png') repeat;
  margin: 5px auto 0;
  padding-bottom: 10px;
  overflow: hidden;
}

#header { width: 100%; min-height: 57px; }

.c-line {
  width: 100%;
  height: 11px;
  background: url('/assets/legacy/line.png') repeat-x;
}

#menu {
  min-height: 46px;
  padding: 8px 12px;
  background: url('/assets/legacy/menu_bg.png') repeat-x;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

#menu a {
  color: #fff;
  font-size: 1.02em;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 2px;
  padding: 4px 5px;
  text-decoration: none;
  white-space: nowrap;
}

#menu a:hover,
#menu a:focus-visible {
  color: #990000;
  background: url('/assets/legacy/hover_bg.jpg'), #efefef;
}

#main-body { width: 100%; }

#footer { width: 100%; margin-top: 12px; }

.footer-card {
  width: 300px;
  min-height: 55px;
  margin-left: auto;
  padding: 5px 18px 8px 12px;
  background: url('/assets/legacy/foot_f_bg.jpg') repeat-x;
  color: #eee;
  font-size: 0.7em;
  text-align: right;
}

.footer-card p { margin: 0 0 4px; }

.home-intro {
  display: flex;
  width: 100%;
  min-height: 367px;
}

.home-logo {
  width: 410px;
  min-height: 367px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-logo img { max-width: 100%; height: auto; }

.home-slider {
  position: relative;
  width: 550px;
  height: 367px;
  overflow: hidden;
  background: #000;
}

.home-slider > img {
  display: block;
  width: 550px;
  height: 367px;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.55);
}

.slider-controls button {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6f6f;
  cursor: pointer;
  font-weight: bold;
}

.slider-controls button.active,
.slider-controls button:hover { color: var(--legacy-gold); }

.home-summary {
  display: grid;
  grid-template-columns: 240px 240px minmax(0, 1fr);
  gap: 15px;
  margin: 10px 50px 0;
}

.home-summary-card {
  min-height: 180px;
  padding: 14px 16px;
  background: url('/assets/legacy/bg9.png') repeat;
  color: #eee;
  overflow: hidden;
}

.home-summary-card h2,
.legacy-panel h1,
.legacy-panel h2 {
  margin: 0 0 12px;
  color: var(--legacy-red);
  font-family: Georgia, serif;
  font-size: 1.35em;
  text-transform: uppercase;
}

.home-summary-card p { margin: 8px 0; line-height: 1.45; }

.home-summary-card a { color: #fff; }

.home-phone a { color: var(--legacy-gold); }

.halifax-link { font-size: 0.85em; }

.home-news .news-status { color: var(--legacy-gold); font-weight: bold; }

.lunch-specials { max-height: 560px; overflow-y: auto; }

.lunch-specials ul,
.menu-nav-list,
.item-list { list-style: none; margin: 0; padding: 0; }

.lunch-specials li {
  position: relative;
  min-height: 26px;
  padding: 4px 60px 4px 20px;
  border-bottom: 1px solid rgba(153, 153, 153, 0.25);
  color: #eee;
  font-size: 0.82em;
  line-height: 1.35;
}

.lunch-specials li::before {
  position: absolute;
  left: 0;
  content: '';
  width: 13px;
  height: 13px;
  margin-top: 2px;
  background: url('/assets/legacy/sp_list_bg.png') center / contain no-repeat;
}

.special-price {
  position: absolute;
  right: 0;
  color: #f60;
}

.pepper-icon {
  width: 12px !important;
  height: 12px !important;
  margin: 0 2px !important;
  vertical-align: middle;
}

.subpage-header {
  display: flex;
  align-items: flex-end;
  min-height: 250px;
}

.small-logo {
  width: 273px;
  height: 250px;
  margin: 0 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.small-logo img { width: 273px; height: 250px; object-fit: contain; }

.subpage-banner {
  width: 630px;
  height: 230px;
  overflow: hidden;
}

.subpage-banner img { width: 630px; height: 230px; object-fit: cover; }

.legacy-columns {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  width: 100%;
}

.menu-nav {
  width: 200px;
  margin: 10px 20px 10px 60px;
}

.menu-nav-top {
  height: 43px;
  background: url('/assets/legacy/nav_bg_top.png') repeat-x;
  text-align: center;
}

.menu-nav-top img { max-width: 100%; height: 43px; }

.menu-nav-list {
  padding: 12px 20px 12px 0;
  background: url('/assets/legacy/nav_bg.png') repeat;
  font-family: Georgia, serif;
  font-size: 1.02em;
  font-weight: bold;
  text-align: right;
}

.menu-nav-list a {
  display: block;
  color: #ccc;
  line-height: 1.45;
  text-decoration: none;
}

.menu-nav-list a:hover,
.menu-nav-list a:focus-visible { color: #720101; background: #ccc; }

.menu-nav-bottom {
  height: 43px;
  background: url('/assets/legacy/nav_bg_bom.png') repeat-x;
}

.legacy-panel {
  width: 650px;
  min-height: 350px;
  margin: 10px 20px 10px 0;
  padding: 15px 20px 25px;
  background: url('/assets/legacy/bg9.png') repeat;
  overflow: hidden;
}

.legacy-panel h1 { border-bottom: 2px solid #999; padding-bottom: 6px; }

.legacy-panel h2 { font-size: 1.2em; }

.legacy-panel p { color: #999; line-height: 1.75; }

.legacy-panel a { color: var(--legacy-gold); }

.content-rule { width: 100%; border-bottom: 1px solid #999; margin: -5px 0 15px; }

.menu-heading p { color: #999; margin: 0 0 15px; }

.menu-category-panel { display: none; }

.menu-category-panel.active { display: block; }

.item-list li {
  padding: 8px;
  border-bottom: 1px dashed #999;
  color: var(--legacy-gold);
  line-height: 1.55;
}

.item-list li:hover { background: #242424; }

.item-heading { display: flex; align-items: baseline; gap: 8px; }

.dish-name { flex: 1; }

.dish-price { color: #f60; white-space: nowrap; }

.spicy-level { color: #f60; font-size: 0.75em; }

.item-description { color: #999; font-size: 0.9em; }

.news-article { margin: 0 0 24px; }

.news-article h2 { margin-bottom: 5px; }

.news-article p { margin: 7px 0; }

.news-date { color: var(--legacy-gold) !important; font-size: 0.85em; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }

.gallery-filters a { color: var(--legacy-gold); text-transform: uppercase; }

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

.gallery-grid figure { margin: 0; }

.gallery-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

.gallery-grid figcaption { padding-top: 5px; color: #999; font-size: 0.8em; }

.contact-details strong { color: #eee; }

.map-frame { width: 100%; min-height: 250px; border: 0; margin-top: 8px; }

.reservation-form { display: grid; grid-template-columns: 180px 1fr; gap: 10px 12px; align-items: center; }

.reservation-form label { color: #ccc; }

.reservation-form label span { color: #f60; }

.reservation-form input,
.reservation-form textarea {
  width: 100%;
  border: 1px solid #666;
  background: #eee;
  color: #222;
  padding: 7px;
  font: inherit;
}

.reservation-form textarea { resize: vertical; }

.reservation-form button {
  grid-column: 2;
  justify-self: start;
  border: 1px solid #7e120f;
  background: var(--legacy-red);
  color: #fff;
  padding: 7px 22px;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 760px) {
  #main { margin-top: 0; }
  #menu { justify-content: flex-start; }
  #menu a { font-size: 0.85em; }
  .home-intro { display: block; }
  .home-logo, .home-slider, .home-slider > img { width: 100%; }
  .home-logo { min-height: 180px; height: 180px; }
  .home-slider, .home-slider > img { height: auto; aspect-ratio: 550 / 367; }
  .home-summary { display: block; margin: 10px 15px 0; }
  .home-summary-card { margin-bottom: 12px; }
  .subpage-header { display: block; min-height: 0; }
  .small-logo { width: 100%; height: 180px; margin: 0; }
  .small-logo img { width: 210px; height: 180px; }
  .subpage-banner, .subpage-banner img { width: 100%; height: auto; min-height: 150px; }
  .legacy-columns { display: block; }
  .menu-nav { width: auto; margin: 10px 15px; }
  .menu-nav-list { columns: 2; column-gap: 18px; padding-right: 10px; text-align: left; }
  .menu-nav-list li { break-inside: avoid; }
  .legacy-panel { width: auto; margin: 10px 15px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reservation-form { display: block; }
  .reservation-form label, .reservation-form input, .reservation-form textarea { display: block; margin-bottom: 6px; }
  .reservation-form button { display: block; margin-top: 10px; }
}