/* 金钥匙财税 H5 页面样式 */

:root {
  --primary: #004bb0;
  --primary-dark: #003380;
  --accent: #2979ff;
  --accent-light: #82b1ff;
  --bg-white: #FFFFFF;
  --bg-gray: #F5F7FA;
  --text-main: #2D3748;
  --text-sub: #718096;
  --text-light: #A0AEC0;
  --border: #E2E8F0;
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.75;
  font-size: 14px;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* ====== Top Ad Banner ====== */
.top-ad {
  display: block;
  width: 100%;
  line-height: 0;
}

.top-ad-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====== Hero Section ====== */
.hero {
  width: 100%;
  overflow: hidden;
}

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

/* ====== Section Common ====== */
.section {
  padding: 32px 16px;
}

.section:nth-child(even) {
  background: var(--bg-gray);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.section-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ====== Services Grid ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px 6px 12px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(16px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card:active {
  transform: scale(0.97);
}

.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #F0F7FF 0%, var(--bg-white) 100%);
  box-shadow: 0 2px 12px rgba(0, 75, 176, 0.1);
}

.featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.service-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.service-card p {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.4;
}

/* ====== About Section ====== */
.about-banner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.1);
}

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

.about-content {
  max-width: 600px;
  margin: 0 auto;
}

.about-content p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.85;
  margin-bottom: 14px;
  text-align: justify;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  color: var(--primary);
  font-weight: 600;
}

/* ====== Detail Cards ====== */
.detail-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.detail-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.detail-card.detail-featured {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(0, 75, 176, 0.08);
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary);
  color: #FFF;
}

.detail-featured .detail-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.detail-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-light);
  opacity: 0.7;
  font-family: Georgia, serif;
}

.detail-card-header h3 {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
}

.detail-badge {
  background: var(--accent);
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
}

.detail-body {
  padding: 16px;
}

.detail-sub {
  margin-bottom: 16px;
}

.detail-sub:last-child {
  margin-bottom: 0;
}

.detail-sub h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.detail-sub p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  background: var(--bg-gray);
  color: var(--text-main);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.check-list li {
  font-size: 13px;
  color: var(--text-main);
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
}

.check-list li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-highlight {
  background: linear-gradient(135deg, #F0F7FF, #E3F2FD);
  border: 1px solid rgba(0, 75, 176, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
}

.detail-highlight p {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.75;
}

.detail-highlight strong {
  color: var(--accent);
}

/* Seal list */
.seal-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: space-between;
  margin-top: 12px;
}

.seal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.seal-item svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.seal-item span {
  font-size: 11px;
  color: var(--text-sub);
  text-align: center;
  white-space: nowrap;
}

/* Training block */
.training-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.training-item {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.training-item h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.training-item p {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.75;
}

/* ====== Why Section ====== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.why-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
}

.why-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--accent);
}

.why-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.why-card p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ====== CTA Section ====== */
.cta-section {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 36px 20px;
  text-align: center;
}

.cta-inner {
  max-width: 400px;
  margin: 0 auto;
}

.cta-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
  margin-bottom: 16px;
}

.cta-text strong {
  color: var(--accent-light);
  font-weight: 600;
}

.cta-slogan {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 2px;
}

.stores-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  align-items: center;
}

.store-card {
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.store-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.store-name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ====== Footer ====== */
.footer {
  text-align: center;
  padding: 24px 16px 32px;
  background: var(--bg-gray);
}

.footer-company {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto;
}

.footer p {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 3px;
}

/* ====== Responsive ====== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 26px;
  }
  .services-grid,
  .why-grid {
    gap: 8px;
  }
  .service-card {
    padding: 14px 8px 12px;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 480px) {
  .section {
    padding: 40px 24px;
  }
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
