/* 全局样式 */
:root {
  --gold: #C9A061;
  --gold-light: #E8D5A8;
  --brown: #5C4033;
  --brown-light: #8B6914;
  --cream: #FDF8F0;
  --rose: #E8B4B8;
  --rose-dark: #C48B8F;
  --red: #B83636;
  --red-dark: #8B1A1A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253, 248, 240, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-size: 0.8rem;
  transition: color 0.3s;
  position: relative;
  padding: 0.2rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--brown);
}

/* 移动端全屏菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.98);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.6rem 1rem;
  transition: color 0.3s;
  text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--gold); }

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* 页面通用 */
.page {
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: 70px;
}

.page-header {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: linear-gradient(180deg, #2C1810 0%, #4A2C20 100%);
  color: white;
}

.page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.page-subtitle {
  color: var(--gold-light);
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* 装饰元素 */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.ornament-line {
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.ornament-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(184, 54, 54, 0.3);
}

/* 卡片 */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 6px 25px rgba(92, 64, 51, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(92, 64, 51, 0.12);
}

/* 底部导航 */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
  z-index: 100;
}

.footer-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #999;
  font-size: 0.6rem;
  transition: color 0.3s;
  padding: 0.3rem 0.5rem;
}

.footer-nav a span {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}

.footer-nav a:hover,
.footer-nav a.active { color: var(--red); }

/* 响应式 - 平板 */
@media (max-width: 900px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.75rem; }
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .footer-nav { display: flex; }
  .container { padding: 1rem 0.8rem; }
  .page-title { font-size: 1.5rem; }
  .page { padding-bottom: 60px; }
}

/* 移动端小屏幕 */
@media (max-width: 480px) {
  .navbar { padding: 0.6rem 0.8rem; }
  .nav-brand { font-size: 0.9rem; }
  .footer-nav a span { font-size: 1rem; }
  .footer-nav a { font-size: 0.55rem; }
}

/* 触摸优化 */
@media (hover: none) {
  .btn:active {
    transform: scale(0.97);
  }
}
