/* 徐州水盾瓷砖维修 - 纯静态站样式 | xuzhoucizhuan.com */
:root {
  --color-bg: #f6f8fa;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-muted: #5c6b7a;
  --color-primary: #0d6e7c;
  --color-primary-dark: #095a66;
  --color-accent: #c45c26;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 12px;
  padding: 0 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  white-space: nowrap;
  text-decoration: none;
  margin-left: -4px;
}
.logo::before {
  content: "";
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  flex-shrink: 0;
  background: url("../images/logo.svg") no-repeat center / contain;
}
.logo:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.logo span {
  color: var(--color-primary);
}

.logo img {
  max-height: 44px;
  height: auto;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-text);
  margin: 0 auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  padding: 8px 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

@media (max-width: 400px) {
  .logo {
    font-size: 0.92rem;
    gap: 0.45rem;
  }
  .logo::before {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid #e8ecf0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav.is-open {
    max-height: 480px;
  }
  .site-nav ul {
    flex-direction: column;
    padding: 16px 20px 24px;
    align-items: stretch;
  }
  .site-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
  }
  .nav-cta {
    text-align: center;
    margin-top: 8px;
    border: none;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a4a54 0%, #0d6e7c 45%, #128a9e 100%);
  color: #fff;
  padding: 48px 0 56px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn-primary:hover {
  background: #eef8fa;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--color-text);
}

.section-desc {
  margin: 0 0 28px;
  color: var(--color-muted);
  max-width: 720px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid #e8ecf0;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Lists */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.link-list a {
  display: block;
  padding: 12px 16px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid #e8ecf0;
  color: var(--color-text);
  font-weight: 500;
}
.link-list a:hover {
  border-color: var(--color-primary);
  text-decoration: none;
  color: var(--color-primary);
}

/* 服务区域总览：各区一句差异化说明 */
.district-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.district-link-list > li {
  background: var(--color-surface);
  border: 1px solid #e8ecf0;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.district-link-list a.district-name {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

.district-link-list a.district-name:hover {
  color: var(--color-primary);
}

.district-link-list .district-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.quyu-cta {
  margin-top: 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f0f7f8 0%, #e8f4f6 100%);
  border: 1px solid #cfe5e9;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-muted);
}

.quyu-cta a {
  font-weight: 600;
}

/* FAQ */
.faq-item {
  background: var(--color-surface);
  border: 1px solid #e8ecf0;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  background: #f6f8fa;
}

.faq-question h2,
.faq-question h3 {
  margin: 0;
  font-size: 1.05rem;
  flex: 1;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  position: relative;
  transition: transform 0.25s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  transition: opacity 0.2s ease;
}

.faq-toggle::before {
  width: 2px;
  height: 16px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 16px;
  height: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-toggle::before {
  opacity: 0;
}

.faq-item.is-open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding-bottom: 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--color-muted);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 16px 0 0;
}

.breadcrumb a {
  color: var(--color-muted);
}

/* Page header inner */
.page-header {
  padding: 28px 0 8px;
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
}

.page-header .lead {
  margin: 0;
  color: var(--color-muted);
  max-width: 720px;
}

.prose {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid #e8ecf0;
  margin-bottom: 24px;
}

.prose h2 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 1.2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  color: var(--color-muted);
}

.prose ul {
  padding-left: 1.25em;
}

.wechat-qr {
  margin: 16px 0 0;
  text-align: center;
}

.wechat-qr img {
  display: inline-block;
  max-width: min(260px, 88vw);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.wechat-qr figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: #1a2332;
  color: #b8c5d0;
  padding: 40px 0 28px;
  margin-top: 48px;
  font-size: 0.9rem;
}

.site-footer a {
  color: #d4dde4;
}
.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-uscc {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #9aacbb;
  line-height: 1.5;
}

.footer-contact-bar {
  text-align: center;
  padding: 16px 12px 0;
  font-size: 0.9rem;
  color: #b8c5d0;
}

.footer-contact-bar a {
  color: #e8eef2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #8a9bab;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-tldr {
  background: linear-gradient(135deg, #f0f7f8 0%, #e8f4f6 100%);
  border: 1px solid #cfe5e9;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.service-tldr h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.service-tldr ul {
  margin: 0;
  padding-left: 1.25em;
  color: var(--color-muted);
}

.service-tldr li {
  margin-bottom: 8px;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 手机底部固定拨号栏 */
.mobile-float-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 999;
  border-top: 1px solid #e8ecf0;
}

.mobile-float-bar-inner {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.mobile-float-bar .btn-call {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-float-bar .btn-call:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(7, 193, 96, 0.28);
}

.mobile-float-bar .btn-call::before {
  content: "📞";
  font-size: 1.25rem;
}

@media (max-width: 880px) {
  .mobile-float-bar {
    display: block;
  }
  
  body {
    padding-bottom: 80px;
  }
  
  .site-footer {
    margin-bottom: 70px;
  }
}

@media (max-width: 400px) {
  .logo {
    font-size: 0.92rem;
    gap: 0.45rem;
    margin-left: -6px;
  }
  .logo::before {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
  }
  .logo img {
    max-height: 40px;
  }
}
