@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f4;
  --text: #1f1f1f;
  --muted: #5b615c;
  --accent: #3d9eff;
  --accent-hover: #2b8af0;
  --hero-overlay-top: rgba(0, 0, 0, 0.28);
  --hero-overlay-bottom: rgba(0, 0, 0, 0.38);
  --hero-image: url("../static/VidRasaCover.jpg");
  --line: #e4e8e4;
  --card: #ffffff;
  --placeholder: #d7ddd8;
  --placeholder-text: #7d857f;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, var(--hero-overlay-top), transparent);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 90px;
  padding: 0 40px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
  color: #fff;
}
.brand img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.nav-links {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  min-width: 0;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.nav-links a {
  position: relative;
  padding: 12px 2px 10px;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 4px;
  background: var(--accent);
  transform: translateX(-50%);
}
.nav-links a:hover::after { opacity: 0.75; }
.nav-links a.active::after { opacity: 1; }
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  color: #fff;
  cursor: pointer;
}
.lang-switch {
  flex-shrink: 0;
  position: relative;
}
.lang-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  z-index: 80;
}
.lang-switch.open .lang-menu { display: grid; gap: 4px; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button.active {
  background: #e8f0fe;
}
.lang-menu img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  padding: 130px 0 56px;
  overflow: hidden;
  color: #fff;
}
.hero.hero-home {
  min-height: 0;
  height: auto;
  display: block;
  padding: 0;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--hero-overlay-top) 0%, transparent 28%, var(--hero-overlay-bottom) 100%),
    var(--hero-image) center/cover no-repeat;
}
.hero-media-video {
  background: #111;
}
.hero-home .hero-media.hero-media-video {
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  background: #000;
}
.hero-media-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-home .hero-media-video video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  vertical-align: top;
}
.hero-media-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-top) 0%, transparent 28%, var(--hero-overlay-bottom) 100%);
  pointer-events: none;
}
.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.hero-play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  display: block;
}
.hero-play:hover {
  background: rgba(61, 158, 255, 0.85);
  border-color: #fff;
}
.hero-home.is-playing .hero-play { display: none; }
.hero-home .hero-media-video::after { display: none; }
.hero-home > .wrap {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  padding: 36px 0 8px;
  color: var(--text);
}
.hero-home .hero-kicker {
  color: var(--muted);
  text-shadow: none;
}
.hero-home h1 {
  color: #222;
  text-shadow: none;
}
.hero-home p {
  color: var(--muted);
  text-shadow: none;
}
.hero-media.empty {
  background:
    linear-gradient(180deg, var(--hero-overlay-top) 0%, transparent 30%, var(--hero-overlay-bottom) 100%),
    linear-gradient(90deg, #c9d4c6 0%, #8fa088 42%, #3e4a3c 100%);
}
.hero-kicker {
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero p {
  max-width: 42rem;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

.page-main {
  padding: 64px 0 88px;
  background: var(--bg);
}
.section { margin-bottom: 56px; }
.section h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #222;
}
.section p, .section li { color: var(--muted); }
.section p + p { margin-top: 12px; }
.lead { font-size: 1.05rem; max-width: 46rem; color: #444; }
.section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 22px 0 10px;
}
.timeline {
  margin: 24px 0 0 6px;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 158, 255, 0.16);
}
.timeline-time {
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.timeline-item p + p { margin-top: 8px; }
.plan-block {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-soft);
}
.plan-block h3 { margin-top: 0; }
.culture-slogan {
  margin: 8px 0 16px;
  font-size: 1.15rem;
  color: #2a3a4d;
  font-weight: 600;
}
.wp-page {
  background: #f2f4f3;
}
.wp-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.wp-side {
  position: sticky;
  top: 24px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(20, 28, 22, 0.05);
}
.wp-side-toggle {
  display: none;
}
.wp-side h2 {
  margin: 10px 0 16px;
  font-size: 1.25rem;
  color: #222;
}
.wp-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(61, 158, 255, 0.12);
  color: #2b7ad4;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wp-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wp-nav a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #3a403c;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.wp-nav a:hover {
  border-color: #c9d8ea;
  color: #1f1f1f;
}
.wp-nav a.active,
.wp-nav a.active:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wp-top {
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #5b615c;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.wp-top:hover { color: #222; border-color: #c9d8ea; }
.wp-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.wp-card {
  scroll-margin-top: 24px;
  padding: 28px 30px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(20, 28, 22, 0.05);
}
.wp-card .wp-tag { margin-bottom: 12px; }
.wp-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: #222;
}
.wp-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #222;
  margin: 22px 0 10px;
}
.wp-card p, .wp-card li { color: #5b615c; }
.wp-card p + p { margin-top: 12px; }
.wp-card .plan-block { border-radius: 10px; }
.wp-list {
  margin: 4px 0 16px 1.25em;
}
.wp-list li { margin-bottom: 10px; }
.wp-flow {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  color: #444;
  font-weight: 500;
}
.home-figure {
  margin: 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.home-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.home-video {
  position: relative;
  margin: 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.home-video video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: top;
}
.home-video.is-playing .hero-play { display: none; }
.home-video .hero-play { z-index: 3; }

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .media-box {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
}
.card { padding: 22px; }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; color: #222; }
.media-box {
  min-height: 180px;
  background: var(--placeholder);
  display: grid;
  place-items: center;
  color: var(--placeholder-text);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.media-box.tall { min-height: 280px; }
.media-caption { padding: 12px 14px 16px; }
.media-caption h3 { margin-bottom: 4px; color: #222; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.showcase-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.showcase-info {
  padding: 12px 12px 14px;
}
.showcase-info h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #222;
}
.showcase-info p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}
.showcase-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.showcase-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: #1a1d21;
  color: #fff;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
a.showcase-more:hover {
  background: #252a30;
  color: #fff;
  transform: translateY(-2px);
}
.showcase-more p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}
.law-wrap { max-width: 860px; }
.crumb {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.law-page-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #1a2740;
  margin: 0 0 28px;
}
.law-block { margin: 32px 0 0; }
.law-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2740;
  margin: 0 0 12px;
}
.law-block p { color: var(--muted); }
.law-block p + p { margin-top: 12px; }

.team-list {
  display: grid;
  gap: 24px;
}
.team-profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
}
.team-profile:nth-child(even) {
  grid-template-columns: 1fr 260px;
}
.team-profile:nth-child(even) .team-photo { order: 2; }
.team-profile:nth-child(even) .team-info { order: 1; }
.team-photo {
  background: var(--placeholder);
  min-height: 280px;
}
.team-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-info {
  padding: 26px 28px;
}
.team-role {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.team-info h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: #222;
}
.team-job {
  color: #444;
  font-weight: 500;
  margin-bottom: 12px;
}
.team-info p {
  color: var(--muted);
}
.team-quote {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: #2a3a4d;
  font-size: 0.98rem;
}
.quote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: #f3f8ff;
  color: #2a3a4d;
  font-size: 1.15rem;
}

.contact-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.contact-panel {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(20, 28, 22, 0.06);
}
.contact-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: #1a1d21;
}
.contact-panel-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-rows {
  display: grid;
  gap: 12px;
}
.contact-row {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f3f6f8;
}
.contact-row-label {
  display: block;
  margin-bottom: 4px;
  color: #8a9198;
  font-size: 12px;
}
.contact-row-value {
  display: block;
  color: #2a3138;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}
a.contact-row-value { color: #2a3138; }
a.contact-row-value:hover { color: var(--accent); }
.contact-feedback {
  display: grid;
  gap: 14px;
  flex: 1;
}
.contact-feedback input,
.contact-feedback textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d5d7dc;
  background: #f7f8f8;
  color: #222;
  font: inherit;
}
.contact-feedback textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-gmail-btn {
  margin-top: 4px;
  border-radius: 8px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.cs-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(20, 28, 22, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cs-card:hover {
  transform: translateY(-3px);
  border-color: #c9d8ea;
  box-shadow: 0 12px 32px rgba(20, 28, 22, 0.08);
}
.cs-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}
.cs-icon svg { width: 52px; height: 52px; display: block; }
.cs-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}
.cs-action {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}
.form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid #cfd4d0;
  background: #fff;
  color: #222;
  font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-reset {
  background: #eef1f0;
  color: #333;
}
.btn-reset:hover { background: #e2e6e4; }

.page-auth .page-main {
  background: var(--bg-soft);
  padding: 40px 0 80px;
}
.auth-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 16px 40px rgba(31, 31, 31, 0.06);
}
.auth-form { display: grid; gap: 18px; }
.auth-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 8px;
}
.auth-field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #d5d7dc;
  background: #f7f8f8;
  color: #222;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 158, 255, 0.18);
}
.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.auth-actions .btn,
.auth-actions .btn-reset {
  min-width: 108px;
  border-radius: 10px;
}
.auth-status {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}
.auth-status.is-error { color: #c0392b; }
.auth-results {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.auth-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed #d5d7dc;
  border-radius: 14px;
  background: #fafbfb;
  color: var(--muted);
  font-size: 14px;
}
.auth-result-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  overflow: hidden;
}
.auth-result-title {
  margin: 0;
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1d21;
  background: #f3f7fb;
  border-bottom: 1px solid var(--line);
}
.auth-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.auth-kv {
  background: #fff;
  padding: 14px 18px 16px;
  min-width: 0;
}
.auth-kv.span-2 { grid-column: 1 / -1; }
.auth-k {
  display: block;
  margin-bottom: 6px;
  color: #8a9198;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.auth-v {
  display: block;
  color: #2a3138;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}
.auth-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(61, 158, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.auth-file-link:hover {
  background: rgba(61, 158, 255, 0.18);
  color: var(--accent-hover);
}

.site-footer {
  background: #111214;
  color: #fff;
  padding: 36px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.4fr 0.9fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.back-top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.back-top svg { display: block; margin-bottom: 1px; }
.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.footer-company {
  font-size: 15px;
  letter-spacing: 0.04em;
}
.footer-col h3 {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.footer-list li, .footer-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.icon-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.footer-cs-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.footer-cs-icon svg { width: 22px; height: 22px; display: block; }
.icon-ali { background: #ff6a00; border-radius: 6px; }
.icon-nvidia { background: #76b900; border-radius: 6px; }
.icon-col { background: #c41e3a; border-radius: 6px; }
.icon-bf { background: #1e6bff; border-radius: 6px; }
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
}
.qr-box {
  width: 132px;
  height: 132px;
  object-fit: contain;
  display: block;
  background: #fff;
  border: 8px solid #fff;
}
.qr-caption {
  margin-top: 10px;
  color: #fff;
}
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 14px 0 18px;
  color: #b8b8b8;
  font-size: 12px;
  line-height: 1.7;
}
.footer-copy-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.footer-copy-inner p { margin: 0; }
.footer-copy a { color: #b8b8b8; text-decoration: underline; }

.carousel {
  position: relative;
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.carousel--contain {
  background: #fff;
}
.carousel--contain .carousel-viewport {
  transition: height 0.35s ease;
}
.carousel--contain .carousel-track {
  align-items: flex-start;
}
.carousel--contain .carousel-slide img {
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.carousel-btn:hover { background: rgba(0, 0, 0, 0.62); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.carousel-dots button.active { background: var(--accent); }

@media (max-width: 980px) {
  .nav-inner {
    justify-content: flex-start;
    padding: 0 16px;
    min-height: 72px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    background: rgba(20, 28, 22, 0.96);
    border-radius: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-shadow: none; }
  .menu-btn {
    display: grid;
    place-items: center;
    order: 3;
    margin-left: 0;
  }
  .lang-switch {
    order: 2;
    margin-left: auto;
  }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-profile,
  .team-profile:nth-child(even) { grid-template-columns: 1fr; }
  .team-profile:nth-child(even) .team-photo { order: -1; }
  .team-profile:nth-child(even) .team-info { order: 0; }
  .team-photo img { min-height: 240px; max-height: 360px; }
  .hero { min-height: 70vh; }
  .hero.hero-home {
    min-height: 0;
    height: auto;
  }
  .hero.hero-home .hero-media-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .hero.hero-sub {
    min-height: 29vh;
    padding: 96px 0 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  .footer-app {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-copy-inner {
    justify-content: center;
    text-align: center;
    gap: 4px 10px;
  }
  .footer-copy-inner [data-i18n="contactAddr"],
  .footer-copy-inner [data-i18n="footerAddr"] {
    flex: 1 1 100%;
  }
  .wp-layout { grid-template-columns: 1fr; }
  .wp-side {
    position: fixed;
    left: 0;
    top: 84px;
    z-index: 36;
    width: min(36vw, 158px);
    max-height: calc(100vh - 100px);
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .wp-side-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0 0 8px 10px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(43, 138, 240, 0.35);
  }
  .wp-side-body {
    max-height: calc(100vh - 150px);
    overflow: auto;
    margin-left: 0;
    padding: 16px 12px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 18px 18px 0;
    box-shadow: 0 10px 28px rgba(20, 28, 22, 0.12);
  }
  .wp-side.is-collapsed {
    width: auto;
  }
  .wp-side.is-collapsed .wp-side-body {
    display: none;
  }
  .wp-side.is-collapsed .wp-side-toggle {
    transform: scaleX(-1);
  }
  .wp-side h2 {
    margin: 8px 0 12px;
    font-size: 1.05rem;
  }
  .wp-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .wp-nav a {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    color: #8a9198;
    border-color: #e6eaee;
  }
  .wp-top { display: none; }
  .wp-card { padding: 22px 18px 24px; }
  .contact-panels,
  .cs-grid { grid-template-columns: 1fr; }
  .auth-fields,
  .auth-result-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 16px; }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 14px;
  }
  .footer-col h3 { font-size: 15px; margin-bottom: 12px; }
  .footer-list { gap: 10px; }
  .footer-list li, .footer-list a { font-size: 13px; }
  .carousel-slide img { height: 240px; }
  .carousel--contain .carousel-slide img { height: auto; }
  .carousel-btn { width: 34px; height: 34px; margin-top: -17px; font-size: 22px; }
}
