/* ==========================================================================
   极简黑金商业周刊 / Minimal Black & Gold Business Weekly
   OTCMS theme stylesheet — pure CSS, no JS, system fonts only
   ========================================================================== */

:root {
  --c-bg-dark: #1c1c1e;
  --c-bg-dark-2: #232325;
  --c-bg-light: #fafafa;
  --c-surface: #ffffff;
  --c-gold: #b08d57;
  --c-gold-soft: #cba86e;
  --c-text: #1c1c1e;
  --c-text-soft: #4a4a4c;
  --c-text-muted: #8a8a8d;
  --c-text-invert: #f5f5f3;
  --c-text-invert-muted: #a9a9ac;
  --c-border: #e4e2de;
  --c-border-dark: #38383a;

  --font-headline: "Bahnschrift", "Arial Narrow", "Helvetica Neue Condensed",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.bg-body {
  margin: 0;
  background: var(--c-bg-light);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.bg-header {
  background: var(--c-bg-dark);
  color: var(--c-text-invert);
}

.bg-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bg-logo {
  display: inline-flex;
  align-items: center;
}

.bg-logo img {
  max-height: 44px;
  width: auto;
}

.bg-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bg-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-invert-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bg-nav a:hover,
.bg-nav a:focus {
  color: var(--c-text-invert);
  border-color: var(--c-gold);
}

.bg-header__rule {
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-gold) 40%, transparent 40%, transparent 100%);
  opacity: 0.9;
}

/* ---------------------------------------------------------------------- */
/* Homepage — asymmetric magazine grid                                    */
/* ---------------------------------------------------------------------- */

.bg-home {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.bg-section {
  margin-bottom: 56px;
}

.bg-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.bg-section__head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--c-gold);
}

.bg-section__head h2 {
  font-size: 24px;
  text-transform: uppercase;
}

.bg-section__head h2 a:hover { color: var(--c-gold); }

.bg-more {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bg-more:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* Asymmetric grid: first article becomes the large featured item,
   remaining items fill the rest of the grid at a smaller size. */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(84px, auto);
  gap: 20px;
  grid-auto-flow: dense;
}

.bg-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
}

.bg-card:hover {
  border-top-color: var(--c-gold);
  transform: translateY(-2px);
}

.bg-card__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  width: 100%;
}

.bg-card h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bg-card h3 a:hover { color: var(--c-gold); }

.bg-card time {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-text-muted);
  font-family: var(--font-headline);
  letter-spacing: 0.04em;
}

/* Featured (first) card in every category grid spans 2x2 */
.bg-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--c-bg-dark);
  border-color: var(--c-bg-dark);
}

.bg-card:first-child .bg-card__inner {
  padding: 28px 28px 24px;
}

.bg-card:first-child h3 {
  font-size: 26px;
  line-height: 1.4;
  color: var(--c-text-invert);
}

.bg-card:first-child h3 a:hover { color: var(--c-gold-soft); }

.bg-card:first-child time {
  color: var(--c-gold-soft);
}

.bg-card:first-child:hover {
  border-top-color: var(--c-gold);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* Interior pages: list / show shared two-column layout                   */
/* ---------------------------------------------------------------------- */

.bg-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.bg-page h1 {
  font-size: 28px;
  text-transform: uppercase;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.bg-page h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--c-gold);
}

/* Article list (list.html) */

.bg-article-list__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
}

.bg-article-list__item:first-child { padding-top: 0; }

.bg-article-list__item h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.bg-article-list__item h2 a:hover { color: var(--c-gold); }

.bg-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-family: var(--font-headline);
  letter-spacing: 0.03em;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}

.bg-meta time::before { content: "· "; }
.bg-meta time { margin-left: -6px; }

.bg-summary {
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.bg-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.bg-pagination a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  font-size: 13px;
  font-family: var(--font-headline);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bg-pagination a:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* Article detail (show.html) */

.bg-article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-text-muted);
  font-family: var(--font-headline);
  letter-spacing: 0.03em;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--c-border);
}

.bg-source { color: var(--c-gold); }

.bg-summary-box {
  background: var(--c-surface);
  border-left: 3px solid var(--c-gold);
  padding: 16px 20px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.bg-article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
}

.bg-article-body p { margin: 0 0 1.4em; }

.bg-article-body img {
  margin: 1.4em auto;
  height: auto;
}

.bg-article-body h2,
.bg-article-body h3 {
  margin: 1.6em 0 0.8em;
  font-weight: 600;
}

.bg-article-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text-soft);
}

.bg-article-nav a:hover { color: var(--c-gold); }

/* Sidebar (shared by list.html + show.html) */

.bg-sidebar { display: flex; flex-direction: column; gap: 32px; }

.bg-side-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}

.bg-side-block h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  color: var(--c-text-invert);
  background: var(--c-bg-dark);
  border-bottom: 2px solid var(--c-gold);
}

.bg-side-block ul { padding: 8px 0; }

.bg-side-block li {
  padding: 10px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bg-side-block li:last-child { border-bottom: none; }

.bg-side-block li a {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.5;
}

.bg-side-block li a:hover { color: var(--c-gold); }

.bg-side-block li time {
  font-size: 11px;
  color: var(--c-text-muted);
  font-family: var(--font-headline);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.bg-footer {
  background: var(--c-bg-dark);
  color: var(--c-text-invert-muted);
  margin-top: 40px;
}

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

.bg-friendlink h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-invert-muted);
  margin-bottom: 14px;
}

.bg-friendlink ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.bg-friendlink a {
  font-size: 13px;
  color: var(--c-text-invert-muted);
}

.bg-friendlink a:hover { color: var(--c-gold); }

.bg-footer__rule {
  height: 1px;
  background: var(--c-border-dark);
  margin: 28px 0 20px;
}

.bg-copyright p {
  margin: 0;
  font-size: 12px;
  color: var(--c-text-invert-muted);
  letter-spacing: 0.02em;
}

.bg-copyright a { color: var(--c-text-invert-muted); }
.bg-copyright a:hover { color: var(--c-gold); }

/* ---------------------------------------------------------------------- */
/* Responsive breakpoints                                                  */
/* ---------------------------------------------------------------------- */

@media (max-width: 992px) {
  .bg-page {
    grid-template-columns: 1fr;
  }
  .bg-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .bg-sidebar .bg-side-block {
    flex: 1 1 260px;
  }
}

@media (max-width: 768px) {
  .bg-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  .bg-nav a { padding: 6px 10px; font-size: 13px; }

  .bg-home, .bg-page { padding: 32px 18px 48px; }

  /* Grid collapses to a single column; featured card no longer spans */
  .bg-grid {
    grid-template-columns: 1fr;
  }
  .bg-card:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bg-card:first-child h3 { font-size: 20px; }

  .bg-sidebar {
    flex-direction: column;
  }

  .bg-meta { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 480px) {
  .bg-section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bg-article-list__item h2 { font-size: 17px; }
  .bg-page h1 { font-size: 22px; }
}

/* ---------------------------------------------------------------------- */
/* Print                                                                   */
/* ---------------------------------------------------------------------- */

@media print {
  .bg-header, .bg-footer, .bg-sidebar, .bg-nav, .bg-pagination, .bg-article-nav {
    display: none !important;
  }
  body.bg-body { background: #fff; color: #000; }
  .bg-page { grid-template-columns: 1fr; padding: 0; }
  .bg-article-body { font-size: 12pt; line-height: 1.6; color: #000; }
  a { color: #000; text-decoration: underline; }
}
