/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SimSun", "Microsoft YaHei", sans-serif;
}

body {
    background: #fff;
    font-size: 14px;
    color: #333;
}

/* 顶部导航栏 */
.top-nav {
    background: #0078d7;
    height: 40px;
    line-height: 40px;
    color: #fff;
}

.nav-inner {
    width: 96%;
    margin: 0 auto;
}

.site-name {
    font-size: 18px;
    font-weight: bold;
    margin-right: 20px;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    font-size: 14px;
}

.top-nav a:hover {
    text-decoration: underline;
}

/* 主体容器 */
.container {
    width: 96%;
    margin: 15px auto;
}

/* 搜索栏 */
.search-bar {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.tab-group {
    display: inline-block;
    margin-right: 15px;
}

.tab-btn {
    display: inline-block;
    padding: 6px 18px;
    background: #eee;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.tab-btn.active {
    background: #ff7828;
    color: #fff;
    border-color: #ff7828;
}

.search-form {
    display: inline-block;
    margin-right: 15px;
}

.search-input {
    width: 250px;
    padding: 6px 10px;
    border: 1px solid #28a745;
    font-size: 14px;
    outline: none;
}

.btn-green {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 7px 16px;
    font-size: 14px;
    cursor: pointer;
}

.hotline {
    color: #d90000;
    font-weight: bold;
    font-size: 14px;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.data-table th {
    background: #f5f5f5;
    font-weight: normal;
}

.td-gongzhong a {
    color: #0066cc;
    text-decoration: none;
}

.td-gongzhong a:hover {
    text-decoration: underline;
}

/* 置顶标签 */
.top-tag {
    display: inline-block;
    background: #f44336;
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    margin-right: 4px;
}

/* 会员提示 */
.vip-hint {
    color: #d90000;
    font-size: 12px;
}

.td-date {
    color: #666;
}

/* 分页 */
.pagination {
    margin: 15px 0;
}

.pagination a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #ddd;
    margin: 0 2px;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #0078d7;
    color: #fff;
    border-color: #0078d7;
}

/* 底部版权 */
.footer {
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.8;
}

/* 表单页面通用 */
.form-page {
    width: 600px;
    margin: 30px auto;
}

.form-page h1 {
    text-align: center;
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 25px;
}

.form-item {
    margin-bottom: 18px;
    font-size: 15px;
}

.form-item label {
    display: inline-block;
    width: 90px;
}

.form-item input,
.form-item select,
.form-item textarea {
    width: 380px;
    height: 38px;
    border: 1px solid #aaa;
    padding: 0 8px;
    font-size: 15px;
}

.form-item textarea {
    height: 80px;
    padding: 5px 8px;
}

.submit-btn {
    margin-left: 94px;
    padding: 8px 30px;
    background: #0078d7;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.link-group {
    margin-top: 20px;
    margin-left: 94px;
}

.link-group a {
    color: #0078d7;
    text-decoration: none;
    margin-right: 20px;
}

.err {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

/* 个人中心 */
.user-info {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 25px;
}

.user-table th,
.user-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.user-table th {
    background: #f5f5f5;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .top-nav {
        height: auto;
        line-height: normal;
        padding: 8px;
    }
    .site-name {
        display: block;
        margin-bottom: 5px;
    }
    .search-input {
        width: 150px;
    }
    .form-item input,
    .form-item select,
    .form-item textarea {
        width: 220px;
    }
    .form-item label {
        width: 70px;
    }
}
