:root {
  --sm-red: #B8232C;
  --sm-red-dark: #8E1820;
  --sm-gold: #C9A961;
  --sm-ink: #1A1A1F;
  --sm-graphite: #4A4A52;
  --sm-mute: #6B6B73;
  --sm-paper: #FBF8F1;
  --sm-line: #E2DBCB;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--sm-ink);
  background: #FFFFFF;
  line-height: 1.6;
}
.serif { font-family: 'Cormorant Garamond', serif; }
.cn { font-family: 'Noto Serif SC', serif; }

/* STICKY HEADER WRAPPER */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* TOPBAR */
.topbar {
  background: var(--sm-ink); color: #c8c2b2;
  font-size: 0.78rem; padding: 0.5rem 0;
}
.topbar a { color: #c8c2b2; text-decoration: none; }
.topbar a:hover { color: var(--sm-gold); }
.lang-switch span {
  cursor: pointer; padding: 0 0.5rem;
  border-right: 1px solid #3a3a42;
}
.lang-switch span:last-child { border-right: none; }
.lang-switch .active { color: var(--sm-gold); font-weight: 700; }

/* NAVBAR */
.navbar {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sm-line);
  padding: 0.85rem 0;
}
.brand-mark { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-seal {
  width: 44px; height: 44px;
  background: var(--sm-red); color: var(--sm-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700; font-size: 1.3rem;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--sm-gold);
}
.brand-text .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--sm-ink); line-height: 1;
}
.brand-text .sub {
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sm-mute);
  margin-top: 3px;
}
.navbar .nav-link {
  color: var(--sm-ink); font-weight: 500;
  font-size: 0.92rem; margin: 0 0.4rem;
}
.navbar .nav-link:hover { color: var(--sm-red); }

.btn-primary-sm {
  background: var(--sm-red); color: #fff !important;
  padding: 0.7rem 1.6rem; font-weight: 600;
  font-size: 0.9rem; border-radius: 2px;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem; border: none;
  transition: background 0.2s;
}
.btn-primary-sm:hover { background: var(--sm-red-dark); }
.btn-outline-light {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.7rem 1.6rem; font-weight: 600;
  font-size: 0.9rem; border-radius: 2px;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem;
  transition: all 0.2s;
}
.btn-outline-light:hover { background: #fff; color: var(--sm-ink); border-color: #fff; }

/* HERO */
.hero {
  position: relative; min-height: 620px;
  background-image:
    linear-gradient(to right, rgba(15, 15, 18, 0.92) 0%, rgba(15, 15, 18, 0.75) 0%, rgba(15, 15, 18, 0.55) 0%),
    url('../images/sunmandarin-hero.jpg?w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex; align-items: center;
  padding: 6rem 0 0;
}
.hero::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--sm-red);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sm-gold); margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; width: 30px; height: 1px; background: var(--sm-gold);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05; color: #fff;
  margin-bottom: 1.5rem; letter-spacing: -0.015em;
  max-width: 800px;
}
.hero h1 .accent { color: var(--sm-gold); }
.hero p.lead {
  font-size: 1.1rem; color: rgba(255,255,255,0.85);
  max-width: 600px; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 4rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.hero-stat .v {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; color: #fff; line-height: 1;
  letter-spacing: -0.01em;
}
.hero-stat .v .gold { color: var(--sm-gold); }
.hero-stat .l {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  margin-top: 0.6rem; font-weight: 500;
}

/* SECTION COMMON */
section { padding: 5rem 0; }
.sec-tag {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sm-red); margin-bottom: 0.75rem;
  display: inline-block;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2; color: var(--sm-ink);
  margin-bottom: 0; letter-spacing: -0.005em;
}
.sec-title + p { color: var(--sm-graphite); margin-top: 0.75rem; max-width: 700px; }

/* ABOUT — with photo */
.about-img {
  width: 100%; height: 100%; min-height: 420px;
  background-image:
    linear-gradient(to bottom right, rgba(184, 35, 44, 0.2), rgba(15,15,18,0.3)),
    url('../images/sunmandarin-cargo.jpg?w=1200&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
}
.about-img::after {
  content: '陽'; position: absolute;
  right: 1.5rem; bottom: 1rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 5rem; color: rgba(201, 169, 97, 0.5);
  font-weight: 900; line-height: 1;
}
.about-img-badge {
  position: absolute; left: 1.5rem; top: 1.5rem;
  background: var(--sm-red); color: #fff;
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
}
.about-content p {
  color: var(--sm-graphite); font-size: 1rem;
  margin-bottom: 1rem;
}
.about-content p strong { color: var(--sm-ink); font-weight: 600; }
.about-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--sm-line);
}
.about-meta div .lbl {
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sm-red);
  font-weight: 700; margin-bottom: 0.2rem;
}
.about-meta div .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--sm-ink); line-height: 1.3;
}

/* SERVICES */
.services-bg { background: var(--sm-paper); }
.svc-card {
  background: #fff;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--sm-line);
  transition: all 0.2s;
}
.svc-card:hover {
  border-color: var(--sm-red);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -20px rgba(0,0,0,0.15);
}
.svc-card .ico {
  width: 44px; height: 44px;
  background: var(--sm-paper);
  color: var(--sm-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; border-radius: 2px;
  margin-bottom: 1rem;
}
.svc-card h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 800; font-size: 1.4rem;
  color: var(--sm-ink); margin-bottom: 0.5rem;
}
.svc-card p {
  font-size: 0.88rem; color: var(--sm-graphite);
  margin-bottom: 0; line-height: 1.5;
}

/* PRODUCTS — visual tiles */
.prod-tile {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s;
}
.prod-tile:hover { transform: translateY(-3px); }
.prod-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,18,0.85) 0%, rgba(15,15,18,0.2) 50%, rgba(15,15,18,0.0) 100%);
  transition: background 0.3s;
}
.prod-tile:hover::after {
  background: linear-gradient(to top, rgba(184,35,44,0.85) 0%, rgba(15,15,18,0.4) 50%, rgba(15,15,18,0.2) 100%);
}
.prod-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-tile-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  color: #fff; z-index: 2;
}
.prod-tile-label h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 1.25rem;
  color: #fff; margin: 0 0 0.2rem 0;
  letter-spacing: -0.005em;
}
.prod-tile-label small {
  font-size: 0.72rem; color: var(--sm-gold);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600;
}

/* OFFICES — with map */
.offices-bg {
  background: var(--sm-ink); color: #fff;
  position: relative; overflow: hidden;
}
.offices-bg .sec-title { color: #fff; }
.offices-bg .sec-title + p { color: rgba(255,255,255,0.7); }
.offices-bg .sec-tag { color: var(--sm-gold); }
.map-wrap {
  background: #14141a;
  border: 1px solid #2a2a32;
  padding: 1rem;
  margin-top: 2rem; margin-bottom: 2rem;
}
.map-wrap svg { width: 100%; height: auto; display: block; }
.office-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #2a2a32;
  align-items: center;
}
.office-row:last-child { border-bottom: none; }
.office-row .ocity {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 700;
  color: #fff;
}
.office-row .ocity .cn {
  font-family: 'Noto Serif SC', serif;
  color: var(--sm-gold); font-size: 0.9rem;
  margin-left: 0.4rem; font-weight: 700;
}
.office-row .ocountry {
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sm-gold);
  font-weight: 700;
}
.office-row .orole {
  font-size: 0.85rem; color: #c8c2b2;
  margin-top: 0.2rem;
}
.office-row .ocontact {
  text-align: right; font-size: 0.82rem;
  color: #c8c2b2;
}
.office-row .ocontact a { color: var(--sm-gold); text-decoration: none; }
.office-row.hq {
  background: rgba(184,35,44,0.1);
  padding: 1.25rem 1rem;
  margin: 0 -1rem;
}
@media (max-width: 768px) {
  .office-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .office-row .ocontact { text-align: left; }
}

/* CONTACT */
.contact-info {
  background: var(--sm-paper); padding: 1.75rem;
  border: 1px solid var(--sm-line);
  height: 100%;
}
.contact-row {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.7rem 0;
  font-size: 0.92rem; color: var(--sm-graphite);
}
.contact-row i {
  color: var(--sm-red); font-size: 1rem;
  margin-top: 0.2rem; flex-shrink: 0;
}
.contact-row strong { color: var(--sm-ink); font-weight: 600; display: block; }
.contact-row a { color: var(--sm-graphite); text-decoration: none; }
.contact-row a:hover { color: var(--sm-red); }

.contact-form {
  background: #fff; padding: 1.75rem;
  border: 1px solid var(--sm-line);
}
.contact-form label {
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sm-graphite);
  font-weight: 600; margin-bottom: 0.35rem;
}
.contact-form .form-control,
.contact-form .form-select {
  background: var(--sm-paper);
  border: 1px solid var(--sm-line);
  color: var(--sm-ink); border-radius: 2px;
  padding: 0.65rem 0.85rem; font-size: 0.9rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--sm-red);
  box-shadow: 0 0 0 3px rgba(184,35,44,0.08);
}
.btn-submit {
  background: var(--sm-red); color: #fff; border: none;
  padding: 0.75rem 1.75rem; font-weight: 600;
  font-size: 0.88rem; border-radius: 2px;
  cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: var(--sm-red-dark); }
.btn-submit:disabled {
  opacity: 0.55; cursor: wait;
}

/* Form feedback (success / error inline) */
.form-feedback {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}
.form-feedback.is-visible { display: block; }
.form-feedback.success {
  background: #F1F8EE;
  border-left: 3px solid #1F8A3F;
  color: #1F5C2E;
}
.form-feedback.error {
  background: #FDF2F3;
  border-left: 3px solid var(--sm-red);
  color: var(--sm-red-dark);
}

/* FOOTER */
footer {
  background: #0E0E12; color: #8a8a92;
  padding: 3rem 0 1.25rem; font-size: 0.88rem;
}
footer h6 {
  color: var(--sm-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; margin-bottom: 1rem;
  font-weight: 700;
}
footer a {
  color: #c8c2b2; text-decoration: none;
  display: block; padding: 0.2rem 0;
  font-size: 0.88rem;
}
footer a:hover { color: var(--sm-gold); }
.footer-bottom {
  border-top: 1px solid #2a2a32;
  padding-top: 1.25rem; margin-top: 2rem;
  font-size: 0.78rem; color: #6a6a72;
}
.footer-bottom a { display: inline; padding: 0; color: #8a8a92; }
.legal-info { font-size: 0.8rem; color: #8a8a92; line-height: 1.65; }
.legal-info strong { color: #c8c2b2; }

/* ============ LEGAL PAGES ============ */
.page-header {
  background: var(--sm-paper);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--sm-line);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '陽';
  position: absolute;
  right: -2rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Noto Serif SC', serif;
  font-size: 14rem; line-height: 1;
  color: var(--sm-red);
  opacity: 0.05;
  font-weight: 900;
  pointer-events: none;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sm-ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.page-header .updated {
  font-size: 0.82rem;
  color: var(--sm-mute);
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
}

.legal-content {
  padding: 4rem 0 5rem;
  font-size: 0.95rem;
  color: var(--sm-graphite);
  line-height: 1.75;
}
.legal-content .container > .row { justify-content: center; }
.legal-content .intro {
  font-size: 1.02rem;
  color: var(--sm-graphite);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--sm-line);
}
.legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--sm-ink);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sm-line);
  letter-spacing: -0.005em;
}
.legal-content h2 .num {
  color: var(--sm-red);
  font-style: italic;
  margin-right: 0.5rem;
  font-weight: 600;
}
.legal-content h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--sm-ink);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul,
.legal-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}
.legal-content ul li,
.legal-content ol li {
  margin-bottom: 0.4rem;
}
.legal-content strong { color: var(--sm-ink); font-weight: 600; }
.legal-content a {
  color: var(--sm-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,35,44,0.3);
  transition: border-color 0.2s;
}
.legal-content a:hover { border-bottom-color: var(--sm-red); }

.legal-table {
  width: 100%;
  margin-bottom: 1.75rem;
  border: 1px solid var(--sm-line);
  border-collapse: collapse;
}
.legal-table td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--sm-line);
  font-size: 0.9rem;
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child {
  background: var(--sm-paper);
  font-weight: 600;
  color: var(--sm-ink);
  width: 220px;
  letter-spacing: 0.02em;
}
@media (max-width: 576px) {
  .legal-table td:first-child { width: 130px; font-size: 0.82rem; }
}

.legal-toc {
  background: var(--sm-paper);
  border: 1px solid var(--sm-line);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.legal-toc h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sm-ink);
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--sm-line);
}
.legal-toc ol {
  padding-left: 1.3rem;
  margin: 0;
  font-size: 0.9rem;
}
.legal-toc ol li {
  margin-bottom: 0.3rem;
}
.legal-toc a {
  color: var(--sm-graphite);
  text-decoration: none;
  border-bottom: none;
}
.legal-toc a:hover { color: var(--sm-red); }

/* ============ 404 PAGE ============ */
.notfound {
  min-height: 65vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
.notfound::before {
  content: '迷';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(18rem, 40vw, 32rem);
  line-height: 1;
  color: var(--sm-red);
  opacity: 0.04;
  font-weight: 900;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.notfound .container { position: relative; z-index: 1; }
.notfound-code {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--sm-ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.notfound-code .sep {
  color: var(--sm-red);
  margin: 0 0.5rem;
  font-style: italic;
}
.notfound-divider {
  width: 60px; height: 3px;
  background: var(--sm-red);
  margin: 1.75rem auto 1.5rem;
}
.notfound-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  color: var(--sm-ink);
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}
.notfound-message {
  color: var(--sm-graphite);
  font-size: 1.02rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
