/* 全局样式 */
:root {
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --success-dark: #13855c;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --bg-light: #f8f9fa;
    --border-color: #e3e6f0;
    
    /* 渐变色 */
    --primary-gradient: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    --success-gradient: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

/* 卡片基础样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 登录页面样式 */
.login-page {
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e7ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.5s ease-out;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-box .logo i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.login-box h1 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.login-box p.text-muted {
    color: #718096;
    margin-bottom: 2rem;
}

/* 按钮样式优化 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.25);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* 功能介绍卡片样式 */
.card.border-primary {
    border: 1px solid rgba(78, 115, 223, 0.1);
    background: white;
    margin-bottom: 1rem;
}

.card.border-primary .card-body {
    padding: 1.5rem;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
    padding: 0.5rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge.bg-danger {
    background: #e74a3b !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 动态卡片样式 */
.post-card {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.post-card .card-body {
    padding: 1.75rem;
}

.post-card .post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.post-card .post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.post-card .post-meta {
    flex: 1;
}

.post-card .post-author {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.post-card .post-time {
    color: #718096;
    font-size: 0.875rem;
}

.post-card .post-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.post-card .post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-card .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.post-card .post-image:hover {
    transform: scale(1.05);
}

.post-card .post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-card .post-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.post-card .stat-item {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 0.875rem;
}

.post-card .stat-item i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* 访客列表样式 */
.visitor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visitor-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.visitor-item:hover {
    background: rgba(78, 115, 223, 0.05);
    transform: translateX(5px);
}

.visitor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.visitor-info {
    flex: 1;
}

.visitor-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.visitor-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visitor-time {
    color: #718096;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.visitor-time i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.visitor-source {
    color: #718096;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.visitor-source i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    position: absolute;
    margin-top: 80px;
    color: var(--primary-color);
    font-weight: 500;
    animation: fadeInUp 0.5s ease-out;
}

/* 数据加载占位动画 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 提示框样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: none;
    border: none;
}

.toast-body {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .login-box {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .post-card .post-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .post-card .post-image {
        height: 150px;
    }
    
    .post-card .post-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .visitor-item {
        padding: 1rem;
    }
    
    .visitor-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
    }
    
    .toast {
        min-width: auto;
    }
}

/* 动画关键帧 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 隐私政策和服务条款页面样式 */
.policy-page {
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e7ff 100%);
    min-height: 100vh;
    padding: 3rem 0;
}

.policy-page h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.policy-page h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.policy-page .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.policy-page .card-body {
    padding: 2rem;
}

.policy-page .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.policy-page .card-title:first-child {
    margin-top: 0;
}

.policy-page ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.policy-page ul li {
    position: relative;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
}

.policy-page ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.policy-page p {
    color: #4a5568;
    line-height: 1.6;
    margin: 1rem 0;
}

.policy-page .btn-back {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-page .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.25);
}

.policy-page .btn-back i {
    font-size: 1.1rem;
}

/* FAQ页面样式 */
.faq-page {
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e7ff 100%);
    min-height: 100vh;
    padding: 3rem 0;
}

.faq-page .faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-page .faq-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-page .faq-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.faq-page .faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.faq-page .category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-page .category-btn:hover,
.faq-page .category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.25);
}

.faq-page .faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-page .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.faq-page .faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-page .faq-question i {
    transition: transform 0.3s ease;
}

.faq-page .faq-question.collapsed i {
    transform: rotate(-180deg);
}

.faq-page .faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.faq-page .faq-answer img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

/* 反馈页面样式 */
.feedback-page {
    background: linear-gradient(135deg, #f5f7ff 0%, #e3e7ff 100%);
    min-height: 100vh;
    padding: 3rem 0;
}

.feedback-page .feedback-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feedback-page .feedback-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feedback-page .feedback-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.feedback-page .feedback-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feedback-page .form-label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.feedback-page .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feedback-page .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.feedback-page .btn-submit {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.feedback-page .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.25);
}

.feedback-page .image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feedback-page .preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.feedback-page .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-page .preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--danger-color);
    transition: all 0.3s ease;
}

.feedback-page .preview-item .remove-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .policy-page {
        padding: 2rem 1rem;
    }
    
    .policy-page .card-body {
        padding: 1.5rem;
    }
    
    .faq-page {
        padding: 2rem 1rem;
    }
    
    .faq-page .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .feedback-page {
        padding: 2rem 1rem;
    }
    
    .feedback-page .feedback-form {
        padding: 1.5rem;
    }
}

/* 反馈列表页面样式 */
.feedback-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.feedback-list .list-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-list .list-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.feedback-items {
    padding: 1.5rem;
}

.feedback-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feedback-item:last-child {
    margin-bottom: 0;
}

.feedback-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.feedback-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.feedback-time {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.feedback-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feedback-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.feedback-status.pending {
    background: rgba(133, 135, 150, 0.1);
    color: var(--secondary-color);
}

.feedback-status.processing {
    background: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
}

.feedback-status.resolved {
    background: rgba(28, 200, 138, 0.1);
    color: var(--success-color);
}

.feedback-status.closed {
    background: rgba(90, 92, 105, 0.1);
    color: #5a5c69;
}

.feedback-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feedback-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.feedback-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.feedback-link:hover i {
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .feedback-list .list-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .feedback-list .list-header .btn-submit {
        width: 100%;
    }
    
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feedback-time {
        font-size: 0.75rem;
    }
    
    .feedback-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .feedback-link {
        width: 100%;
        justify-content: space-between;
    }
}

/* 反馈详情页面样式 */
.feedback-detail {
    background: white;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-content {
    padding: 1.5rem;
}

.detail-title {
    margin-bottom: 2rem;
}

.detail-title h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.meta-item i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.detail-description {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #4a5568;
    line-height: 1.6;
}

.detail-images {
    margin-bottom: 2rem;
}

.detail-images h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.image-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    transition: all 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-reply {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
}

.detail-reply h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reply-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.reply-time {
    color: var(--secondary-color);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.reply-time i {
    margin-right: 0.5rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
} 