/* 花厢倪家院子官网样式 */

/* ========== 基础变量 ========== */
:root {
  --primary: #2d5016;
  --secondary: #8fbc8f;
  --accent: #d4a574;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f9f9f9;
  --border: #e0e0e0;
  --highlight: #fff3cd;
}

/* ========== 重置样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text);
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 导航栏 ========== */
.navbar {
  background: var(--bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: var(--text);
  font-size: 15px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ========== 英雄区 ========== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-content h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  border-radius: 5px;
  font-weight: 500;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* ========== 关键信息区 ========== */
.key-info {
  padding: 60px 20px;
  background: var(--bg-light);
}

.key-info h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--primary);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

.info-card ul {
  margin-bottom: 20px;
}

.info-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.info-card li:last-child {
  border-bottom: none;
}

.info-card .highlight {
  background: var(--highlight);
  padding: 8px;
  margin: 5px 0;
  border-radius: 3px;
  font-weight: 500;
}

.info-card .phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.info-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 500;
}

/* ========== FAQ区 ========== */
.faq {
  padding: 60px 20px;
}

.faq h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--primary);
}

.faq-item {
  background: white;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-light);
  transition: background 0.3s;
}

.faq-item summary:hover {
  background: #f0f0f0;
}

.faq-item p {
  padding: 20px;
  line-height: 1.8;
}

.faq-item a {
  color: var(--primary);
  font-weight: 500;
}

/* ========== 页脚 ========== */
.footer {
  background: #2a2a2a;
  color: white;
  padding: 40px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer h4 {
  margin-bottom: 15px;
  color: var(--accent);
}

.footer p, .footer li {
  margin-bottom: 8px;
  color: #ccc;
  font-size: 14px;
}

.footer a {
  color: #ccc;
}

.footer a:hover {
  color: white;
}

.footer .note {
  background: rgba(255, 243, 205, 0.2);
  padding: 8px;
  border-radius: 3px;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 13px;
}

/* ========== 移动端固定操作条 ========== */
.quick-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-around;
  padding: 10px;
  z-index: 99;
}

.quick-bar a {
  font-size: 24px;
  padding: 10px 20px;
  transition: transform 0.2s;
}

.quick-bar a:hover {
  transform: scale(1.2);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: 70px; /* 为固定底部条留出空间 */
  }
}

@media (min-width: 769px) {
  .quick-bar {
    display: none; /* 桌面端隐藏 */
  }
}

/* ========== 工具类 ========== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}
