:root {
  --green: #3f8f2f;
  --green-dark: #17652b;
  --green-soft: #eaf5e5;
  --lime: #89c15a;
  --earth: #d8ded1;
  --text: #333;
  --muted: #6f776b;
  --line: #d8e3d2;
  --panel: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #d9ded3;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #d96c00;
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  max-width: 980px;
  margin: 0 auto;
  background: var(--earth);
}

.site-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(237, 248, 230, 0.88)),
    linear-gradient(135deg, #f8faf7, #dcebd4);
}

.logo-area {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-mark {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border: 4px solid #cce6bf;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), var(--lime));
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.logo strong {
  display: block;
  color: var(--green-dark);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  letter-spacing: 0;
}

.logo small {
  display: block;
  color: var(--muted);
}

.top-contact {
  min-width: 12rem;
  border: 1px solid #c9ddc0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.top-contact span,
.top-contact strong {
  display: block;
}

.top-contact strong {
  color: #d84d1f;
  font-size: 1.35rem;
}

.main-nav {
  display: flex;
  min-height: 54px;
  align-items: stretch;
  background: linear-gradient(180deg, #69ae3d, #347f25);
}

.main-nav a {
  display: grid;
  min-width: 100px;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(180deg, #d4f4bc, #8dd35f);
  color: #06380e;
  text-decoration: none;
}

.banner {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  background: #7eb05b;
}

.banner img {
  display: block;
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.banner-copy {
  position: absolute;
  inset: 10px auto 10px 0;
  display: flex;
  width: min(62%, 560px);
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(10, 57, 21, 0.82), rgba(10, 57, 21, 0));
  color: #fff;
}

.banner-copy p {
  margin: 0 0 0.3rem;
  color: #d8ffc8;
  font-weight: 700;
}

.banner-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.banner-copy span {
  max-width: 30rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 263px minmax(0, 1fr);
  gap: 10px;
  padding: 20px 0 0;
  background: var(--earth);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-column {
  display: grid;
  gap: 10px;
}

.side-block,
.panel {
  overflow: hidden;
  background: var(--panel);
}

.side-block h2,
.panel h2 {
  margin: 0;
  color: var(--green-dark);
  font-weight: 400;
  font-size: 14px;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.side-block h2 {
  height: 37px;
  padding-left: 44px;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #d8ffc8;
  line-height: 37px;
}

.panel h2 {
  height: 48px;
  padding-left: 30px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f4fbef, #fff);
  line-height: 48px;
}

.category-menu,
.area-list,
.news-list {
  margin: 0;
  padding: 10px 14px;
  list-style: none;
}

.category-menu li,
.area-list li {
  border-bottom: 1px dashed #c7d4c0;
}

.quick-quote {
  display: flex;
  min-height: 230px;
  flex: 1;
  flex-direction: column;
}

.quick-quote-card {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 0.65rem;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(23, 101, 43, 0.92), rgba(63, 143, 47, 0.88)),
    var(--green);
  color: #fff;
}

.quick-quote-card strong {
  font-size: 1.2rem;
}

.quick-quote-card p,
.quick-quote-card small {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.quick-quote-card::after {
  content: "免费上门 · 当面估价 · 快速结算 · 环保处理";
  display: block;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.6;
}

.quick-call {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-align: center;
}

.quick-call:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.24);
}

.quick-call b {
  font-size: 1.25rem;
  line-height: 1.35;
}

.category-button {
  width: 100%;
  border: 0;
  padding: 0.6rem 0.2rem 0.6rem 1.1rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.category-button::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--green);
  font-weight: 900;
}

.category-button:hover,
.category-button.active {
  color: var(--green-dark);
  font-weight: 700;
}

.contact-card {
  padding: 12px 15px;
}

.contact-card p {
  margin: 0 0 0.25rem;
}

.qr-card {
  margin: 0.8rem 0 0;
  border-top: 1px dashed #c7d4c0;
  padding-top: 0.8rem;
  text-align: center;
}

.qr-card img {
  width: min(100%, 190px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.qr-card figcaption {
  color: var(--muted);
}

.intro-text {
  padding: 12px 16px 16px;
  font-size: 14px;
  line-height: 2.15;
}

.intro-text p {
  margin: 0 0 0.7rem;
  text-indent: 2em;
}

.intro-text .slogan {
  color: var(--green-dark);
  font-weight: 700;
}

.recycle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.recycle-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  background: linear-gradient(180deg, #fff, #f7fbf4);
}

.recycle-card span {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.project-image {
  width: 100%;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.recycle-card h3 {
  margin: 0.8rem 0 0.3rem;
  color: var(--green-dark);
  font-size: 1rem;
}

.recycle-card p {
  margin: 0;
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  background: #fbfdf9;
  counter-increment: step;
}

.process-list li::before {
  content: counter(step);
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  color: var(--muted);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed #c7d4c0;
  padding: 0.45rem 0;
}

.news-list .article-item {
  align-items: flex-start;
}

.article-item img {
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
}

.article-item span {
  display: grid;
  flex: 1;
}

.article-item em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.news-list time {
  flex: 0 0 auto;
  color: var(--muted);
}

.article-more {
  margin: 0;
  padding: 0 14px 14px;
  text-align: right;
}

.article-more a {
  color: var(--green-dark);
  font-weight: 700;
}

.message-box {
  border-left: 10px solid var(--earth);
  background: #fff;
}

.message-box form {
  display: grid;
  gap: 0.6rem;
  padding: 14px;
}

.message-box input,
.message-box textarea {
  width: 100%;
  border: 1px solid #ccd8c8;
  border-radius: 4px;
  padding: 0.65rem;
  background: #fff;
}

.message-box textarea {
  min-height: 90px;
  resize: vertical;
}

.message-box button {
  border: 0;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

#formTip {
  min-height: 1.4rem;
  margin: 0;
  color: var(--green-dark);
}

.site-footer {
  padding: 16px;
  background: #7eb05b;
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 0.5rem;
  z-index: 20;
}

.floating-contact a,
.floating-contact button {
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  text-align: center;
}

.floating-contact .call-now {
  display: flex;
  min-width: 178px;
  align-items: center;
  gap: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: linear-gradient(180deg, #ff7a1a, #d84d1f);
  color: #fff;
  text-align: left;
  text-decoration: none;
  animation: call-pulse 1.8s ease-in-out infinite;
}

.call-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.15rem;
}

.call-now strong,
.call-now small {
  display: block;
  line-height: 1.2;
}

.call-now strong {
  font-size: 0.95rem;
}

.call-now small {
  margin-top: 0.12rem;
  font-size: 0.9rem;
  opacity: 0.92;
}

@keyframes call-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(216, 77, 31, 0.28);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(216, 77, 31, 0.42);
  }
}

.admin-page {
  min-height: 100vh;
  background: #eef4ea;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.admin-header h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: 24px;
}

.admin-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-button,
.admin-secondary,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.admin-button {
  background: var(--green);
  color: #fff;
}

.admin-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
}

.danger-button {
  background: #c94e32;
  color: #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.admin-panel.wide {
  grid-column: 1 / -1;
}

.admin-panel h2,
.login-panel h1 {
  margin: 0 0 12px;
  color: var(--green-dark);
}

.admin-form {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-field {
  display: grid;
  gap: 4px;
}

.admin-field label {
  color: var(--muted);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid #ccd8c8;
  border-radius: 6px;
  padding: 0.65rem;
}

.admin-field textarea {
  min-height: 110px;
  resize: vertical;
}

.preview-image {
  max-width: 180px;
  max-height: 140px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfdf9;
}

.admin-list-item strong,
.admin-list-item span {
  display: block;
}

.admin-list-item span {
  color: var(--muted);
}

.login-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.login-panel {
  width: min(100%, 420px);
}

.login-panel form {
  display: grid;
  gap: 10px;
}

.admin-tip {
  min-height: 1.4rem;
  color: var(--green-dark);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 10px;
  padding: 20px 0 0;
  background: var(--earth);
}

.article-page,
.article-sidebar,
.article-index-page {
  background: #fff;
}

.article-page {
  padding: 24px 28px;
}

.article-breadcrumb {
  margin-bottom: 12px;
  color: var(--muted);
}

.article-page h1 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.article-meta,
.article-summary {
  color: var(--muted);
}

.article-summary {
  margin: 14px 0 18px;
  border-left: 4px solid var(--green);
  padding: 10px 14px;
  background: #f5fbf1;
}

.article-page p {
  margin: 0 0 1rem;
  font-size: 15px;
  line-height: 2;
  text-align: justify;
  text-indent: 2em;
}

.article-cta {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #f4fbef, #fff);
}

.article-cta strong {
  color: var(--green-dark);
  font-size: 1.1rem;
}

.article-cta p {
  text-indent: 0;
}

.article-cta a {
  display: inline-flex;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  background: var(--green);
  color: #fff;
}

.article-sidebar {
  padding: 16px;
}

.article-sidebar h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
}

.article-sidebar a {
  display: block;
  border-bottom: 1px dashed #c7d4c0;
  padding: 0.55rem 0;
}

.article-index-page {
  padding: 20px;
}

.article-index-hero {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #f4fbef, #fff);
}

.article-index-hero p,
.article-index-hero h1,
.article-index-hero span {
  margin: 0;
}

.article-index-hero p {
  color: var(--green);
  font-weight: 700;
}

.article-index-hero h1 {
  color: var(--green-dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0;
}

.article-index-hero span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.article-index-group {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.article-index-group h2 {
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, #f4fbef, #fff);
  color: var(--green-dark);
  font-size: 1rem;
}

.article-index-group ul {
  margin: 0;
  padding: 8px 14px;
  list-style: none;
}

.article-index-group li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed #c7d4c0;
  padding: 0.55rem 0;
}

.article-index-group li:last-child {
  border-bottom: 0;
}

.article-index-group span {
  flex: 0 0 auto;
  color: var(--muted);
}

@media (max-width: 820px) {
  body {
    padding-bottom: 84px;
  }

  .page-shell {
    max-width: none;
  }

  .logo-area,
  .main-nav,
  .content-layout,
  .two-columns,
  .article-layout,
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .article-page,
  .article-index-page {
    padding: 16px;
  }

  .article-index-group li {
    display: grid;
    gap: 0.2rem;
  }

  .logo-area,
  .main-nav {
    display: grid;
  }

  .main-nav a {
    min-height: 44px;
  }

  .top-contact {
    text-align: left;
  }

  .content-layout {
    padding: 10px;
  }

  .banner img {
    height: 300px;
  }

  .banner-copy {
    inset: 10px 0;
    width: 100%;
    background: rgba(10, 57, 21, 0.74);
  }

  .recycle-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .message-box {
    border-left: 0;
    border-top: 10px solid var(--earth);
  }

  .admin-header,
  .admin-list-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .floating-contact {
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  }

  .floating-contact .call-now {
    min-width: 0;
    border-radius: 8px 0 0 8px;
    animation: none;
  }

  .floating-contact button {
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    white-space: nowrap;
  }
}
