/* ===== 一整合行銷 | 全站樣式 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

/* ── Design Tokens ── */
:root {
  --primary: #1a2a4a;
  --primary-dark: #111d33;
  --accent: #f5a623;
  --accent-dark: #e89010;
  --text: #2c2c2c;
  --text-light: #666;
  --bg-light: #f8f9fc;
  --white: #fff;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.15);
  --radius: 10px;
  --transition: .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', sans-serif; color: var(--text); line-height: 1.7; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 3rem); }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--white);
  padding: .65em 1.8em; border-radius: 4px; font-weight: 600; font-size: .95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,166,35,.4); }
.btn-primary--lg { padding: .8em 2.4em; font-size: 1rem; }

.btn-outline {
  display: inline-block; background: transparent; color: var(--primary);
  padding: .65em 1.8em; border-radius: 4px; font-weight: 600; font-size: .95rem;
  border: 2px solid var(--primary); transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline--light { color: var(--white); border-color: var(--white); }
.btn-outline--light:hover { background: var(--white); color: var(--primary); }

/* ── Header ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,42,74,.08);
  transition: box-shadow var(--transition), padding var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }

.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--primary); }
.logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: var(--accent); color: var(--white); border-radius: 4px; font-size: .9rem; font-weight: 900; }
.logo--light .logo-text { color: var(--white); }
.logo--light .logo-icon { background: var(--white); color: var(--primary); }

.nav-list { display: flex; gap: 2rem; }
.nav-list a { font-size: .9rem; font-weight: 500; color: var(--text); transition: color var(--transition); position: relative; }
.nav-list a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--transition); }
.nav-list a:hover, .nav-list a.active { color: var(--primary); }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ── */
.hero { min-height: 90vh; display: flex; align-items: center; padding-block: 8rem 4rem; color: var(--white); }
.hero-content { max-width: 680px; }
.hero-eyebrow { font-size: .85rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.hero-title { margin-bottom: 1.2rem; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc { font-size: clamp(.95rem,1.5vw,1.1rem); color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: clamp(1.5rem,3vw,2rem); font-weight: 900; color: var(--accent); }
.stat span { font-size: .8rem; color: rgba(255,255,255,.7); }

/* ── Sections ── */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--light { background: var(--bg-light); }
.section--primary { background: var(--primary); color: var(--white); }

.section-header { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 3.5rem; }
.section-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.section-desc { color: var(--text-light); margin-top: .8rem; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ── Service Cards ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: rgba(245,166,35,.12); border-radius: 8px; font-size: 1.4rem; margin-bottom: 1.2rem; }
.service-card h3 { margin-bottom: .6rem; }
.service-card p { font-size: .9rem; color: var(--text-light); margin-bottom: 1rem; }
.card-link { font-size: .85rem; font-weight: 600; color: var(--accent); }
.card-link:hover { color: var(--accent-dark); }

/* ── Why Grid ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.why-item { color: rgba(255,255,255,.9); }
.why-num { font-size: 2.5rem; font-weight: 900; color: var(--accent); opacity: .6; line-height: 1; margin-bottom: .6rem; }
.why-item h4 { color: #fff; margin-bottom: .5rem; font-size: 1.1rem; }
.why-item p { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ── Works Grid (homepage preview) ── */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.work-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-info { padding: 1.4rem; }
.work-tag { display: inline-block; font-size: .75rem; font-weight: 600; background: rgba(245,166,35,.15); color: var(--accent-dark); padding: .2em .7em; border-radius: 20px; margin-bottom: .5rem; }
.work-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.work-card p { font-size: .85rem; color: var(--text-light); }

/* ── CTA Banner ── */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, #2d4a8a 100%); padding-block: clamp(3rem, 6vw, 5rem); }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-text h2 { color: #fff; }
.cta-text p { color: rgba(255,255,255,.8); margin-top: .4rem; }

/* ── Page Hero ── */
.page-hero { padding-block: 8rem 5rem; }
.page-hero-content { max-width: 700px; }
.page-hero h1 { margin-bottom: .8rem; }

/* ── About Page ── */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-story-text { }
.about-story-text h2 { margin-bottom: 1.2rem; }
.about-story-text p { color: var(--text-light); margin-bottom: 1rem; }
.about-story-text .btn-primary { margin-top: .5rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { margin-bottom: .6rem; }
.value-card p { font-size: .9rem; color: var(--text-light); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 900; color: #fff; margin: 0 auto 1rem; }
.team-card h4 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-role { font-size: .8rem; color: var(--accent); font-weight: 600; margin-bottom: .8rem; }
.team-card p { font-size: .85rem; color: var(--text-light); }

.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; text-align: center; }
.number-item { padding: 1.5rem 1rem; }
.number-item strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--accent); line-height: 1; }
.number-item span { font-size: .9rem; color: rgba(255,255,255,.75); margin-top: .4rem; display: block; }

/* ── Services Page ── */
.service-detail { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: start; padding-block: 3rem; border-bottom: 1px solid #eee; }
.service-detail:last-child { border-bottom: none; }
.service-detail--reverse .service-detail-icon { order: 2; }
.service-detail-icon { font-size: 3.5rem; display: flex; align-items: center; justify-content: center; width: 90px; height: 90px; background: rgba(26,42,74,.06); border-radius: 20px; }
.service-num { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.service-detail h2 { margin: .3rem 0 1rem; }
.service-detail p { color: var(--text-light); margin-bottom: 1.2rem; }
.service-features { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
.service-features li { font-size: .9rem; color: var(--text); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }
.pricing-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); position: relative; }
.pricing-card--featured { border: 2px solid var(--accent); box-shadow: 0 12px 40px rgba(245,166,35,.2); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .25em 1em; border-radius: 20px; white-space: nowrap; }
.pricing-header { margin-bottom: 1.5rem; }
.pricing-header h3 { margin-bottom: .5rem; }
.price { font-size: 1.6rem; font-weight: 900; color: var(--primary); }
.price span { font-size: .9rem; font-weight: 400; color: var(--text-light); }
.pricing-features { margin-bottom: 1.8rem; }
.pricing-features li { padding: .4rem 0; font-size: .9rem; color: var(--text-light); border-bottom: 1px solid #f0f0f0; }

/* ── Works Page ── */
.works-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn { padding: .4em 1.2em; border: 2px solid #ddd; border-radius: 30px; font-size: .85rem; font-weight: 500; transition: all var(--transition); }
.filter-btn:hover, .filter-btn--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.works-grid-full { display: grid; gap: 2rem; }
.work-card-full { display: grid; grid-template-columns: 320px 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.work-card-img { min-height: 260px; }
.work-card-body { padding: 2.5rem; }
.work-card-body h3 { font-size: 1.3rem; margin: .6rem 0 1rem; }
.work-challenge, .work-solution { font-size: .9rem; color: var(--text-light); margin-bottom: .6rem; }
.work-challenge::before { content: '挑戰：'; font-weight: 600; color: var(--text); }
.work-solution::before { content: '策略：'; font-weight: 600; color: var(--text); }
.work-results { display: flex; gap: 2rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.result-item { text-align: center; }
.result-item strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--primary); }
.result-item span { font-size: .75rem; color: var(--text-light); }

/* ── Contact Page ── */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.contact-form-wrap h2 { margin-bottom: .5rem; }
.contact-form-wrap > p { color: var(--text-light); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: .7em 1em; border: 1.5px solid #ddd; border-radius: 6px;
  font-family: inherit; font-size: .9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: #aaa; }

.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; width: 2.5rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: .9rem; margin-bottom: .2rem; }
.contact-info-item a { color: var(--accent); font-weight: 500; }
.contact-promise { background: var(--bg-light); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.contact-promise h4 { margin-bottom: .8rem; }
.contact-promise li { font-size: .9rem; color: var(--text-light); padding: .25rem 0; }
.contact-social h4 { margin-bottom: .8rem; }
.social-links-large { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-link-item { padding: .4em 1em; background: var(--primary); color: #fff; border-radius: 4px; font-size: .8rem; font-weight: 500; transition: background var(--transition); }
.social-link-item:hover { background: var(--accent); }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding-block: clamp(3rem, 6vw, 5rem) 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand p { font-size: .9rem; margin-top: .8rem; color: rgba(255,255,255,.6); }
.footer-links h4, .footer-contact h4 { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: 1rem; letter-spacing: .05em; }
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact p, .footer-contact a { font-size: .85rem; color: rgba(255,255,255,.6); display: block; margin-bottom: .4rem; }
.footer-contact a:hover { color: var(--accent); }
.social-links { display: flex; gap: .5rem; margin-top: .8rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: rgba(255,255,255,.1); border-radius: 4px; font-size: .75rem; font-weight: 700; color: #fff; transition: background var(--transition); }
.social-links a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding-block: 1.2rem; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── Fade-in Animation ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-story, .contact-layout { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail--reverse .service-detail-icon { order: unset; }
  .service-features { grid-template-columns: 1fr; }
  .work-card-full { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  #main-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); padding: 1.5rem; border-bottom: 1px solid #eee; z-index: 999; }
  #main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li a { display: block; padding: .8rem 0; font-size: 1rem; border-bottom: 1px solid #f0f0f0; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .work-results { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
  .services-grid, .values-grid, .team-grid, .numbers-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Hero Gradient Background ── */
.hero--gradient {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(245,166,35,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(45,74,138,.6) 0%, transparent 55%),
    linear-gradient(135deg, #0d1c35 0%, #1a2a4a 45%, #243d6e 100%);
  position: relative;
  overflow: hidden;
}
.hero--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(245,166,35,.08) 0%, transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(100,149,237,.12) 0%, transparent 35%);
  pointer-events: none;
}
.hero--gradient::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── About Team Visual ── */
.about-team-visual {
  position: relative;
  background: linear-gradient(135deg, #1a2a4a 0%, #243d6e 60%, #1a3a5c 100%);
  border-radius: 16px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.atv-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(245,166,35,.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(100,149,237,.15) 0%, transparent 40%);
}
.atv-card {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  text-align: center;
  color: #fff;
  min-width: 100px;
}
.atv-card span { font-size: 1.8rem; display: block; margin-bottom: .3rem; }
.atv-card p { font-size: .8rem; font-weight: 500; margin: 0; }
.atv-card--1 { top: 14%; left: 10%; }
.atv-card--2 { top: 40%; right: 8%; }
.atv-card--3 { bottom: 14%; left: 18%; }
.atv-stat {
  text-align: center;
  color: #fff;
  z-index: 1;
}
.atv-stat strong { display: block; font-size: 3rem; font-weight: 900; color: var(--accent); line-height: 1; }
.atv-stat span { font-size: .9rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .about-team-visual { min-height: 260px; }
}
