/* ==================== 申诉与举报页面样式 ==================== */

.appeal-hero {
    padding: 100px 22px 60px;
    background: var(--bg-secondary);
    text-align: center;
}

.appeal-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.07;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.appeal-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    font-weight: 400;
}

.appeal-section {
    padding: 60px 22px 100px;
    background: var(--bg-primary);
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

.appeal-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.appeal-tabs .tab-btn {
    padding: 10px 22px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 980px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.appeal-tabs .tab-btn:hover {
    color: var(--text-primary);
    background: var(--tile-hover-bg);
}

.appeal-tabs .tab-btn.active {
    background: var(--accent-blue);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    background: var(--tile-bg);
    border-radius: 18px;
    padding: 40px;
    border: 1px solid var(--nav-border);
    max-width: 700px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-card h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 17px;
}

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

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

.required {
    color: #ff3b30;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-group select option {
    background: var(--tile-bg);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.submit-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--accent-blue);
    border: none;
    border-radius: 980px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--accent-blue-hover);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn.report {
    background: #ff3b30;
}

.submit-btn.report:hover {
    background: #ff453a;
}

.submit-btn .arrow {
    transition: transform 0.2s ease;
}

.submit-btn:hover .arrow {
    transform: translateX(4px);
}

.code-reference {
    background: var(--tile-bg);
    border-radius: 18px;
    padding: 36px;
    border: 1px solid var(--nav-border);
    max-width: 700px;
    margin: 0 auto;
}

.code-reference h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
}

.code-list {
    display: grid;
    gap: 10px;
}

.code-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.code-item:hover {
    background: var(--tile-hover-bg);
}

.code-item .code {
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 600;
    min-width: 72px;
    font-family: 'SF Mono', Monaco, monospace;
}

.code-item .desc {
    color: var(--text-secondary);
    font-size: 15px;
}

.progress-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--nav-border);
    animation: fadeIn 0.3s ease;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nav-border);
}

.result-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-status {
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
}

.result-status.pending {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.result-status.punished {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.result-status.accepted {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.result-status.no-action {
    background: rgba(142, 142, 147, 0.12);
    color: #8e8e93;
}

.result-status.cancelled {
    background: rgba(142, 142, 147, 0.12);
    color: #8e8e93;
}

.result-content {
    display: grid;
    gap: 10px;
}

.result-row {
    display: flex;
    gap: 12px;
}

.result-label {
    width: 90px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.result-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
}

.result-value.code {
    font-family: 'SF Mono', Monaco, monospace;
    background: rgba(0, 113, 227, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    color: var(--accent-blue);
}

.result-message {
    margin-top: 14px;
    padding: 14px;
    background: var(--tile-bg);
    border-radius: 12px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-primary);
}

.not-found {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.not-found-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.admin-section {
    padding: 60px 22px;
    background: var(--bg-secondary);
}

.admin-card {
    background: var(--tile-bg);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--nav-border);
    max-width: 400px;
    margin: 0 auto;
}

.admin-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.admin-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.admin-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-blue);
    border: none;
    border-radius: 980px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-btn:hover {
    background: var(--accent-blue-hover);
}

.my-suggestions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--nav-border);
}

.my-suggestions h3 {
    color: var(--text-primary);
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 600;
}

.suggestion-item {
    background: var(--bg-secondary);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}

.suggestion-item:hover {
    border-color: var(--text-tertiary);
}

.suggestion-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.suggestion-item-header strong {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.suggestion-time {
    color: var(--text-tertiary);
    font-size: 13px;
    white-space: nowrap;
}

.suggestion-item-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.suggestions-list .empty {
    text-align: center;
    color: var(--text-tertiary);
    padding: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .appeal-title {
        font-size: 36px;
    }

    .appeal-subtitle {
        font-size: 17px;
    }

    .appeal-tabs {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        margin-left: -22px;
        margin-right: -22px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .appeal-tabs .tab-btn {
        flex-shrink: 0;
    }

    .form-card,
    .code-reference {
        padding: 28px 24px;
    }

    .code-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .suggestion-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .appeal-hero {
        padding: 80px 16px 48px;
    }

    .appeal-title {
        font-size: 28px;
    }

    .appeal-section {
        padding: 40px 16px 80px;
    }

    .form-card,
    .code-reference {
        padding: 24px 20px;
    }

    .form-card h2 {
        font-size: 22px;
    }
}
