/* 
 * 妈妈网 - 统一样式表
 * 风格：柔和、温馨、可爱、充满母爱
 * 配色：#ff8fa3 (樱花粉), #ffbe76 (暖阳橙), #7ed6df (婴儿蓝), #fff5f6 (浅粉底)
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Quicksand", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 15px; color: #57606f; line-height: 1.6; background-color: #fffafb; }
a { text-decoration: none; color: #57606f; transition: all 0.3s; }
a:hover { color: #ff8fa3; }
ul { list-style: none; }
img { max-width: 100%; border-radius: 15px; vertical-align: middle; }

.container { width: 1180px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 头部样式 - 圆润且温馨 */
.top-nav { background: #ff8fa3; color: #fff; padding: 6px 0; font-size: 13px; }
.top-nav .container { display: flex; justify-content: space-between; }
.top-nav a { color: #fff; }

.header-main { background: #fff; padding: 30px 0; border-radius: 0 0 50px 50px; box-shadow: 0 10px 30px rgba(255,143,163,0.1); }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 36px; font-weight: 900; color: #ff8fa3; display: flex; align-items: center; }
.logo h1 span { color: #ffbe76; }
.logo p { font-size: 14px; color: #a4b0be; letter-spacing: 2px; margin-top: 5px; }

.search-wrap { display: flex; background: #fff5f6; border: 2px solid #ffccd5; border-radius: 30px; padding: 5px; width: 400px; }
.search-wrap input { border: none; background: transparent; flex: 1; padding: 8px 15px; outline: none; font-size: 14px; color: #ff8fa3; }
.search-wrap button { background: #ff8fa3; color: #fff; border: none; padding: 8px 25px; border-radius: 25px; cursor: pointer; font-weight: bold; }

/* 导航 - 气泡悬浮感 */
.nav-bar { margin-top: 15px; }
.nav { display: flex; justify-content: center; gap: 10px; }
.nav li a { display: block; padding: 12px 25px; font-size: 17px; font-weight: bold; color: #ff8fa3; border-radius: 25px; transition: 0.3s; }
.nav li a:hover, .nav li.active a { background: #ff8fa3; color: #fff; box-shadow: 0 5px 15px rgba(255,143,163,0.3); }

/* 首页特写区域 */
.home-stage { margin-top: 30px; display: grid; grid-template-columns: 280px 1fr 280px; gap: 20px; }

.stage-card { background: #fff; border-radius: 25px; padding: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.03); border: 1px solid #fff0f2; }
.stage-title { font-size: 20px; font-weight: 800; color: #ff8fa3; margin-bottom: 20px; display: flex; align-items: center; }
.stage-title i { margin-right: 10px; font-style: normal; }

.focus-box { height: 400px; border-radius: 30px; overflow: hidden; position: relative; }
.focus-box img { width: 100%; height: 100%; object-fit: cover; }
.focus-info { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(255,255,255,0.9); padding: 20px; border-radius: 20px; backdrop-filter: blur(5px); }
.focus-info h2 { font-size: 22px; color: #ff8fa3; margin-bottom: 8px; }

/* 育儿阶段模块 */
.age-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.age-item { background: #fff; padding: 30px 20px; border-radius: 30px; text-align: center; border: 2px solid transparent; transition: 0.3s; }
.age-item:hover { border-color: #ffccd5; transform: translateY(-5px); }
.age-icon { width: 80px; height: 80px; background: #fff5f6; border-radius: 50%; margin: 0 auto 20px; line-height: 80px; font-size: 32px; color: #ff8fa3; }
.age-item h4 { font-size: 18px; color: #ff8fa3; margin-bottom: 10px; }

/* 文章流 */
.article-section { margin-top: 40px; display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.post-card { background: #fff; border-radius: 25px; padding: 25px; margin-bottom: 20px; display: flex; gap: 20px; transition: 0.3s; }
.post-card:hover { box-shadow: 0 15px 35px rgba(255,143,163,0.1); }
.post-thumb { width: 220px; height: 150px; border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.post-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.post-info h3 { font-size: 20px; color: #2f3542; margin-bottom: 12px; }
.post-info p { color: #a4b0be; font-size: 14px; height: 44px; overflow: hidden; margin-bottom: 15px; }
.post-meta { font-size: 13px; color: #ffccd5; font-weight: bold; }

/* 侧边栏 */
.side-box { background: #fff; border-radius: 25px; padding: 25px; margin-bottom: 20px; }
.side-head { font-size: 18px; font-weight: 800; color: #ff8fa3; margin-bottom: 20px; border-bottom: 2px dashed #fff5f6; padding-bottom: 10px; }
.rank-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #fffafb; }
.rank-idx { width: 24px; height: 24px; background: #fff5f6; border-radius: 8px; text-align: center; line-height: 24px; color: #ff8fa3; font-weight: 900; font-size: 12px; }
.rank-list li:nth-child(-n+3) .rank-idx { background: #ff8fa3; color: #fff; }

/* 列表页 */
.list-header { padding: 40px 0; text-align: center; background: #fff; border-radius: 30px; margin-bottom: 30px; }
.list-header h2 { font-size: 32px; color: #ff8fa3; margin-bottom: 10px; }
.breadcrumb { font-size: 14px; color: #ffccd5; }

/* 内容页 */
.article-container { background: #fff; border-radius: 40px; padding: 50px; box-shadow: 0 20px 50px rgba(255,143,163,0.05); }
.article-title { font-size: 36px; font-weight: 900; color: #2f3542; text-align: center; margin-bottom: 25px; line-height: 1.4; }
.article-meta-info { text-align: center; color: #a4b0be; font-size: 14px; margin-bottom: 40px; }
.article-meta-info span { margin: 0 15px; }
.article-body { font-size: 17px; line-height: 2; color: #57606f; }
.article-body p { margin-bottom: 25px; }
.article-body img { border-radius: 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); display: block; margin: 30px auto; }

/* 分页 */
.dede-pages { text-align: center; margin-top: 40px; }
.dede-pages li { display: inline-block; margin: 0 5px; }
.dede-pages a, .dede-pages span { padding: 12px 20px; background: #fff; color: #ff8fa3; font-weight: bold; border-radius: 15px; box-shadow: 0 5px 15px rgba(255,143,163,0.1); }
.dede-pages .thisclass { background: #ff8fa3; color: #fff; }

/* 底部 */
.footer { background: #ff8fa3; color: #fff; padding: 80px 0 40px; margin-top: 60px; border-radius: 60px 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo h2 { font-size: 28px; margin-bottom: 20px; }
.footer-links h4 { font-size: 18px; margin-bottom: 20px; border-bottom: 2px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); display: block; margin-bottom: 12px; font-size: 14px; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 13px; color: rgba(255,255,255,0.7); }
