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

:root {
  --bg-primary: #f6f7fb;
  --bg-secondary: #eef0f6;
  --bg-card: #ffffff;
  --accent-gold: #c98a2b;
  --accent-gold-2: #e0a94a;
  --accent-blue: #2f6df6;
  --accent-blue-soft: #e8f0ff;
  --text-primary: #1c2533;
  --text-secondary: #5b6675;
  --text-muted: #97a0ad;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: #e6e9f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  --shadow-hover: 0 18px 44px rgba(31, 41, 55, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(224, 169, 74, 0.12), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgba(47, 109, 246, 0.10), transparent 55%),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.85;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* 交互元素恢复可选/可输入 */
input, textarea, button, a { -webkit-user-select: auto; user-select: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.95rem 3rem;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 251, 0.82);
  border-bottom: 1px solid var(--glass-border);
}
.nav-logo {
  font-family: 'Noto Serif SC', serif; font-size: 1.35rem; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
/* 详情页导航：左侧返回目录 */
.nav-back {
  font-size: 0.88rem; color: var(--text-secondary); text-decoration: none;
  border: 1px solid var(--glass-border); padding: 0.4rem 1rem;
  border-radius: 100px; transition: all 0.25s; white-space: nowrap;
  background: transparent; cursor: pointer; font-family: inherit;
}
.nav-back:hover { color: var(--accent-blue); border-color: var(--accent-blue); }
.nav-join {
  border: none; cursor: pointer; padding: 0.5rem 1.3rem; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-2)); color: #fff;
  font-size: 0.88rem; font-weight: 600; font-family: inherit;
  box-shadow: 0 6px 16px rgba(201, 138, 43, 0.3); transition: transform 0.25s, box-shadow 0.25s;
}
.nav-join:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(201, 138, 43, 0.42); }
.nav-share {
  border: 1px solid var(--glass-border); cursor: pointer; padding: 0.5rem 1.1rem; border-radius: 100px;
  background: var(--glass-bg); color: var(--text-secondary);
  font-size: 0.88rem; font-weight: 600; font-family: inherit; transition: all 0.25s;
}
.nav-share:hover { color: var(--accent-blue); border-color: var(--accent-blue); }

/* Hero */
.page-hero { text-align: center; padding: 4rem 1.5rem 2.2rem; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.3rem; margin-bottom: 1.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 100px; font-size: 0.85rem; color: var(--accent-gold);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.35); } }
.page-hero h1 {
  font-family: 'Noto Serif SC', serif; font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 900; line-height: 1.25; margin-bottom: 1rem; letter-spacing: 0.5px;
  color: var(--text-primary);
}
.page-hero h1 .gradient-text {
  background: linear-gradient(120deg, var(--accent-gold), var(--accent-gold-2) 45%, var(--accent-blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 220% 220%; animation: gradientShift 7s ease infinite;
}
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.page-hero .subtitle { color: var(--text-secondary); font-size: 1.02rem; max-width: 660px; margin: 0 auto; }

/* 日期标签页 */
.day-tabs { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: nowrap; overflow-x: auto; padding: 0.5rem 1rem 1.8rem; position: relative; z-index: 1; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  border: 1px solid var(--glass-border); border-radius: 100px;
  background: var(--glass-bg); color: var(--text-secondary);
  padding: 0.4rem 1rem; font-size: 0.75rem; cursor: pointer;
  font-family: inherit; transition: all 0.3s; white-space: nowrap;
}
.tab .tab-period { font-size: 0.78rem; color: var(--text-muted); }
.tab.active .tab-period { color: rgba(255,255,255,0.85); }
.tab:hover { border-color: var(--accent-blue); color: var(--accent-blue); transform: translateY(-2px); }
.tab.active {
  background: linear-gradient(135deg, var(--accent-blue), #5b8dff);
  color: #fff; border-color: transparent; font-weight: 700;
  box-shadow: 0 8px 22px rgba(47, 109, 246, 0.32);
}

/* 工具栏 */
.layout { padding-bottom: 3rem; position: relative; z-index: 1; }
.toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.search { flex: 1; min-width: 220px; }
.search input {
  width: 100%; padding: 0.85rem 1.2rem;
  border: 1px solid var(--glass-border); border-radius: 100px;
  background: #fff; color: var(--text-primary);
  font-size: 0.95rem; font-family: inherit; outline: none;
  transition: all 0.3s;
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12); }
.count { color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }
.count b { color: var(--accent-blue); }

/* 场次卡片网格 */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s, border-color 0.35s;
}
.item::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(47, 109, 246, 0.07), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.item:hover { transform: translateY(-5px); border-color: rgba(47, 109, 246, 0.28); box-shadow: var(--shadow-hover); }
.item:hover::after { opacity: 1; }

/* 左侧序号 */
.item .idx {
  flex-shrink: 0; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif; font-size: 0.9rem; color: var(--accent-gold);
  font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(135deg, rgba(201,138,43,0.10), rgba(224,169,74,0.06));
  border-radius: 12px;
}
/* 中间信息区 */
.item .meta { flex: 1; min-width: 0; }
.item .name {
  display: block; font-family: 'Noto Serif SC', serif; font-weight: 700;
  font-size: 1.15rem; color: var(--text-primary); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item .name .title {
  display: inline; font-family: 'Noto Sans SC', sans-serif; font-weight: 400;
  font-size: 0.82rem; color: var(--text-secondary); margin-left: 0.5rem;
}
.item .topic {
  display: block; font-size: 0.85rem; color: var(--accent-gold);
  margin-top: 0.3rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 500;
}

/* 胶囊徽标 */
.badge { display: inline-block; font-size: 0.72rem; line-height: 1; padding: 0.36rem 0.78rem; border-radius: 100px; font-weight: 600; letter-spacing: 0.5px; }
.badge.speech { background: var(--accent-blue-soft); color: #2f6df6; }
.badge.roundtable { background: rgba(201, 138, 43, 0.14); color: #c98a2b; }
.badge.event { background: #e9f7ef; color: #1f9d57; }
.badge.report_release { background: rgba(201, 138, 43, 0.16); color: #b5791f; }

.empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 3rem 0; }
.placeholder { text-align: center; color: var(--text-secondary); padding: 4rem 1rem; }
.placeholder p { margin: 0.4rem 0; }
.placeholder .hint { color: var(--text-muted); font-size: 0.9rem; }
.placeholder code, .page-hero code { background: #eef0f6; padding: 1px 6px; border-radius: 5px; font-size: 0.85em; color: var(--text-secondary); }

/* 落地页 */
.detail-page { padding-top: 1.5rem; padding-bottom: 3rem; position: relative; z-index: 1; }
.back {
  display: inline-block; margin-bottom: 1.4rem; padding: 0.5rem 1.2rem;
  border: 1px solid var(--glass-border); border-radius: 100px; background: var(--glass-bg);
  color: var(--accent-blue); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  position: sticky; top: 72px; z-index: 900;
  transition: all 0.3s;
}
.back:hover { border-color: var(--accent-blue); background: var(--accent-blue-soft); }
.back:hover { border-color: var(--accent-blue); background: var(--accent-blue-soft); }
.detail-head {
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.9rem 2.1rem; margin-bottom: 1.5rem;
}
.detail-head .head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.detail-head h1.stitle {
  display: block;
  font-family: 'Noto Serif SC', serif; font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25;
  color: var(--accent-gold); margin-bottom: 0.6rem;
}
.detail-head h2 { font-family: 'Noto Serif SC', serif; margin: 0.4rem 0 0.3rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
.detail-head .affiliation { color: var(--text-secondary); font-size: 0.92rem; margin-top: 0.3rem; }
.detail-head .stitle { margin: 0.5rem 0 0; color: var(--accent-gold); font-size: 1.05rem; font-weight: 600; }
.card {
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.7rem 2rem; margin-bottom: 1.5rem;
}
.card h3 { margin: 0 0 1.1rem; font-size: 1.1rem; font-family: 'Noto Serif SC', serif; font-weight: 700; padding-left: 12px; border-left: 3px solid var(--accent-gold); }
.report p { margin: 0 0 0.9rem; color: var(--text-primary); }
.report p:last-child { margin-bottom: 0; }

/* 原文速记：与科技报道一致，不套框 */
.original { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 0.95rem; line-height: 1.95; color: var(--text-primary); }
.original p { margin: 0 0 0.9rem; }
.original p:last-child { margin-bottom: 0; }

/* 原文锁定：获取阅读码按钮 */
.getcode-btn {
  margin-top: 1rem; display: inline-block; cursor: pointer;
  padding: 0.7rem 1.4rem; border: none; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-2));
  color: #fff; font-size: 0.92rem; font-weight: 600; font-family: inherit;
  box-shadow: 0 8px 22px rgba(201, 138, 43, 0.32); transition: transform 0.25s, box-shadow 0.25s;
}
.getcode-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201, 138, 43, 0.42); }

/* 弹框 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(20, 24, 33, 0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
}
.modal {
  position: relative; width: 100%; max-width: 360px;
  background: #fff; border-radius: 18px; padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.3); text-align: center;
  animation: modalPop 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: transparent;
  font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer;
}
.modal h4 { font-family: 'Noto Serif SC', serif; font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.modal-tip { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.share-img { width: 100%; max-width: 200px; height: auto; border-radius: 12px; margin: 0 auto 1rem; display: block; box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.modal-qr { width: 180px; height: 180px; object-fit: contain; border-radius: 12px; border: 1px solid var(--glass-border); margin: 0 auto 1rem; display: block; }
.modal-simple .modal { padding: 0; background: transparent; box-shadow: none; max-width: 756px; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.modal-simple .modal-close { position: static; color: #fff; font-size: 1.6rem; line-height: 1; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); cursor: pointer; }
.modal-simple .modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-qr-only { width: 756px; height: auto; margin: 0 auto; border: none; border-radius: 16px; display: block; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 1rem; padding: 0.6rem 0.9rem; background: var(--bg-secondary); border-radius: 12px; }
/* 分享弹框：链接在上、复制按钮在下方整行 */
.copy-row-bottom { flex-direction: column; align-items: stretch; margin-bottom: 0; margin-top: 1rem; }
.copy-row-bottom .wx { text-align: left; font-size: 0.8rem; line-height: 1.5; }
.copy-row-bottom .copy-btn { width: 100%; justify-content: center; margin-top: 0.6rem; }
.copy-row .wx { font-size: 0.85rem; color: var(--text-secondary); }
.copy-row .wx b { color: var(--text-primary); }
.copy-btn { border: none; cursor: pointer; padding: 0.45rem 0.9rem; border-radius: 100px; background: var(--accent-blue); color: #fff; font-size: 0.8rem; font-weight: 600; font-family: inherit; }
.copy-btn:hover { background: #2257d6; }
.code-form { display: flex; gap: 0.5rem; }
.code-form input { flex: 1; min-width: 0; padding: 0.6rem 0.9rem; border: 1px solid var(--glass-border); border-radius: 10px; font-size: 16px; font-family: inherit; outline: none; }
.code-form input:focus { border-color: var(--accent-blue); }
.unlock-btn { border: none; cursor: pointer; padding: 0.6rem 1.2rem; border-radius: 10px; background: var(--accent-gold); color: #fff; font-size: 0.9rem; font-weight: 600; font-family: inherit; white-space: nowrap; }
.unlock-btn:hover { background: var(--accent-gold-2); }
.code-err { color: #d64545; font-size: 0.8rem; margin-top: 0.6rem; min-height: 1rem; }

/* 圆桌话轮 */
.turn { padding: 0.7rem 1rem; margin: 0 0 1rem; background: #f9fafc; border-left: 3px solid var(--c, #cbd5e1); border-radius: 0 10px 10px 0; }
.turn:last-child { margin-bottom: 0; }
.turn.host { border-left-color: var(--accent-gold); background: rgba(201, 138, 43, 0.10); }
.spk { font-weight: 700; color: var(--c, #1c2533); }
.turn.host .spk { color: var(--accent-gold); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.82rem; padding: 1.4rem 0; text-align: center; position: relative; z-index: 1; }

@media (max-width: 600px) {
  .nav { padding: 0.8rem 1.2rem; }
  .nav-tag { display: none; }
  .page-hero { padding-top: 2.5rem; }
  .list { grid-template-columns: 1fr; }
  .modal-simple .modal { max-width: 66vw; }
  .modal-qr-only { width: 66vw; }
  /* 移动端 tab：日期在上、上下午在下，避免拥挤 */
  .day-tabs { gap: 0.45rem; padding: 0.6rem 0.6rem 1.4rem; }
  .tab { flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.4rem 0.9rem; border-radius: 14px; }
  .tab .tab-period { font-size: 0.72rem; }
}
