/* ================================================
   上景科技印刷有限公司 — Official Website Styles
   v2: 明亮輕盈、手機優先
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  --primary-blue:   #2B9FD8;
  --dark-blue:      #1A6E9A;
  --light-blue:     #E8F6FD;
  --primary-yellow: #EDD800;
  --light-yellow:   #FFF8C0;
  --accent-magenta: #D42B7A;
  --text-dark:      #1A1A2E;
  --text-secondary: #5C6478;
  --bg:             #F7F9FC;
  --white:          #FFFFFF;

  --font-sans: 'Noto Sans TC', 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius:    8px;
  --radius-lg: 16px;
  --transition: .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1 { font-size: 2.5rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.75rem;  font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem;  font-weight: 500; color: var(--primary-blue); }
h4 { font-size: 1rem;     font-weight: 700; }
p  { color: var(--text-dark); }
.caption { font-size: .8rem; color: var(--text-secondary); }

/* ── Section Heading ── */
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: .5rem;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .75rem;
}
.section-title span { color: var(--primary-blue); }
.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 3rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary-yellow);
  color: var(--text-dark);
}
.btn-primary:hover { background: #d4c200; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}
.btn-outline:hover { background: var(--primary-blue); color: var(--white); }
.btn-blue {
  background: var(--primary-blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--dark-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-white {
  background: var(--white);
  color: var(--primary-blue);
  border: 1.5px solid rgba(43,159,216,.3);
}
.btn-white:hover { background: var(--light-blue); }

/* ── Container ── */
.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(26, 26, 46, .99);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo .logo-cn {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.nav-logo .logo-en {
  font-size: .6rem;
  color: var(--primary-blue);
  letter-spacing: .05em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary-blue);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--primary-yellow);
  color: var(--text-dark) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #d4c200 !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.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); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(26, 26, 46, .98);
  padding: 1rem 1.5rem 1.5rem;
  gap: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border: none; }
.nav-mobile a:hover { color: var(--primary-blue); }
.nav-mobile.open { display: flex; }

/* ================================================
   HERO — 明亮版
   ================================================ */
.hero {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

/* Full-width image banner */
.hero-top-img {
  width: 100%;
  height: 50vh;
  min-height: 240px;
  max-height: 480px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.hero-top-img-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(43,159,216,.15) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-secondary);
  font-size: .85rem;
}

/* Centered text block */
.hero-center {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}
.hero-center .hero-btns { justify-content: center; }

.hero-h1 {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.hero-h1-main {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.hero-h1-accent {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--primary-blue);
  letter-spacing: .04em;
  line-height: 1.4;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-btns {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── CMYK Visual ── */
.hero-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #0d2137, #1A6E9A);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.hero-bottom-row .hero-stats {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat { flex: 1; text-align: center; }
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-yellow);
  line-height: 1;
}
.hero-stat-num span { font-size: .9rem; font-weight: 500; }
.hero-stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  margin-top: .3rem;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.hero-visual { flex-shrink: 0; }
.cmyk-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.cmyk-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin-slow 12s linear infinite;
}
.cmyk-c {
  width: 100%; height: 100%;
  top: 0; left: 0;
  border-color: #00B4D8 #00B4D8 transparent transparent;
  animation-duration: 14s;
}
.cmyk-m {
  width: 78%; height: 78%;
  top: 11%; left: 11%;
  border-color: transparent #D42B7A #D42B7A transparent;
  animation-duration: 10s;
  animation-direction: reverse;
}
.cmyk-y {
  width: 56%; height: 56%;
  top: 22%; left: 22%;
  border-color: #EDD800 transparent transparent #EDD800;
  animation-duration: 8s;
}
.cmyk-k {
  width: 34%; height: 34%;
  top: 33%; left: 33%;
  border-color: transparent rgba(100,100,100,.5) rgba(100,100,100,.5) transparent;
  animation-duration: 6s;
  animation-direction: reverse;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.cmyk-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.cmyk-center div {
  width: 8px; height: 8px;
  border-radius: 50%;
  font-size: 0;
}
.cmyk-label-c { background: #00B4D8; }
.cmyk-label-m { background: #D42B7A; }
.cmyk-label-y { background: #EDD800; }
.cmyk-label-k { background: rgba(100,100,100,.7); }

/* ================================================
   SECTIONS
   ================================================ */
section { padding: 4rem 0; }
.section-alt { background: var(--bg); }

/* ── Services Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--text-secondary); font-size: .9rem; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.tag {
  font-size: .7rem;
  padding: .2rem .6rem;
  border-radius: 100px;
  background: var(--light-blue);
  color: var(--dark-blue);
  font-weight: 500;
}

/* ── Homepage: Service Category Cards (4大類) ── */
.svc-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.svc-cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.svc-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.svc-cat-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(43,159,216,.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.svc-cat-body {
  padding: 1rem 1.25rem;
}
.svc-cat-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .25rem;
}
.svc-cat-body p {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Process Steps (flow style) ── */
.process-flow {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding-left: 2rem;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2rem;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step:last-child .flow-line { display: none; }
.flow-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.flow-line {
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--light-blue);
}
.flow-body h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .15rem;
  line-height: 36px;
}
.flow-body p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Legacy grid steps (for process page) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto .75rem;
}
.step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .5rem;
}
.step h4 { font-size: .875rem; margin-bottom: .3rem; }
.step p { font-size: .78rem; color: var(--text-secondary); }

/* ── Client Logo Carousel ── */
.carousel-wrap {
  overflow: hidden;
  position: relative;
}
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: .5rem 4%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 75%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}
.carousel-img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(43,159,216,.2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-secondary);
  font-size: .85rem;
}
.carousel-slide-caption {
  background: rgba(26,26,46,.85);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  padding: .5rem 1rem;
  text-align: center;
}

.carousel-slide-client {
  flex: 0 0 21%;
}
.client-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.client-logo-box {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.carousel-slide-client:hover .client-logo-box {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}
.client-industry {
  font-size: .75rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Homepage Portfolio Carousel ── */
.portfolio-swiper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: .75rem;
  padding: .5rem 2%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.portfolio-swiper::-webkit-scrollbar { display: none; }
.portfolio-swiper-item {
  flex: 0 0 46%;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
}
.portfolio-swiper-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(43,159,216,.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.portfolio-swiper-info {
  padding: .75rem 1rem;
}
.portfolio-swiper-info h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .2rem;
}
.portfolio-swiper-info .tag {
  font-size: .65rem;
}

/* ── Q&A Accordion ── */
.qa-list { max-width: 720px; margin: 0 auto; }
.qa-item {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  background: var(--white);
}
.qa-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
}
.qa-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary-blue);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}
.qa-item.open .qa-question::after { content: '−'; }
.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.qa-answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── CTA Form Card ── */
.cta-form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
}
.cta-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--light-blue);
}
.cta-form { display: flex; flex-direction: column; gap: 1rem; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cta-form-group { display: flex; flex-direction: column; gap: .35rem; }
.cta-form-group label { font-size: .8rem; font-weight: 500; color: var(--text-secondary); }
.req { color: var(--accent-magenta); }
.cta-form-group input,
.cta-form-group textarea {
  padding: .7rem 1rem;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--transition);
}
.cta-form-group input:focus,
.cta-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--white);
}
.cta-form-group textarea { resize: vertical; min-height: 100px; }
.cta-form-submit { align-self: flex-start; padding: .8rem 2.5rem; font-size: .95rem; }

/* Full-width contact form wrap */
.contact-form-wrap {
  width: 100%;
  background: var(--bg);
  padding: 2.5rem 4rem;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  padding: 4rem 0;
}
.cta-inner {
  text-align: center;
  color: var(--white);
}
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }

/* ── Contact ── */
.line-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #06C755;
  color: #fff;
  padding: .3rem .85rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.line-btn-inline:hover { background: #05b34d; color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.contact-info-item:last-child { border: none; }
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-label { font-size: .75rem; color: var(--text-secondary); margin-bottom: .15rem; }
.contact-value { font-weight: 500; color: var(--text-dark); }
.contact-value-sub { font-size: .75rem; color: var(--text-secondary); margin-top: .2rem; }
.contact-phone-link { color: var(--primary-blue); }
.contact-line-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.contact-map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map-link { display: inline-block; margin-top: .5rem; font-size: .8rem; color: var(--primary-blue); }

/* ── LINE Floating Button ── */
.line-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(6,199,85,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.line-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(6,199,85,.55);
}
.line-fab svg { width: 32px; height: 32px; }

/* ── Footer ── */
.footer {
  background: #1a2233;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-map iframe {
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: var(--radius);
  margin-top: .5rem;
  filter: grayscale(20%);
}
.footer-brand .logo-cn { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.footer-brand .logo-en { font-size: .65rem; color: var(--primary-blue); letter-spacing: .05em; }
.footer-brand p { font-size: .875rem; margin-top: .75rem; line-height: 1.7; }
.footer h5 {
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-blue); }
.footer-contact li {
  font-size: .875rem;
  margin-bottom: .5rem;
  display: flex;
  gap: .5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
}
.footer-bottom a { color: var(--primary-blue); }

/* ── Page Hero (inner pages) — 明亮版 ── */
.page-hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(43,159,216,.1) 100%);
  padding: 7rem 0 3.5rem;
  text-align: center;
  color: var(--text-dark);
}
.page-hero h1 { color: var(--text-dark); margin-bottom: .75rem; }
.page-hero p { color: var(--text-secondary); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--primary-blue); }
.breadcrumb span { color: var(--text-secondary); }

/* ── Info Table ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th {
  width: 200px;
  text-align: left;
  padding: .875rem 1.25rem;
  background: var(--bg);
  font-size: .875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.info-table td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.info-table tr:last-child th,
.info-table tr:last-child td { border: none; }

/* ── About Page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-placeholder {
  text-align: center;
  color: var(--white);
}
.about-img-placeholder svg { opacity: .5; }
.about-img-placeholder p { margin-top: .5rem; font-size: .875rem; opacity: .7; }
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.value-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary-blue);
}
.value-card .icon { font-size: 1.5rem; margin-bottom: .5rem; }
.value-card h4 { font-size: .875rem; color: var(--text-dark); }

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: var(--light-blue);
}
.timeline-item {
  position: relative;
  padding: 0 0 2rem 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px; left: -2.5rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--light-blue);
}
.timeline-year {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: .08em;
  margin-bottom: .3rem;
}

/* ── Portfolio Page ── */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.portfolio-filter-bar label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.portfolio-filter-bar select {
  padding: .5rem 2rem .5rem .75rem;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  appearance: auto;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.portfolio-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.portfolio-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light-blue), rgba(43,159,216,.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.portfolio-info { padding: 1rem; }
.portfolio-info h4 { font-size: .85rem; margin-bottom: .25rem; color: var(--text-dark); }
.portfolio-info p { font-size: .72rem; color: var(--text-secondary); }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.portfolio-tags .tag { font-size: .6rem; }

/* ── Do / Don't cards ── */
.dodont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.dodont-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.dodont-header {
  padding: .75rem 1.25rem;
  font-weight: 700;
  font-size: .95rem;
}
.dodont-header.do { background: #e8f5e9; color: #2e7d32; }
.dodont-header.dont { background: #ffebee; color: #c62828; }
.dodont-list {
  padding: 1rem 1.25rem;
}
.dodont-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-secondary);
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.dodont-list li:last-child { border: none; }
.dodont-list li .icon { flex-shrink: 0; font-size: .8rem; }

/* ── Shared image placeholder ── */
.img-placeholder-box {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(43,159,216,.12) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 2px dashed rgba(43,159,216,.25);
  color: var(--text-secondary);
  font-size: .8rem;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 900px) {
  .hero-top-img { height: 35vh; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > div:first-child { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-map iframe { height: 140px; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .info-table th { width: 130px; }
  .carousel-slide { flex: 0 0 80%; }
  .carousel-slide-client { flex: 0 0 35%; }
  .dodont-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding-top: 56px; }
  .hero-top-img { height: 28vh; min-height: 160px; }
  .hero-center { padding: 1.5rem .5rem 1rem; }
  .hero-h1-main { font-size: 1.8rem; }
  .hero-h1-accent { font-size: .95rem; }
  .hero-sub { font-size: .88rem; }

  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .section-title { font-size: 1.35rem; }

  /* Sections */
  section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 2rem 1.25rem; }

  /* Info table scrollable */
  .info-table { display: block; overflow-x: auto; }
  .info-table th { width: 110px; font-size: .8rem; }
  .info-table td { font-size: .85rem; }

  /* Footer */
  .footer { padding: 2rem 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: .5rem; }
  .footer-brand { padding-bottom: 0; }
  .footer-brand p { margin-top: .25rem; margin-bottom: 0; }
  .footer h5 { margin-bottom: .35rem; margin-top: .4rem; }
  .footer-map iframe { height: 180px; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-links-service {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: .3rem .75rem;
  }
  .footer-links-service li { margin-bottom: 0; }

  /* Page hero */
  .page-hero { padding: 5rem 0 2rem; }
  .page-hero h1 { font-size: 1.75rem; }

  /* Buttons */
  .btn { padding: .7rem 1.4rem; font-size: .85rem; }
  .hero-btns .btn { flex: 1; justify-content: center; min-width: 120px; }

  /* CTA banner */
  .cta-banner { padding: 2.5rem 0 !important; }
  .cta-banner h2 { font-size: 1.3rem; }
  .cta-form-card { padding: 1.5rem; }
  .cta-form-row { grid-template-columns: 1fr; }
  .cta-form-submit { width: 100%; justify-content: center; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .portfolio-swiper-item { flex: 0 0 65%; }
  .carousel-slide { flex: 0 0 85%; }
  .carousel-slide-client { flex: 0 0 55%; }
  .carousel { padding: .5rem 4%; }

  /* Do/Don't */
  .dodont-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero-h1-main { font-size: 1.6rem; }
  .process-steps { grid-template-columns: 1fr; }
  .svc-cat-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
