:root {
  --ink: #121923;
  --muted: #687485;
  --line: #dce4eb;
  --panel: #ffffff;
  --soft: #f6f8fa;
  --blue: #0f5f9f;
  --cyan: #31aebd;
  --green: #357d67;
  --dark: #0a1119;
  --gold: #b99a5b;
  --shadow: 0 22px 60px rgba(18, 32, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--soft) 420px),
    var(--soft);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 224, 232, 0.9);
  box-shadow: 0 8px 26px rgba(10, 17, 25, 0.045);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #263646;
  font-size: 15px;
}

.site-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--blue);
  background: rgba(15, 95, 159, 0.06);
}

.nav-cta {
  color: #fff !important;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(15, 95, 159, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.language-switch button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  color: #425164;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button.is-active {
  color: #fff;
  background: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 700px;
  overflow: hidden;
  background: var(--dark);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 58% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 13, 20, 0.95) 0%, rgba(6, 13, 20, 0.78) 38%, rgba(6, 13, 20, 0.18) 78%),
    linear-gradient(180deg, rgba(6, 13, 20, 0.1), rgba(6, 13, 20, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 54px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 62px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #173f68);
  box-shadow: 0 14px 30px rgba(15, 95, 159, 0.26);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin: 40px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
}

.intro-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.camera-panel,
.contact-card,
.inquiry-form {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-grid article {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.intro-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), #1f5d76);
}

h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

p {
  margin: 0;
}

.products-section,
.support-section {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 34px rgba(18, 32, 48, 0.06);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(18, 32, 48, 0.14);
}

.product-media {
  height: 138px;
  background-color: #dfe8ef;
}

.sentech-product-card {
  display: grid;
  grid-template-rows: 190px 1fr;
}

.product-photo {
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: #f8fafb;
}

.source-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.camera-pattern {
  background:
    radial-gradient(circle at 72% 42%, #1b2d3e 0 22px, transparent 23px),
    linear-gradient(135deg, rgba(23, 105, 170, 0.8), rgba(47, 143, 107, 0.65)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.24) 27px 28px);
}

.lens-pattern {
  background:
    radial-gradient(circle at 50% 50%, #0e1a24 0 26px, #2d6f86 27px 42px, transparent 43px),
    linear-gradient(135deg, #eef4f8, #bad1dd);
}

.light-pattern {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30px, rgba(32, 164, 184, 0.95) 31px 50px, transparent 51px),
    linear-gradient(135deg, #f6fbfd, #cfdde6);
}

.board-pattern {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, #193748, #2f8f6b);
}

.software-pattern {
  background:
    linear-gradient(90deg, rgba(23, 105, 170, 0.94) 0 32%, transparent 32%),
    linear-gradient(135deg, #d9eef2, #f7fbfc);
}

.depth-pattern {
  background:
    radial-gradient(circle at 30% 40%, rgba(23, 105, 170, 0.9) 0 7px, transparent 8px),
    radial-gradient(circle at 60% 58%, rgba(47, 143, 107, 0.88) 0 7px, transparent 8px),
    radial-gradient(circle at 75% 30%, rgba(32, 164, 184, 0.88) 0 7px, transparent 8px),
    linear-gradient(135deg, #e8f0f5, #b8cad8);
}

.product-body {
  padding: 22px;
}

.product-tag {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.product-body p:not(.product-tag) {
  color: var(--muted);
}

.product-body a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.camera-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 22px;
}

.sentech-section {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(180deg, #eef4f7 0%, #f8fafb 100%);
}

.brand-strip {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 22px 24px;
  color: #fff;
  background:
    linear-gradient(135deg, #0a1119 0%, #112638 62%, #153e4a 100%);
  box-shadow: 0 20px 50px rgba(10, 17, 25, 0.16);
}

.brand-strip span,
.brand-strip strong {
  display: block;
  line-height: 1.25;
}

.brand-strip span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.brand-strip strong {
  margin-top: 5px;
  font-size: 24px;
}

.brand-strip p {
  color: rgba(255, 255, 255, 0.76);
}

.sentech-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.sentech-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 32, 48, 0.065);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sentech-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 95, 159, 0.32);
  box-shadow: 0 22px 54px rgba(18, 32, 48, 0.13);
}

.sentech-card .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 54px;
  min-height: 34px;
  padding: 4px 10px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), #173f68);
}

.sentech-card h3 {
  margin-top: 16px;
  font-size: 19px;
}

.sentech-card p {
  color: var(--muted);
  font-size: 14px;
}

.sentech-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 9px 12px;
  color: var(--blue);
  font-weight: 800;
  border: 1px solid rgba(23, 105, 170, 0.28);
}

.sentech-card a:hover {
  color: #fff;
  background: var(--blue);
}

.partner-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 32, 48, 0.12);
}

.partner-visual {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: #f8fafb;
}

.partner-eye {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.partner-logo-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  width: fit-content;
  max-width: calc(100% - 48px);
  padding: 14px 16px;
  color: #132033;
  font-size: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(10, 17, 25, 0.14);
  backdrop-filter: blur(10px);
}

.partner-body {
  display: grid;
  align-content: center;
  padding: 42px;
}

.partner-body h3 {
  margin-top: 12px;
  font-size: 30px;
}

.partner-body p:not(.product-tag) {
  color: var(--muted);
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.partner-tags span {
  padding: 7px 10px;
  color: #173f68;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(15, 95, 159, 0.16);
  background: #edf5fa;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.partner-statement {
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(185, 154, 91, 0.38);
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 32, 48, 0.08);
}

.partner-statement h3 {
  margin-top: 0;
}

.partner-statement p:not(.eyebrow) {
  color: var(--muted);
}

.light-button {
  color: var(--blue) !important;
  border-color: rgba(15, 95, 159, 0.28) !important;
  background: #fff !important;
}

.camera-panel {
  padding: 30px;
  border-top: 4px solid var(--gold);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--gold);
}

.spec-table {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.spec-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  min-height: 64px;
  border-top: 1px solid var(--line);
}

.spec-row:first-child {
  border-top: 0;
}

.spec-row span {
  display: flex;
  align-items: center;
  padding: 15px 18px;
}

.spec-row:not(.spec-head) span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.spec-row:not(.spec-head) span:nth-child(2) {
  color: var(--muted);
}

.spec-row:not(.spec-head) span:nth-child(3) {
  color: var(--blue);
  font-weight: 750;
  background: #f3f8fb;
}

.spec-row span + span {
  border-left: 1px solid var(--line);
}

.spec-head {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark), #14293a);
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.solution-list article {
  min-height: 210px;
  padding: 26px;
  background: #fff;
  transition: background 0.18s ease;
}

.solution-list article:hover {
  background: #f8fafb;
}

.solution-list p {
  color: var(--muted);
}

.support-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.support-grid a {
  display: grid;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--soft);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.support-grid a:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-2px);
}

.trust-section {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-grid article {
  min-height: 250px;
  padding: 24px;
  background: #fff;
}

.trust-grid strong {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.trust-grid h3 {
  margin-top: 12px;
  font-size: 19px;
}

.trust-grid p {
  color: var(--muted);
  font-size: 14px;
}

.article-section {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #f8fafb 0%, #eef4f7 100%);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 32, 48, 0.065);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(18, 32, 48, 0.13);
}

.article-card summary {
  list-style: none;
  cursor: pointer;
}

.article-card summary::-webkit-details-marker {
  display: none;
}

.article-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card h3 {
  margin-top: 14px;
  font-size: 19px;
}

.article-card p {
  color: var(--muted);
  font-size: 14px;
}

.article-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 24px;
  border-top: 4px solid var(--gold);
}

.contact-card span {
  color: var(--muted);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.contact-card [data-contact-address] {
  line-height: 1.5;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.form-section-title {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #f8fafb;
}

.form-section-title strong {
  color: var(--ink);
  font-size: 16px;
}

.form-section-title span {
  color: var(--muted);
  font-size: 13px;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: #344456;
  font-size: 14px;
  font-weight: 800;
}

.full-field,
.privacy-field,
.form-button,
.form-note {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.checkbox-field span {
  color: #344456;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 95, 159, 0.22);
  border-color: rgba(15, 95, 159, 0.5);
}

textarea {
  resize: vertical;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.turnstile-slot {
  grid-column: 1 / -1;
  min-height: 0;
}

.turnstile-slot:empty {
  display: none;
}

.ai-turnstile {
  padding: 0 16px 12px;
}

.form-button {
  justify-self: start;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

.form-note.success {
  color: var(--green);
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: var(--soft);
}

.admin-main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0a1119 0%, #112638 62%, #153e4a 100%);
  box-shadow: 0 20px 50px rgba(10, 17, 25, 0.14);
}

.admin-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
}

.admin-hero p {
  max-width: 760px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-actions .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-stat {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 32, 48, 0.06);
}

.admin-stat strong {
  display: block;
  font-size: 28px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.admin-filter {
  min-width: 180px;
  max-width: 240px;
}

.inquiry-table-wrap {
  overflow-x: auto;
}

.inquiry-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.inquiry-table th,
.inquiry-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.inquiry-table th {
  color: #344456;
  font-size: 13px;
  background: #f8fafb;
}

.inquiry-table button {
  padding: 7px 10px;
  color: var(--blue);
  font-weight: 800;
  border: 1px solid rgba(15, 95, 159, 0.28);
  background: #fff;
  cursor: pointer;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  color: #173f68;
  font-size: 12px;
  font-weight: 900;
  background: #e9f2f8;
}

.detail-panel {
  padding: 20px;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-item {
  display: grid;
  gap: 3px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-item strong,
.detail-item p {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.ai-detail p {
  white-space: pre-wrap;
}

.admin-edit {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-edit label {
  display: grid;
  gap: 7px;
  color: #344456;
  font-size: 14px;
  font-weight: 800;
}

.visitor-panel {
  margin-top: 24px;
}

.visitor-note {
  color: var(--muted);
  font-size: 13px;
}

.visitor-log-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.visitor-log-item {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr 1.4fr;
  gap: 10px 14px;
  padding: 14px 18px;
  background: #fff;
}

.visitor-log-item strong {
  color: var(--blue);
}

.visitor-log-item span,
.visitor-log-item small {
  color: #526477;
  overflow-wrap: anywhere;
}

.visitor-log-item small {
  grid-column: span 2;
  font-size: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 40px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--dark);
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.policy-page {
  background:
    linear-gradient(180deg, #eef4f7 0, #fff 380px),
    #fff;
}

.policy-main {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 72px 0;
}

.policy-hero {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.policy-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.policy-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.policy-date {
  margin-top: 18px;
  font-size: 14px !important;
}

.policy-content {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.policy-content article {
  padding: 28px 30px;
  background: #fff;
}

.policy-content h2 {
  margin-top: 0;
  font-size: 22px;
}

.policy-content p,
.policy-content li {
  color: #526477;
}

.policy-content ul {
  padding-left: 22px;
}

.policy-content a {
  color: var(--blue);
  font-weight: 800;
}

.ai-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
}

.ai-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 16px 9px 10px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), #173f68);
  box-shadow: 0 18px 42px rgba(15, 95, 159, 0.28);
  cursor: pointer;
}

.ai-toggle span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
  font-weight: 900;
  background: #fff;
}

.ai-toggle strong {
  font-size: 15px;
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: grid;
  width: min(420px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 17, 25, 0.2);
}

.ai-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0a1119 0%, #112638 62%, #153e4a 100%);
}

.ai-header h2 {
  margin: 0;
  font-size: 20px;
}

.ai-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.ai-messages {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafb;
}

.ai-message {
  width: fit-content;
  max-width: 92%;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ai-message.bot {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.ai-message.user {
  justify-self: end;
  color: #fff;
  background: var(--blue);
}

.ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.ai-quick button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 95, 159, 0.22);
  color: var(--blue);
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

.ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 8px;
}

.ai-form input {
  min-width: 0;
}

.ai-form button {
  padding: 0 14px;
  border: 0;
  color: #fff;
  font-weight: 800;
  background: var(--blue);
  cursor: pointer;
}

.ai-note {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .site-header {
    min-height: 66px;
    padding: 0 14px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 20px;
    display: none;
    width: min(300px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .language-switch {
    order: 2;
  }

  .nav-toggle {
    order: 3;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 13px;
  }

  .site-nav .nav-cta {
    color: #263646 !important;
    background: transparent;
    box-shadow: none;
  }

  .site-nav .nav-cta:hover,
  .site-nav .nav-cta:focus {
    color: var(--blue) !important;
    background: rgba(15, 95, 159, 0.06);
  }

  .hero {
    min-height: 640px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(9, 19, 29, 0.95), rgba(9, 19, 29, 0.62));
  }

  .intro-grid,
  .product-grid,
  .camera-layout,
  .sentech-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .brand-strip {
    grid-template-columns: 1fr;
  }

  .partner-card {
    grid-template-columns: 1fr;
  }

  .sentech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 0 14px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    font-size: 14px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .language-switch {
    gap: 2px;
    padding: 3px;
  }

  .language-switch button {
    min-width: 30px;
    min-height: 28px;
    font-size: 12px;
  }

  .site-nav {
    top: 62px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .hero {
    min-height: 620px;
    align-items: end;
  }

  .hero-image {
    object-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(9, 19, 29, 0.55) 0%, rgba(9, 19, 29, 0.92) 56%, rgba(9, 19, 29, 0.98) 100%),
      linear-gradient(90deg, rgba(9, 19, 29, 0.78), rgba(9, 19, 29, 0.24));
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-bottom: 22px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.18;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }

  .hero-stats {
    margin-top: 22px;
  }

  .hero-stats div {
    padding: 11px 14px;
  }

  .hero-stats dt {
    font-size: 18px;
  }

  .hero-stats dd {
    font-size: 13px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 28px;
  }

  .intro-grid,
  .product-grid,
  .camera-layout,
  .sentech-grid,
  .trust-grid,
  .article-grid,
  .support-grid,
  .contact-section {
    gap: 14px;
  }

  .intro-grid article,
  .camera-panel,
  .contact-card,
  .inquiry-form {
    box-shadow: 0 10px 28px rgba(26, 43, 59, 0.1);
  }

  .intro-grid article,
  .camera-panel,
  .product-body,
  .sentech-card,
  .solution-list article,
  .trust-grid article,
  .article-card,
  .contact-card,
  .inquiry-form {
    padding: 20px;
  }

  .brand-strip {
    padding: 20px;
  }

  .brand-strip strong {
    font-size: 21px;
  }

  .partner-visual {
    min-height: 210px;
  }

  .partner-eye {
    min-height: 210px;
  }

  .partner-logo-overlay {
    left: 16px;
    bottom: 16px;
    width: min(240px, calc(100% - 32px));
  }

  .partner-body {
    padding: 24px 20px;
  }

  .partner-body h3 {
    font-size: 24px;
  }

  .partner-actions {
    display: grid;
  }

  .sentech-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article,
  .article-card {
    min-height: 0;
  }

  .trust-grid article {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .trust-grid h3,
  .article-card h3 {
    margin-top: 8px;
    margin-bottom: 5px;
    font-size: 18px;
  }

  .article-card {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .contact-card {
    gap: 10px;
  }

  .contact-card a,
  .contact-card span {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    word-break: break-word;
  }

  .contact-card span:first-of-type {
    padding-top: 0;
  }

  .contact-card span:last-child {
    border-bottom: 0;
  }

  .sentech-card {
    min-height: 0;
  }

  .product-media {
    height: 112px;
  }

  .sentech-product-card {
    grid-template-rows: 156px 1fr;
  }

  .product-photo {
    height: 156px;
    padding: 10px;
  }

  h3 {
    font-size: 19px;
  }

  .hero-stats,
  .solution-list,
  .inquiry-form,
  .spec-row {
    grid-template-columns: 1fr;
  }

  .hero-stats div + div,
  .spec-row span + span {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .spec-row span + span {
    border-top-color: var(--line);
  }

  .spec-head {
    display: none;
  }

  .spec-row {
    min-height: auto;
  }

  .spec-row span {
    display: block;
    padding: 11px 14px;
  }

  .spec-row:not(.spec-head) span::before {
    display: block;
    margin-bottom: 3px;
    color: #7b8d9f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    content: attr(data-label);
  }

  .spec-row:not(.spec-head) span:nth-child(3) {
    background: #f6fafc;
  }

  .full-field,
  .privacy-field,
  .form-button,
  .form-note {
    grid-column: auto;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    padding: 24px 20px;
  }

  .footer-links {
    justify-content: center;
  }

  .policy-main {
    width: min(100% - 28px, 980px);
    padding: 34px 0 52px;
  }

  .policy-hero h1 {
    font-size: 34px;
  }

  .policy-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .policy-content article {
    padding: 22px 18px;
  }

  .ai-assistant {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .ai-toggle {
    margin-left: auto;
  }

  .ai-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .ai-messages {
    max-height: 30vh;
  }

  .admin-page .admin-nav {
    position: static;
    display: flex;
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .admin-page .admin-nav a {
    color: #263646;
    background: transparent;
  }

  .admin-main {
    width: min(100% - 28px, 1240px);
    padding-top: 24px;
  }

  .admin-hero,
  .admin-layout,
  .admin-stats,
  .visitor-log-item {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    padding: 22px;
  }

  .admin-hero h1 {
    font-size: 30px;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-panel-header {
    display: grid;
  }

  .admin-filter {
    max-width: none;
  }

  .visitor-log-item small {
    grid-column: auto;
  }

  .inquiry-table-wrap {
    overflow: visible;
  }

  .inquiry-table {
    min-width: 0;
  }

  .inquiry-table,
  .inquiry-table tbody,
  .inquiry-table tr,
  .inquiry-table td {
    display: block;
    width: 100%;
  }

  .inquiry-table thead {
    display: none;
  }

  .inquiry-table tr {
    margin: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 32, 48, 0.07);
  }

  .inquiry-table td {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }

  .inquiry-table td:last-child {
    border-bottom: 0;
  }

  .inquiry-table td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .inquiry-table td:nth-child(1)::before { content: "時間"; }
  .inquiry-table td:nth-child(2)::before { content: "公司"; }
  .inquiry-table td:nth-child(3)::before { content: "聯絡人"; }
  .inquiry-table td:nth-child(4)::before { content: "需求"; }
  .inquiry-table td:nth-child(5)::before { content: "狀態"; }
  .inquiry-table td:nth-child(6)::before { content: "操作"; }
}

@media (max-width: 390px) {
  .hero {
    min-height: 650px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section {
    width: min(100% - 24px, 1180px);
  }
}
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 28px rgba(15, 95, 159, 0.24);
