:root {
  --ink: #17191d;
  --muted: #5c6470;
  --line: #e7e9ee;
  --brand: #00a0e9;
  --brand-dark: #007fb3;
  --bg-soft: #f6f7f9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.site-nav a:hover { color: var(--brand); }

/* hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: 34px; line-height: 1.35; margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 16px; margin-bottom: 28px; max-width: 34em; }
.hero .cta { display: inline-block; background: var(--brand); color: #fff; padding: 12px 28px; border-radius: 6px; font-size: 16px; }
.hero .cta:hover { background: var(--brand-dark); }
.hero img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }

/* sections */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 26px; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15px; }

.about-text { max-width: 760px; margin: 0 auto; font-size: 16px; color: var(--muted); }
.about-text strong { color: var(--ink); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; background: #fff; }
.service h3 { font-size: 17px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 14px; }
.service .num { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 1px; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cases figure { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.cases img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }

.branches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.branches span { font-size: 15px; color: var(--muted); }
.branches b { color: var(--ink); font-weight: 600; }

.contact-box { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; padding: 36px 40px; text-align: center; }
.contact-box p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.contact-box .tel { font-size: 26px; font-weight: 700; color: var(--brand); letter-spacing: 1px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; text-align: center; font-size: 13px; color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer .beian { margin-top: 10px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .services { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

/* brands */
.brand-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 880px; margin: 0 auto; }
.brand-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 22px; font-size: 15px; color: var(--muted); background: #fff; }
.brand-chips span:hover { border-color: var(--brand); color: var(--brand); }

/* case cards */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.case-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.case-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-card-body { padding: 20px 22px 24px; }
.case-card-body .tag { display: inline-block; font-size: 12px; color: var(--brand); background: rgba(0,160,233,.08); border-radius: 4px; padding: 2px 10px; margin-bottom: 10px; }
.case-card-body h3 { font-size: 16px; margin-bottom: 8px; }
.case-card-body p { font-size: 14px; color: var(--muted); }

/* news list */
.news-list { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; }
.news-item { display: flex; gap: 22px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; background: #fff; }
.news-item:hover { border-color: var(--brand); }
.news-thumb { width: 190px; height: 124px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.news-body { flex: 1; min-width: 0; }
.news-body time { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.news-body h3 { font-size: 16px; margin-bottom: 6px; }
.news-body p { font-size: 14px; color: var(--muted); }

/* article modal */
.article-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.article-modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,32,.55); }
.modal-dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(920px, 92vw); height: min(84vh, 780px); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.modal-frame { width: 100%; height: 100%; border: 0; display: block; }
.modal-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #eef1f4; color: #333; font-size: 24px; line-height: 34px; cursor: pointer; padding: 0; }
.modal-close:hover { background: #dfe4e8; }

/* article page shown inside modal */
body.in-modal .site-header, body.in-modal .site-footer, body.in-modal .breadcrumb { display: none; }

/* article pages */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--brand); }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: 28px; line-height: 1.4; margin-bottom: 12px; }
.article .meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.article h2 { font-size: 20px; margin: 36px 0 14px; }
.article h3 { font-size: 17px; margin: 26px 0 10px; }
.article p { font-size: 15.5px; margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px 22px; font-size: 15.5px; }
.article li { margin-bottom: 8px; }
.article img { border-radius: 10px; margin: 20px 0; }
.article-cta { margin-top: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; background: var(--bg-soft); text-align: center; }
.article-cta p { margin-bottom: 12px; color: var(--muted); }
.article-cta a { display: inline-block; background: var(--brand); color: #fff; padding: 10px 26px; border-radius: 6px; }

@media (max-width: 860px) {
  .case-cards { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 12px; align-items: stretch; }
  .news-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
  .modal-dialog { width: 100vw; height: 100vh; border-radius: 0; }
  .modal-close { top: 8px; right: 8px; }
}

/* map */
.map-box { max-width: 1080px; }
#branches-map { position: relative; z-index: 1; height: 480px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.06); background: #e8eef2; }
.branch-label-wrap { background: none; border: none; }
.branch-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-block; background: #fff; color: var(--brand-dark); font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
.map-caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
@media (max-width: 860px) {
  #branches-map { height: 340px; }
}

/* language switcher */
.header-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; background: #fff; user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch .flag { font-size: 16px; }
.lang-switch .lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); min-width: 150px; padding: 6px; z-index: 60; }
.lang-switch .lang-menu a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.lang-switch .lang-menu a:hover { background: var(--bg-soft); }
.lang-switch .lang-menu a.on { color: var(--brand); font-weight: 600; }
@media (max-width: 860px) {
  .header-right { gap: 10px; }
  .lang-switch summary { padding: 4px 10px; font-size: 13px; }
}

/* contact form */
.contact-grid { display: grid; grid-template-columns: 330px 1fr; gap: 28px; max-width: 960px; margin: 0 auto; align-items: start; }
.contact-side .contact-box { margin: 0; text-align: left; }
.contact-side .contact-box .tel { text-align: left; }
.contact-mail a { color: var(--brand); word-break: break-all; }
.contact-form { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; display: grid; gap: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: inherit; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-submit { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 28px; font-size: 15px; cursor: pointer; }
.form-submit:hover { background: var(--brand-dark); }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note.ok { color: #237231; }
.form-note.err { color: var(--brand); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-side .contact-box { text-align: center; }
  .contact-side .contact-box .tel { text-align: center; }
}
