/* 台灣智綠集團 Taiwan SmartGreen — 靜態站樣式
   品牌 token 萃取自原 Weebly 主題 (main_style.css)
   主色橘 #ff8400 / 深 #202020 / 字體 Lato + 系統中文黑體 */

:root {
  --orange: #ff8400;
  --orange-dark: #e67700;
  --ink: #202020;
  --ink-2: #161616;
  --gray: #626262;
  --gray-light: #888888;
  --line: #dcdcdc;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --maxw: 1170px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  gap: 16px;
}
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav__links a {
  color: #eaeaea;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav__links a.active { background: #000; color: #fff; }
.nav__toggle {
  display: none;
  background: none; border: 0; color: #fff;
  font-size: 26px; cursor: pointer; padding: 6px 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 80px 24px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.42);
}
.hero__inner { position: relative; z-index: 1; max-width: 1000px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: .04em;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero .hero__sub { font-size: clamp(15px, 2vw, 20px); opacity: .92; }
.hero--tall { min-height: 460px; }
.hero--left { text-align: left; justify-content: flex-start; }
.hero--left .hero__inner { margin-left: 4%; }
.hero__lines { font-size: clamp(14px,1.8vw,18px); line-height: 2; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__title {
  text-align: center;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin: 0 0 8px;
}
.section__title::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  background: var(--orange);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section__lead {
  max-width: 900px;
  margin: 20px auto 0;
  text-align: justify;
  color: var(--gray);
  font-size: 17px;
}

/* ---------- News grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.10); }
/* Cards that link to an original source render as <a>; keep card styling, no underline. */
.news-card--link { text-decoration: none; color: inherit; cursor: pointer; }
.news-card--link:hover .news-card__title { color: var(--orange-dark); }
.news-card__src { color: var(--orange-dark); font-weight: 700; white-space: nowrap; }
.news-card__img {
  aspect-ratio: 16 / 10;
  background: #eee center/cover no-repeat;
}
.news-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__tags { font-size: 13px; color: var(--orange-dark); font-weight: 700; margin-bottom: 8px; }
.news-card__title { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0 0 10px; color: var(--ink); }
.news-card__summary { font-size: 14.5px; color: var(--gray); margin: 0 0 14px; flex: 1; text-align: justify; }
.news-card__meta { font-size: 13px; color: var(--gray-light); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Entity / card blocks (集團頁) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.entity-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}
.entity-card h3 { margin: 0 0 6px; font-size: 19px; }
.entity-card .en { color: var(--gray-light); font-size: 14px; margin-bottom: 12px; }
.entity-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--gray); font-size: 14.5px; }
.entity-card .reg { font-size: 13.5px; color: var(--gray); margin-top: 10px; line-height: 1.9; }
.entity-card .reg strong { color: var(--ink); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.member {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}
.member__role { color: var(--orange-dark); font-weight: 700; font-size: 14px; }
.member__name { font-size: 20px; font-weight: 800; margin: 2px 0 12px; }
.member ul { margin: 0; padding-left: 16px; color: var(--gray); font-size: 13.5px; line-height: 1.75; }

/* ---------- Feature rows (智綠科技) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 48px 0;
}
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.feature h3 { font-size: 22px; margin: 0 0 14px; }
.feature p { color: var(--gray); }
.feature .src { font-size: 12.5px; color: var(--gray-light); margin-top: 12px; }

/* ---------- Service list (智策標準) ---------- */
.svc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; margin-top: 32px; }
.svc-block h4 { color: var(--orange-dark); border-bottom: 2px solid var(--orange); padding-bottom: 8px; margin: 0 0 12px; }
.svc-block ul { padding-left: 18px; color: var(--gray); font-size: 15px; line-height: 1.9; }

/* ---------- PDF / download list (漁電) ---------- */
.pdf-group { margin-top: 32px; }
.pdf-group h3 { font-size: 20px; border-left: 4px solid var(--orange); padding-left: 12px; }
.pdf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; margin-top: 16px; }
.pdf-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; background: #fff; font-size: 14.5px;
}
.pdf-item:hover { border-color: var(--orange); text-decoration: none; }
.pdf-item .ico { color: var(--orange); font-weight: 800; font-size: 13px; border: 1px solid var(--orange); border-radius: 4px; padding: 2px 6px; }

/* ---------- Contact ---------- */
.office { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.office h3 { margin: 0; font-size: 20px; }
.office ul { margin: 0; padding-left: 18px; color: var(--gray); font-size: 15px; line-height: 1.9; }
.office .addr { color: var(--gray); font-size: 15px; line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #cfcfcf; padding: 48px 0 32px; margin-top: 40px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; }
.site-footer .en { color: #9a9a9a; font-size: 14px; }
.site-footer .fcols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer a { color: #cfcfcf; }
.site-footer .copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid #333; font-size: 13px; color: #8a8a8a; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 10px; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .office { grid-template-columns: 1fr; gap: 8px; }
}
