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

/* ── Tokens ── */
:root {
  --ink:       #1a1916;
  --ink2:      #5c5a54;
  --ink3:      #9a9890;
  --surface:   #ffffff;
  --bg:        #f9fafb;
  --bg2:       #f6f7f8;
  --accent:    #2a1f4e;
  --accent2:   #6b5fd4;
  --accent3:   #9b8fe8;
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.14);
  --serif:     'Noto Serif TC', serif,Georgia, sans-serif;
  --sans:      'Noto Sans TC', sans-serif;
  --r-md:      10px;
  --r-lg:      16px;
  --r-xl:      20px;
  --r-pill:    999px;
}

/* ── Base ── */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ════════════════════════════════
   NAV
════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border2);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse-dot 2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  color: var(--ink2);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.nav-cta:hover { background: #1a1338; transform: scale(1.02); }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 40px 72px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink3);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  color: var(--accent2);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent2);
  border-radius: 2px;
  opacity: 0.3;
}

.hero-desc {
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover { background: #1a1338; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--ink2);
  padding: 13px 30px;
  border-radius: var(--r-lg);
  font-size: 14px;
  border: 1px solid var(--border2);
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-1px);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: block;
}

.avatars span:first-child { margin-left: 0; }

.social-text {
  font-size: 13px;
  color: var(--ink3);
}

.social-text strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── Hero 視覺：手機預覽 ── */
.hero-visual {
  animation: float 5s ease-in-out infinite;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 60% 40%, rgba(107,95,212,0.08) 0%, transparent 70%);
  border-radius: 30px;
  pointer-events: none;
}

.phone {
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border2);
  padding: 20px 16px;
  box-shadow: 0 20px 60px rgba(42,31,78,0.12), 0 4px 16px rgba(0,0,0,0.06);
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  margin: 0 auto 16px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.phone-badge {
  font-size: 10px;
  background: #E1F5EE;
  color: #085041;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 500;
}

.p-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 0.5px solid var(--border);
  transition: transform 0.2s;
  cursor: pointer;
}

.p-card:hover { transform: translateX(3px); }

.p-card:last-child { margin-bottom: 0; }

.p-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.p-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.p-author { font-size: 11px; color: var(--ink3); }

.p-tag {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  margin-left: auto;
  font-weight: 500;
}

.p-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
}

.p-excerpt {
  font-size: 11px;
  color: var(--ink2);
  line-height: 1.5;
}

.p-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid var(--border);
}

.p-time { font-size: 10px; color: var(--ink3); }
.p-views { font-size: 10px; color: var(--ink3); margin-left: auto; }



.p-private {
  background: #EEEDFE;
  border-color: #CECBF6;
}

.p-private .p-title { color: #3C3489; }
.p-private .p-excerpt { color: #534AB7; }

/* ════════════════════════════════
   STATS BAR
════════════════════════════════ */
.stats-bar {
  background: var(--surface);
  border-top: 0.5px solid var(--border2);
  border-bottom: 0.5px solid var(--border2);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
}

.stat {
  flex: 1;
  padding: 28px 0;
  text-align: center;
  border-right: 0.5px solid var(--border);
  transition: background 0.2s;
}

.stat:last-child { border-right: none; }
.stat:hover { background: var(--bg); }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: var(--ink3);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════
   FEATURES
════════════════════════════════ */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink3);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 48px;
  max-width: 480px;
  line-height: 1.3;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border2);
  border: 0.5px solid var(--border2);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.feat-item {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
  position: relative;
}

.feat-item:hover { background: var(--bg); }

.feat-number {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feat-icon svg { width: 22px; height: 22px; }

.feat-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.feat-desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.75;
}

.feat-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
}

/* ════════════════════════════════
   HOW IT WORKS
════════════════════════════════ */
.how {
  background: var(--accent);
  padding: 80px 40px;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how .section-eyebrow { color: rgba(255,255,255,0.4); }
.how .section-eyebrow::before { background: rgba(255,255,255,0.3); }
.how .section-title { color: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.step {
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.step:hover { background: rgba(255,255,255,0.09); }

.step::before {
  content: attr(data-num);
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon svg { width: 22px; height: 22px; }

.step-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* ════════════════════════════════
   STORY FEED
════════════════════════════════ */
.feed-section {
  background: var(--bg2);
  padding: 80px 40px;
}

.feed-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.feed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.feed-more {
  font-size: 13px;
  color: var(--accent2);
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-more:hover { color: var(--accent); }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.story-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 0.5px solid var(--border);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.sc-tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 500;
  margin-bottom: 14px;
  align-self: flex-start;
}

.sc-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-excerpt {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
}

.sc-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sc-author {
  font-size: 11px;
  color: var(--ink2);
  font-weight: 500;
  flex: 1;
}

.sc-time {
  font-size: 11px;
  color: var(--ink3);
}

/* ════════════════════════════════
   TAGS
════════════════════════════════ */
.tags-section {
  background: var(--surface);
  padding: 64px 40px;
  border-top: 0.5px solid var(--border2);
  border-bottom: 0.5px solid var(--border2);
}

.tags-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tags-title {
  font-size: 13px;
  color: var(--ink3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 0.5px solid var(--border2);
  font-size: 13px;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.tag-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tag-count {
  font-size: 11px;
  color: var(--ink3);
  background: var(--bg2);
  padding: 1px 7px;
  border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s;
}

.tag-pill:hover .tag-count {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

/* ════════════════════════════════
   CTA BANNER
════════════════════════════════ */
.cta-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.cta-inner {
  background: var(--accent);
  border-radius: 24px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(107,95,212,0.15);
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.cta-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  padding: 13px 32px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 13px 32px;
  border-radius: var(--r-lg);
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
  transition: all 0.15s;
}

.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 0.5px solid var(--border2);
  padding: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink3);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-size: 12px;
  color: var(--ink3);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 24px 48px;
  }

  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }

  .feat-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 8px; }

  nav { padding: 0 24px; }

  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 640px) {
  .stats-inner { flex-wrap: wrap; }
  .stat { min-width: 50%; border-bottom: 0.5px solid var(--border); }
  .feed-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}



/* 確保手機外框能顯示的基本樣式 */
  .phone {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.14);
    padding: 20px 16px;
    max-width: 320px; /* 限制寬度 */
    margin: 20px auto; /* 居中顯示 */
    box-shadow: 0 20px 60px rgba(42,31,78,0.12);
    font-family: sans-serif;
  }
  .phone-notch { width: 80px; height: 6px; background: #f0ede6; border-radius: 3px; margin: 0 auto 16px; }
  .p-card { background: #f7f5f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; border: 0.5px solid rgba(0,0,0,0.08); }
  .p-title { font-weight: 600; font-size: 14px; color: #1a1916; }
  .p-excerpt { font-size: 12px; color: #5c5a54; }
  .p-av { width: 20px; height: 20px; border-radius: 50%; display: inline-block; vertical-align: middle; }
  .p-author { font-size: 11px; margin-left: 5px; color: #9a9890; }
  /* 動畫（若沒寫這段，fade-up 會讓透明度為 0 導致看不見） */
  .fade-up { animation: fadeInUp 0.6s ease forwards; }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }


.card-item {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.card-item.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

/* 👉 hover 只作用在 active 卡片 */
.card-item.active:hover {
  transform: translateY(-5px);
}


.reading-now {
    color: #28a745; /* 綠色 */
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}

/* 可加動畫效果，閃爍或跳動 */
.reading-now::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 1.5s infinite;
}

.post_box_a {
  border-radius: 10px;
  overflow: hidden;        /* 讓圖片乖乖被圓角裁切 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  margin-bottom: 14px;    /* 跟下面標題的間距 */
}

.post_box_a img {
  width: 100%;
  height: 180px;           /* 固定高度，讓卡片整齊 */
  object-fit: cover;       /* 圖片填滿不變形 */
  display: block;
}

.post_box_a::after {
  content: 'View';
  cursor: pointer;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  padding: 0 1.5em;
  line-height: 2.25em;
  font-size: 0.8em;
  font-weight: 400;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.35em;
  border: solid 3px rgba(255, 255, 255, 0.5);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.post_box_a:hover::after {
  opacity: 1;
  
}