/*
 * 作者: Schrobit
 * 邮箱: admin@tjh666.cn
 * 描述: 瓦窑头香榧鸡场 网站样式（已优化图片显示效果）
 */

:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --secondary: #95d5b2;
  --accent: #ffd166;
  --bg: #f8f9fa;
  --text: #2b2d42;
  --muted: #6c757d;
  --white: #ffffff;
  --dark: #2c3e50;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Noto Sans SC', system-ui, -apple-system, Segoe UI, Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }

.container { width: min(1200px, 90%); margin: 0 auto; }

/* 导航栏 */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid #eee; }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--primary-dark); }
.nav-logo i { color: var(--accent); }
.nav-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--text); font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: 0.2s ease; }
.nav-menu a:hover { background: var(--secondary); color: var(--primary-dark); }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text); display: block; }

/* 首页横幅（Hero） */
.hero { background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/大广角.jpg') center/cover no-repeat; color: #fff; min-height: 68vh; display: flex; align-items: center; padding: 80px 0; }
.hero .container { width: min(1200px, 92%); margin: 0 auto; }
.hero .hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-content h1 { font-size: clamp(32px, 6vw, 52px); margin: 0 0 14px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); font-weight: 800; }
.hero-subtitle { font-size: 20px; color: #95d5b2; margin: 8px 0 20px; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); font-weight: 600; }
.hero-description { color: #e9f7ef; font-size: 17px; line-height: 1.7; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.hero-image { display: none; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: 0.2s ease; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--accent); color: #7a4c00; }
.btn-secondary:hover { filter: brightness(0.95); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* 通用区块 */
section { padding: 70px 0; }
h2 { font-size: 28px; margin: 0 0 26px; color: var(--primary-dark); }

/* 广角大图 */
.wide-banner { padding: 30px 0; background: #fff; }
.wide-photo { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 10px 24px rgba(0,0,0,0.06); }

/* 关于我们 */
.about-content { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: start; }
.about-text h3 { margin: 0 0 10px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.feature { background: #fff; border: 1px solid #eee; padding: 16px; border-radius: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.feature i { color: var(--primary); font-size: 22px; }
.feature h4 { margin: 10px 0 6px; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.stat { background: linear-gradient(135deg, var(--secondary), #e6fff2); padding: 18px; border-radius: 14px; text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary-dark); }
.stat-label { display: block; color: var(--muted); margin-top: 4px; }

/* 图片优化：统一样式 */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 6px; }
.photo-strip img,
.env-photo-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f7f9fc;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-strip img:hover,
.env-photo-strip img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* 响应式：中屏两列，小屏一列 */
@media (max-width: 992px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-strip { grid-template-columns: 1fr; } }

/* 产品展示 */
.products { background: linear-gradient(135deg, #e7f5f3 0%, #f0f8ff 100%); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: 14px; border: 1px solid #eaeaea; box-shadow: 0 8px 20px rgba(0,0,0,0.06); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.product-image { background: #f7f9fc; display: flex; align-items: center; justify-content: center; height: auto; aspect-ratio: 4 / 3; overflow: hidden; }
.product-photo { width: 100%; height: 100%; object-fit: cover; background: #f7f9fc; display: block; transition: transform 0.2s ease; }
.product-photo:hover { transform: scale(1.05); }
.product-info { padding: 20px; }
.product-info h3 { font-size: 20px; margin: 0 0 8px; color: var(--dark); }
.product-info p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.product-price { font-weight: 800; color: var(--primary); margin-top: 10px; font-size: 16px; }

/* 养殖环境 */
.environment { background: linear-gradient(135deg, #f7f9fc 0%, #e8f3f7 100%); }
.environment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.environment-card { background: #fff; border-radius: 14px; border: 1px solid #dcdcdc; box-shadow: 0 8px 20px rgba(0,0,0,0.06); padding: 22px; text-align: center; transition: transform 0.2s ease; }
.environment-card:hover { transform: translateY(-3px); }
.environment-card .icon { font-size: 32px; margin-bottom: 12px; }
.environment-card h3 { margin: 0 0 8px; color: var(--dark); }
.environment-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* 环境卡片 */
.env-card { background: #fff; border: 1px solid #eee; padding: 18px; border-radius: 12px; text-align: center; transition: box-shadow 0.2s ease; }
.env-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.env-icon { font-size: 28px; color: var(--primary); margin-bottom: 8px; }

/* 环境实拍图片 */
.env-photo-container { margin-top: 24px; text-align: center; }
.env-photo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }

/* 联系我们 */
.contact { background: linear-gradient(135deg, #e7f5f3 0%, #f0f8ff 100%); }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-left { background: #fff; border-radius: 14px; border: 1px solid #dcdcdc; box-shadow: 0 8px 20px rgba(0,0,0,0.06); padding: 26px; }
.contact-right { background: #fff; border-radius: 14px; border: 1px solid #dcdcdc; box-shadow: 0 8px 20px rgba(0,0,0,0.06); padding: 26px; }
.contact-actions { display: flex; gap: 14px; margin-top: 20px; }
.contact-actions .btn { flex: 1; text-align: center; }
.wechat-section { border-top: 1px solid #e7e7e7; padding-top: 18px; margin-top: 18px; }
.qr-code-container { margin-top: 20px; text-align: center; }
.qr-code-container img { max-width: 300px; border-radius: 8px; border: 1px solid #ddd; }
.qr-code-container p { font-size: 14px; color: var(--muted); margin-top: 8px; }

.contact-info { background: #fff; border: 1px solid #eee; padding: 18px; border-radius: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 8px 0; }
.contact-item a { color: inherit; text-decoration: underline; }
.social-links a { color: var(--primary); font-size: 18px; margin-right: 10px; text-decoration: none; }
.contact-form { background: #fff; border: 1px solid #eee; padding: 18px; border-radius: 12px; }
.form-group { margin-bottom: 12px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,106,79,0.12); }

/* 页脚 */
.footer { background: #0b1820; color: #dfe7eb; }
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; padding: 26px 0; }
.footer h3, .footer h4 { color: #e9f7ef; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: #a3d5bf; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 12px 0; text-align: center; font-size: 14px; color: #9fb3bf; }

/* 响应式设计 */
@media (max-width: 980px) {
  .hero { min-height: 70vh; padding: 90px 0; }
  .about-content { grid-template-columns: 1fr; }
  .environment-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-content { grid-template-columns: 1fr; }
  .env-photo-strip { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: 56vh; padding: 64px 0 56px; }
  .hero .hero-buttons { gap: 12px; }
  .contact-actions { gap: 10px; }
  .environment-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 60vh; padding: 60px 0; }
  .hero-content h1 { font-size: clamp(26px, 8vw, 40px); }
  .hero-subtitle { font-size: 16px; }
  .hero-description { font-size: 15px; }
  .nav-menu { display: none; position: absolute; top: 58px; right: 5%; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 10px; width: 56vw; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .nav-menu.show { display: flex; }
  .hamburger { display: flex; }
  .features { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .environment-grid, .products-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
}