/* 全局响应式CSS样式 */

/* 基础响应式设置 */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* 页面加载动画响应式 */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1020;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 导航栏响应式优化 */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 25px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 20px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 主要内容区域响应式 */
@media (max-width: 767.98px) {
    main.container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .py-4 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 575.98px) {
    main.container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .py-4 {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 15px !important;
    }
}

/* 页脚响应式 */
@media (max-width: 767.98px) {
    .footer {
        padding: 20px 0;
    }
    
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .footer p, .footer li {
        font-size: 0.9rem;
    }
    
    .footer .col-md-4 {
        margin-bottom: 20px;
    }
    
    .social-icons a {
        font-size: 1.2rem;
        margin-right: 10px !important;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 15px 0;
    }
    
    .footer .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .footer p, .footer li {
        font-size: 0.85rem;
    }
    
    .footer .col-md-4 {
        margin-bottom: 15px;
    }
    
    .social-icons a {
        font-size: 1.1rem;
        margin-right: 8px !important;
    }
}

/* 通用组件响应式 */
@media (max-width: 767.98px) {
    /* 卡片组件 */
    .card {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-footer {
        padding: 15px;
    }
    
    /* 按钮组件 */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* 表单组件 */
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-text {
        font-size: 0.8rem;
    }
    
    /* 模态框组件 */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    /* 警告框组件 */
    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    /* 徽章组件 */
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    /* 分页组件 */
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    /* 卡片组件 */
    .card-body {
        padding: 15px 10px;
    }
    
    .card-header {
        padding: 12px 10px;
    }
    
    .card-footer {
        padding: 12px 10px;
    }
    
    /* 按钮组件 */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* 表单组件 */
    .form-control, .form-select {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .form-text {
        font-size: 0.75rem;
    }
    
    /* 模态框组件 */
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .modal-header {
        padding: 12px 10px;
    }
    
    .modal-body {
        padding: 12px 10px;
    }
    
    .modal-footer {
        padding: 12px 10px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    /* 警告框组件 */
    .alert {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    /* 徽章组件 */
    .badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    /* 分页组件 */
    .pagination .page-link {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* 文字大小响应式 */
@media (max-width: 767.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .small, small {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.9rem; }
    h6 { font-size: 0.85rem; }
    
    .lead {
        font-size: 1rem;
    }
    
    .small, small {
        font-size: 0.75rem;
    }
}

/* 间距响应式 */
@media (max-width: 767.98px) {
    .mb-5 { margin-bottom: 30px !important; }
    .mb-4 { margin-bottom: 20px !important; }
    .mb-3 { margin-bottom: 15px !important; }
    .mt-5 { margin-top: 30px !important; }
    .mt-4 { margin-top: 20px !important; }
    .mt-3 { margin-top: 15px !important; }
    
    .p-5 { padding: 30px !important; }
    .p-4 { padding: 20px !important; }
    .p-3 { padding: 15px !important; }
}

@media (max-width: 575.98px) {
    .mb-5 { margin-bottom: 20px !important; }
    .mb-4 { margin-bottom: 15px !important; }
    .mb-3 { margin-bottom: 10px !important; }
    .mt-5 { margin-top: 20px !important; }
    .mt-4 { margin-top: 15px !important; }
    .mt-3 { margin-top: 10px !important; }
    
    .p-5 { padding: 20px !important; }
    .p-4 { padding: 15px !important; }
    .p-3 { padding: 10px !important; }
}

/* 栅格系统响应式优化 */
@media (max-width: 767.98px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .g-4 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
    
    .g-3 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 575.98px) {
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > * {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}

/* 表格响应式 */
@media (max-width: 767.98px) {
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 6px;
        font-size: 0.8rem;
    }
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 视频响应式 */
video {
    max-width: 100%;
    height: auto;
}

/* 嵌入式内容响应式 */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive-21by9::before {
    padding-top: 42.857143%;
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.embed-responsive-4by3::before {
    padding-top: 75%;
}

.embed-responsive-1by1::before {
    padding-top: 100%;
}

/* 隐藏/显示工具类 */
@media (max-width: 575.98px) {
    .d-sm-none {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .d-lg-none {
        display: none !important;
    }
}

@media (min-width: 576px) {
    .d-sm-block {
        display: block !important;
    }
    
    .d-sm-inline {
        display: inline !important;
    }
    
    .d-sm-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
    
    .d-md-inline {
        display: inline !important;
    }
    
    .d-md-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
    
    .d-lg-inline {
        display: inline !important;
    }
    
    .d-lg-inline-block {
        display: inline-block !important;
    }
}

/* 反馈页面样式 */
.feedback-page {
    background-color: #f8f9fa;
}

.feedback-page .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.feedback-page .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.feedback-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feedback-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #007bff;
}

.feedback-item .feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feedback-item .feedback-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.feedback-type.bug {
    background-color: #fee2e2;
    color: #dc2626;
}

.feedback-type.feature {
    background-color: #dbeafe;
    color: #2563eb;
}

.feedback-type.improvement {
    background-color: #d1fae5;
    color: #059669;
}

.feedback-type.other {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.feedback-item .feedback-subject {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feedback-item .feedback-message {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedback-item .feedback-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

.feedback-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.feedback-status.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.feedback-status.processing {
    background-color: #dbeafe;
    color: #2563eb;
}

.feedback-status.completed {
    background-color: #d1fae5;
    color: #059669;
}

.feedback-status.rejected {
    background-color: #fee2e2;
    color: #dc2626;
}

.feedback-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.feedback-pagination .pagination {
    margin: 0;
}

.feedback-pagination .page-link {
    border: none;
    color: #6b7280;
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.feedback-pagination .page-link:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.feedback-pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* 反馈模态框样式 */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 16px 24px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-floating label {
    color: #6b7280;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .feedback-item {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .feedback-item .feedback-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feedback-item .feedback-subject {
        font-size: 1rem;
    }
    
    .feedback-item .feedback-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .feedback-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .feedback-item .feedback-subject {
        font-size: 0.95rem;
    }
    
    .feedback-item .feedback-message {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-footer {
        padding: 10px 16px;
    }
}

/* 打印样式 */
@media print {
    .d-print-none {
        display: none !important;
    }
    
    .navbar,
    .footer,
    .btn,
    .modal,
    .alert {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}