@charset "utf-8";

/* 变量定义 */
:root {
  --color-bg: #F5F0E6; /* 米白：底色 */
  --color-primary: #E8C9A8; /* 淡赭石：主色/边框 */
  --color-text: #333333; /* 淡墨：文字/线条 */
  --color-accent-blue: #A8DADC; /* 淡石青：冷食/服饰主题 */
  --color-accent-yellow: #D4A373; /* 淡藤黄：辅助色 */
  --color-accent-red: #E68A8A; /* 淡朱砂：部分小标题/强调 */

  --font-title: "KaiTi", "STKaiti", "楷体", serif;
  --font-text: "KaiTi", "STKaiti", "楷体", serif; /* 极简宋楷替代方案 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-text);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url('../images/7.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: bold;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(245, 240, 230, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--color-primary);
  transition: all 0.3s ease;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-accent-yellow);
}

/* 通用模块样式 */
.section {
  min-height: 100vh;
  padding: 80px 20px 20px; /* 留出导航栏空间 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.section-title {
  color: var(--color-accent-red);
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent-red);
    margin: 10px auto 0;
}

/* 动效 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 弹出层 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 51, 51, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-content {
  background: var(--color-bg);
  padding: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-accent-red);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg); 
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-yellow); 
}
