/* ==============================================================================
   台灣三合制動有限公司 (Taiwan Three Manufacturing Co Ltd - T3M)
   官方形象與 Lining 專賣網站樣式表 (www.t3m.com.tw)
   風格：現代賽道科技感、高對比清晰文字、碳纖維深色基調、高對比競技紅與極光金
   ============================================================================== */

:root {
  --t3m-dark: #0b0d11;
  --t3m-card-bg: #151921;
  --t3m-card-border: #334155;
  --t3m-input-bg: #1e2532;
  --t3m-input-border: #475569;
  --t3m-red: #e11d48;
  --t3m-red-hover: #be123c;
  --t3m-red-glow: rgba(225, 29, 72, 0.4);
  --t3m-gold: #fbbf24;
  --t3m-cyan: #38bdf8;
  --t3m-text-main: #ffffff;
  --t3m-text-sub: #e2e8f0;
  --t3m-text-muted: #cbd5e1;
  --t3m-font: 'Noto Sans TC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--t3m-font);
  background-color: var(--t3m-dark);
  color: var(--t3m-text-main);
  overflow-x: hidden;
  line-height: 1.65;
}

/* 全域文字高對比覆寫，防止文字過黑或看不到 */
p, .hero-desc, .section-desc, .product-desc {
  color: var(--t3m-text-sub) !important;
}

.text-muted, .text-secondary {
  color: #cbd5e1 !important; /* 明亮清晰銀白，確保黑底上 100% 易讀 */
}

.text-white-50 {
  color: #cbd5e1 !important;
}

/* 導覽列 */
.navbar-t3m {
  background: rgba(11, 13, 17, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--t3m-card-border);
  transition: all 0.3s ease;
}

.brand-logo {
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--t3m-red) 0%, #9f1239 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 6px;
  box-shadow: 0 0 15px var(--t3m-red-glow);
}

.brand-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-sub {
  font-size: 0.75rem;
  color: #cbd5e1;
  display: block;
  letter-spacing: 0.5px;
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 18px !important;
  transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.btn-erp-portal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #475569;
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-erp-portal:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.15);
}

/* Hero 首頁主視覺 */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
              var(--t3m-dark);
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--t3m-card-border);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #fda4af;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.18rem;
  color: #e2e8f0 !important;
  max-width: 620px;
  margin-bottom: 35px;
  line-height: 1.7;
}

.btn-t3m-primary {
  background: linear-gradient(135deg, var(--t3m-red) 0%, var(--t3m-red-hover) 100%);
  color: #fff !important;
  border: none;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--t3m-red-glow);
  transition: all 0.25s ease;
  font-size: 1.05rem;
}

.btn-t3m-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.6);
  color: #fff !important;
}

.btn-t3m-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid #475569;
  color: #ffffff !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.25s ease;
  font-size: 1.05rem;
}

.btn-t3m-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #94a3b8;
  color: #ffffff !important;
}

/* 數字亮點指標 */
.hero-stat-card {
  background: var(--t3m-card-bg);
  border: 1px solid var(--t3m-card-border);
  padding: 24px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.6);
}

.hero-stat-num {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.95rem;
  color: #cbd5e1 !important;
  margin-bottom: 0;
  font-weight: 600;
}

/* 區塊標題 */
.section-badge {
  color: #f43f5e;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-desc {
  color: #e2e8f0 !important;
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* 來令片專賣產品卡片 */
.product-card {
  background: var(--t3m-card-bg);
  border: 1px solid var(--t3m-card-border);
  border-radius: 14px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--t3m-red) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.6);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.product-card:hover::before {
  opacity: 1;
}

.product-type-badge {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.badge-sintered {
  background: rgba(225, 29, 72, 0.2);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.badge-ceramic {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-semi {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-drum {
  background: rgba(192, 132, 252, 0.2);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.product-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.product-desc {
  font-size: 0.98rem;
  color: #e2e8f0 !important;
  flex-grow: 1;
  margin-bottom: 22px;
  line-height: 1.65;
}

.product-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  border-top: 1px solid var(--t3m-card-border);
  padding-top: 16px;
}

.product-spec-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-spec-list .spec-label {
  color: #cbd5e1 !important;
  font-weight: 500;
}

.product-spec-list .spec-val {
  font-weight: 700;
  color: #ffffff;
}

/* 篩選標籤按鈕 */
.filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--t3m-card-border);
  color: #cbd5e1;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s ease;
  margin: 5px;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--t3m-red);
  border-color: var(--t3m-red);
  color: #ffffff !important;
  box-shadow: 0 3px 15px var(--t3m-red-glow);
}

/* 技術與配件卡片 */
.tech-card {
  background: var(--t3m-card-bg);
  border: 1px solid var(--t3m-card-border);
  border-radius: 14px;
  padding: 28px;
}

/* 公司登記與洽詢面板卡片 */
.company-card {
  background: #151922;
  border: 1.5px solid #334155;
  border-radius: 16px;
  padding: 38px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.18);
  color: #fb7185;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.info-content label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8 !important;
  margin-bottom: 3px;
  font-weight: 600;
}

.info-content .val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff !important;
}

/* ==============================================================================
   聯絡與經銷洽詢表單專區（高對比清晰化，徹底解決底色黑字體黑問題）
   ============================================================================== */
.form-label, label {
  color: #ffffff !important;
  font-size: 0.98rem;
  font-weight: 700 !important;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.t3m-input, 
.form-control.t3m-input, 
.form-select.t3m-input {
  background-color: var(--t3m-input-bg) !important;
  border: 1.5px solid var(--t3m-input-border) !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.t3m-input:focus, 
.form-control.t3m-input:focus, 
.form-select.t3m-input:focus {
  background-color: #242c3b !important;
  border-color: #f43f5e !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.28) !important;
  outline: none;
}

/* 下拉選單 Option 高度清晰白字黑底 */
.form-select.t3m-input option {
  background-color: #1e2532 !important;
  color: #ffffff !important;
  padding: 12px;
  font-size: 0.98rem;
}

/* 頁尾 */
.footer-t3m {
  background: #07090c;
  border-top: 1px solid var(--t3m-card-border);
  padding: 60px 0 35px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.footer-link {
  color: #cbd5e1 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.footer-link:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}
