@charset "utf-8";
/* 健康资讯网 - 统一样式表 */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; color: #333; background: #f5f7fa; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 头部导航 ===== */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 24px; font-weight: bold; color: #2ecc71; display: flex; align-items: center; gap: 8px; }
.logo span { color: #27ae60; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; color: #555; transition: color 0.3s; position: relative; }
.nav a:hover, .nav a.active { color: #2ecc71; }
.nav a.active::after { content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 2px; background: #2ecc71; }
.mobile-menu { display: none; font-size: 24px; cursor: pointer; }

/* ===== Banner ===== */
.banner { position: relative; height: 400px; overflow: hidden; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.banner-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.5s; }
.banner-slide.active { opacity: 1; }
.banner-content { text-align: center; color: #fff; padding: 0 20px; }
.banner-content h2 { font-size: 42px; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.banner-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.banner-btn { display: inline-block; padding: 12px 35px; background: #2ecc71; color: #fff; border-radius: 30px; font-weight: 500; transition: all 0.3s; }
.banner-btn:hover { background: #27ae60; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(46,204,113,0.4); }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.banner-dot.active { background: #fff; width: 30px; border-radius: 6px; }

/* 内页Banner */
.page-banner { background: linear-gradient(135deg, #10b981 0%, #059669 100%); padding: 60px 0; text-align: center; color: #fff; }
.page-banner h2 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 16px; opacity: 0.9; }

/* ===== 面包屑 ===== */
.breadcrumb { background: #fff; padding: 15px 0; border-bottom: 1px solid #e5e7eb; }
.breadcrumb .container { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #666; }
.breadcrumb a { color: #666; transition: color 0.3s; }
.breadcrumb a:hover { color: #2ecc71; }
.breadcrumb .sep { color: #ccc; }

/* ===== 分类区域 ===== */
.categories { padding: 60px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; color: #333; margin-bottom: 10px; }
.section-title p { color: #888; font-size: 15px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.cat-item { text-align: center; padding: 30px 20px; border-radius: 12px; background: #f8f9fa; transition: all 0.3s; cursor: pointer; }
.cat-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); background: #fff; }
.cat-icon { width: 60px; height: 60px; margin: 0 auto 15px; background: linear-gradient(135deg, #2ecc71, #27ae60); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.cat-item h3 { font-size: 18px; margin-bottom: 8px; color: #333; }
.cat-item p { font-size: 13px; color: #888; }

/* ===== 带缩略图文章 ===== */
.articles { padding: 60px 0; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.article-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: all 0.3s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.article-thumb { height: 180px; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; overflow: hidden; position: relative; }
.article-thumb img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: auto; height: auto; max-width: 100%; max-height: 100%; }
.article-info { padding: 20px; }
.article-tag { display: inline-block; padding: 4px 12px; background: #e8f5e9; color: #2ecc71; font-size: 12px; border-radius: 4px; margin-bottom: 10px; }
.article-info h3 { font-size: 18px; margin-bottom: 10px; color: #333; line-height: 1.4; }
.article-info p { font-size: 14px; color: #666; margin-bottom: 15px; }
.article-meta { display: flex; align-items: center; gap: 15px; font-size: 13px; color: #999; }

/* ===== 健康贴士 ===== */
.tips { padding: 60px 0; background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.tip-card { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 12px; padding: 25px; border: 1px solid rgba(255,255,255,0.2); }
.tip-card h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.tip-card p { font-size: 14px; opacity: 0.9; line-height: 1.6; }

/* ===== 无缩略图文章列表 ===== */
.text-articles { padding: 60px 0; background: #fff; }
.text-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.text-item { padding: 20px; border-left: 3px solid #2ecc71; background: #f8f9fa; border-radius: 0 8px 8px 0; transition: all 0.3s; }
.text-item:hover { background: #e8f5e9; }
.text-item h4 { font-size: 16px; color: #333; margin-bottom: 8px; }
.text-item p { font-size: 13px; color: #888; }

/* 列表页文章 */
.article-list { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.article-item { display: flex; gap: 20px; padding: 25px 0; border-bottom: 1px solid #f0f0f0; transition: all 0.3s; }
.article-item:last-child { border-bottom: none; }
.article-item:hover { background: #f9fafb; }
.article-item .article-thumb { width: 200px; height: 130px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.article-item:hover .article-thumb img { transform: scale(1.05); }
.article-item .article-info { flex: 1; }
.article-title { font-size: 18px; font-weight: 600; color: #1f2937; margin-bottom: 10px; line-height: 1.4; transition: color 0.3s; }
.article-item:hover .article-title { color: #2ecc71; }
.article-desc { font-size: 14px; color: #6b7280; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 简单文章列表 */
.article-list-simple { display: flex; flex-direction: column; gap: 15px; }
.article-item-simple { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #f3f4f6; }
.article-item-simple:last-child { border-bottom: none; padding-bottom: 0; }
.article-num { width: 24px; height: 24px; background: #2ecc71; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.article-item-simple:nth-child(n+4) .article-num { background: #d1d5db; color: #6b7280; }
.article-info-simple h4 { font-size: 14px; font-weight: 500; color: #374151; line-height: 1.5; margin-bottom: 5px; }
.article-info-simple h4:hover { color: #2ecc71; }
.article-date { font-size: 12px; color: #9ca3af; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; padding-top: 30px; border-top: 1px solid #f0f0f0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 8px; font-size: 14px; transition: all 0.3s; }
.pagination a { background: #f3f4f6; color: #4b5563; }
.pagination a:hover { background: #2ecc71; color: #fff; }
.pagination .current { background: #2ecc71; color: #fff; }

/* ===== 侧边栏 ===== */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-widget, .sidebar-box { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.sidebar-title { font-size: 16px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #2ecc71; }
.category-list li { margin-bottom: 12px; }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: #f9fafb; border-radius: 8px; font-size: 14px; color: #4b5563; transition: all 0.3s; }
.category-list a:hover { background: #2ecc71; color: #fff; }
.category-list .count { font-size: 12px; background: #e5e7eb; color: #6b7280; padding: 2px 8px; border-radius: 10px; }
.category-list a:hover .count { background: rgba(255,255,255,0.3); color: #fff; }
.hot-list li { margin-bottom: 15px; }
.hot-list a { display: flex; gap: 12px; align-items: flex-start; }
.hot-list .num { width: 24px; height: 24px; background: #f3f4f6; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #6b7280; flex-shrink: 0; }
.hot-list li:nth-child(1) .num { background: #fef3c7; color: #d97706; }
.hot-list li:nth-child(2) .num { background: #e0e7ff; color: #6366f1; }
.hot-list li:nth-child(3) .num { background: #fce7f3; color: #db2777; }
.hot-list .text { font-size: 14px; color: #4b5563; line-height: 1.5; flex: 1; }
.hot-list a:hover .text { color: #2ecc71; }

/* ===== 文章详情页 ===== */
.main-content { padding: 40px 0; }
.content-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.article-main { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.article-header { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid #e5e7eb; }
.article-main .article-title { font-size: 28px; font-weight: 700; color: #1f2937; margin-bottom: 15px; line-height: 1.4; }
.article-main .article-meta { display: flex; gap: 20px; font-size: 14px; color: #6b7280; }
.article-body { font-size: 16px; line-height: 1.8; color: #374151; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 22px; font-weight: 600; color: #1f2937; margin: 35px 0 20px; padding-bottom: 10px; border-bottom: 2px solid #2ecc71; }
.article-body h3 { font-size: 18px; font-weight: 600; color: #374151; margin: 25px 0 15px; }
.article-body ul { margin: 15px 0; padding-left: 25px; }
.article-body ul li { margin-bottom: 10px; position: relative; }
.article-body ul li::before { content: ''; position: absolute; left: -18px; top: 10px; width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; }
.article-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 30px; border-top: 1px solid #e5e7eb; }
.article-nav a { display: flex; flex-direction: column; max-width: 45%; }
.article-nav .prev { text-align: left; }
.article-nav .next { text-align: right; }
.article-nav .label { font-size: 13px; color: #6b7280; margin-bottom: 5px; }
.article-nav .title { font-size: 15px; font-weight: 500; color: #2ecc71; }
.article-nav a:hover .title { text-decoration: underline; }

/* ===== 表单 ===== */
.form-section { padding: 60px 0; background: #f5f7fa; }
.form-box { max-width: 600px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 5px 30px rgba(0,0,0,0.1); }
.form-box h2 { text-align: center; margin-bottom: 30px; color: #333; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #2ecc71; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.3s; }
.form-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(46,204,113,0.4); }

/* 订阅表单 */
.subscribe-section { background: linear-gradient(135deg, #10b981 0%, #059669 100%); padding: 60px 0; }
.subscribe-box { background: #fff; border-radius: 16px; padding: 40px; text-align: center; max-width: 600px; margin: 0 auto; }
.subscribe-box h3 { font-size: 24px; font-weight: 600; color: #1f2937; margin-bottom: 10px; }
.subscribe-box p { color: #6b7280; margin-bottom: 25px; }
.subscribe-form { display: flex; gap: 12px; max-width: 450px; margin: 0 auto; }
.subscribe-form input { flex: 1; padding: 14px 20px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 15px; outline: none; transition: border-color 0.3s; }
.subscribe-form input:focus { border-color: #2ecc71; }
.subscribe-form button { padding: 14px 30px; background: #2ecc71; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.subscribe-form button:hover { background: #27ae60; transform: translateY(-2px); }
.subscribe-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.subscribe-text h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 15px; }
.subscribe-text p { font-size: 16px; color: rgba(255,255,255,0.9); }

/* ===== 友情链接 ===== */
.links { padding: 40px 0; background: #fff; border-top: 1px solid #eee; }
.links h3 { font-size: 18px; margin-bottom: 20px; color: #333; }
.links-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.links-grid a { padding: 8px 20px; background: #f5f7fa; border-radius: 20px; font-size: 14px; color: #666; transition: all 0.3s; }
.links-grid a:hover { background: #2ecc71; color: #fff; }

/* ===== 底部 ===== */
.footer { background: #2c3e50; color: #fff; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-col h4 { font-size: 18px; margin-bottom: 20px; color: #2ecc71; }
.footer-col p, .footer-col a { font-size: 14px; color: #bdc3c7; line-height: 1.8; }
.footer-col a:hover { color: #2ecc71; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #34495e; font-size: 13px; color: #95a5a6; }
.footer-brand h3 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 15px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: #2ecc71; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 14px; }
.footer-contact .icon { width: 20px; text-align: center; color: #2ecc71; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .content-grid, .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .subscribe-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .banner-content h2 { font-size: 28px; }
  .page-banner h2 { font-size: 28px; }
  .text-grid { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .article-item .article-thumb { width: 100%; height: 180px; }
  .article-main { padding: 25px; }
  .article-main .article-title { font-size: 22px; }
  .article-nav { flex-direction: column; gap: 20px; }
  .article-nav a { max-width: 100%; }
  .article-nav .next { text-align: left; }
  .subscribe-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

