/*
Theme Name: CDL7625 Business
Theme URI: http://www.cdl7625.com
Author: 诚得利物资回收
Description: 诚得利物资回收 WordPress 迁移主题，面向再生资源回收与工厂废料回收业务。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cdl7625
*/

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #ea580c;
  --text: #1f2937;
  --muted: #64748b;
  --line: #dbe4e8;
  --soft: #f3f7f7;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: #f8fafc;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.75;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #134e4a;
  color: #d1fae5;
  font-size: 14px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.topbar strong { color: #fff; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #0f172a;
}
.brand-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.main-navigation a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  border-radius: 6px;
  font-weight: 600;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--primary);
  color: #fff;
}

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .96), rgba(19, 78, 74, .82)),
    url("images/hero-recycling.svg") center/cover no-repeat;
  padding: 76px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.18;
}
.hero p { margin: 0 0 24px; font-size: 18px; color: #e7fffa; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.button.secondary { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); }
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.hero-card strong { display: block; font-size: 24px; margin-bottom: 8px; }

.section { padding: 58px 0; }
.section.alt { background: var(--soft); }
.section-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.25;
}
.section-desc { margin: 0 0 28px; color: var(--muted); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.post-card img { width: 100%; height: 180px; object-fit: cover; display: block; background: #e2e8f0; }
.post-card-body { padding: 18px; }
.post-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.post-meta { color: var(--muted); font-size: 13px; }

.content-area {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px;
  margin: 42px auto;
}
.entry-title { margin-top: 0; font-size: 32px; line-height: 1.3; }
.entry-content img { margin: 12px auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 8px; }

.archive-list { display: grid; gap: 18px; }
.archive-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.archive-item img { width: 220px; height: 140px; object-fit: cover; border-radius: 6px; background: #e2e8f0; }
.archive-item h2 { margin: 0 0 8px; font-size: 21px; }
.pagination { margin: 28px 0; text-align: center; }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: #fff;
  background: #134e4a;
  border-radius: 12px;
}
.contact-panel h2 { margin-top: 0; }
.contact-phone { font-size: 30px; font-weight: 800; color: #fdba74; }

.site-footer {
  margin-top: 50px;
  color: #cbd5e1;
  background: #0f172a;
}
.footer-inner { padding: 30px 0; }
.footer-inner p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero-grid, .contact-panel { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .archive-item { grid-template-columns: 1fr; }
  .archive-item img { width: 100%; height: 200px; }
}
@media (max-width: 640px) {
  .topbar .container, .header-inner { align-items: flex-start; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0; }
  .content-area { padding: 22px; }
}
