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

:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #2C2C2A;
  --color-text-secondary: #888780;
  --color-text-tertiary: #B4B2A9;
  --color-accent: #534AB7;
  --color-accent-light: #EEEDFE;
  --color-border: #E8E6E1;
  --color-tag-bg: #F5F3F0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --max-width: 1120px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

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

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

/* ========== Top Bar ========== */
.top-bar {
  background: var(--color-text);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.top-bar span {
  color: #B4B2A9;
  font-size: 12px;
  margin: 0 4px;
}

/* ========== Header ========== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

/* ========== Hero / Tagline ========== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  max-width: 680px;
}

.hero p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* ========== Section ========== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-left: 12px;
  font-weight: 400;
}

.section-more {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
  white-space: nowrap;
}

.section-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

/* ========== Article Card ========== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--color-accent);
}

.card-cover {
  width: 100%;
  height: 180px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.card-cover-placeholder {
  font-size: 13px;
  color: var(--color-accent);
  opacity: 0.5;
}

.card-body {
  padding: 18px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 6px;
}

.card-excerpt {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ========== Video Card ========== */
.video-card .card-cover {
  position: relative;
}

.video-card .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

/* ========== Gallery Grid ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ========== About Section ========== */
.about-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 24px;
  margin-top: 40px;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-accent);
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-text p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.social-links a {
  font-size: 14px;
  color: var(--color-accent);
}

.social-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========== Report Card (财报数据库) ========== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.report-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.report-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(83, 74, 183, 0.06);
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-quarter {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 1px;
}

.report-tag {
  font-size: 11px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.report-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.report-metrics {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.report-open {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
}

.data-note {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.data-note h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.data-note p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-text);
  color: #B4B2A9;
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
}

.site-footer a {
  color: #D3D1C7;
}

.site-footer a:hover {
  color: #fff;
}

/* ========== Page Header (subpages) ========== */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
}

.page-header p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ========== Article List ========== */
.article-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-row {
  display: flex;
  gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s;
}

.article-row:hover {
  border-color: var(--color-accent);
}

.article-row .row-cover {
  width: 200px;
  height: 140px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  flex-shrink: 0;
  overflow: hidden;
}

.article-row .row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row .row-body {
  flex: 1;
  min-width: 0;
}

.article-row .row-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.article-row .row-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.article-row .row-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.article-row .row-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ========== Back Link ========== */
.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========== Coming Soon ========== */
.coming-soon {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.coming-soon h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.coming-soon p {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    padding: 40px 20px 32px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 0 20px 40px;
  }

  .section-title {
    font-size: 18px;
  }

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

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-inner {
    flex-direction: column;
    gap: 24px;
  }

  .article-row {
    flex-direction: column;
  }

  .article-row .row-cover {
    width: 100%;
    height: 180px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== 反爬虫：禁止文本选择与长按 ========== */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
