/* ============================================
   为民爱心公益服务中心 - 参照"辽宁志愿服务网"风格
   红色主题 · 庄重 · 大气 · 政府网站风格
   ============================================ */

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.8;
    font-size: 14px;
}

a { color: #c0392b; text-decoration: none; }
a:hover { color: #e74c3c; }

/* ========== 顶部 ========== */

/* 顶部红条 */
.top-bar {
    height: 5px;
    background: #c0392b;
}

/* 顶部工具条 */
.top-toolbar {
    background: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    color: #888;
}
.toolbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}
.toolbar-inner .left { color: #aaa; font-size: 12px; }
.toolbar-inner .right { display: flex; gap: 0; }
.toolbar-inner .right a {
    color: #666;
    padding: 0 12px;
    font-size: 12px;
    border-right: 1px solid #ddd;
}
.toolbar-inner .right a:last-child { border-right: none; }
.toolbar-inner .right a:hover { color: #c0392b; }

/* 头部 Logo 区域 - 参照辽宁志愿服务网 */
.site-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}
.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* 参照辽宁志愿的圆形红色徽章 */
    background: linear-gradient(135deg, #c0392b, #d9534f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}
.logo-text h1 {
    font-size: 24px;
    color: #222;
    font-weight: bold;
    letter-spacing: 2px;
}
.logo-text .slogan {
    font-size: 13px;
    color: #bbb;
    letter-spacing: 1px;
    margin-top: 2px;
}
.header-right {
    text-align: right;
    font-size: 12px;
    color: #999;
    line-height: 1.7;
}
.header-right .tel {
    font-size: 18px;
    color: #c0392b;
    font-weight: bold;
}

/* ========== 导航栏 ========== */
.top-nav {
    background: #c0392b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.nav-links {
    list-style: none;
    display: flex;
    height: 48px;
}
.nav-links li { position: relative; }
.nav-links a {
    color: #fff;
    font-size: 15px;
    padding: 0 28px;
    height: 48px;
    line-height: 48px;
    display: block;
    letter-spacing: 1px;
    transition: background 0.3s;
}
.nav-links a:hover { background: #b03a2e; }
.nav-links a.active {
    background: #a03429;
    font-weight: bold;
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

/* ========== 主体 ========== */
.main-content {
    max-width: 1200px;
    margin: 20px auto 30px;
    padding: 0 20px;
}

/* ========== 最新公告（参照辽宁志愿的样式） ========== */
.notice-bar {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}
.notice-label {
    background: #c0392b;
    color: #fff;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}
.notice-text {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.notice-text a { color: #c0392b; }
.notice-text a:hover { color: #e74c3c; }
.notice-date {
    color: #ccc;
    font-size: 12px;
    margin-left: 15px;
    white-space: nowrap;
}

/* ========== 数据统计（参照辽宁志愿的版式） ========== */
.stats-bar {
    display: flex;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    padding: 18px 0;
}
.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    padding: 5px 0;
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: 32px;
    font-weight: bold;
    color: #c0392b;
    font-family: Arial, sans-serif;
}
.stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* ========== 网格布局 ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* ========== 标题栏（参照辽宁志愿的样式） ========== */
.section-title {
    font-size: 18px;
    color: #c0392b;
    font-weight: bold;
    padding: 12px 0 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #c0392b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title .more {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}
.section-title .more:hover { color: #c0392b; }

/* ========== 卡片 ========== */
.card {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    padding: 18px 20px 14px;
    transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
.card .section-title { margin-top: 0; padding-top: 0; }

/* 列表样式 */
.card-list { list-style: none; }
.card-list li {
    padding: 9px 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-list li:last-child { border-bottom: none; }
.card-list li a {
    font-size: 13px;
    color: #555;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-list li a:hover { color: #c0392b; }
.card-list li .date {
    color: #bbb;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 10px;
}

/* ========== 关于我们 ========== */
.about-section {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    padding: 25px 28px;
    margin-top: 20px;
}
.about-section .section-title { margin-top: 0; padding-top: 0; }
.about-section p {
    font-size: 14px;
    color: #555;
    line-height: 2.2;
    margin-bottom: 8px;
    text-indent: 2em;
}
.about-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 28px;
    background: #c0392b;
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
}
.about-btn:hover { background: #e74c3c; color: #fff; }

/* ========== 底部（参照辽宁志愿的样式） ========== */
.site-footer {
    background: #2c3e50;
    color: #ccc;
    margin-top: 40px;
    border-top: 4px solid #c0392b;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}
.footer-col p {
    font-size: 13px;
    color: #aaa;
    margin: 5px 0;
    line-height: 1.8;
}
.footer-col a { color: #e74c3c; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
    text-align: center;
    padding: 15px 0 20px;
    font-size: 12px;
    color: #888;
}
.footer-bottom a { color: #e74c3c; }
.footer-bottom p { margin: 3px 0; }

/* ========== 其他页面共用样式 ========== */

/* 文章详情页 */
.article-detail {
    background: #fff;
    border-radius: 2px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}
.article-detail h1 { font-size: 22px; color: #2c3e50; margin-bottom: 15px; }
.article-detail .meta { color: #bbb; font-size: 13px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.article-detail .content { font-size: 15px; line-height: 2; color: #555; }
.article-detail .content p { margin: 10px 0; text-indent: 2em; }
.article-detail .content img { max-width: 100%; height: auto; margin: 15px 0; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

/* 关于我们页 */
.about-page {
    background: #fff;
    border-radius: 2px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}
.about-page h1 { font-size: 22px; color: #2c3e50; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #c0392b; }
.about-page .section { margin-bottom: 25px; }
.about-page .section h2 { font-size: 17px; color: #c0392b; margin-bottom: 8px; padding-left: 10px; border-left: 3px solid #c0392b; }
.about-page .section p { font-size: 14px; line-height: 2; color: #555; text-indent: 2em; }

/* 通知页面 */
.notice-page {
    background: #fff;
    border-radius: 2px;
    padding: 30px 35px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}
.notice-page h1 { font-size: 22px; color: #c0392b; text-align: center; margin-bottom: 10px; }
.notice-page .subtitle { text-align: center; color: #999; font-size: 13px; margin-bottom: 25px; }

/* 活动列表 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
.article-card {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s;
}
.article-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
.article-card .card-body { padding: 18px 20px; }
.article-card h3 { font-size: 15px; margin-bottom: 8px; }
.article-card h3 a { color: #2c3e50; }
.article-card h3 a:hover { color: #c0392b; }
.article-card .date { color: #bbb; font-size: 12px; }
.article-card .summary { color: #888; font-size: 13px; margin-top: 6px; }

/* 社会实践表 */
.school-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.school-table th {
    background: #c0392b;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}
.school-table td {
    border: 1px solid #f0f0f0;
    padding: 9px 14px;
    font-size: 13px;
    color: #555;
}
.school-table tr:nth-child(even) { background: #fafafa; }
.school-table tr:hover { background: #fef5f5; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .stats-bar { flex-wrap: wrap; }
    .stat-item { flex: 0 0 50%; border-bottom: 1px solid #f0f0f0; }
    .stat-item:nth-child(2) { border-right: none; }
    .footer-cols { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; text-align: center; gap: 10px; }
    .logo-area { flex-direction: column; }
    .header-right { display: none; }
    .nav-links { flex-wrap: wrap; height: auto; }
    .nav-links a { height: 38px; line-height: 38px; padding: 0 14px; font-size: 14px; }
    .main-content { margin-top: 12px; }
    .article-list { grid-template-columns: 1fr; }
}
