/* css/main.css — 全局样式 */

:root {
  --color-bg-primary: #0D0D0D;
  --color-bg-secondary: #1A1A1A;
  --color-bg-card: #2A2A2A;
  --color-gold: #C9A962;
  --color-copper: #B87333;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #E0E0E0;
  --color-text-muted: #999999;
  --font-heading-en: 'Playfair Display', serif;
  --font-body-en: 'Lato', sans-serif;
  --font-th: 'Prompt', 'Noto Sans Thai', sans-serif;
  --font-zh: 'PingFang SC', 'Noto Sans SC', sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body-en);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.lang-th {
  font-family: var(--font-th);
}

body.lang-zh {
  font-family: var(--font-zh);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-copper);
}

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

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

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading-en);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-gold);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 15px auto 0;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 45px;
  width: auto;
  max-width: 180px;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.navbar-menu a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--color-gold);
}

/* 语言切换器 */
.lang-switcher {
  display: flex;
  gap: 10px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(201, 169, 98, 0.3);
}

.lang-switcher button {
  background: none;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  transition: var(--transition);
}

.lang-switcher button.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.lang-switcher button:hover {
  color: var(--color-gold);
}

/* 汉堡菜单（移动端） */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition);
}

/* 页脚 */
.footer {
  background: var(--color-bg-secondary);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  font-family: var(--font-heading-en);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer p,
.footer li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* 英雄区域 — 照片轮播 */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: var(--color-bg-primary) !important;
}

.hero-slide.active {
  opacity: 1;
}

/* 轮播指示器 */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-indicator.active {
  background: var(--color-gold);
}

.hero-indicator:hover {
  background: rgba(201, 169, 98, 0.5);
}

/* 轮播箭头 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: var(--color-gold);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  border-radius: 50%;
}

.hero-arrow:hover {
  background: rgba(201, 169, 98, 0.3);
  border-color: var(--color-gold);
}

.hero-arrow-prev {
  left: 20px;
}

.hero-arrow-next {
  right: 20px;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-heading-en);
  font-size: 3.5rem;
  color: var(--color-gold);
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.6), 0 0 60px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.4);
}

.hero-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-gold);
  color: #1A1A1A;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--color-copper);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

/* 动画效果 */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-gold);
  color: var(--color-bg-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid var(--color-gold);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-bg-primary);
}
