/* ===== 全局变量 ===== */
:root {
  --primary: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --accent: #FF8F00;
  --accent-light: #FFA726;
  --text-dark: #1A1A2E;
  --text-mid: #4A4A6A;
  --text-light: #8A8AAA;
  --bg-light: #F8FBF8;
  --bg-white: #FFFFFF;
  --border: #E0EDE0;
  --shadow: 0 4px 20px rgba(46,125,50,0.10);
  --shadow-hover: 0 8px 32px rgba(46,125,50,0.18);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; }

/* ===== 工具类 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.3);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #E65100;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,143,0,0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.badge-hot { background: #FFF3E0; color: #E65100; }
.badge-new { background: #E8F5E9; color: #2E7D32; }
.badge-member { background: #FFF8E1; color: #F57F17; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 0;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.nav-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}
.nav-logo .logo-sub {
  font-size: 11px;
  color: var(--text-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-btn-member {
  background: linear-gradient(135deg, var(--accent), #FF6D00);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}
.nav-btn-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,143,0,0.4);
}
.nav-btn-login {
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.2s;
}
.nav-btn-login:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== 英雄区 ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 40%, #FFFDE7 100%);
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76,175,80,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,143,0,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46,125,50,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.hero-title span { color: var(--primary); }
.hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.hero-card:hover { transform: translateY(-6px); }
.hero-card-cover {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.hero-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.hero-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== 统计条 ===== */
.stats-bar {
  background: var(--primary-dark);
  padding: 28px 0;
}
.stats-bar-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ===== 分类区 ===== */
.categories { padding: 80px 0 40px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.cat-card.active .cat-icon, .cat-card:hover .cat-icon {
  background: var(--primary);
}
.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  transition: background 0.25s;
}
.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.cat-count { font-size: 12px; color: var(--text-light); }

/* ===== 产品列表区 ===== */
.products-section { padding: 60px 0; }
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.products-header .left h2 { font-size: 24px; font-weight: 700; }
.products-header .left p { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== 产品卡片 ===== */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border: 1px solid var(--border);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.product-cover {
  width: 100%;
  aspect-ratio: 3/4;
  height: auto;
  object-fit: contain;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.product-member-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #FFD700, #FF8F00);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.product-info { padding: 18px; }
.product-category {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.product-meta span { display: flex; align-items: center; gap: 4px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-current {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.price-current .unit { font-size: 14px; }
.price-original {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}
.price-member {
  font-size: 12px;
  color: #F57F17;
  font-weight: 600;
}
.btn-buy {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-buy:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ===== 会员区 ===== */
.membership { padding: 80px 0; background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%); }
.membership .section-title { color: white; }
.membership .section-subtitle { color: rgba(255,255,255,0.7); }
.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 0;
}
.member-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.member-card.featured {
  background: white;
  border-color: white;
  transform: scale(1.04);
}
.member-card:hover { transform: translateY(-6px) scale(1.02); }
.member-card.featured:hover { transform: translateY(-6px) scale(1.06); }
.member-recommend {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #FF6D00);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 0 0 12px 12px;
}
.member-type {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.member-card.featured .member-type { color: var(--text-light); }
.member-name {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}
.member-card.featured .member-name { color: var(--primary-dark); }
.member-price-wrap { margin: 20px 0; }
.member-price {
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.member-card.featured .member-price { color: var(--accent); }
.member-price .unit { font-size: 20px; }
.member-period {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.member-card.featured .member-period { color: var(--text-light); }
.member-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.member-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.member-card.featured .member-feature { color: var(--text-mid); }
.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.member-card.featured .feature-check { background: var(--primary-light); color: white; }
.btn-member-buy {
  width: 100%;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 14px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.25s;
  display: block;
}
.btn-member-buy:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.member-card.featured .btn-member-buy {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.member-card.featured .btn-member-buy:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.35);
}

/* ===== 购买流程 ===== */
.how-it-works { padding: 80px 0; background: white; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 0;
  position: relative;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.step-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.step-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== 推荐手册 ===== */
.featured-section { padding: 60px 0; }

/* ===== 底部 ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { color: white; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

/* ===== 浮动购买按钮 ===== */
.float-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: linear-gradient(135deg, var(--accent), #FF6D00);
  color: white;
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(255,143,0,0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  cursor: pointer;
}
.float-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(255,143,0,0.5);
}

/* ===== 微信客服浮动按钮 ===== */
.wechat-float {
  position: fixed;
  bottom: 100px;
  right: 32px;
  z-index: 999;
  background: #07C160;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(7,193,96,0.45);
  cursor: pointer;
  transition: all 0.3s;
}
.wechat-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(7,193,96,0.55);
}
.wechat-popup {
  display: none;
  position: fixed;
  bottom: 162px;
  right: 28px;
  z-index: 1000;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 20px;
  text-align: center;
  width: 190px;
}
.wechat-popup.show { display: block; }
.wechat-popup img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 10px;
}
.wechat-popup .wechat-id {
  font-size: 13px;
  color: #333;
  font-weight: 600;
}
.wechat-popup .wechat-tip {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.wechat-popup-arrow {
  position: absolute;
  bottom: -8px;
  right: 18px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
  .wechat-float { bottom: 86px; right: 20px; width: 46px; height: 46px; font-size: 22px; }
  .wechat-popup { right: 16px; bottom: 142px; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-btn-member { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 32px; }
  .hero-image { display: none; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .member-card.featured { transform: scale(1); }
  .float-btn { bottom: 20px; right: 20px; padding: 13px 22px; font-size: 14px; }
  .section-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
}

/* ===== 通知 Toast ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  background: white;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid var(--primary);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #E53935; }
.toast.success { border-left-color: var(--primary); }

/* ===== 加载动画 ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 36px;
  transform: scale(0.9);
  transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.form-group { margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; display: block; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus { border-color: var(--primary); }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  transition: all 0.25s;
}
.form-submit:hover { background: var(--primary-dark); }
.modal-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
}
.modal-switch a { color: var(--primary); font-weight: 600; cursor: pointer; }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-mid);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--border); }
.modal { position: relative; }
