/* Reset and Base Styles */
:root {
    --primary-red: #c00000;
    --dark-red: #8b0000;
    --primary-gold: #e6c35c;
    --light-gold: #fae18b;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #ddd;
}

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

body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    /* background-image: linear-gradient(to bottom, #d30708, #dc4f15, #e4762b, #eb9748, #f3b66a, #f7c47e, #fbd293, #ffe0a9, #ffe2b2, #ffe5ba, #ffe7c3, #ffeacb); */
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-red);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.banner {
    height: 180px;
    /* Deep Red Gradient for Banner */
    background: linear-gradient(to right, #b30000, #d90000, #b30000);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Add a subtle gold decorative line at the bottom of banner */
.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #d4af37, #fceabb, #d4af37);
}

.banner h1 {
    font-size: 36px;
    /* Gold Gradient Text */
    background: linear-gradient(to bottom, #fff, #ffeeb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 10px;
}

.main-nav {
    background-color: var(--dark-red); /* Darker red for nav */
    border-bottom: 3px solid var(--primary-gold); /* Gold border */
}

.main-nav ul {
    display: flex;
    justify-content: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 30px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.main-nav a:hover {
    background-color: #a00000;
    color: var(--primary-gold); /* Gold text on hover */
}

/* Content Layout */
.content-wrapper {
    display: flex;
    padding: 0;
    gap: 30px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.main-content {
    flex-grow: 1;
}

/* Panel Styles */
.panel {
    border: none;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

.panel-header {
    background: linear-gradient(to right, #f9f9f9, #fff);
    border-bottom: 1px solid var(--primary-red);
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-red);
    border-left: 5px solid var(--primary-red);
}

.panel-body {
    padding: 20px;
    background-color: #fff;
}

.report-btn {
    display: block;
    width: 100%;
    /* Gradient Red Button */
    background: linear-gradient(to bottom, #e60000, #c00000);
    color: var(--primary-gold); /* Gold text */
    text-align: center;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: all 0.3s;
    border: 1px solid #a00000;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.report-btn:hover {
    background: linear-gradient(to bottom, #ff1a1a, #d90000);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
    padding-left: 10px;
    border-left: 3px solid #ddd;
}

.list-links li {
    border-bottom: 1px dashed #eee;
    padding: 10px 0;
}

.list-links li:last-child {
    border-bottom: none;
}

.list-links a {
    font-size: 15px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #444;
}

.list-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* Main Content Styles */
.welcome-section {
    border: none;
    padding: 25px;
    margin-bottom: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.welcome-section h2 {
    color: var(--primary-red);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-red);
    position: relative;
    text-align: center;
}

.welcome-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--primary-gold);
}

.welcome-text p {
    margin-bottom: 15px;
    text-indent: 2em;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.news-section h3 {
    font-size: 20px;
    color: #333;
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
    margin-bottom: 20px;
    font-weight: bold;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dotted #ccc;
}

.news-list li:hover {
    background-color: #fcfcfc;
}

.news-list li span {
    color: #999;
    font-size: 14px;
}

.news-list li a {
    font-size: 16px;
}

/* Quick Links Buttons Styles */
.quick-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: space-between;
}

.quick-btn {
    flex: 1;
    display: block;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

/* "我要举报" Button - Red Theme */
.quick-btn:nth-child(1) {
    background: linear-gradient(135deg, #d90000 0%, #b30000 100%);
    border: 2px solid #ffcccc;
}

.quick-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #ff1a1a 0%, #d90000 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(217, 0, 0, 0.3);
    color: #fff;
}

/* "反馈查询" Button - Gold Theme */
.quick-btn:nth-child(2) {
    background: linear-gradient(135deg, #e6c35c 0%, #d4af37 100%);
    border: 2px solid #fff8dc;
    color: #8b0000; /* Dark red text for contrast on gold */
    text-shadow: none;
}

.quick-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #fae18b 0%, #e6c35c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 195, 92, 0.4);
    color: #8b0000;
}

/* Footer Styles */
.main-footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 30px;
    margin-top: 30px;
    font-size: 14px;
    border-top: 5px solid var(--primary-red);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.main-footer p {
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Form Styles (Added for Report Page) */
.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-group label {
    display: block;
    width: 100px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
    margin-right: 15px;
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    flex: 1;
}

.form-control:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 5px rgba(192, 0, 0, 0.2);
}

.btn-submit {
    background: linear-gradient(to bottom, #e60000, #c00000);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    background: linear-gradient(to bottom, #ff1a1a, #d90000);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

.required {
    color: red;
    margin-left: 5px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-half {
    width: 50%;
    padding: 0 15px;
}

.col-full {
    width: 100%;
    padding: 0 15px;
}

/* Report Type Selection Styles */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 15px;
    background-color: #fffdf0;
    border: 2px dashed var(--primary-gold);
    border-radius: 8px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.radio-prompt {
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--primary-red);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: var(--dark-red);
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: rgba(230, 195, 92, 0.2);
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--primary-red);
    width: 18px;
    height: 18px;
}

.form-section-title {
    font-size: 18px;
    color: var(--primary-red);
    border-left: 4px solid var(--primary-red);
    padding-left: 10px;
    margin: 30px 0 20px;
    font-weight: bold;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 0 4px 4px 0;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.submit-group {
    justify-content: center;
    margin-top: 30px;
}

/* File Upload Styles */
.file-upload-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-select-box {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.file-select-btn {
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border: 1px solid #ccc;
    padding: 6px 15px;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-select-btn:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
}

.file-select-text {
    color: #999;
    font-size: 14px;
}

.file-input-hidden {
    display: none;
}

.file-tip {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.form-group:has(textarea),
.form-group:has(.file-upload-wrapper) {
    align-items: flex-start;
}

.form-group:has(.file-upload-wrapper) label {
    margin-top: 6px; 
}

@media (max-width: 768px) {
    .col-half {
        width: 100%;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-group label {
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
    }
}

/* Captcha Styles */
.captcha-group {
    align-items: center;
}

.captcha-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.captcha-input {
    width: 120px !important;
    flex: none !important;
    margin-right: 10px;
}

#captchaCanvas {
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    background-color: #fff;
}

.refresh-captcha {
    color: var(--primary-red);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.refresh-captcha:hover {
    color: var(--dark-red);
}

/* 举报须知 List Styles */
.xuzhi-list {
    counter-reset: xuzhi-counter;
    padding-left: 10px;
    margin-top: 20px;
}

.xuzhi-list li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    list-style: none;
    text-align: justify;
}

.xuzhi-list li::before {
    counter-increment: xuzhi-counter;
    content: counter(xuzhi-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(192, 0, 0, 0.3);
}
/* ... existing styles ... */

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #d90000, #ff1a1a, #d90000);
    border-radius: 12px 12px 0 0;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 25px 30px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    margin: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.modal-title::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(to bottom, #e60000, #c00000);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 15px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(192, 0, 0, 0.3);
}

.modal-body {
    padding: 30px;
    font-size: 16px;
    color: #333;
    line-height: 1.7;
    text-align: left;
    background-color: #fefefe;
    position: relative;
}

.modal-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e5e5, transparent);
}

.modal-footer {
    padding: 25px 30px;
    background: linear-gradient(to bottom, #f8f9fa, #fafafa);
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-modal {
    background: linear-gradient(to bottom, #e60000, #c00000);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(192, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 120px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.6s ease;
}

.btn-modal:hover {
    background: linear-gradient(to bottom, #ff1a1a, #d90000);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(192, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-modal:hover::before {
    left: 100%;
}

.btn-modal:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(192, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-modal.secondary {
    background: linear-gradient(to bottom, #6c757d, #5a6268);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-modal.secondary:hover {
    background: linear-gradient(to bottom, #7c858d, #6a7278);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Success State for Modal */
.modal-content.success .modal-title::before {
    content: '✓';
    background-color: #28a745;
}

.modal-content.error .modal-title::before {
    content: '✕';
    background-color: var(--primary-red);
}

.modal-content.info .modal-title::before {
    content: 'ℹ';
    background-color: #17a2b8;
}

/* Feedback Modal Specific Styles */
#feedbackModal .modal-content {
    width: 100%;
}

#feedbackModal .modal-body {
    padding: 0;
}

/* Custom Modal for Feedback Detail */
.feedback-detail-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    margin: 0;
    border-bottom: 1px dashed #e0e0e0;
    line-height: 1.7;
}

.feedback-detail-item:last-child {
    border-bottom: none;
}

.feedback-label {
    width: 100px;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 15px;
    text-align: right;
}

.feedback-value {
    flex: 1;
    color: #222;
    font-size: 15px;
    word-break: break-word;
}

/* Status Badge Style */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    background-color: #e8f5e9;
    color: #28a745;
    transition: all 0.2s ease;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #28a745;
}

/* Feedback Content Box */
.feedback-content-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    min-height: 120px;
    white-space: pre-wrap;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.feedback-content-box:hover {
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.08);
}

/* Responsive Modal Adjustments */
@media (max-width: 768px) {
    .modal-content,
    #feedbackModal .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .feedback-detail-item {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feedback-label {
        width: 100%;
        text-align: left;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .feedback-value {
        width: 100%;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-title::before {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 16px;
        margin-right: 10px;
    }
}

/* Friend Links Styles */
.friend-links {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    color: #555;
    font-size: 14px;
}

.friend-links span {
    font-weight: bold;
    color: #333;
}

.friend-links a {
    color: #555;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.friend-links .divider {
    color: #ccc;
    margin: 0 2px;
    font-weight: normal;
}
