/* 91爆料今日大赛 - 资讯门户风格静态站 CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-primary: #059669;
  --green-dark: #047857;
  --green-light: #10b981;
  --green-pale: #d1fae5;
  --green-bg: #ecfdf5;
  --teal: #0d9488;
  --text-main: #1f2937;
  --text-sub: #4b5563;
  --text-muted: #9ca3af;
  --bg-page: #f3f4f6;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --tag-bg: #f0fdf4;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(5, 150, 105, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-page);
  font-size: 15px;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--green-dark);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部条 */
.top-bar {
  background: var(--green-dark);
  color: white;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #a7f3d0;
}

.top-bar a:hover {
  color: white;
}

.top-bar .date {
  opacity: 0.85;
}

/* 主导航 */
.main-nav {
  background: white;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--green-primary);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.site-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--green-dark);
}

.site-title .accent {
  color: var(--green-light);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 5px;
}

.nav-menu li a {
  color: var(--text-sub);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.25s;
}

.nav-menu li a:hover,
.nav-menu li a.on {
  background: var(--green-bg);
  color: var(--green-dark);
}

/* 头部横幅 */
.page-banner {
  background: linear-gradient(135deg, #047857 0%, #10b981 50%, #34d399 100%);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.92;
  max-width: 700px;
  margin: 0 auto;
}

/* 主体内容 */
.content-area {
  padding: 40px 0;
}

/* 两栏布局 */
.dual-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

/* 新闻列表 */
.news-list {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.news-list-header {
  background: var(--green-bg);
  padding: 15px 25px;
  border-bottom: 2px solid var(--green-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list-header h2 {
  font-size: 20px;
  color: var(--green-dark);
}

.news-list-header .more {
  font-size: 14px;
  color: var(--green-primary);
}

.news-item {
  display: flex;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--bg-page);
}

.news-item .news-tag {
  flex-shrink: 0;
  background: var(--tag-bg);
  color: var(--green-dark);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 15px;
  align-self: flex-start;
  margin-top: 3px;
  font-weight: 600;
}

.news-item .news-body {
  flex: 1;
}

.news-item .news-body h3 {
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 600;
}

.news-item .news-body h3 a {
  color: var(--text-main);
}

.news-item .news-body h3 a:hover {
  color: var(--green-primary);
}

.news-item .news-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.news-item .news-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.news-item .news-meta span {
  margin-right: 15px;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.side-box {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.side-box-header {
  background: var(--green-dark);
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
}

.side-box-body {
  padding: 15px 20px;
}

/* 热门排行 */
.hot-rank {
  list-style: none;
}

.hot-rank li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

.hot-rank li:last-child {
  border-bottom: none;
}

.hot-rank .rank-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--text-muted);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.hot-rank li:nth-child(1) .rank-num {
  background: #ef4444;
}

.hot-rank li:nth-child(2) .rank-num {
  background: #f59e0b;
}

.hot-rank li:nth-child(3) .rank-num {
  background: var(--green-primary);
}

.hot-rank .rank-title {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}

.hot-rank .rank-title a {
  color: var(--text-sub);
}

.hot-rank .rank-title a:hover {
  color: var(--green-primary);
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: var(--tag-bg);
  color: var(--green-dark);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.25s;
}

.tag-cloud a:hover {
  background: var(--green-primary);
  color: white;
}

/* 板块标题 */
.sec-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.sec-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 24px;
  background: var(--green-primary);
  border-radius: 3px;
}

.sec-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 30px;
  padding-left: 18px;
}

/* 卡片网格 */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.info-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.info-card .card-top {
  background: linear-gradient(135deg, var(--green-bg) 0%, var(--green-pale) 100%);
  padding: 30px 25px;
  text-align: center;
}

.info-card .card-top .card-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.info-card .card-top .card-icon-label {
  font-size: 14px;
  color: var(--green-dark);
  font-weight: 600;
}

.info-card .card-body {
  padding: 20px 25px;
}

.info-card .card-body h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.info-card .card-body p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* 步骤教程 */
.guide-steps {
  margin: 30px 0;
}

.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
}

.guide-step .gs-num {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--green-primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.guide-step .gs-content h4 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.guide-step .gs-content p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* 问答列表 */
.qa-list {
  margin: 30px 0;
}

.qa-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.qa-item .qa-q {
  padding: 18px 25px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--green-bg);
  cursor: pointer;
  position: relative;
  padding-right: 50px;
}

.qa-item .qa-q::after {
  content: '▾';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-primary);
  font-size: 18px;
  transition: transform 0.3s;
}

.qa-item.open .qa-q::after {
  transform: translateY(-50%) rotate(180deg);
}

.qa-item .qa-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 25px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

.qa-item.open .qa-a {
  max-height: 400px;
  padding: 18px 25px;
}

/* 专题展示 */
.topic-block {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.topic-banner {
  background: linear-gradient(135deg, #047857 0%, #0d9488 100%);
  color: white;
  padding: 35px 30px;
}

.topic-banner h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.topic-banner p {
  opacity: 0.9;
  font-size: 14px;
}

.topic-content {
  padding: 25px 30px;
}

.topic-content p {
  color: var(--text-sub);
  margin-bottom: 12px;
  font-size: 15px;
}

.topic-content h4 {
  color: var(--green-dark);
  font-size: 17px;
  margin: 20px 0 10px;
}

/* 联系页面 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.contact-info {
  background: white;
  border-radius: 10px;
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  font-size: 20px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

.contact-row .cr-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.contact-row .cr-text h5 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-row .cr-text p {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
}

.contact-form {
  background: white;
  border-radius: 10px;
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 20px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  background: var(--green-primary);
  color: white;
  border: none;
  padding: 12px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.btn-submit:hover {
  background: var(--green-dark);
}

/* 提示框 */
.notice {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 25px 0;
  font-size: 14px;
}

.notice-green {
  background: var(--green-bg);
  border-left: 4px solid var(--green-primary);
  color: var(--text-sub);
}

/* 面包屑 */
.crumbs {
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.crumbs a {
  color: var(--text-muted);
}

.crumbs a:hover {
  color: var(--green-primary);
}

.crumbs .sep {
  margin: 0 6px;
}

/* 页脚 */
.site-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 45px 0 20px;
  margin-top: 50px;
}

.footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #9ca3af;
  font-size: 13px;
}

.footer-col ul li a:hover {
  color: var(--green-light);
}

.footer-copy {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .nav-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-banner h1 {
    font-size: 26px;
  }

  .dual-col {
    grid-template-columns: 1fr;
  }

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

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

  .footer-row {
    grid-template-columns: 1fr;
  }

  .guide-step {
    flex-direction: column;
    gap: 12px;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }
}
