/* ==========================================================================
   pewdo.com Mobile UI Optimization v1.0
   Design System: Mobile-First Responsive
   Breakpoints: 480px / 768px / 1024px
   Touch Target: min 48×48px
   Spacing: 8px grid system
   ========================================================================== */

/* === CSS Variables / Design Tokens === */
:root {
  --pm-primary: #e63946;
  --pm-primary-dark: #c1121f;
  --pm-accent: #f77f00;
  --pm-dark: #1d3557;
  --pm-dark-soft: #2c3e50;
  --pm-text: #2d3436;
  --pm-text-secondary: #636e72;
  --pm-text-muted: #b2bec3;
  --pm-bg: #ffffff;
  --pm-bg-light: #f8f9fa;
  --pm-bg-gray: #f1f3f5;
  --pm-border: #e9ecef;
  --pm-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --pm-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --pm-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --pm-radius-sm: 8px;
  --pm-radius-md: 12px;
  --pm-radius-lg: 16px;
  --pm-radius-xl: 24px;
  --pm-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --pm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --pm-safe-top: env(safe-area-inset-top);
  --pm-safe-bottom: env(safe-area-inset-bottom);
  --pm-nav-height: 56px;
  --pm-bottom-bar-height: 64px;
}

/* === Mobile Reset === */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--pm-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-text);
  background: var(--pm-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: rgba(0,0,0,0.05); }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; -webkit-appearance: none; }

/* === Safe Area Support === */
@supports (padding-top: env(safe-area-inset-top)) {
  .main-header { padding-top: var(--pm-safe-top); }
  body { padding-bottom: calc(var(--pm-bottom-bar-height) + var(--pm-safe-bottom)); }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--pm-shadow-sm);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  height: var(--pm-nav-height);
  transition: var(--pm-transition);
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: 100%;
}

/* Logo */
.logo { display: flex; flex-direction: column; }
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--pm-dark);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.logo-text span { color: var(--pm-primary); }
.logo p { display: none; }

/* Desktop Navigation - Hidden on mobile */
.main-nav { display: none; }

/* CTA Button */
.header-cta .btn-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pm-primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--pm-radius-xl);
  font-size: 13px;
  font-weight: 700;
  height: 40px;
  box-shadow: 0 2px 8px rgba(230,57,70,0.3);
  transition: var(--pm-transition);
  white-space: nowrap;
}
.header-cta .btn-call::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.81.36 1.6.7 2.34a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.74-1.74a2 2 0 0 1 2.11-.45c.74.34 1.53.57 2.34.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.header-cta .btn-call:active { transform: scale(0.96); }

/* Hamburger Menu Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  margin-left: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--pm-dark);
  border-radius: 2px;
  transition: var(--pm-transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 999;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--pm-nav-height) + 16px) 20px 24px;
}
.mobile-drawer.active { right: 0; }

/* Drawer Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

/* Drawer Menu Items */
.drawer-menu { list-style: none; padding: 0; margin: 0; }
.drawer-menu li { border-bottom: 1px solid var(--pm-border); }
.drawer-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--pm-dark);
  transition: var(--pm-transition);
  min-height: 48px;
}
.drawer-menu a::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--pm-text-muted);
  border-top: 2px solid var(--pm-text-muted);
  transform: rotate(45deg);
  transition: var(--pm-transition);
}
.drawer-menu a:active { color: var(--pm-primary); background: rgba(230,57,70,0.03); }
.drawer-menu a:active::after { border-color: var(--pm-primary); }

/* Drawer Contact Info */
.drawer-contact {
  margin-top: 24px;
  padding: 20px;
  background: var(--pm-bg-light);
  border-radius: var(--pm-radius-md);
}
.drawer-contact p {
  font-size: 14px;
  color: var(--pm-text-secondary);
  margin: 0 0 12px;
}
.drawer-contact .drawer-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--pm-primary);
  color: #fff;
  border-radius: var(--pm-radius-md);
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: calc(var(--pm-nav-height) + 32px) 16px 40px;
  background: linear-gradient(135deg, #1d3557 0%, #e63946 50%, #f77f00 100%);
  color: #fff;
  text-align: center;
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 24px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--pm-radius-xl);
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  transition: var(--pm-transition);
  cursor: pointer;
}
.btn-primary {
  background: #fff;
  color: var(--pm-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-primary:active { transform: scale(0.98); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:active { background: rgba(255,255,255,0.1); }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  opacity: 0.8;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  padding: 40px 16px;
  background: var(--pm-bg);
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--pm-dark);
  text-align: center;
  margin: 0 0 8px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--pm-text-secondary);
  text-align: center;
  margin: 0 0 28px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-card {
  background: var(--pm-bg-light);
  border-radius: var(--pm-radius-md);
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--pm-border);
  transition: var(--pm-transition);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:active { transform: scale(0.98); background: #fff; box-shadow: var(--pm-shadow-md); }
.service-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}
.service-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}
.service-card p {
  font-size: 12px;
  color: var(--pm-text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
.why-us {
  padding: 40px 16px;
  background: var(--pm-bg-light);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.why-item {
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  padding: 20px 14px;
  border: 1px solid var(--pm-border);
  text-align: center;
}
.why-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--pm-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 4px;
}
.why-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 8px;
}
.why-item p {
  font-size: 12px;
  color: var(--pm-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   AREAS SECTION
   ========================================================================== */
.areas {
  padding: 40px 16px;
  background: var(--pm-bg);
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.area-card {
  display: block;
  background: var(--pm-bg-light);
  border-radius: var(--pm-radius-md);
  padding: 16px 12px;
  border: 1px solid var(--pm-border);
  transition: var(--pm-transition);
  min-height: 80px;
}
.area-card:active { background: #fff; border-color: var(--pm-primary); box-shadow: var(--pm-shadow-md); }
.area-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 4px;
}
.area-card p {
  font-size: 12px;
  color: var(--pm-text-secondary);
  margin: 0;
}

/* ==========================================================================
   PROCESS SECTION (Waterproof Repair Flow)
   ========================================================================== */
.process-section {
  padding: 40px 16px;
  background: var(--pm-bg);
}
.process-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
/* Vertical timeline line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--pm-primary) 0%, rgba(230,57,70,0.2) 100%);
  z-index: 0;
}
.process-step {
  background: var(--pm-bg-light);
  border-radius: var(--pm-radius-md);
  padding: 20px 16px 20px 56px;
  border: 1px solid var(--pm-border);
  position: relative;
  z-index: 1;
  counter-increment: process-step;
  transition: var(--pm-transition);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.process-step::before {
  content: counter(process-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--pm-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(230,57,70,0.3);
  flex-shrink: 0;
}
.process-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}
.process-step-desc {
  margin: 0;
  color: var(--pm-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.process-step:active {
  transform: scale(0.98);
  background: #fff;
  box-shadow: var(--pm-shadow-md);
  border-color: var(--pm-primary);
}
/* Tablet: 2 columns with timeline hidden */
@media (min-width: 481px) {
  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .process-grid::before { display: none; }
  .process-step {
    padding: 20px 16px 20px 52px;
  }
}

/* Desktop: 3 columns */
@media (min-width: 769px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-service {
  padding: 40px 16px;
  background: var(--pm-bg);
}
.about-service .section-title { text-align: left; margin-bottom: 16px; }
.about-service p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--pm-text);
  margin: 0 0 14px;
}

/* ==========================================================================
   CASES SECTION
   ========================================================================== */
.cases {
  padding: 40px 16px;
  background: var(--pm-bg-light);
}
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.case-card {
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  overflow: hidden;
  border: 1px solid var(--pm-border);
  box-shadow: var(--pm-shadow-sm);
}
.case-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--pm-radius-md) var(--pm-radius-md) 0 0;
}
.case-info { padding: 16px; }
.case-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 8px;
}
.case-info p {
  font-size: 13px;
  color: var(--pm-text-secondary);
  line-height: 1.5;
  margin: 0 0 10px;
}
.case-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(230,57,70,0.08);
  color: var(--pm-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--pm-radius-sm);
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.news {
  padding: 40px 16px;
  background: var(--pm-bg);
}
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card {
  display: block;
  background: var(--pm-bg-light);
  border-radius: var(--pm-radius-md);
  padding: 16px;
  border: 1px solid var(--pm-border);
  transition: var(--pm-transition);
  text-decoration: none;
  color: inherit;
}
.news-card:active { background: #fff; border-color: var(--pm-primary); box-shadow: var(--pm-shadow-md); }
.news-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--pm-text-muted);
}
.news-meta span {
  background: rgba(230,57,70,0.06);
  color: var(--pm-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.news-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 8px;
  line-height: 1.5;
}
.news-card p {
  font-size: 13px;
  color: var(--pm-text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  padding: 40px 16px;
  background: var(--pm-bg-light);
}
.testimonials-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card {
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  padding: 16px;
  border: 1px solid var(--pm-border);
  box-shadow: var(--pm-shadow-sm);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.testimonial-card > p {
  font-size: 14px;
  color: var(--pm-text);
  line-height: 1.7;
  margin: 0 0 12px;
}
.testimonial-author {
  font-size: 12px;
  color: var(--pm-text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
  padding: 40px 16px;
  background: var(--pm-bg);
}
.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--pm-dark);
  margin: 0 0 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pm-border);
}
.contact-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.contact-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 4px;
}
.contact-item p, .contact-item a {
  font-size: 14px;
  color: var(--pm-text-secondary);
  margin: 0;
  line-height: 1.5;
}
.contact-phone {
  font-size: 18px;
  font-weight: 800;
  color: var(--pm-primary);
  display: block;
  margin-top: 4px;
}
.contact-form-wrap h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--pm-dark);
  margin: 0 0 16px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-md);
  background: var(--pm-bg-light);
  font-size: 16px;
  color: var(--pm-text);
  transition: var(--pm-transition);
  -webkit-appearance: none;
  min-height: 48px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pm-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.08);
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form button[type="submit"] {
  width: 100%;
  padding: 16px;
  background: var(--pm-primary);
  color: #fff;
  border: none;
  border-radius: var(--pm-radius-xl);
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  cursor: pointer;
  transition: var(--pm-transition);
  box-shadow: 0 4px 16px rgba(230,57,70,0.3);
}
.contact-form button[type="submit"]:active {
  transform: scale(0.98);
  background: var(--pm-primary-dark);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 40px 16px;
  background: var(--pm-bg-light);
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-grid > div {
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  padding: 16px;
  border: 1px solid var(--pm-border);
  transition: var(--pm-transition);
}
.faq-grid > div:active { border-color: var(--pm-primary); box-shadow: var(--pm-shadow-md); }
.faq-grid h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}
.faq-grid p {
  font-size: 13px;
  color: var(--pm-text-secondary);
  line-height: 1.7;
  margin: 0;
}
/* FAQ accordion style (common questions) */
.faq-section .container > div:not(.faq-grid) > div {
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  padding: 16px;
  border: 1px solid var(--pm-border);
  margin-bottom: 12px;
}
.faq-section .container > div:not(.faq-grid) h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}
.faq-section .container > div:not(.faq-grid) p {
  font-size: 13px;
  color: var(--pm-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.comparison-section {
  padding: 40px 16px;
  background: var(--pm-bg-light);
}
.comparison-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--pm-dark);
  text-align: center;
  margin: 0 0 8px;
}
.comparison-section .section-subtitle {
  font-size: 14px;
  color: var(--pm-text-secondary);
  text-align: center;
  margin: 0 0 8px;
}
/* 左右滑动提示（仅移动端显示） */
.comparison-hint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--pm-text-muted);
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--pm-radius-md);
  border: 1px solid var(--pm-border);
  background: var(--pm-bg);
  scroll-snap-type: x proximity;
}
.comparison-table-wrap:active { cursor: grabbing; }
.comparison-section table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 13px;
}
.comparison-section th,
.comparison-section td {
  padding: 12px 10px;
  text-align: left;
  border: 1px solid var(--pm-border);
}
.comparison-section thead th {
  background: var(--pm-dark);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.comparison-section tbody tr:nth-child(even) { background: var(--pm-bg-light); }
.comparison-section tbody tr:first-child td:first-child { font-weight: 700; color: var(--pm-dark); }
.comparison-section tbody td:first-child { font-weight: 600; color: var(--pm-dark); }



/* ==========================================================================
   FAQ SECTION - Enhanced Mobile Styles
   ========================================================================== */
.faq-section {
  padding: 48px 16px;
  background: var(--pm-bg-light);
}
.faq-section .section-title {
  text-align: center;
  font-size: 22px;
  color: var(--pm-dark);
  margin-bottom: 8px;
}
.faq-section .section-subtitle {
  text-align: center;
  color: var(--pm-text-secondary);
  margin-bottom: 28px;
}
.faq-grid > div {
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  padding: 20px;
  border: 1px solid var(--pm-border);
  transition: var(--pm-transition);
  position: relative;
  overflow: hidden;
}
.faq-grid > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pm-primary), var(--pm-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.faq-grid > div:active {
  border-color: var(--pm-primary);
  box-shadow: var(--pm-shadow-md);
  transform: translateY(-1px);
}
.faq-grid > div:active::before {
  opacity: 1;
}
.faq-grid h3 {
  color: var(--pm-dark);
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.faq-bottom-title {
  color: var(--pm-dark);
  font-size: 18px;
  margin: 0 0 16px;
  text-align: center;
  font-weight: 700;
}
.faq-section .container > div:not(.faq-grid) > div {
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  padding: 20px;
  border: 1px solid var(--pm-border);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: var(--pm-transition);
}
.faq-section .container > div:not(.faq-grid) > div:active {
  border-color: var(--pm-primary);
  box-shadow: var(--pm-shadow-md);
}
.faq-section .container > div:not(.faq-grid) > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pm-primary), var(--pm-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.faq-section .container > div:not(.faq-grid) > div:active::before {
  opacity: 1;
}
.faq-section .container > div:not(.faq-grid) h4 {
  color: var(--pm-dark);
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================================================
   COMPARISON SECTION - Enhanced Mobile Styles
   ========================================================================== */
.comparison-section {
  padding: 48px 16px;
  background: var(--pm-bg);
}
.comparison-section h2 {
  text-align: center;
  font-size: 20px;
  color: var(--pm-dark);
  margin: 0 0 8px;
  font-weight: 800;
}
.comparison-section .section-subtitle {
  text-align: center;
  color: var(--pm-text-secondary);
  margin: 0 0 8px;
}
.comparison-section table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 13px;
  border-radius: var(--pm-radius-md);
  overflow: hidden;
}
.comparison-section thead th {
  background: linear-gradient(135deg, #1a3a5c, #2c5282);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 14px 12px;
  text-align: left;
  border: none;
}
.comparison-section tbody tr {
  transition: background 0.2s ease;
}
.comparison-section tbody tr:nth-child(even) {
  background: var(--pm-bg-light);
}
.comparison-section tbody tr:nth-child(odd) {
  background: var(--pm-bg);
}
.comparison-section tbody tr:active {
  background: rgba(230,57,70,0.04);
}
.comparison-section tbody td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--pm-border);
  border-right: 1px solid var(--pm-border);
}
.comparison-section tbody td:first-child {
  font-weight: 700;
  color: var(--pm-dark);
  border-left: 1px solid var(--pm-border);
}
.comparison-section tbody td:nth-child(2) {
  color: var(--pm-primary);
  font-weight: 600;
}

/* ==========================================================================
   VISUAL UPGRADES - Cards & Shadows
   ========================================================================== */
.news-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.news-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--pm-primary), var(--pm-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.news-card:active::after {
  transform: scaleX(1);
}
.testimonial-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 48px;
  color: var(--pm-primary);
  opacity: 0.08;
  font-family: Georgia, serif;
  line-height: 1;
}
.contact-form button[type="submit"] {
  background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark));
  box-shadow: 0 4px 16px rgba(230,57,70,0.35);
  letter-spacing: 1px;
}
.contact-form button[type="submit"]:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(230,57,70,0.3);
}
.geo-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.geo-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--pm-primary), var(--pm-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.geo-card:active::after {
  transform: scaleX(1);
}
.process-step {
  position: relative;
  overflow: hidden;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pm-primary), var(--pm-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.process-step:active::before {
  opacity: 1;
}
.case-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--pm-transition);
}
.case-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.hero-stats {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}
.stat-number {
  background: linear-gradient(135deg, var(--pm-primary), var(--pm-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ==========================================================================
   ENHANCED SECTION TITLES
   ========================================================================== */
.section-title {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--pm-primary), var(--pm-accent));
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   SECTION INLINE-PADDING OVERRIDE
   （index.html 中部分 section 带内联 style="padding:xx 0"，
    内联样式优先级高于外部 CSS，会盖掉上文的左右 16px 边距；
    这里在移动端媒体查询内强制恢复横向间距，桌面端保持原内联值不变）
   ========================================================================== */
@media (max-width: 768px) {
  section.about-service,
  section.process-section,
  section.faq-section,
  section.comparison-section,
  section.geo-knowledge-hub {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  padding: 40px 16px 24px;
  background: var(--pm-dark);
  color: #a0aec0;
}
.main-footer h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
.main-footer p, .main-footer a {
  font-size: 13px;
  line-height: 1.8;
  color: #a0aec0;
}
.main-footer a { display: inline-block; padding: 4px 0; min-height: 32px; }
.main-footer a:active { color: #fff; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
  color: #718096;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.05);
  height: var(--pm-bottom-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: var(--pm-safe-bottom);
}
.mn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  min-width: 48px;
  color: var(--pm-text-secondary);
  transition: var(--pm-transition);
  position: relative;
  padding: 6px 0;
}
.mn-item:active { color: var(--pm-primary); }
.mn-item.active { color: var(--pm-primary); }
.mn-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--pm-primary);
  border-radius: 0 0 3px 3px;
}
.mn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.mn-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}
.mn-call {
  background: var(--pm-primary);
  color: #fff !important;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-top: -16px;
  box-shadow: 0 4px 12px rgba(230,57,70,0.35);
  position: relative;
  z-index: 2;
}
.mn-call .mn-icon { width: 22px; height: 22px; }
.mn-call .mn-label { display: none; }

/* ==========================================================================
   GEO KNOWLEDGE HUB (Article Entry Section)
   ========================================================================== */
.geo-knowledge-hub {
  padding: 40px 16px;
  background: var(--pm-bg-light);
}
.geo-knowledge-hub h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--pm-dark);
  text-align: center;
  margin: 0 0 8px;
}
.geo-knowledge-hub .section-subtitle {
  font-size: 14px;
  color: var(--pm-text-secondary);
  text-align: center;
  margin: 0 0 24px;
}
.geo-knowledge-hub h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pm-dark);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--pm-primary);
}
.geo-knowledge-hub .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.geo-card {
  display: block;
  background: var(--pm-bg);
  border-radius: var(--pm-radius-md);
  padding: 14px;
  border: 1px solid var(--pm-border);
  transition: var(--pm-transition);
  min-height: 80px;
}
.geo-card:active { border-color: var(--pm-primary); box-shadow: var(--pm-shadow-md); }
.geo-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--pm-dark);
  margin: 0 0 6px;
  line-height: 1.4;
}
.geo-card p {
  font-size: 12px;
  color: var(--pm-text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.geo-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  background: var(--pm-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

/* QA Links */
.qa-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.qa-list a {
  display: block;
  padding: 10px 12px;
  background: var(--pm-bg);
  border-radius: var(--pm-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--pm-dark);
  border: 1px solid var(--pm-border);
  transition: var(--pm-transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.qa-list a:active { background: var(--pm-primary); color: #fff; border-color: var(--pm-primary); }

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  padding: 12px 16px;
  color: var(--pm-text-secondary);
  background: var(--pm-bg);
}
.breadcrumb a { color: var(--pm-text-secondary); }
.breadcrumb a:active { color: var(--pm-primary); }

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.pewdo-toast {
  position: fixed;
  bottom: calc(var(--pm-bottom-bar-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--pm-radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.pewdo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--pm-bottom-bar-height) + 16px);
  width: 44px;
  height: 44px;
  background: var(--pm-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--pm-transition);
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
  font-size: 20px;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:active { transform: scale(0.9); }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  display: none;
}

/* ==========================================================================
   SERVICE POPUP
   ========================================================================== */
.service-popup-card {
  width: 90%;
  max-width: 340px;
  padding: 24px 18px;
}

/* ==========================================================================
   TABLET BREAKPOINT (481px - 768px)
   ========================================================================== */
@media (min-width: 481px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .geo-knowledge-hub .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .qa-list { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   DESKTOP BREAKPOINT (769px+)
   ========================================================================== */
@media (min-width: 769px) {
  .comparison-hint { display: none; }
  :root {
    --pm-nav-height: 64px;
  }
  .main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .hamburger { display: none; }
  .main-nav { display: block; }
  .main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
  }
  .main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--pm-dark);
    padding: 8px 0;
    position: relative;
    transition: var(--pm-transition);
  }
  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--pm-primary);
    border-radius: 2px;
    transition: var(--pm-transition);
    transform: translateX(-50%);
  }
  .main-nav a:hover { color: var(--pm-primary); }
  .main-nav a:hover::after { width: 100%; }
  .mobile-nav { display: none !important; }
  .hero { padding: calc(var(--pm-nav-height) + 60px) 24px 60px; }
  .hero h1 { font-size: 42px; }
  .hero-subtitle { font-size: 18px; }
  .hero-cta { flex-direction: row; justify-content: center; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .areas-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  body { padding-bottom: 0 !important; }
  .mobile-drawer, .drawer-overlay { display: none !important; }
}

/* ==========================================================================
   SMALL MOBILE BREAKPOINT (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .hero h1 { font-size: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 24px; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--pm-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .main-header, .mobile-nav, .mobile-drawer, .drawer-overlay, .scroll-top, .hamburger {
    display: none !important;
  }
  body { padding-bottom: 0 !important; }
}
