/* 前台样式 */

.irs-file-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.irs-file-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.irs-file-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.irs-file-item h3 a {
    color: #2271b1;
    text-decoration: none;
}

.irs-file-item h3 a:hover {
    text-decoration: underline;
}

.file-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.file-meta span {
    display: inline-block;
}

.file-type {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
}

.file-excerpt {
    color: #444;
    line-height: 1.6;
}

.irs-record-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.irs-record-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

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

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

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

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

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.irs-file-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.irs-file-single .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.irs-file-single .entry-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 2em;
}

.irs-file-single .entry-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.irs-file-single .entry-meta span {
    margin-right: 15px;
}

.irs-file-single .file-info {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #2271b1;
}

.irs-file-single .file-stages {
    margin-top: 15px;
    padding: 10px;
    background: #e8f4fd;
    border-radius: 4px;
    color: #2271b1;
}

.irs-file-single .entry-content {
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.irs-file-single .file-download {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.irs-file-single .file-download .button {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
}

.irs-file-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.irs-file-archive .page-header {
    margin-bottom: 40px;
    text-align: center;
}

.irs-file-archive .page-title {
    margin-top: 0;
    color: #333;
    font-size: 2.5em;
}

.irs-file-archive .archive-description {
    color: #666;
    font-size: 1.1em;
    margin-top: 10px;
}

.irs-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.irs-file-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.irs-file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.irs-file-card .entry-header {
    margin-bottom: 15px;
}

.irs-file-card .entry-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.irs-file-card .entry-title a {
    color: #333;
    text-decoration: none;
}

.irs-file-card .entry-title a:hover {
    color: #2271b1;
}

.irs-file-card .entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.irs-file-card .file-type {
    background: #e8f4fd;
    color: #2271b1;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.irs-file-card .entry-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.irs-file-card .entry-footer {
    text-align: right;
}

.irs-file-card .read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.irs-file-card .read-more:hover {
    background: #135e96;
}

@media (max-width: 768px) {
    .irs-file-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .irs-file-single,
    .irs-file-archive {
        padding: 20px 15px;
    }
    
    .irs-file-single .entry-title {
        font-size: 1.5em;
    }
    
    .irs-record-form {
        padding: 20px;
        margin: 20px 15px;
    }
}
