@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

:root {
  --bg: #111418;
  --bg-deep: #0B0D10;
  --acc: #FF4D2D;
  --ink: #FFCF4A;
  --fg: #F2EEE6;
  --soft: #C9C3B8;
  --dim: #8C877E;
  --line: rgba(242, 238, 230, .16);
  --glass: rgba(242, 238, 230, .055);
  --pad: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -14vh;
  left: -12vw;
  width: 62vw;
  height: 62vw;
  background: var(--acc);
  opacity: .10;
  transform: rotate(18deg);
  z-index: 0;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0;
}

/* ---------- 顶部两行 ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 2px solid var(--acc);
}

.mast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
  background: var(--acc);
  border-radius: 3px;
  position: relative;
}

span.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  background: var(--ink);
}

img.brand-mark { object-fit: cover; }

.dock { background: var(--bg); }

.dock nav { padding: 0 var(--pad) 10px; }

.pills {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pills::-webkit-scrollbar { display: none; }

.pills li { flex: none; }

.pills a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.pills a:hover {
  background: var(--acc);
  border-color: var(--acc);
  color: #111418;
}

.pills a.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #111418;
}

/* ---------- 主体 ---------- */

.mast, main, footer { position: relative; z-index: 1; }

main {
  padding: 20px var(--pad) 0;
  max-width: 1100px;
  margin: 0 auto;
}

article {
  display: grid;
  gap: 20px;
}

article > section {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px 20px;
}

article > section[id] { scroll-margin-top: 150px; }

/* ---------- 头部主区 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--acc);
  color: #111418;
  border-radius: 28px;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 20px 20px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-align: right;
  text-wrap: balance;
}

.hero-badges {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  transform: rotate(-8deg);
}

.badge-1 {
  left: 18px;
  top: 22px;
  background: #111418;
  color: var(--ink);
}

.badge-2 {
  left: 52px;
  top: 104px;
  width: 64px;
  height: 64px;
  background: var(--ink);
  color: #111418;
  transform: rotate(6deg);
}

.hero-fig {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 3px solid #111418;
  background: #111418;
}

.hero-fig:empty { display: none; }

.hero-fig img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

/* ---------- 正文排版 ---------- */

section h2 {
  margin: 0 0 .5em;
  font-size: clamp(1.45rem, 4vw, 2.05rem);
  line-height: 1.16;
  color: var(--ink);
}

section h3 {
  margin: 1.5em 0 .4em;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #fff;
}

section h4 {
  margin: 1.2em 0 .35em;
  font-size: 1.05rem;
  color: #fff;
}

section p {
  margin: 0 0 1em;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--soft);
}

.subtitle,
.subhead,
.subheadline,
.desc,
.lead {
  margin: -.2em 0 1.1em;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}

section h2 + p { margin-top: 0; }

section ul,
section ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  color: var(--soft);
}

section li {
  margin: .35em 0;
  line-height: 1.75;
}

section li::marker { color: var(--acc); }

section a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

section a:hover { color: var(--acc); }

section strong { color: #fff; font-weight: 700; }

section blockquote {
  margin: 1.2em 0;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--acc);
  color: var(--fg);
}

section blockquote p { color: var(--fg); }

section img {
  border-radius: 14px;
  height: auto;
  margin: 1em 0;
}

section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 1rem;
}

section th,
section td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  color: var(--soft);
}

section th {
  background: rgba(255, 207, 74, .12);
  color: var(--ink);
}

/* ---------- 页脚 ---------- */

footer {
  margin-top: 44px;
  background: var(--bg-deep);
  border-top: 2px solid var(--acc);
  padding: 30px var(--pad) 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

footer > section { min-width: 0; }

.base-h {
  margin: 0 0 .55em;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: .06em;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-size: 19px;
  font-weight: 700;
}

.base-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.base-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--soft);
  font-size: 16px;
  transition: color .18s ease;
}

.base-links a:hover { color: var(--acc); }

.base-contact .subtitle {
  color: var(--fg);
  font-weight: 400;
  word-break: break-all;
}

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-label {
  font-size: 16px;
  color: var(--soft);
}

.sub-input {
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}

.sub-input::placeholder { color: var(--dim); }
.sub-input:focus { border-color: var(--ink); }

.sub-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--acc);
  border-radius: 4px;
  background: var(--acc);
  color: #111418;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.sub-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.base-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.copy {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 500;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.to-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #111418;
}

/* ---------- 断点 ---------- */

@media (min-width: 900px) {
  main { padding: 28px var(--pad) 0; }
  article { gap: 26px; }
  article > section { padding: 34px 32px; }
  .hero { min-height: 70vh; padding: 36px 34px 26px; }
  .hero-copy { padding-top: 96px; }
  .badge-1 { left: 34px; top: 34px; width: 88px; height: 88px; }
  .badge-2 { left: 74px; top: 136px; width: 72px; height: 72px; }
  footer { padding: 40px 30px 28px; gap: 28px; }
}

@media (max-width: 760px) {
  footer { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 58vh; }
}

@media (max-width: 480px) {
  footer { grid-template-columns: 1fr; }
  .base-foot { grid-column: 1 / -1; }
  article > section { padding: 22px 17px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-fig img { transform: none !important; will-change: auto; }
  .pills a,
  .base-links a,
  .sub-btn,
  .to-top { transition: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
