/* =========================================
   翰霖實業 amlinecorp.com — 基礎樣式 / 品牌變數 / RWD 安全網
   品牌色：紅 (Logo 主色) + 深藍 (輔助色，來自對照企業配色參考)
   ========================================= */

:root {
  --brand-red: #d41e1e;
  --brand-red-dark: #a5140f;
  --brand-navy: #0b1f3d;
  --brand-navy-light: #16305c;
  --text-color: #262a33;
  --text-muted: #626878;
  --bg-light: #f6f7f9;
  --white: #ffffff;
  --border-color: #e4e6ec;

  --font-sans: "Noto Sans TC", "Noto Sans JP", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container-width: 1200px;
  --header-height: 76px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 31, 61, 0.12);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  color: var(--brand-navy);
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--text-color); }

ul { list-style: none; margin: 0; padding: 0; }

img, video, iframe { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

/* 全域 RWD 安全網：避免任何內容把手機版撐寬 */
body, html { max-width: 100vw; overflow-x: hidden; }
p, li, span, div, h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--brand-red);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.15);
}

.section {
  padding: 80px 0;
}
.section-alt {
  background-color: var(--bg-light);
}
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 50px;
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
}
@media (max-width: 768px) {
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 15px; }
}
