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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.8rem;
    color: #3498db;
}

.admin-link a {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.admin-link a:hover {
    background: #2980b9;
}

.post-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-item h2 {
    margin-bottom: 12px;
}

.post-item h2 a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

.post-item h2 a:hover {
    color: #3498db;
}

.post-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ecf0f1;
    padding-bottom: 8px;
}

.deadline-info {
    margin-left: 15px;
}

.warning {
    margin-left: 8px;
    font-weight: bold;
}

.warning.expired {
    color: #e74c3c;
}

.warning.soon {
    color: #f39c12;
}

.summary {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.post-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #95a5a6;
    font-size: 0.85rem;
}

/* 后台表单样式 */
.admin-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form input, 
.admin-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.admin-form textarea {
    min-height: 300px;
    font-family: monospace;
}

.admin-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.admin-form button:hover {
    background: #2980b9;
}

.table-list {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: #f8f9fa;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 5px;
}

.btn-danger {
    background: #e74c3c;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}