/* 上海食品销毁中心 - 绿色环保主题 */
:root {
  --primary: #2d7a4f;
  --primary-dark: #1e5a38;
  --primary-light: #4caf50;
  --accent: #8bc34a;
  --bg: #f5f9f6;
  --bg-white: #ffffff;
  --text: #2c3e2d;
  --text-light: #5a6b5c;
  --border: #d4e5d8;
  --shadow: 0 2px 12px rgba(45,122,79,0.1);
  --shadow-hover: 0 6px 24px rgba(45,122,79,0.18);
  --radius: 8px;
}

* { 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;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.top-bar {
  background: var(--primary-dark);
  color: #c8e6c9;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #a5d6a7; }

header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
nav a:hover, nav a.active {
  background: var(--primary);
  color: #fff;
}
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 18px; opacity: 0.92; margin-bottom: 28px; max-width: 640px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { background: #e8f5e9; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-green { background: var(--primary); color: #fff; }
.btn-green:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* 数据条 */
.stats-bar {
  background: var(--bg-white);
  padding: 36px 0;
  box-shadow: var(--shadow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-item .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* 通用区块 */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-white); }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 { font-size: 30px; color: var(--primary-dark); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 3px solid var(--primary-light);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 15px; }

/* 流程时间线 */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 4px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 6px; }
.timeline-item p { color: var(--text-light); font-size: 15px; }

/* 两栏布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* 价格因素列表 */
.factor-list { list-style: none; }
.factor-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}
.factor-list li:last-child { border-bottom: none; }
.factor-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.factor-content h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 4px; }
.factor-content p { font-size: 14px; color: var(--text-light); }

/* FAQ */
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.faq-question::after { content: '+'; font-size: 22px; color: var(--primary); transition: transform 0.2s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--text-light);
  font-size: 15px;
}
.faq-item.open .faq-answer { padding: 0 24px 18px; max-height: 500px; }

/* CTA区块 */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-section h2 { font-size: 28px; margin-bottom: 12px; }
.cta-section p { opacity: 0.9; margin-bottom: 24px; font-size: 17px; }
.cta-phone { font-size: 32px; font-weight: 700; margin: 16px 0; letter-spacing: 1px; }

/* 页脚 */
footer {
  background: #1a3a25;
  color: #a5c4ad;
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a5c4ad; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2d5a3d;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #7a9a82;
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-white);
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* 页面标题区 */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 50px 0;
}
.page-header h1 { font-size: 32px; margin-bottom: 10px; }
.page-header p { opacity: 0.9; font-size: 17px; max-width: 700px; }

/* 内容页 */
.content-page { background: var(--bg-white); padding: 40px 0; }
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}
.article-content h2 {
  font-size: 24px;
  color: var(--primary-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.article-content h3 { font-size: 19px; color: var(--primary-dark); margin: 24px 0 10px; }
.article-content p { margin-bottom: 14px; color: var(--text); }
.article-content ul, .article-content ol { margin: 12px 0 14px 24px; }
.article-content li { margin-bottom: 6px; color: var(--text); }
.article-content img { margin: 20px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-content strong { color: var(--primary-dark); }

/* 侧边栏 */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}
.sidebar-box h4 { color: var(--primary-dark); margin-bottom: 12px; font-size: 16px; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { color: var(--text-light); }
.sidebar-box a:hover { color: var(--primary); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sidebar-cta h4 { color: #fff; margin-bottom: 8px; }
.sidebar-cta .phone { font-size: 22px; font-weight: 700; margin: 10px 0; }
.sidebar-cta p { font-size: 13px; opacity: 0.85; }

/* 资质展示 */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.qual-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--primary);
}
.qual-card h4 { color: var(--primary-dark); margin-bottom: 8px; font-size: 17px; }
.qual-card p { font-size: 14px; color: var(--text-light); }
.qual-card .source { font-size: 12px; color: var(--primary); margin-top: 8px; }

/* 联系表单 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-info h4 { color: var(--primary-dark); margin-bottom: 4px; font-size: 16px; }
.contact-info p { color: var(--text-light); font-size: 14px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,122,79,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* 服务区域标签 */
.region-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.region-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* 响应式 */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 10px; box-shadow: var(--shadow); }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 24px; }
}

/* 图片占位（绿色主题渐变+图标） */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.img-placeholder::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.img-placeholder .img-icon { font-size: 56px; margin-bottom: 12px; position: relative; z-index: 1; }
.img-placeholder .img-text { font-size: 15px; opacity: 0.9; position: relative; z-index: 1; font-weight: 500; }
.img-placeholder.gradient-1 { background: linear-gradient(135deg, #2d7a4f, #4caf50, #8bc34a); }
.img-placeholder.gradient-2 { background: linear-gradient(135deg, #1e5a38, #2d7a4f, #66bb6a); }
.img-placeholder.gradient-3 { background: linear-gradient(135deg, #33691e, #558b2f, #8bc34a); }
.img-placeholder.gradient-4 { background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047); }
.img-placeholder.gradient-5 { background: linear-gradient(135deg, #2e7d32, #43a047, #7cb342); }

/* 微信悬浮窗 */
.wechat-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wechat-float-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(7,193,96,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  color: #fff;
}
.wechat-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(7,193,96,0.5);
}
.wechat-float-panel {
  display: none !important;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  width: 180px;
  margin-bottom: 8px;
}
.wechat-float-panel.show { display: block !important; }
.wechat-float-panel img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}
.wechat-float-panel p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}
.wechat-float-panel .wechat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

/* 手机端隐藏微信悬浮窗（电脑端显示） */
@media (max-width: 768px) {
  .wechat-float { display: none; }
}

/* 手机端底部固定联系栏 */
.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  padding: 10px 16px;
  z-index: 9998;
  gap: 10px;
}
@media (max-width: 768px) {
  .mobile-contact-bar { display: flex; }
  body { padding-bottom: 70px; }
}
.mobile-contact-bar a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-contact-bar .call-btn {
  background: var(--primary);
  color: #fff;
}
.mobile-contact-bar .wechat-btn {
  background: #07c160;
  color: #fff;
}
