/* iOS风格 + 二次元风格样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #C77DFF;
    --accent-color: #FFD93D;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --border-color: #E2E8F0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    padding: 15px 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
}

/* 公告栏 */
.announcement-bar {
    background: linear-gradient(135deg, #FFE5E5, #FFF0F5);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow);
}

.ann-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.ann-text {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.ann-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.ann-images img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* 仪表盘 */
.dashboard {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.dashboard h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 记录列表 */
.latest-records,
.usage-guide {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.latest-records h2,
.usage-guide h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 24px;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.record-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.record-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.record-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.game-id {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 14px;
}

.game-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 16px;
}

.record-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: auto;
}

.record-body {
    margin-top: 10px;
}

.record-type {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.record-desc {
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.view-detail {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.more-link {
    text-align: center;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* 按钮 */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

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

/* 图片上传 */
.image-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 157, 0.05);
}

.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

/* 复选框 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 使用说明 */
.guide-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: var(--radius-sm);
    line-height: 1.8;
    color: var(--text-primary);
}

/* 消息提示 */
.message {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 2px solid;
    font-weight: 500;
}

.message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #28a745;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #dc3545;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
}

.pagination span {
    color: var(--text-primary);
    font-weight: 500;
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form .form-control {
    flex: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        font-size: 32px;
        width: 50px;
        height: 50px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .record-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .record-date {
        margin-left: 0;
    }
    
    .search-form {
        flex-direction: column;
    }
}

/* 证据图片缩略图 */
.evidence-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.evidence-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.evidence-thumb:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* 详情页图片 */
.detail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.detail-images img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-images img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-success {
    border-top: 4px solid #28a745;
}

.modal-error {
    border-top: 4px solid #dc3545;
}

.modal-info {
    border-top: 4px solid #17a2b8;
}

/* 图片查看弹窗 */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .evidence-thumb {
        width: 60px;
        height: 60px;
    }
    
    .detail-images img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .image-modal-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .image-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .image-modal-img {
        max-height: 80vh;
    }
}

/* 表格样式 */
.data-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

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

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 500;
}

.data-table tr:hover {
    background: rgba(255, 107, 157, 0.05);
}

.data-table .actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn.view {
    background: #2196F3;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 响应式表格 */
@media (max-width: 768px) {
    .data-table {
        overflow-x: auto;
        font-size: 12px;
    }
    
    .data-table table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .data-table th {
        font-size: 12px;
        font-weight: 600;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* 详情页样式优化 */
.detail-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.detail-item:hover {
    background: rgba(255, 107, 157, 0.02);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: var(--radius-sm);
}

.detail-item label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item label::before {
    content: '▸';
    color: var(--primary-color);
    font-size: 16px;
}

.detail-item span {
    flex: 1;
    color: var(--text-primary);
    font-size: 16px;
    word-break: break-word;
}

.detail-content {
    flex: 1;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
    background: var(--bg-color);
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.detail-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-images img:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

/* 详情页标题优化 */
.dashboard h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard h2::before {
    content: '📋';
    font-size: 32px;
}

.dashboard h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard h3::before {
    content: '✉️';
    font-size: 24px;
}

/* 类型标签样式 */
.detail-item .type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

/* 申诉表单区域 */
.appeal-section {
    margin-top: 30px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.appeal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* 响应式优化 */
@media (max-width: 768px) {
    .detail-card {
        padding: 20px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-item label {
        min-width: auto;
        width: 100%;
    }
    
    .detail-item label::before {
        display: none;
    }
    
    .detail-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .detail-images img {
        height: 150px;
    }
    
    .appeal-section {
        padding: 20px;
    }
    
    .dashboard h2 {
        font-size: 24px;
    }
    
    .dashboard h3 {
        font-size: 20px;
    }
}

