/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  transition: all 0.3s ease;
}
/* 基础规范 */
:root {
  --main: #A8E6CF;
  --sub1: #FFD93D;
  --sub2: #FFB5E8;
  --bg: #F8FFFB;
  --text-main: #4A4A4A;
  --text-sub: #888888;
  --warn: #FF6B6B;
  --success: #6BCB77;
  --shadow-normal: 0 2px 8px rgba(168, 230, 207, 0.3);
  --shadow-hover: 0 8px 16px rgba(168, 230, 207, 0.5);
  --radius-card: 8px;
  --radius-modal: 12px;
}
body {
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
/* 网格系统 */
.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 32px;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
/* 字体规范 */
.title-h1 { font-size: 40px; font-weight: 600; text-align: center; }
.title-h2 { font-size: 32px; font-weight: 600; text-align: center; }
.title-h3 { font-size: 28px; font-weight: 600; }
.text-main { font-size: 18px; font-weight: 400; }
.text-sub { font-size: 16px; font-weight: 400; color: var(--text-sub); }
.hand-font { font-family: "Ma Shan Zheng", cursive; }
/* 按钮规范 */
.btn {
  width: 120px;
  height: 40px;
  border-radius: var(--radius-card);
  border: none;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-main { background: var(--main); color: var(--text-main); }
.btn-sub { background: #fff; border: 1px solid var(--main); color: var(--text-main); }
.btn:hover { background: var(--sub1); }
.btn:active { transform: scale(0.95); }
/* 卡片规范 */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-normal);
  border: 1px solid rgba(168, 230, 207, 0.5);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.card:active { transform: scale(0.98); }
/* 分隔线 */
.divider {
  width: 200px;
  height: 2px;
  background: var(--main);
  margin: 16px auto 40px;
  border-radius: 1px;
}
/* 导航栏 */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(168, 230, 207, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 999;
}
.nav.scroll {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  font-family: "Ma Shan Zheng", cursive;
}
.nav-list {
  display: flex;
  gap: 32px;
}
.nav-item {
  font-size: 18px;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
}
.nav-item::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--main);
  transition: 0.3s;
}
.nav-item:hover::after { width: 100%; }
.nav-item.active::after { width: 100%; }
/* 汉堡菜单（移动端） */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -200px;
  width: 200px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-hover);
  padding: 80px 20px;
  z-index: 998;
}
.mobile-menu.show { right: 0; }
/* 底部 */
.footer {
  height: 60px;
  background: rgba(168, 230, 207, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 16px;
  margin-top: 60px;
}
/* 弹窗 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(74,74,74,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.show { display: flex; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-modal);
  box-shadow: 0 8px 24px rgba(168,230,207,0.4);
  padding: 24px;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-sub);
}
/* 表单 */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 40px;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-card);
  padding: 0 12px;
  font-size: 16px;
}
.form-textarea {
  height: 100px;
  padding: 12px;
  resize: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border: 2px solid var(--main);
  outline: none;
}
.form-error {
  color: var(--warn);
  font-size: 14px;
  margin-top: 4px;
  display: none;
}
/* 提示框 */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius-card);
  color: #fff;
  font-size: 16px;
  z-index: 1001;
  opacity: 0;
}
.toast.success { background: var(--success); }
.toast.warn { background: var(--warn); }
.toast.show { opacity: 1; }
/* 花瓣飘落（PC端） */
.petal {
  position: fixed;
  width: 5-10px;
  height: 5-10px;
  background: var(--sub2);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  animation: fall 10s linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-100px) rotate(0deg); }
  100% { transform: translateY(100vh) rotate(360deg); }
}
/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav { height: 60px; padding: 0 16px; }
  .nav-list { display: none; }
  .hamburger { display: block; }
  .grid-12 { grid-template-columns: repeat(2, 1fr); }
  .petal { display: none; }
}
@media (max-width: 375px) {
  .grid-12 { grid-template-columns: 1fr; }
}