:root {
  --ink: #10201c;
  --muted: #60706a;
  --paper: #f4f7f5;
  --white: #ffffff;
  --green: #0d7655;
  --green-dark: #084f3c;
  --gold: #d6ad52;
  --coral: #d96c54;
  --line: #dce5e1;
  --shadow: 0 18px 50px rgba(16, 32, 28, 0.1);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 76px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.brand, .footer-brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-mark.small { width: 38px; border-color: rgba(255,255,255,.3); font-size: 20px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 18px; letter-spacing: 0; }
.brand-copy small { font-size: 9px; color: rgba(255,255,255,.65); }
.site-header nav { display: flex; gap: 38px; font-size: 14px; }
.site-header nav a { position: relative; padding: 34px 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 23px; height: 2px; background: var(--gold); transition: right .2s ease; }
.site-header nav a:hover::after { right: 0; }
.header-contact { justify-self: end; border: 1px solid rgba(255,255,255,.42); padding: 11px 17px; font-size: 13px; }

.hero { position: relative; min-height: min(780px, 92vh); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; filter: saturate(.72) contrast(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,25,21,.94) 0%, rgba(8,25,21,.76) 48%, rgba(8,25,21,.22) 100%), linear-gradient(0deg, rgba(8,25,21,.48), transparent 44%); }
.hero-content { position: relative; z-index: 2; width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: clamp(180px, 24vh, 235px) 0 95px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.eyebrow.dark { color: var(--green); }
.hero h1 { margin: 0; max-width: 760px; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: clamp(48px, 7vw, 86px); line-height: 1.05; font-weight: 700; letter-spacing: 0; }
.hero-tagline { margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: clamp(17px, 2vw, 22px); }
.hero-notice { width: fit-content; max-width: 100%; margin: 13px 0 0; padding-left: 13px; border-left: 2px solid var(--gold); color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #182019; }
.button.secondary { border-color: rgba(255,255,255,.45); color: var(--white); }
.button.light { background: var(--white); color: var(--green-dark); white-space: nowrap; }
.contact-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 64px; color: rgba(255,255,255,.82); font-size: 14px; }
.contact-strip a { min-height: 50px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid rgba(255,255,255,.28); background: rgba(8,25,21,.42); backdrop-filter: blur(8px); transition: background .2s ease, border-color .2s ease; }
.contact-strip a:hover { background: rgba(13,118,85,.72); border-color: rgba(255,255,255,.55); }
.contact-strip strong { color: var(--white); font-size: 17px; font-weight: 700; }
.scroll-cue { position: absolute; z-index: 2; right: clamp(24px, 5vw, 76px); bottom: 40px; width: 28px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.platform-section { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2, .service-band h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: clamp(34px, 4vw, 52px); letter-spacing: 0; }
.search-box input { width: min(310px, 45vw); height: 46px; border: 1px solid var(--line); border-radius: 0; background: var(--white); padding: 0 16px; color: var(--ink); outline: none; }
.search-box input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,118,85,.1); }
.platform-count { min-height: 20px; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.platform-card { position: relative; min-height: 252px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.platform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.platform-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 58px; background: var(--accent, var(--green)); }
.platform-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.platform-logo, .platform-initial { flex: 0 0 112px; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 8px; background: color-mix(in srgb, var(--accent, var(--green)) 10%, white); color: var(--accent, var(--green)); overflow: hidden; }
.platform-logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 5px; }
.platform-initial { font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.status { color: var(--green); font-size: 12px; }
.platform-card h3 { margin: 22px 0 5px; font-size: 22px; }
.platform-meta { margin: 0; color: var(--muted); font-size: 12px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 25px; }
.card-button { height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.card-button.login { background: var(--green); border-color: var(--green); color: var(--white); }
.card-button:hover { border-color: var(--green); }
.card-button:disabled { cursor: not-allowed; opacity: .45; }
.empty-state { padding: 72px 20px; text-align: center; color: var(--muted); background: var(--white); border: 1px solid var(--line); }

.software-section { scroll-margin-top: 20px; padding: 88px 24px 96px; background: #e9efec; border-top: 1px solid var(--line); }
.software-inner { width: min(1160px, 100%); margin: 0 auto; }
.software-heading { align-items: end; margin-bottom: 28px; }
.software-heading > p { max-width: 330px; margin: 0 0 5px; color: var(--muted); font-size: 14px; text-align: right; }
.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.software-item { min-width: 0; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border: 1px solid #d5dfdb; border-radius: 6px; background: var(--white); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.software-item:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 10px 28px rgba(16,32,28,.08); }
.software-item span { min-width: 0; display: grid; gap: 6px; }
.software-item strong, .software-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.software-item strong { font-size: 15px; }
.software-item small { color: var(--muted); font-size: 12px; }
.software-item b { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #edf5f1; color: var(--green); font-size: 16px; font-weight: 400; }

.service-band { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 60px; padding: 70px max(24px, calc((100vw - 1160px) / 2)); background: var(--green-dark); color: var(--white); }
.service-band .eyebrow { margin-bottom: 12px; }
.service-band h2 { font-size: clamp(30px, 3vw, 42px); }
.service-band > p { color: rgba(255,255,255,.7); line-height: 1.8; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; padding: 50px max(24px, calc((100vw - 1160px) / 2)); background: #0d1714; color: var(--white); }
.footer-brand strong { font-size: 17px; }
.footer-brand p { margin: 6px 0 0; color: rgba(255,255,255,.48); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; color: rgba(255,255,255,.65); font-size: 13px; }
.copyright { grid-column: 1 / -1; margin: 5px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: 12px; }

.line-dialog { width: min(540px, calc(100% - 32px)); max-height: min(650px, calc(100vh - 40px)); border: 0; border-radius: 6px; padding: 0; color: var(--ink); box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.line-dialog::backdrop { background: rgba(5,17,14,.72); backdrop-filter: blur(4px); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; padding: 24px; border-bottom: 1px solid var(--line); }
.dialog-header p { margin: 0 0 5px; color: var(--green); font-size: 12px; }
.dialog-header h3 { margin: 0; font-size: 23px; }
.icon-button { width: 36px; height: 36px; border: 0; background: var(--paper); color: var(--ink); font-size: 25px; line-height: 1; cursor: pointer; }
.line-list { display: grid; gap: 8px; padding: 18px 24px 24px; overflow: auto; }
.line-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; background: var(--paper); border: 1px solid transparent; }
.line-item:hover { border-color: var(--green); }
.line-number { color: var(--green); font-size: 12px; }
.line-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.line-open { color: var(--green); font-size: 13px; font-weight: 700; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; background: #10201c; color: white; border-radius: 4px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 76px; padding: 0 24px; }
  .site-header nav { display: none; }
  .header-contact { font-size: 0; width: 42px; height: 42px; padding: 0; }
  .header-contact::after { content: "TG"; font-size: 12px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .software-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-band { grid-template-columns: 1fr auto; gap: 24px; }
  .service-band > p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 16px; }
  .brand-mark { width: 38px; font-size: 20px; }
  .brand-copy strong { font-size: 15px; }
  .hero { min-height: 720px; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,25,21,.94), rgba(8,25,21,.6)), linear-gradient(0deg, rgba(8,25,21,.55), transparent); }
  .hero-content { width: calc(100% - 32px); padding-top: 166px; }
  .hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-notice { max-width: 330px; font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 300px; }
  .contact-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 343px; margin-top: 38px; }
  .contact-strip a { min-height: 56px; display: grid; align-content: center; gap: 2px; padding: 7px 12px; }
  .contact-strip a span { font-size: 12px; }
  .contact-strip strong { font-size: 16px; }
  .scroll-cue { display: none; }
  .platform-section { width: calc(100% - 28px); padding: 68px 0 76px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-box input { width: 100%; }
  .platform-grid { grid-template-columns: 1fr; gap: 12px; }
  .platform-card { min-height: 236px; padding: 21px; }
  .platform-logo, .platform-initial { flex-basis: 100px; width: 100px; height: 100px; }
  .software-section { padding: 64px 14px 70px; }
  .software-heading { align-items: stretch; flex-direction: column; }
  .software-heading > p { text-align: left; }
  .software-grid { grid-template-columns: 1fr; }
  .service-band { display: flex; align-items: stretch; flex-direction: column; padding: 54px 20px; }
  .service-band .button { align-self: flex-start; }
  footer { grid-template-columns: 1fr; padding: 44px 20px; }
  .footer-links { justify-content: flex-start; gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
