/* 乡村养老便民服务样式 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    line-height: 1.6;
}

a { text-decoration: none; color: #5B8C5A; }
a:hover { color: #3d6b3c; }

/* 顶部栏 */
.top-bar {
    background: #fff;
    border-bottom: 3px solid #5B8C5A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
}
.top-bar .welcome { color: #666; font-size: 13px; }
.top-bar .links a { margin-left: 15px; font-size: 13px; color: #666; }
.top-bar .links a:hover { color: #5B8C5A; }

/* logo区域 */
.header {
    background: #5B8C5A;
    padding: 20px 0;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; color: #fff;
}
.logo-text h1 { font-size: 26px; color: #fff; font-weight: bold; letter-spacing: 2px; }
.logo-text p { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 3px; }

/* 主导航 */
.main-nav { background: #fff; border-bottom: 2px solid #e8e8e8; }
.main-nav .layui-nav { background: transparent; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-nav .layui-nav .layui-nav-item a { font-size: 15px; color: #333; }
.main-nav .layui-nav .layui-this a { color: #5B8C5A; }
.main-nav .layui-nav .layui-this::after { background: #5B8C5A; }

/* 轮播 */
.banner-section { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.banner-section .layui-carousel { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.banner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}
.banner-content { position: relative; z-index: 1; padding: 30px 50px; }
.banner-content h2 { font-size: 30px; font-weight: bold; margin-bottom: 14px; letter-spacing: 2px; }
.banner-content p { font-size: 17px; opacity: 0.9; line-height: 1.8; }

/* 快捷入口 */
.quick-entry { max-width: 1200px; margin: 0 auto; padding: 0 20px 20px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.quick-item {
    background: #fff;
    border-radius: 6px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e8e8e8;
}
.quick-item:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.quick-item .q-icon { font-size: 36px; margin-bottom: 8px; display: block; }
.quick-item .q-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 4px; }
.quick-item .q-desc { font-size: 12px; color: #999; }

.quick-item.theme-green .q-icon { color: #5B8C5A; }
.quick-item.theme-blue .q-icon { color: #4A90D9; }
.quick-item.theme-orange .q-icon { color: #E8913A; }
.quick-item.theme-purple .q-icon { color: #8E7CC3; }

/* 主体双栏 */
.home-content {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}
.home-left, .home-right { display: flex; flex-direction: column; gap: 15px; }

/* 卡片 */
.section-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}
.section-card .card-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.section-card .card-title::before {
    content: '';
    display: inline-block;
    width: 3px; height: 16px;
    background: #5B8C5A;
    margin-right: 8px;
    border-radius: 2px;
}
.section-card .card-title a.more {
    font-size: 12px; color: #999; margin-left: auto; font-weight: normal;
}

/* 政策列表 */
.policy-list { list-style: none; }
.policy-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}
.policy-list li:last-child { border-bottom: none; }
.policy-list .policy-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    white-space: nowrap;
}
.policy-tag.tag-important { background: #FFF3E0; color: #E8913A; }
.policy-tag.tag-policy { background: #E8F5E9; color: #5B8C5A; }
.policy-tag.tag-medical { background: #E3F2FD; color: #4A90D9; }
.policy-list .policy-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.policy-list .policy-date { font-size: 12px; color: #999; white-space: nowrap; }

/* 科普 */
.knowledge-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
}
.knowledge-item:hover { background: #f0f7f0; }
.knowledge-item .k-title { font-size: 14px; color: #333; font-weight: bold; margin-bottom: 4px; }
.knowledge-item .k-desc {
    font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 留言 */
.feedback-card { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.feedback-card:last-child { border-bottom: none; }
.feedback-card .f-info { display: flex; justify-content: space-between; margin-bottom: 3px; }
.feedback-card .f-name { font-size: 13px; color: #5B8C5A; font-weight: bold; }
.feedback-card .f-time { font-size: 12px; color: #999; }
.feedback-card .f-content { font-size: 13px; color: #666; line-height: 1.5; }
.feedback-card .f-status { font-size: 12px; margin-top: 3px; }
.f-status.done { color: #5B8C5A; }
.f-status.processing { color: #E8913A; }
.f-status.pending { color: #999; }

/* 页脚 */
.footer {
    background: #3d6b3c;
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 18px;
    font-size: 12px;
    margin-top: 25px;
}
.footer p { margin: 2px 0; }

/* 内页 */
.page-container { max-width: 1200px; margin: 20px auto 30px; padding: 0 20px; }
.page-breadcrumb { font-size: 13px; color: #999; margin-bottom: 15px; }
.page-breadcrumb a { color: #666; }
.page-breadcrumb span { color: #333; }

.page-header {
    background: #fff;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 15px;
    border: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-header h2 { font-size: 18px; color: #333; }
.page-header h2::before {
    content: '';
    display: inline-block;
    width: 3px; height: 18px;
    background: #5B8C5A;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 1px;
}

.filter-bar {
    background: #fff;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 15px;
    border: 1px solid #e8e8e8;
}

.content-box {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

/* 政策详情 */
.policy-detail-header {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    margin-bottom: 18px;
}
.policy-detail-header h3 { font-size: 20px; color: #333; margin-bottom: 8px; }
.policy-detail-header .meta { font-size: 13px; color: #999; }
.policy-detail-body { font-size: 15px; line-height: 2; color: #444; }
.policy-detail-body p { margin-bottom: 12px; text-indent: 2em; }

/* 预约 */
.appointment-form { max-width: 700px; margin: 0 auto; }
.appointment-form .layui-form-label { width: 120px; }
.appointment-form .layui-input-block { margin-left: 150px; }

/* 留言板 */
.message-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.message-item:last-child { border-bottom: none; }
.message-item .msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.message-item .msg-user { font-weight: bold; color: #333; font-size: 14px; }
.message-item .msg-time { font-size: 12px; color: #999; }
.message-item .msg-body { font-size: 14px; color: #555; line-height: 1.6; }
.message-item .msg-reply {
    margin-top: 8px;
    padding: 8px 14px;
    background: #f5f9f5;
    border-radius: 5px;
    border-left: 3px solid #5B8C5A;
}
.message-item .msg-reply .reply-label { font-size: 12px; color: #5B8C5A; margin-bottom: 3px; }

/* 知识卡片 */
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.knowledge-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    cursor: pointer;
}
.knowledge-card:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.knowledge-card .kc-img {
    height: 160px;
    background: #5B8C5A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: rgba(255,255,255,0.6);
}
.knowledge-card .kc-body { padding: 12px; }
.knowledge-card .kc-title { font-size: 14px; font-weight: bold; color: #333; margin-bottom: 6px; }
.knowledge-card .kc-desc { font-size: 12px; color: #999; line-height: 1.5; }

/* 登录 */
.login-wrapper {
    min-height: 100vh;
    background: #5B8C5A;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    width: 380px;
    background: #fff;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.login-box .login-title { text-align: center; font-size: 22px; color: #333; margin-bottom: 4px; }
.login-box .login-subtitle { text-align: center; font-size: 13px; color: #999; margin-bottom: 25px; }
.login-box .test-account {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 5px;
    padding: 10px;
    margin-top: 18px;
    font-size: 12px;
    color: #795548;
    line-height: 1.8;
}

/* 后台管理 */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 200px; background: #2c3e2d; color: #fff; flex-shrink: 0; }
.admin-sidebar .sidebar-logo { padding: 18px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .sidebar-logo h3 { font-size: 17px; color: #fff; }
.admin-sidebar .sidebar-logo p { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 3px; }
.admin-sidebar .sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    border-left: 3px solid transparent;
}
.admin-sidebar .sidebar-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-sidebar .sidebar-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #FFD700;
    border-left-color: #FFD700;
}

.admin-main { flex: 1; background: #f5f5f5; overflow-y: auto; }
.admin-top {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.admin-top .admin-user { font-size: 14px; color: #666; }
.admin-content { padding: 18px 20px; }

/* 统计 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e8e8e8;
}
.stat-card .stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}
.stat-card .stat-info h4 { font-size: 13px; color: #999; margin-bottom: 3px; }
.stat-card .stat-info p { font-size: 24px; font-weight: bold; color: #333; }

/* 图表 */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.chart-box {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    border: 1px solid #e8e8e8;
}
.chart-box .chart-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.chart-container { height: 300px; }

/* 空状态 */
.empty-state { text-align: center; padding: 50px 20px; color: #999; }
.empty-state .empty-icon { font-size: 55px; color: #ddd; margin-bottom: 12px; }
