/* 全局样式重置 + 卡易信风格主样式 */
* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "微软雅黑", SimSun, "宋体", Arial, Helvetica, sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}
.container {
    width: 1200px;
    margin: 0 auto;
}
a {
    color: #333;
    transition: all 0.3s;
}
a:hover {
    color: #e53935;
}
/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 6px 15px;
    background-color: #e53935;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.btn:hover {
    background-color: #d32f2f;
}
.btn-default {
    background-color: #666;
}
.btn-default:hover {
    background-color: #555;
}
/* 表单样式 */
.form-item {
    margin-bottom: 15px;
}
.form-item label {
    display: inline-block;
    width: 120px;
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
}
.form-item input[type="text"], .form-item input[type="password"], .form-item select, .form-item textarea {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 400px;
}
.form-item textarea {
    height: 100px;
    resize: vertical;
}
.form-item .upload-img {
    display: inline-block;
    margin-top: 10px;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    padding: 5px;
}
.form-item .upload-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 富文本编辑器 */
.editor {
    width: 800px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
/* 顶部导航 */
.header-wrap {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 60px;
    margin-right: 10px;
}
.logo .subtitle {
    font-size: 16px;
    color: #666;
}
.nav {
    display: flex;
}
.nav li {
    margin-left: 30px;
}
.nav li a {
    font-size: 16px;
    font-weight: 500;
}
.nav li a.active {
    color: #e53935;
    border-bottom: 2px solid #e53935;
    padding-bottom: 5px;
}
/* 主内容区 */
.main {
    padding: 20px 0;
    min-height: 500px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 20px auto;
}
/* 前台通用页面标题 */
.page-title {
    font-size: 24px;
    text-align: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
/* 公告页样式（卡易信1:1排版） */
.notice-wrap {
    display: flex;
}
/* 公告左侧导航 */
.notice-nav {
    width: 200px;
    border-right: 1px solid #eee;
    padding-right: 20px;
}
.notice-nav h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e53935;
}
.notice-nav li {
    margin-bottom: 10px;
}
.notice-nav li a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
}
.notice-nav li a.active {
    background-color: #fef0f0;
    color: #e53935;
}
/* 公告右侧列表 */
.notice-list {
    flex: 1;
    padding-left: 30px;
}
.notice-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}
.notice-item .notice-title {
    font-size: 18px;
    margin-bottom: 10px;
}
.notice-item .notice-time {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}
.notice-item .notice-desc {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* 公告详情页 */
.notice-detail .notice-title {
    font-size: 22px;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.notice-detail .notice-info {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
}
.notice-detail .notice-content {
    line-height: 2;
    font-size: 16px;
}
.notice-detail .notice-content img {
    max-width: 100%;
    margin: 10px 0;
}
.notice-detail .notice-content a {
    color: #e53935;
    text-decoration: underline;
}
/* 联系我们页 */
.contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.contact-item {
    width: 300px;
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 15px;
}
.contact-item .contact-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #e53935;
}
.contact-item p {
    margin-bottom: 5px;
}
/* 底部样式（卡易信布局） */
.footer-wrap {
    background-color: #333;
    color: #ccc;
    margin-top: 30px;
}
.footer {
    padding: 40px 0;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    padding-bottom: 30px;
    margin-bottom: 20px;
}
.footer-col {
    width: 25%;
}
.footer-col h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e53935;
    display: inline-block;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #ccc;
}
.footer-col ul li a:hover {
    color: #e53935;
}
.qrcode-col {
    text-align: center;
}
.wx-qrcode {
    width: 120px;
    height: 120px;
    border: 2px solid #fff;
    margin: 0 auto 10px;
}
.wx-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-bottom {
    text-align: center;
    font-size: 12px;
}
/* 后台样式 */
.admin-login {
    width: 400px;
    margin: 100px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.admin-login .login-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: #e53935;
}
.admin-main {
    display: flex;
    min-height: 600px;
}
.admin-nav {
    width: 200px;
    background-color: #2f4050;
    color: #fff;
}
.admin-nav .admin-logo {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    background-color: #1f2d3d;
}
.admin-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #a7b1c2;
    border-left: 3px solid transparent;
}
.admin-nav ul li a:hover, .admin-nav ul li a.active {
    background-color: #1f2d3d;
    color: #fff;
    border-left-color: #e53935;
}
.admin-content {
    flex: 1;
    padding: 20px;
    background-color: #f3f3f4;
}
.admin-content .content-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.admin-content .content-wrap {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* 后台表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
}
.table th {
    background-color: #f9f9f9;
    font-weight: bold;
}
.table td a {
    margin: 0 5px;
}
/* 分页样式 */
.page-wrap {
    text-align: center;
    margin-top: 20px;
}
.page-wrap a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
}
.page-wrap a.active {
    background-color: #e53935;
    color: #fff;
    border-color: #e53935;
}
/* 提示信息 */
.msg {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}
.msg-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.msg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* 隐藏元素 */
.hide {
    display: none;
}