/* 基础重置 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #1f2937; background: #f9fafb; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 布局 */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 顶部导航 */
.nav { background: #0f172a; color: #e5e7eb; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #1f2937; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; letter-spacing: 0.5px; }
.menu { display: flex; gap: 12px; }
.menu a { padding: 8px 12px; border-radius: 8px; color: #e5e7eb; }
.menu a.active, .menu a:hover { background: #1f2937; color: #fff; }
.menu a.disabled { background: #374151; color: #9ca3af; cursor: not-allowed; }
.menu a.disabled:hover { background: #374151; color: #9ca3af; }
.nav-toggle { display: none; background: none; border: 1px solid #334155; color: #e5e7eb; padding: 6px 10px; border-radius: 6px; }

@media (max-width: 768px) {
  .menu { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #0f172a; flex-direction: column; padding: 8px; border-bottom: 1px solid #1f2937; }
  .menu.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* 首页 */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font-size: 32px; margin: 0 0 8px; }
.hero p { color: #4b5563; margin: 0; }

.carousel { margin: 24px auto; }
.carousel-viewport { position: relative; overflow: hidden; border-radius: 12px; background: #0b1220; }
.carousel-slides { list-style: none; margin: 0; padding: 0; display: flex; transition: transform 0.5s ease; }
.carousel-slides li { min-width: 100%; height: 360px; display: flex; align-items: center; justify-content: center; background: #111827; color: #e5e7eb; position: relative; }
.carousel-slides img { width: 100%; height: 360px; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.carousel-btn:hover { background: rgba(0,0,0,0.55); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
.dot.active { background: #0ea5e9; }

.features { padding: 8px 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }

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

.cta { text-align: center; padding: 24px 0 40px; }
.btn { display: inline-block; background: #0ea5e9; color: #fff; padding: 10px 16px; border-radius: 10px; }
.btn:hover { background: #0284c7; }

.footer { text-align: center; padding: 16px; color: #6b7280; }

/* 留言板 */
.board-wrapper { padding: 24px 0 40px; }
.form { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.form-row { display: grid; gap: 8px; }
.form input, .form textarea { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; }
.form textarea { min-height: 120px; resize: vertical; }
.form .actions { display: flex; gap: 12px; }
.form .actions .btn.secondary { background: #e5e7eb; color: #111827; }
.form .actions .btn.secondary:hover { background: #d1d5db; }

.list { margin-top: 16px; display: grid; gap: 12px; }
.msg { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; }
.msg .meta { font-size: 12px; color: #6b7280; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.msg .content { white-space: pre-wrap; color: #111827; }
.msg .ops { display: flex; gap: 8px; }

/* 新闻/时间线/徽章等增强样式 */
.badge { display: inline-block; background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; padding: 2px 8px; border-radius: 999px; font-size: 12px; margin-bottom: 6px; }
.meta-row { color: #64748b; font-size: 12px; margin-top: 8px; }
.timeline ul { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 8px 0; align-items: start; }
.timeline .time { color: #0ea5e9; font-weight: 600; }
.timeline .node { color: #1f2937; }
.map-box { border: 1px dashed #cbd5e1; border-radius: 12px; overflow: hidden; }

