/* ============================================================
   得鼎入口網站 — 重設計版 CSS
   Pure Native CSS · No Framework
   ============================================================ */

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  background: #fafaf8;
  color: #1a1a1a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-logo-mark {
  width: 28px; height: 28px;
  background: #2a7a50;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  transition: color 0.2s;
}

.nav-links a:hover { color: #1a1a1a; }

/* ---------- HERO ---------- */
.hero {
  margin-top: 0;
  height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.7) saturate(0.85);
  transition: opacity 1.2s ease;
  opacity: 1;
  z-index: 1;
}

.hero-bg--next {
  z-index: 0;
  transition: none;
}

.hero-bg.is-fading {
  opacity: 0;
}

.hero:hover .hero-bg { transform: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,50,35,0.55) 0%,
    rgba(10,25,18,0.35) 100%
  );
  z-index: 2;
}

.hero-prism-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: #5ddf98;
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  margin-bottom: 0.7rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.06em;
}

/* ---------- CARDS SECTION ---------- */
.cards-section {
  padding: 2rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.section-hint {
  font-size: 0.9rem;
  color: #888;
  font-weight: 300;
}

/* ---------- CARDS GRID ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* ---------- SITE CARD ---------- */
.site-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem 2.0rem 1.4rem;
  border: 1.5px solid #ebebeb;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  min-height: 260px;
}

.site-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
}

/* 每張卡各自的 hover 陰影顏色 */
.card--green:hover  { box-shadow: 0 16px 48px rgba(42, 122, 80, 0.18); }
.card--blue:hover   { box-shadow: 0 16px 48px rgba(59, 111, 212, 0.18); }
.card--amber:hover  { box-shadow: 0 16px 48px rgba(202, 107, 30, 0.18); }
.card--violet:hover { box-shadow: 0 16px 48px rgba(120, 70, 210, 0.18); }
.card--rose:hover   { box-shadow: 0 16px 48px rgba(220, 60, 100, 0.18); }
.card--cyan:hover   { box-shadow: 0 16px 48px rgba(13, 148, 136, 0.18); }


/* 狀態標示 */
.card-status {
  font-size: 0.9rem;
  font-weight: 700;
  color: #d0021b;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  min-height: 2.8rem;
  text-align: center;
}

.status-line {
  display: block;
}

.status-line--center {
  text-align: center;
}

/* 頂部 tag */
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.tag--green  { background: #edf7f1; color: #2a7a50; }
.tag--blue   { background: #eef2fc; color: #3b6fd4; }
.tag--amber  { background: #fff4e8; color: #ca6b1e; }
.tag--violet { background: #f3eefe; color: #7846d2; }
.tag--rose   { background: #fef0f3; color: #c0385f; }
.tag--cyan   { background: #e6f7f6; color: #0d9488; }


.card-icon {
  font-size: 2.8rem; /* Emoji 稍微放大，從 2.4rem 放大 */
  margin-bottom: 0.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;      /* 調整寬高以容納大一點點的 Logo */
  height: 3.2rem;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  min-height: 2.8rem; /* 設定最小高度，不論單行/雙行，整個卡片的元件高度都會完全一致對齊 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-desc {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.85;
  font-weight: 300;
  flex: 1;
  margin-bottom: 0;
}

/* CTA */
.card-cta {
  margin-top: 0.9rem;
}

.card-cta-text {
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: gap 0.2s;
}

.card--green  .card-cta-text { color: #2a7a50; }
.card--blue   .card-cta-text { color: #3b6fd4; }
.card--amber  .card-cta-text { color: #ca6b1e; }
.card--violet .card-cta-text { color: #7846d2; }
.card--rose   .card-cta-text { color: #c0385f; }
.card--cyan   .card-cta-text { color: #0d9488; }


.site-card:hover .card-cta-text { gap: 0.75rem; }

.cta-arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s;
}

.site-card:hover .cta-arrow { transform: translateX(4px); }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid #ebebeb;
  background: #fafaf8;
  padding: 1.8rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.03em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1050px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 860px) {
  .hero { height: 320px; }
  .cards-section { padding: 3rem 1.5rem 4.5rem; }
}

@media (max-width: 520px) {
  .site-nav { padding: 0 1.4rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .nav-links { gap: 1rem; font-size: 0.8rem; }
}
