/* contact.css - Extracted from inline styles - fixed */
:root {
      --red: #E60012; --red-hover: #CC0010; --red-light: rgba(230,0,18,0.08);
      --blue: #003366; --blue-light: #0066cc;
      --nav-bg: #0a1628; --body-bg: #ffffff; --section-bg: #f5f7fa;
      --text-dark: #333333; --text-body: #555555; --text-muted: #888888;
      --border-light: #e5e7eb;
      --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
      --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
      --header-h: 120px;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { background: var(--body-bg); color: var(--text-dark); font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
    ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #f0f0f0; } ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #aaa; }

    /* PAGE BANNER */
    .page-banner { position: relative; height: 40vh; min-height: 320px; overflow: hidden; background: linear-gradient(rgba(10,22,40,0.6), rgba(0,51,102,0.6)), url('../images/banner-contact.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
    .page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(10,22,40,0.35); }
    .page-banner::after { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="60" cy="70" r="1.5" fill="rgba(255,255,255,0.02)"/></svg>') repeat; opacity: 0.5; z-index: 1; }
    .banner-content { position: relative; z-index: 2; text-align: center; padding: 0 32px; padding-top: var(--header-h); }
    .banner-label { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 6px; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.15); padding: 6px 20px; border-radius: 4px; margin-bottom: 20px; }
    .banner-title { font-size: 44px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
    .banner-subtitle { font-size: 16px; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto; line-height: 1.6; }

    /* CONTACT SECTION */
    .contact-section { background: var(--section-bg); padding: 60px 0 80px; }
    .contact-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
    .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }

    /* Info card */
    .info-card { background: #fff; border-radius: 12px; padding: 40px; box-shadow: var(--card-shadow); }
    .info-card-title { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 32px; }
    .info-item { display: flex; gap: 16px; margin-bottom: 28px; }
    .info-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .info-icon svg { width: 24px; height: 24px; color: var(--red); }
    .info-item-content { flex: 1; }
    .info-item-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
    .info-item-value { font-size: 15px; color: var(--text-dark); font-weight: 500; line-height: 1.5; }
    .info-item-value.phone-big { font-size: 24px; font-weight: 800; color: var(--red); letter-spacing: -0.02em; }
    .info-item-value a { color: var(--red); text-decoration: none; transition: color 0.2s; }
    .info-item-value a:hover { color: var(--red-hover); }

    /* QR placeholder */
    .qr-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border-light); }
    .qr-label { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
    .qr-placeholder { width: 120px; height: 120px; background: var(--section-bg); border: 2px dashed var(--border-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
    .qr-placeholder svg { width: 32px; height: 32px; color: var(--border-light); }

    /* Form card */
    .form-card { background: #fff; border-radius: 12px; padding: 40px; box-shadow: var(--card-shadow); }
    .form-card-title { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 32px; }
    .form-group { margin-bottom: 20px; }
    .form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
    .form-input, .form-select, .form-textarea {
      width: 100%; padding: 12px 16px; font-size: 14px; color: var(--text-dark);
      background: var(--section-bg); border: 1px solid var(--border-light);
      border-radius: 8px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
      font-family: inherit; box-sizing: border-box;
    }
    .form-input:focus, .form-select:focus, .form-textarea:focus {
      border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,0,18,0.08);
    }
    .form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
    .form-textarea { min-height: 120px; resize: vertical; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .btn-submit {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      width: 100%; padding: 14px 32px; background: var(--red); color: #fff;
      border: none; border-radius: 8px; font-size: 16px; font-weight: 600;
      cursor: pointer; transition: all 0.3s;
      box-shadow: 0 4px 15px rgba(230,0,18,0.25);
    }
    .btn-submit:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(230,0,18,0.35); }

    /* MAP */
    .map-section { background: var(--body-bg); padding: 0; }
    .map-inner { max-width: 1440px; margin: 0 auto; padding: 40px 32px 80px; }
    .map-title { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 24px; }
    .map-wrapper {
      width: 100%; height: 400px; border-radius: 12px; overflow: hidden;
      box-shadow: var(--card-shadow); position: relative; background: #e8eef5;
    }
    #tiandituMap { width: 100%; height: 100%; }
    /* 地图加载中/降级状态 */
    .map-fallback {
      width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 12px; background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
      position: relative;
    }
    .map-fallback::before {
      content: ''; position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(0,51,102,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,51,102,0.04) 1px, transparent 1px);
      background-size: 40px 40px;
    }
    .map-fallback-icon {
      width: 56px; height: 56px; border-radius: 50%; background: #fff;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 1; color: var(--red);
    }
    .map-fallback-icon svg { width: 28px; height: 28px; }
    .map-fallback-info { text-align: center; z-index: 1; }
    .map-fallback-addr { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 4px; }
    .map-fallback-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
    .map-nav-btn {
      display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px;
      background: var(--red); color: #fff; border-radius: 20px; font-size: 13px;
      font-weight: 500; text-decoration: none; z-index: 1; transition: all .2s;
    }
    .map-nav-btn:hover { background: var(--red-hover); transform: translateY(-1px); }
    /* 地图信息窗口样式 */
    .tmap-info-window { min-width: 200px; }
    .map-info-win { padding: 4px 2px; }
    .map-info-win h4 { font-size: 14px; font-weight: 700; color: var(--blue); margin: 0 0 6px; }
    .map-info-win p { font-size: 12px; color: #666; margin: 0 0 4px; line-height: 1.5; }
    .map-info-win .map-info-tel { color: var(--red); font-weight: 600; text-decoration: none; }

    /* CTA */
    .cta-section { background: linear-gradient(135deg, #0a1628 0%, #003366 100%); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
    .cta-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(230,0,18,0.1) 0%, transparent 50%); }
    .cta-inner { position: relative; max-width: 600px; margin: 0 auto; padding: 0 32px; }
    .cta-title { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
    .cta-desc { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
    .btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; background: var(--red); color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 20px rgba(230,0,18,0.3); }
    .btn-cta:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(230,0,18,0.4); }

    /* FOOTER */
    .site-footer { background: #fff; border-top: 1px solid var(--border-light); }
    .footer-main { max-width: 1440px; margin: 0 auto; padding: 48px 32px 36px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
    .footer-col-title { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 20px; position: relative; padding-bottom: 10px; }
    .footer-col-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--red); border-radius: 1px; }
    .footer-links { list-style: none; } .footer-links li { margin-bottom: 10px; }
    .footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .footer-links a:hover { color: var(--red); }
    .footer-friend-links { border-top: 1px solid var(--border-light); }
    .footer-friend-inner { max-width: 1440px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .friend-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
    .friend-links { display: flex; gap: 8px; flex-wrap: wrap; }
    .friend-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .friend-links a:hover { color: var(--red); }
    .friend-links a::after { content: '|'; margin-left: 8px; color: #ddd; }
    .friend-links a:last-child::after { display: none; }
    .footer-bottom { border-top: 1px solid var(--border-light); background: var(--section-bg); }
    .footer-bottom-inner { max-width: 1440px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
    .footer-diagnose { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-body); }
    .footer-diagnose-input { height: 38px; padding: 0 14px; border: 1px solid var(--border-light); border-radius: 6px; background: #fff; font-size: 13px; color: var(--text-dark); outline: none; width: 220px; transition: border-color 0.3s; box-sizing: border-box; }
    .footer-diagnose-input:focus { border-color: var(--red); }
    .footer-diagnose-btn { height: 38px; padding: 0 18px; background: var(--red); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.3s; white-space: nowrap; }
    .footer-diagnose-btn:hover { background: var(--red-hover); }
    .footer-copyright { font-size: 12px; color: var(--text-muted); }
    .hot-searches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .hot-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
    .hot-tag { padding: 2px 10px; background: #f0f0f0; border-radius: 3px; font-size: 12px; color: var(--text-muted); text-decoration: none; transition: all 0.2s; }
    .hot-tag:hover { background: var(--red-light); color: var(--red); }
    /* RESPONSIVE */
    @media (max-width: 1440px) { .footer-main { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 768px) {
      .banner-title { font-size: 32px; }
      .contact-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
      .footer-main { grid-template-columns: repeat(2, 1fr); }
      .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    }
    @media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; } }

    .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
