/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 24px;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #3498db;
}

header nav ul li span {
    color: #3498db;
    font-weight: bold;
}

/* 主要内容 */
main {
    padding: 40px 0;
    min-height: 600px;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control-file {
    padding: 5px;
}

/* 认证表单 */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-form h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 20px;
}

.auth-form p {
    margin-top: 20px;
    text-align: center;
}

/* 上传表单 */
.upload-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upload-form h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.upload-form p {
    margin-bottom: 30px;
    color: #666;
}

.upload-tips {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.upload-tips h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.upload-tips ul {
    list-style: none;
    padding-left: 0;
}

.upload-tips ul li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.upload-tips ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* 编辑表单 */
.edit-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.edit-form h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.edit-form .form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

/* 仪表板 */
.dashboard h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.dashboard .actions {
    margin-bottom: 30px;
}

/* 欢迎页面 */
.welcome {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.welcome p {
    margin-bottom: 30px;
    color: #666;
    font-size: 18px;
}

.welcome .actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 起诉状列表 */
.lawsuit-list {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.lawsuit-list table {
    width: 100%;
    border-collapse: collapse;
}

.lawsuit-list th,
.lawsuit-list td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.lawsuit-list th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.lawsuit-list tr:hover {
    background-color: #f8f9fa;
}

.lawsuit-list .btn {
    margin-right: 5px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 30px;
    font-size: 18px;
}

/* 微信支付 */
.wechat-pay {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wechat-pay h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.pay-info {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.pay-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.pay-info p {
    margin-bottom: 10px;
}

.pay-qrcode {
    text-align: center;
    margin-bottom: 40px;
}

.pay-qrcode h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.qrcode-container {
    margin-bottom: 20px;
}

.qrcode-container img {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
}

.qrcode-tip {
    color: #666;
}

.pay-actions {
    display: flex;
    justify-content: center;
}

/* 警告框 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header nav ul {
        margin-top: 10px;
    }
    
    header nav ul li {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .welcome .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .welcome .actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .lawsuit-list table {
        font-size: 14px;
    }
    
    .lawsuit-list th,
    .lawsuit-list td {
        padding: 10px;
    }
    
    .lawsuit-list .btn {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .edit-form {
        padding: 20px;
    }
    
    .upload-form {
        padding: 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .wechat-pay {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header .logo h1 {
        font-size: 20px;
    }
    
    main {
        padding: 20px 0;
    }
    
    .dashboard h2 {
        font-size: 20px;
    }
    
    .welcome h3 {
        font-size: 18px;
    }
    
    .welcome p {
        font-size: 16px;
    }
    
    .lawsuit-list table {
        font-size: 12px;
    }
    
    .lawsuit-list th,
    .lawsuit-list td {
        padding: 8px;
    }
    
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
}

.pagination .btn {
    padding: 6px 12px;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .btn.active {
    background-color: #2563eb !important;
    color: white !important;
    font-weight: bold;
}

.pagination .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    margin-left: 20px;
    font-size: 14px;
    color: #666;
}

/* 现代感和法律庄重感的结合 */
body {
    font-family: 'Microsoft YaHei', 'SimSun', Arial, sans-serif;
}

header, footer {
    background-color: #1a365d;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    color: #1a365d;
}

.btn-primary {
    background-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.lawsuit-list {
    border: 1px solid #e2e8f0;
}

.lawsuit-list th {
    background-color: #f1f5f9;
}

.auth-form, .upload-form, .edit-form, .wechat-pay {
    border: 1px solid #e2e8f0;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #15803d;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}