:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #172538;
  --muted: #46566b;
  --line: #dce3eb;
  --accent: #195da5;
  --accent-hover: #114982;
  --accent-soft: #e8f1fc;
  --brand-gradient: linear-gradient(90deg,#154481,#2c73b8 58%,#a8c7e9);
  --font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--font); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.23; }
h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2674c5; outline-offset: 4px; }
::selection { background: #d7e9fb; color: var(--ink); }
.wrap { width: min(1260px, calc(100% - clamp(2.25rem, 10vw, 10rem))); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .5rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.admin-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.admin-header::before { content: ""; display: block; height: 4px; background: var(--brand-gradient); }
.header-inner { min-height: 77px; display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; line-height: 1; flex-shrink: 0; }
.brand-mark {
  display: block; width: 35px; height: 30px; background: linear-gradient(150deg,#2675c0,#123f7f);
  clip-path: polygon(0 87%,0 13%,21% 13%,50% 50%,79% 13%,100% 13%,100% 87%,80% 87%,80% 49%,50% 83%,20% 49%,20% 87%);
}
.brand-word { display: grid; gap: .3rem; }
.brand-word b { font-size: 1.32rem; font-weight: 850; letter-spacing: .09em; }
.brand-word small { font-size: .875rem; letter-spacing: .08em; color: var(--muted); }
.admin-logo { width: auto; height: 42px; max-width: 138px; object-fit: contain; }
.site-nav { display: flex; align-self: stretch; align-items: center; }
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:not(.v2-language) { display: flex; height: 100%; align-items: center; }
.menu-toggle { display: none; }
.eyebrow { display: inline-block; color: #17589f; font-size: .875rem; font-weight: 760; letter-spacing: .15em; }

.actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.detail-grid .actions { margin-top: 2rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 44px;
  padding: .66rem 1.15rem; line-height: 1.4; border: 1px solid transparent; border-radius: 5px;
  text-decoration: none; font-size: .95rem; font-weight: 700; transition: background-color .18s, border-color .18s;
}
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-hover); }
.button.outline-dark { border-color: #9cb8d8; background: white; color: #174e8d; }
.button.outline-dark:hover { background: var(--accent-soft); border-color: #9cb8d8; }
.button.danger { color: #971d34; border-color: #f0bcc6; background: #fff5f6; }
.button.danger:hover { background: #ffe1e6; }
.text-link { color: #155394; font-weight: 720; text-underline-offset: .25em; text-decoration-color: #80a5d1; }
.text-link:hover { color: #0d3b72; text-decoration-color: currentColor; }

.section { padding: clamp(3.6rem, 7.3vw, 7rem) 0; }
.light { background: var(--paper); }
.soft { background: #f2f5f9; }
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.solution-card { border: 1px solid var(--line); background: white; overflow: hidden; border-radius: 8px; }
.solution-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f2f5f9; }
.solution-image img { width: 100%; height: 100%; object-fit: contain; }
.feature-image figcaption {
  position: absolute; bottom: .7rem; right: .75rem; padding: .1rem .45rem; border-radius: 3px;
  background: #172b42d9; color: #f1f5fa; font-size: .8125rem;
}
.solution-text { padding: clamp(1rem, 2vw, 1.5rem); }
.solution-text p { margin: .6rem 0 1rem; color: var(--muted); }
.solution-text > a + a { margin-inline-start: .7rem; }
.feature, .detail-grid, .contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(1.5rem, 6vw, 6rem); }
.feature h2 { margin-top: .4rem; }
.feature-image { border-radius: 8px; position: relative; overflow: hidden; background: #f2f5f9; }
.feature-image:empty { display: none; }
.feature-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.detail-image img { object-fit: contain; }
.rich-text { white-space: pre-line; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.feature .rich-text { margin-top: 1.2rem; }
.feature .button { margin-top: 1.5rem; }

.news-list { border-top: 1px solid var(--line); }
.section h2 + .news-list, .section h2 + .solution-grid { margin-top: 1.5rem; }
.news-row { display: grid; grid-template-columns: 8.1rem minmax(0,1fr) auto; gap: 1.25rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.news-row time, .resource-row time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.news-row h3 a, .resource-row h2 a { text-decoration: none; }
.news-row h3 a:hover, .resource-row h2 a:hover { text-decoration: underline; text-underline-offset: .22em; }
.news-row p, .resource-row p { color: var(--muted); margin-top: .42rem; }
.news-row .row-action { align-self: center; white-space: nowrap; }
.contact-band { background: #edf4fc; border-top: 1px solid #d8e5f3; padding: clamp(2.25rem,5vw,4.6rem) 0; }
.band-inner { display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; }
.band-inner .button { flex-shrink: 0; }
.page-top { background: linear-gradient(115deg,#edf3f9,#f7f9fb 72%); color: var(--ink); padding: clamp(3.2rem, 8vw, 7rem) 0; }
.page-top h1 { max-width: 64rem; overflow-wrap: anywhere; }
.page-top .eyebrow + h1 { margin-top: .75rem; }
.page-top p:not(.eyebrow) { color: var(--muted); max-width: 52rem; margin-top: 1rem; font-size: 1.08rem; }
.page-top time { display: inline-block; color: var(--muted); margin-top: 1rem; font-size: .9rem; }
.detail-grid { align-items: start; }
.detail-grid.detail-simple { grid-template-columns: minmax(0, 48rem); }
.detail-grid .rich-text, .readable { font-size: 1.08rem; line-height: 1.9; }
.readable { max-width: 48rem; }
.resource-list { display: grid; gap: .85rem; }
.resource-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: 1.15rem; background: white; }
.resource-row h2 { font-size: 1.25rem; }
.file-icon { background: var(--accent-soft); color: #174e8d; font-weight: 800; font-size: .875rem; padding: .6rem .65rem; border-radius: 5px; }
.empty { text-align: center; padding: 2.5rem 1.1rem; }
.empty p:not(.eyebrow) { color: var(--muted); margin-top: .7rem; }
.empty .button { margin-top: 1.25rem; }
.contact-grid { align-items: start; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); }
.contact-grid .muted { margin-top: .85rem; }
.contact-address { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; overflow-wrap: anywhere; }
.contact-address p { color: var(--muted); margin-top: .3rem; }

.panel { background: white; border: 1px solid var(--line); border-radius: 8px; }
.form { display: grid; gap: 1rem; padding: clamp(1rem,2.6vw,2rem); }
.form h1 { font-size: 1.9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 650; font-size: .95rem; }
.form input:not([type=checkbox]), .form select, .form textarea {
  width: 100%; min-height: 44px; border: 1px solid #b9c8da; border-radius: 5px;
  padding: .52rem .65rem; color: var(--ink); background: white; font-weight: 450; font-size: 1rem;
}
.form input[type=file] { max-width: 100%; }
.form input[type=file]::file-selector-button { border: 0; border-radius: 4px; padding: .2rem .65rem; background: var(--accent-soft); color: #174e8d; cursor: pointer; }
.form textarea { resize: vertical; }
.form select {
  appearance: none; padding-inline-end: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #526680 50%),linear-gradient(135deg,#526680 50%,transparent 50%);
  background-position: calc(100% - 16px) 50%,calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.form fieldset { margin: 0; min-width: 0; display: grid; gap: .8rem; border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem 1rem; }
.form legend { font-weight: 750; padding: 0 .3rem; }
.form .check { display: flex; align-items: start; gap: .55rem; font-weight: 450; }
.check input { min-width: 1.15rem; height: 1.15rem; margin-top: .23rem; accent-color: var(--accent); }
.form small, .input-help { color: var(--muted); font-size: .875rem; font-weight: 450; }
.notice { border-radius: 5px; padding: .65rem .85rem; background: #ebf8ef; color: #155a35; border: 1px solid #bee6ca; }
.notice.error { background: #fff0f2; color: #8f2036; border-color: #f0b8c4; }

.admin { background: #f2f5f9; }
.admin-actions { display: flex; align-items: center; gap: .85rem; font-size: .9rem; }
.admin-actions .button { min-height: 36px; padding: .38rem .75rem; }
.admin-shell { display: grid; grid-template-columns: 12.5rem minmax(0,1fr); align-items: start; gap: 1.5rem; padding-block: 2rem 4rem; }
.admin-login { max-width: 420px; padding-block: 3.5rem; }
.admin-nav { display: grid; gap: .18rem; padding: .6rem; }
.admin-nav a { border-radius: 4px; padding: .5rem .65rem; text-decoration: none; font-size: .95rem; }
.admin-nav a:hover, .admin-nav a[aria-current] { background: var(--accent-soft); color: #174e8d; }
.admin-nav a[aria-current] { font-weight: 750; }
.admin-main { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.admin-main h1 { font-size: clamp(1.65rem,4vw,2.35rem); letter-spacing: -.03em; }
.admin-main h2 { font-size: 1.15rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.admin-back { justify-self: start; }
.dashboard-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.stat { display: grid; gap: .2rem; padding: 1rem; text-decoration: none; }
.stat:hover { border-color: #9cb8d8; }
.stat b { font-size: 1.6rem; color: var(--accent); }
.stat span { font-size: .875rem; color: var(--muted); }
.admin-help, .inquiry { display: grid; gap: .75rem; padding: 1.25rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; text-align: left; }
th, td { padding: .75rem .9rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #edf3f9; color: #42546a; font-size: .875rem; }
td { overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.state { display: inline-flex; border-radius: 20px; padding: .13rem .55rem; background: #edf1f5; color: #42546a; white-space: nowrap; font-size: .875rem; }
.state.published { background: #e7f5eb; color: #196642; }
.state.draft { background: #f7efda; color: #735817; }
.inquiry dl { display: flex; gap: .65rem 1.2rem; flex-wrap: wrap; }
.inquiry dt { font-size: .875rem; color: var(--muted); }
.inquiry dd { overflow-wrap: anywhere; }
.inquiry .rich-text { padding: .5rem 0; }

@media (max-width: 900px) {
  .solution-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-inner { gap: .75rem; }
  .admin-shell { grid-template-columns: 10rem minmax(0,1fr); gap: 1rem; }
}
@media (max-width: 740px) {
  .header-inner { min-height: 65px; flex-wrap: wrap; }
  .feature, .detail-grid, .contact-grid { grid-template-columns: minmax(0,1fr); }
  .news-row { grid-template-columns: minmax(0,1fr); gap: .4rem; }
  .band-inner { flex-wrap: wrap; }
  .admin-shell { grid-template-columns: minmax(0,1fr); padding-top: 1rem; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-nav a { padding: .35rem .5rem; }
}
@media (max-width: 470px) {
  .solution-grid, .form-grid { grid-template-columns: minmax(0,1fr); }
  .resource-row { grid-template-columns: auto minmax(0,1fr); }
  .resource-row .button { grid-column: 2; justify-self: start; }
  .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.image-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.image-card { overflow: hidden; scroll-margin-top: 1rem; }
.image-preview { min-height: 130px; aspect-ratio: 16/8; display: grid; place-items: center; background: #eef1f5; color: #526074; }
.image-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-preview.logo-preview img { width: min(78%,14rem); height: auto; max-height: 7rem; }
.image-card .form { gap: .7rem; }
.image-requirement { color: #174e8d; background: var(--accent-soft); padding: .45rem .6rem; border-radius: 4px; font-size: .875rem; }
.image-card .state { vertical-align: middle; margin-inline-start: .3rem; }
@media (max-width: 640px) {
  .image-grid { grid-template-columns: minmax(0,1fr); }
}
