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

:root {
  --bg: #E8DDD0;
  --black: #1a1a1a;
  --red: #B22222;
  --text-muted: #888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: 'Noto Sans TC', sans-serif;
  min-height: 100vh;
  -webkit-user-select: none;
  user-select: none;
}

.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 96px;
  color: var(--black);
  text-align: center;
  letter-spacing: 8px;
  line-height: 0.85;
  margin-bottom: 12px;
  transform: scaleY(1.2);
}

.subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 560px;
}

.site-subtitle {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  color: var(--red);
  letter-spacing: 6px;
}

.search-box {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid #aaa;
  background: transparent;
  color: var(--black);
  border-radius: 0;
  outline: none;
  width: 140px;
}

.search-box::placeholder { color: #aaa; }

.announcement {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  color: var(--black);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  max-width: 560px;
  padding: 8px 0;
  position: relative;
  height: 36px;
  overflow: hidden;
}

.announcement-item {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.announcement-item.active { opacity: 1; }

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 560px;
  width: 100%;
  margin-bottom: 16px;
}

.blocks-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 280px;
  width: 100%;
  margin-bottom: 60px;
}

.block {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
  color: var(--black);
  background: transparent;
}

.block:hover { opacity: 0.6; }

.block-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.block-icon.claude { background: linear-gradient(145deg, #D4845A, #c07248); color: #fff; }
.block-icon.chatgpt { background: linear-gradient(145deg, #bbb, #888); color: #444; }
.block-icon.gemini { background: linear-gradient(145deg, #6a9bd8, #4270a8); color: #fff; }
.block-icon.grok { background: linear-gradient(145deg, #333, #1a1a1a); color: #e0c040; }
.block-icon.media { background: linear-gradient(145deg, #b8b0a0, #9a9080); color: #555; }
.block-icon.salon { background: linear-gradient(145deg, #c8b890, #a89870); color: #333; }

.block-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--black);
}

.block.locked { cursor: not-allowed; }
.block.locked:hover { opacity: 0.5; }

.site-footer { text-align: center; margin-top: auto; }

.footer-copyright {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  color: var(--black);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.footer-email {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 10px;
  color: var(--red);
  text-decoration: none;
}

/* Article pages */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
}

.page-header { text-align: center; margin-bottom: 20px; }
.page-header a { text-decoration: none; color: var(--black); }

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: 6px;
  transform: scaleY(1.2);
  display: inline-block;
}

.page-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}

.page-nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.page-nav a:hover, .page-nav a.active { color: var(--red); }

.article-list { flex: 1; }

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--red);
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.2s;
}

.article-item:hover { opacity: 0.6; }

.article-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  margin-right: 20px;
  line-height: 1.6;
}

.article-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 1px;
}

.back-link:hover { color: var(--red); }

.page-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--red);
}

@media (max-width: 600px) {
  .site-title { font-size: 52px; letter-spacing: 4px; }
  .subtitle-row { gap: 16px; flex-wrap: wrap; }
  .blocks-grid { max-width: 100%; gap: 10px; }
  .blocks-grid-bottom { max-width: 55%; }
  .block-icon { width: 56px; height: 56px; font-size: 26px; border-radius: 12px; }
  .block-name { font-size: 12px; }
  .page-title { font-size: 32px; }
  .page-nav { gap: 14px; flex-wrap: wrap; }
}
