/* ============================================
   Steaker Lite — Static Announcement Site
   ============================================ */

:root {
  --color-primary: #E5352B;
  --color-primary-hover: #c92a21;
  --color-text: #2c2c2c;
  --color-text-light: #999;
  --color-bg: #fff;
  --color-border: #eee;
  --max-width: 1100px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ---- Navigation ---- */
.navbar {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  height: 54px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-primary);
}

.lang-switch {
  font-size: 0.85rem;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---- Main Content ---- */
.main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
  width: 100%;
}

/* ---- Page Title ---- */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.page-title-divider {
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  margin-bottom: 32px;
}

/* ---- Post List ---- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.post-card:first-child {
  padding-top: 0;
}

.post-card-thumbnail {
  flex-shrink: 0;
  width: 200px;
  height: 134px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.post-card-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.post-card-more {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
  align-self: flex-end;
  transition: opacity 0.2s;
}

.post-card-more:hover {
  opacity: 0.7;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-stack);
}

.pagination button:hover {
  background: #f5f5f5;
}

.pagination button.active {
  background: var(--color-primary);
  color: #fff;
}

.pagination button:disabled {
  color: #ccc;
  cursor: default;
}

.pagination button:disabled:hover {
  background: transparent;
}

/* ---- Post Detail ---- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-text-light);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .separator {
  margin: 0 8px;
}

.post-detail {
  max-width: 760px;
}

.post-detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-detail-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.post-detail-cover {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 32px;
  overflow: hidden;
}

.post-detail-cover img {
  width: 100%;
  height: auto;
}

.post-detail-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.post-detail-content p {
  margin-bottom: 16px;
}

.post-detail-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 28px 0 12px;
}

.post-detail-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 20px 0 8px;
}

.post-detail-content ul,
.post-detail-content ol {
  margin: 0 0 16px 24px;
}

.post-detail-content li {
  margin-bottom: 6px;
}

.post-detail-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-detail-content a:hover {
  opacity: 0.8;
}

/* ---- Share Sidebar ---- */
.post-layout {
  display: flex;
  gap: 32px;
}

.share-sidebar {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-btn.facebook {
  background: #3b5998;
}

.share-btn.line {
  background: #00b900;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.copy-link {
  background: #666;
}

/* ---- Footer ---- */
.footer {
  background: #2c2c2c;
  color: #ccc;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer a {
  color: var(--color-primary);
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 0.8;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-contact {
  margin-bottom: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .navbar-inner {
    height: 56px;
    padding: 0 16px;
  }

  .navbar-logo img {
    height: 42px;
  }

  .navbar-links {
    gap: 16px;
  }

  .navbar-links a {
    font-size: 0.85rem;
  }

  .main {
    padding: 24px 16px 40px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .post-card {
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
  }

  .post-card-thumbnail {
    width: 100%;
    height: 180px;
  }

  .post-card-title {
    font-size: 1rem;
  }

  .post-layout {
    flex-direction: column;
  }

  .share-sidebar {
    flex-direction: row;
    width: auto;
    padding-top: 0;
    margin-bottom: 16px;
  }

  .post-detail-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .navbar-links {
    gap: 12px;
  }

  .lang-switch {
    padding: 3px 8px;
    font-size: 0.8rem;
  }
}
