/* === 在博鳌遇见幸福 · 第三届中国心理学应用发展大会参会日记 === */
/* === Design: Grace @ 全民幸福社 === */

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

:root {
  /* 博鳌色彩体系 */
  --ocean-deep:   #156b7a;   /* 深海 */
  --ocean-mid:    #2898a8;   /* 海水 */
  --sky-blue:     #6db3c9;   /* 蓝天 */
  --sky-light:    #c9e4ef;   /* 淡蓝白云 */
  --cloud-white:  #f7f9fb;   /* 白云白 */
  --sand:         #e8d5b0;   /* 沙滩金 */
  --sand-warm:    #d4a853;   /* 暖沙 */
  --green-mtn:    #3d7a5c;   /* 青山绿 */
  --green-leaf:   #5a9474;   /* 树叶绿 */
  --sunset:       #e8875b;   /* 日落暖橘 */
  --love-pink:    #e6738e;   /* 爱之粉 */

  --text:         #1e3133;   /* 深墨绿文字 */
  --text-dim:     #4a6a6d;   /* 灰调文字 */
  --text-muted:   #8a9fa1;   /* 淡文字 */
  --border:       #dce8ea;   /* 边框 */
  --border-subtle:#eaf2f4;   /* 淡边框 */

  --bg:           #f4f8f9;   /* 整体背景 */
  --bg-card:      #ffffff;   /* 卡片白 */

  --shadow-sm:    0 1px 4px rgba(21,107,122,0.06);
  --shadow:       0 2px 8px rgba(21,107,122,0.08);
  --shadow-lg:    0 4px 20px rgba(21,107,122,0.12);

  --radius:       10px;
  --radius-sm:    6px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-title: "Noto Serif SC", "STSong", Georgia, serif;

  --max-width: 760px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.2rem; margin: 2rem 0 1rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 0.8rem; color: var(--ocean-deep); }
h3 { font-size: 1.3rem; margin: 1.6rem 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 1rem 0 0.4rem; color: var(--ocean-deep); }
p  { margin: 0 0 1.4rem; }
a  { color: var(--ocean-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ocean-deep); }

blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--ocean-mid);
  background: var(--cloud-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-dim);
}
blockquote p { margin: 0; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 2.5rem 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.site-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0;
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ocean-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-logo::before {
  content: "🌊";
  font-size: 1.1rem;
}

.site-logo:hover { color: var(--ocean-mid); }

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ocean-mid); }
.nav-links a.active { color: var(--ocean-deep); font-weight: 700; }

/* --- Hero Banner --- */
.hero {
  background: linear-gradient(170deg, #c9e4ef 0%, #e8f4f8 30%, #f4f8f9 60%, #fdf6ed 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative wave at bottom */
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 C200 0,400 60,600 30 C800 0,1000 60,1200 30 L1200 60 L0 60 Z' fill='%23f4f8f9'/%3E%3C/svg%3E") repeat-x;
  background-size: 1200px 60px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ocean-deep);
  letter-spacing: 0.06em;
  padding: 0.3rem 1rem;
  background: rgba(255,255,255,0.8);
  border-radius: 100px;
  border: 1px solid var(--sky-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin: 0.5rem 0 0.8rem;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 50%, var(--green-mtn) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* --- Section Title --- */
.section-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin: 3.5rem 0 1.2rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--ocean-mid), var(--sky-blue));
  border-radius: 2px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.2s;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-left-color: var(--ocean-mid);
}

.card-day {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ocean-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.card h3 { margin-top: 0; font-size: 1.15rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--ocean-mid); }
.card p { color: var(--text-dim); font-size: 0.93rem; margin: 0.4rem 0 0; }
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--ocean-mid);
  margin-top: 0.7rem;
  font-weight: 600;
}

/* --- ShouYi CTA Banner --- */
.shouyi-banner {
  background: linear-gradient(135deg, #1e3a4d 0%, #2d5a6e 50%, #156b7a 100%);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shouyi-banner::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.shouyi-banner h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  color: #fff;
}

.shouyi-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  background: var(--sunset);
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-support:hover {
  background: #d4724a;
  transform: scale(1.03);
  color: #fff;
}

.btn-support::before {
  content: "❤️";
  font-size: 1.1rem;
}

/* --- Quote Cards (金句) --- */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .quote-grid { grid-template-columns: 1fr; }
}

.quote-card {
  background: linear-gradient(135deg, #f0f7f9 0%, #fdf6ed 100%);
  border-radius: var(--radius);
  padding: 1.3rem;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.quote-card::before {
  content: """;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--sky-light);
  position: absolute;
  top: 0.3rem;
  left: 0.8rem;
  line-height: 1;
}

.quote-card .quote-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin: 0.5rem 0 0.3rem 1.2rem;
  line-height: 1.6;
}

.quote-card .quote-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 1.2rem;
}

/* --- Comic Placeholder --- */
.comic-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 2px dashed var(--border);
  text-align: center;
}

.comic-section h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ocean-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

@media (max-width: 600px) {
  .comic-grid { grid-template-columns: repeat(2, 1fr); }
}

.comic-panel {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f0f7f9, #fdf6ed);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px solid var(--border-subtle);
}

.comic-panel .panel-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sky-blue);
  margin-bottom: 0.3rem;
}

.comic-panel .panel-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Article Page --- */
.article-header {
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.2rem;
  margin: 0.5rem 0 0.8rem;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-meta span { margin: 0 0.4rem; }

.article-body { font-family: var(--font-sans); }

.article-body p {
  font-size: 1.02rem;
  line-height: 1.9;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* Talk highlight box */
.talk-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.talk-box .talk-speaker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.talk-box .talk-speaker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-mid), var(--green-mtn));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.talk-box .talk-speaker-info h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text);
}

.talk-box .talk-speaker-info .talk-topic {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.talk-box .talk-content {
  color: var(--text-dim);
  line-height: 1.9;
}

.talk-content h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--ocean-deep);
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, rgba(21,107,122,0.05), rgba(61,122,92,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.highlight-box h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ocean-deep);
  margin-bottom: 0.5rem;
}

.highlight-box p { margin: 0; font-size: 0.95rem; color: var(--text-dim); }

/* --- About Page Grids --- */
.about-twocol { }
.coop-grid { }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-stat {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.about-stat .stat-value {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ocean-mid);
}

.about-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* --- ShouYi Detail Section --- */
.shouyi-detail {
  background: linear-gradient(135deg, #1e3a4d, #2d5a6e);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
  color: #fff;
}

.shouyi-detail h2 {
  color: #fff;
  font-family: var(--font-title);
  text-align: center;
  margin-bottom: 1.5rem;
}

.shouyi-detail .support-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--sunset);
  background: transparent;
  color: var(--sunset);
  transition: all 0.2s;
}

.btn-like:hover {
  background: var(--sunset);
  color: #fff;
  transform: scale(1.03);
}

.btn-like.filled {
  background: var(--sunset);
  color: #fff;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  color: rgba(255,255,255,0.9);
  transition: all 0.2s;
}

.btn-share:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* --- Footer --- */
.site-footer {
  margin-top: 5rem;
  padding: 2.5rem 0 3rem;
  background: var(--ocean-deep);
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }

.site-footer .footer-brand {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

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

/* --- Table Styles --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

thead tr { border-bottom: 2px solid var(--ocean-mid); }
th { text-align: left; padding: 0.6rem 0; color: var(--ocean-deep); font-weight: 600; }
tbody tr { border-bottom: 1px solid var(--border-subtle); }
td { padding: 0.6rem 0.3rem; }

/* --- Post List Page --- */
.post-list-header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .container { padding: 0 1.2rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .site-nav .container { flex-direction: column; gap: 0.5rem; }
  .nav-links { gap: 1.2rem; }
  .article-header h1 { font-size: 1.7rem; }
  .card { padding: 1.2rem; }
  .shouyi-banner { padding: 1.5rem; }
  .shouyi-detail { padding: 1.8rem; }
  .support-actions { flex-direction: column; align-items: center; }

  /* About page: two-column grids stack */
  .about-twocol { grid-template-columns: 1fr !important; }
  .coop-grid { grid-template-columns: 1fr !important; }
}
