﻿:root{
  --bg:#05070b;
  --bg-elevated:#0b1017;
  --accent:#f97316;
  --accent-soft:rgba(249,115,22,0.22);
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(148,163,184,0.4);
  --danger:#f97373;
  --card-radius:18px;
  --shadow:0 20px 45px rgba(0,0,0,0.65);
}

*{box-sizing:border-box;margin:0;padding:0}

html,body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
  background:radial-gradient(circle at top,#111827,#020617);
  color:var(--text);
}

body{
  min-height:100vh;
}

/* ===== NAV ===== */
.nav{
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(to bottom,rgba(15,23,42,0.95),rgba(15,23,42,0.85));
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(148,163,184,0.35);
}

.nav-inner{
  max-width:1120px;
  margin:auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
}

.site-logo{
  width:40px;
  height:40px;
  object-fit:contain;
  border-radius:999px;
  background:#020617;
  border:1px solid rgba(249,115,22,0.55);
}

.brand-text-group{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-text-main-tw{
  font-size:15px;
  font-weight:600;
  letter-spacing:0.08em;
}

.brand-text-main-en{
  font-size:11px;
  text-transform:uppercase;
  color:var(--muted);
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
  font-size:14px;
}

.nav-links a{
  color:var(--muted);
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  transition:all .18s ease;
}

.nav-links a:hover{
  color:#fefce8;
  background:rgba(15,23,42,0.9);
}

.nav-links a.nav-cta{
  background:var(--accent);
  color:#111827;
  font-weight:600;
  box-shadow:0 12px 30px rgba(249,115,22,0.45);
}

.nav-links a.nav-cta:hover{
  filter:brightness(1.05);
}

/* ===== COMMON LAYOUT ===== */
.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:26px 18px 40px;
}

.page-hero{
  margin-bottom:18px;
}

.page-hero-title{
  font-size:30px;
  letter-spacing:0.08em;
  margin-bottom:6px;
}

.page-hero-sub{
  font-size:14px;
  color:var(--muted);
  max-width:640px;
}

/* section 通用 */
.section-header{
  margin:20px 0 10px;
}

.section-kicker{
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:4px;
}

.section-title{
  font-size:22px;
  margin-bottom:4px;
}

.section-sub{
  font-size:14px;
  color:var(--muted);
  max-width:720px;
}

/* 卡片 / grid */
.grid{
  display:grid;
  gap:14px;
  margin-top:10px;
}

.grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.card{
  background:radial-gradient(circle at top left,rgba(15,23,42,1),rgba(2,6,23,1));
  border-radius:var(--card-radius);
  padding:16px 16px 18px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.card-muted{
  background:radial-gradient(circle at top left,rgba(15,23,42,1),#020617);
}

.card-title{
  font-size:16px;
  margin-bottom:6px;
}

.card-tag{
  display:inline-block;
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(15,23,42,1);
  border:1px solid rgba(148,163,184,0.55);
  color:var(--muted);
  margin-bottom:8px;
}

.card ul{
  padding-left:18px;
  font-size:14px;
  line-height:1.7;
}

/* ===== BUTTONS ===== */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 18px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:var(--accent);
  color:#111827;
  font-size:14px;
  font-weight:600;
  box-shadow:0 16px 30px rgba(249,115,22,0.55);
  transition:all .18s ease;
}

.btn-primary:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}

/* ===== HERO（首頁） ===== */
.hero{
  margin-top:12px;
  border-radius:24px;
  overflow:hidden;
  position:relative;
  border:1px solid rgba(15,23,42,0.9);
  box-shadow:0 24px 60px rgba(0,0,0,0.85);
}

.hero-img{
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 30%,rgba(0,0,0,0.25),transparent),
             linear-gradient(to right,rgba(0,0,0,0.86),rgba(0,0,0,0.1));
}

.hero-content{
  position:absolute;
  inset:0;
  padding:28px 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:55%;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,23,42,0.92);
  border:1px solid rgba(148,163,184,0.6);
  font-size:12px;
  color:var(--muted);
  margin-bottom:12px;
}

.hero-title{
  font-size:30px;
  line-height:1.25;
  margin-bottom:8px;
}

.hero-sub{
  font-size:14px;
  color:var(--muted);
  margin-bottom:14px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* ===== CONTACT FORM ===== */

.form-card{
  background:radial-gradient(circle at top left,#020617,#020617);
  border-radius:var(--card-radius);
  padding:16px 16px 18px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.form-row{
  margin-bottom:10px;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}

.form-row label{
  color:var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,0.6);
  background:#020617;
  color:var(--text);
  font-size:14px;
}

textarea{
  min-height:120px;
  resize:vertical;
}

input:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 1px rgba(249,115,22,0.45);
}

.contact-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:14px;
}

/* 狀態訊息 */
.form-status{
  margin-bottom:12px;
  padding:8px 10px;
  border-radius:10px;
  font-size:13px;
}

.form-status-ok{
  background:rgba(22,163,74,0.16);
  border:1px solid rgba(22,163,74,0.7);
  color:#bbf7d0;
}

.form-status-fail{
  background:rgba(220,38,38,0.16);
  border:1px solid rgba(220,38,38,0.75);
  color:#fecaca;
}

/* ===== 客戶實績卡片 ===== */

.client-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:8px;
}

.client-item{
  background:radial-gradient(circle at top left,rgba(242,140,40,0.16),rgba(15,23,42,0.98));
  border-radius:var(--card-radius);
  border:1px solid rgba(242,140,40,0.35);
  padding:16px 16px 18px;
  box-shadow:var(--shadow);
}

.client-logo-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.client-logo-row img{
  max-height:60px;
  width:auto;
  object-fit:contain;
}

.client-projects{
  list-style:none;
  margin:0;
  padding:0;
  font-size:15px;
  line-height:1.8;
  color:var(--text);
  font-family:"DFKai-SB","PMingLiU","MingLiU","Noto Serif TC",serif;
}

.client-projects li{
  margin-bottom:2px;
}

/* ===== FOOTER ===== */
.footer{
  border-top:1px solid rgba(31,41,55,1);
  padding:14px 18px 20px;
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
  background:radial-gradient(circle at top,#020617,#020617);
}

/* ===== 命名由來 LOGO（logo2 專用）===== */
.naming-icon{
  width:60px;
  height:60px;
  border-radius:999px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background:transparent;
}

.naming-icon img{
  width:100%;
  height:100%;
  object-fit:cover; /* ★ 完全填滿，不留白邊 */
  display:block;
}

/* ===== RWD ===== */
@media(max-width:960px){
  .hero-content{max-width:70%;}
}

@media(max-width:780px){
  .nav-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-content{
    max-width:100%;
    padding:20px 18px;
  }
  .hero-img{
    height:320px;
  }
  .grid-2,
  .contact-grid,
  .client-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .page-hero-title{font-size:24px;}
  .hero-title{font-size:24px;}
  .hero-img{height:280px;}
}
