/* Xinda Desktop Homepage P2 V3 (strictly >=1024px, zero impact on mobile <=1023px) */
@media (min-width:1024px) {
  /* Prevent desktop AI chat widget from overlapping top blue navigation bar on 13-14" laptops */
  body.xd-p2-desktop #xinda-support {
    max-height: calc(100vh - 170px) !important;
  }

  /* Hide legacy bloated desktop homepage blocks while keeping DOM intact for mobile/SEO */
  body.xd-p2-desktop #site-banner,
  body.xd-p2-desktop .xinda-approved-banner,
  body.xd-p2-desktop .xinda-service-entry,
  body.xd-p2-desktop .announ_main,
  body.xd-p2-desktop .index,
  body.xd-p2-desktop > .footer,
  body.xd-p2-desktop > .copyright {
    display: none !important;
  }

  .xd-p2-root {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #152b44;
    background: #fff;
    line-height: 1.6;
  }
  .xd-p2-root *, .xd-p2-root *::before, .xd-p2-root *::after { box-sizing: border-box; }
  .xd-p2-root a { text-decoration: none; color: inherit; }
  .xd-p2-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

  /* Hero */
  .xd-p2-hero {
    background: radial-gradient(circle at 84% 18%, rgba(38,100,156,.11), transparent 46%),
                linear-gradient(160deg, #f5f9fe 0%, #eaf3fc 58%, #e3effa 100%);
    border-bottom: 1px solid #d9e7f4;
    padding: 44px 0 42px;
  }
  .xd-p2-hero-grid { display: grid; grid-template-columns: 1.24fr .76fr; gap: 38px; align-items: center; }
  .xd-p2-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px; border-radius: 999px;
    background: #fff; border: 1px solid #c9dff2; font-size: 12px; font-weight: 700; color: #176ea9;
  }
  .xd-p2-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #176ea9; display: inline-block; }
  .xd-p2-hero h1 { font-size: 40px; font-weight: 800; line-height: 1.24; color: #0f243e; margin: 14px 0 10px; letter-spacing: -.4px; }
  .xd-p2-hero p.xd-p2-lead { font-size: 15.5px; color: #46607a; line-height: 1.75; max-width: 600px; margin: 0; }
  .xd-p2-tags { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0 22px; }
  .xd-p2-tags span { padding: 5px 13px; border-radius: 8px; background: rgba(255,255,255,.92); border: 1px solid #d1e2f2; font-size: 13px; font-weight: 600; color: #284b6e; }
  .xd-p2-btns { display: flex; gap: 12px; }
  .xd-p2-btn-primary {
    padding: 12px 26px; border-radius: 10px; background: #176ea9; color: #fff !important;
    font-size: 15px; font-weight: 700; border: 0; cursor: pointer; box-shadow: 0 6px 16px rgba(23,110,169,.22);
    font-family: inherit;
  }
  .xd-p2-btn-primary:hover { background: #125a8c; }
  .xd-p2-btn-outline {
    padding: 12px 22px; border-radius: 10px; background: #fff; color: #176ea9 !important;
    font-size: 15px; font-weight: 700; border: 1px solid #bfd6ea; cursor: pointer; font-family: inherit;
  }
  .xd-p2-btn-outline:hover { background: #f2f8fd; }
  .xd-p2-sla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; max-width: 550px; }
  .xd-p2-sla-box { background: #fff; border: 1px solid #d5e5f4; border-radius: 12px; padding: 14px 12px; text-align: center; box-shadow: 0 2px 8px rgba(15,36,62,.04); }
  .xd-p2-sla-box strong { display: block; font-size: 24px; font-weight: 800; color: #176ea9; line-height: 1.2; }
  .xd-p2-sla-box.is-amber strong { color: #d97706; }
  .xd-p2-sla-box span { display: block; font-size: 12px; font-weight: 600; color: #546d85; margin-top: 4px; }

  /* Hero Quick Quote Card */
  .xd-p2-card { background: #fff; border: 1px solid #d4e3f2; border-radius: 16px; padding: 24px; box-shadow: 0 12px 32px rgba(23,110,169,.09); }
  .xd-p2-card h2 { font-size: 18px; font-weight: 800; color: #0f243e; margin: 0 0 4px; }
  .xd-p2-card .xd-p2-sub { font-size: 12.5px; color: #647b91; margin-bottom: 15px; }
  .xd-p2-form label { display: block; font-size: 12px; font-weight: 600; color: #46607a; margin-bottom: 4px; }
  .xd-p2-form input, .xd-p2-form select {
    width: 100%; height: 40px; padding: 0 12px; border: 1px solid #cbd9e7; border-radius: 8px;
    font-size: 13.5px; margin-bottom: 11px; font-family: inherit; color: #152b44; background: #fbfdff; outline: none;
  }
  .xd-p2-form input:focus, .xd-p2-form select:focus { border-color: #176ea9; background: #fff; }
  .xd-p2-form button {
    width: 100%; height: 44px; border-radius: 9px; background: #176ea9; color: #fff;
    font-size: 14.5px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit;
  }
  .xd-p2-form button:hover { background: #125a8c; }
  .xd-p2-card .xd-p2-note { font-size: 11.5px; color: #647b91; text-align: center; margin-top: 10px; }

  /* Sections */
  .xd-p2-sec { padding: 48px 0; background: #fff; }
  .xd-p2-sec.is-soft { background: #f6f9fc; border-top: 1px solid #e8f0f7; border-bottom: 1px solid #e8f0f7; }
  .xd-p2-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
  .xd-p2-head.is-center { display: block; text-align: center; }
  .xd-p2-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #176ea9; text-transform: uppercase; }
  .xd-p2-title { font-size: 26px; font-weight: 800; color: #0f243e; margin: 4px 0 0; line-height: 1.3; }
  .xd-p2-sec-sub { font-size: 13.5px; color: #5c738a; margin: 6px 0 0; }
  .xd-p2-more { font-size: 14px; font-weight: 600; color: #176ea9 !important; }
  .xd-p2-more:hover { text-decoration: underline; }

  /* Roles 3x2 + Longtail */
  .xd-p2-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .xd-p2-role {
    background: #f8fbfe; border: 1px solid #dce6f0; border-radius: 13px; padding: 20px 22px;
    transition: all .16s; cursor: pointer; display: flex; flex-direction: column; text-align: left; font-family: inherit;
  }
  .xd-p2-role:hover { border-color: #176ea9; background: #fff; box-shadow: 0 8px 22px rgba(23,110,169,.09); transform: translateY(-2px); }
  .xd-p2-role-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; width: 100%; }
  .xd-p2-pill { padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
  .xd-p2-pill.p-blue { background: #dbeafe; color: #176ea9; }
  .xd-p2-pill.p-green { background: #d1fae5; color: #047857; }
  .xd-p2-pill.p-indigo { background: #e0e7ff; color: #4338ca; }
  .xd-p2-pill.p-cyan { background: #cffafe; color: #155e75; }
  .xd-p2-pill.p-slate { background: #e2e8f0; color: #334155; }
  .xd-p2-role-meta { font-size: 12px; color: #7a8fa3; }
  .xd-p2-role h3 { font-size: 17.5px; font-weight: 800; color: #0f243e; margin: 0 0 7px; }
  .xd-p2-role p { font-size: 13.5px; color: #566e85; line-height: 1.65; margin: 0; flex: 1; }
  .xd-p2-role-foot { margin-top: 13px; padding-top: 11px; border-top: 1px solid #e6eef5; display: flex; justify-content: space-between; width: 100%; font-size: 12.5px; color: #176ea9; font-weight: 600; }

  .xd-p2-longtail {
    margin-top: 16px; background: #f5f9fe; border: 1px solid #dce6f0; border-radius: 11px;
    padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #4a637c;
  }
  .xd-p2-longtail-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .xd-p2-longtail-pills button {
    padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #cfe0f0;
    color: #1d4e78; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s;
  }
  .xd-p2-longtail-pills button:hover { border-color: #176ea9; background: #eaf4fc; color: #176ea9; }

  /* Advantages 4-col */
  .xd-p2-adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .xd-p2-adv-card { background: #fff; border: 1px solid #dce6f0; border-radius: 13px; padding: 22px; }
  .xd-p2-adv-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #e6f2fc; color: #176ea9; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
  .xd-p2-adv-card h3 { font-size: 16px; font-weight: 800; color: #0f243e; margin: 0 0 8px; }
  .xd-p2-adv-card p { font-size: 13px; color: #566e85; line-height: 1.7; margin: 0; }

  /* Cases 4-col */
  .xd-p2-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .xd-p2-case { background: #f8fbfe; border: 1px solid #dce6f0; border-radius: 13px; overflow: hidden; transition: all .16s; }
  .xd-p2-case:hover { border-color: #b6d2ea; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,36,62,.07); }
  .xd-p2-case img { width: 100%; height: auto; aspect-ratio: 5/3; object-fit: cover; display: block; background: #132a47; }
  .xd-p2-case-body { padding: 14px 16px 16px; }
  .xd-p2-case-tag { font-size: 11.5px; font-weight: 700; color: #176ea9; }
  .xd-p2-case h3 { font-size: 16.5px; font-weight: 800; color: #0f243e; margin: 4px 0 6px; }
  .xd-p2-case p { font-size: 12.5px; color: #5a7086; line-height: 1.65; margin: 0; }
  .xd-p2-review {
    margin-top: 18px; background: #f2f8fe; border: 1px solid #cde1f5; border-radius: 12px;
    padding: 13px 20px; display: flex; align-items: center; justify-content: space-between;
  }
  .xd-p2-review strong { font-size: 14.5px; color: #0f243e; }
  .xd-p2-review span.xd-p2-rev-sub { font-size: 13px; color: #5a7086; margin-left: 12px; }
  .xd-p2-rev-badge { padding: 4px 12px; border-radius: 999px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-size: 12px; font-weight: 700; flex: none; }

  /* Cities + Light 6-step Flow */
  .xd-p2-cities { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
  .xd-p2-city { background: #fff; border: 1px solid #dce6f0; border-radius: 11px; padding: 13px 8px; text-align: center; display: block; transition: border-color .15s; }
  .xd-p2-city.is-hq { border-color: #7ab3e0; background: #eef6fd; }
  .xd-p2-city:hover { border-color: #176ea9; }
  .xd-p2-city strong { display: block; font-size: 15.5px; color: #0f243e; }
  .xd-p2-city.is-hq strong { color: #176ea9; }
  .xd-p2-city small { display: block; font-size: 11.5px; color: #647b91; margin-top: 2px; }
  .xd-p2-city-strip { margin-top: 12px; background: #fff; border: 1px solid #dce6f0; border-radius: 10px; padding: 11px 16px; font-size: 13px; color: #556c82; }

  .xd-p2-flow-wrap { margin-top: 34px; padding-top: 32px; border-top: 1px solid #e2ebf3; }
  .xd-p2-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
  .xd-p2-step { background: #fff; border: 1px solid #dce6f0; border-radius: 12px; padding: 16px 12px; text-align: center; }
  .xd-p2-step i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: #176ea9; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; }
  .xd-p2-step strong { display: block; font-size: 14.5px; color: #0f243e; margin: 8px 0 4px; }
  .xd-p2-step span { font-size: 12px; color: #647b91; }

  /* FAQ + Live News */
  .xd-p2-two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
  .xd-p2-faq details { background: #f7fafd; border: 1px solid #dce6f0; border-radius: 10px; margin-bottom: 10px; padding: 13px 16px; }
  .xd-p2-faq summary { font-size: 14.5px; font-weight: 700; color: #0f243e; cursor: pointer; }
  .xd-p2-faq p { font-size: 13px; color: #526980; margin: 8px 0 0; line-height: 1.7; }
  .xd-p2-qlinks { display: flex; gap: 18px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: #176ea9; }
  .xd-p2-qlinks a { color: #176ea9 !important; }
  .xd-p2-news { background: #fff; border: 1px solid #dce6f0; border-radius: 12px; overflow: hidden; }
  .xd-p2-news-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #edf2f7; font-size: 13.5px; color: #1e3a5f !important; }
  .xd-p2-news-row:hover { background: #f8fbfe; color: #176ea9 !important; }
  .xd-p2-news-row:last-child { border-bottom: 0; }
  .xd-p2-news-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
  .xd-p2-news-dt { color: #8296aa; font-size: 12px; flex: none; }

  /* Entity Trust Strip */
  .xd-p2-entity { background: #f4f8fc; border-top: 1px solid #e1ebf4; padding: 20px 0; font-size: 13px; color: #476079; }
  .xd-p2-entity .xd-p2-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .xd-p2-ebadges { display: flex; gap: 10px; flex-wrap: wrap; }
  .xd-p2-ebadges span { padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid #d0e1f0; font-size: 12px; font-weight: 600; color: #1d4e78; }

  /* Footer */
  .xd-p2-footer { background: #142c47; color: #cbd5e1; padding: 38px 0 22px; font-size: 13px; }
  .xd-p2-fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .xd-p2-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; font-weight: 700; }
  .xd-p2-footer ul { list-style: none; padding: 0; margin: 0; }
  .xd-p2-footer li { margin-bottom: 7px; color: #9eb3c7; }
  .xd-p2-footer li a { color: #9eb3c7 !important; }
  .xd-p2-footer li a:hover { color: #fff !important; }
  .xd-p2-fcopy { padding-top: 16px; display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; }
  .xd-p2-fcopy a { color: #94a3b8 !important; }
}
