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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Logo */
.logo {
    text-align: center;
    padding: 40px 0 30px;
}

.logo a {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: 4px;
}

.logo a:hover {
    color: #1a252f;
}

/* Nav */
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.nav .user-info {
    font-size: 14px;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #2c3e50;
    color: #fff;
}

.btn-primary {
    background: #2c3e50;
    color: #fff;
}

.btn-primary:hover {
    background: #1a252f;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-success {
    border-color: #27ae60;
    color: #27ae60;
}

.btn-success:hover {
    background: #27ae60;
    color: #fff;
}

.btn-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-danger:hover {
    background: #e74c3c;
    color: #fff;
}

.btn-warning {
    border-color: #f39c12;
    color: #f39c12;
}

.btn-warning:hover {
    background: #f39c12;
    color: #fff;
}

/* Form */
.form-box {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2c3e50;
}

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

.form-box .btn {
    width: 100%;
    margin-top: 8px;
}

.form-error {
    color: #e74c3c;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}

.form-link {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

.form-link a {
    color: #2c3e50;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Plan Section */
.plan-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 2px solid #2c3e50;
    background: #f8f9fa;
}

.plan-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.plan-header-link {
    font-size: 13px;
    color: #2c3e50;
    text-decoration: none;
}

.plan-header-link:hover {
    text-decoration: underline;
}

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

.plan-table th {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.plan-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.plan-table tr:last-child td {
    border-bottom: none;
}

.plan-table .col-id {
    width: 60px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.plan-table .col-desc {
    min-width: 400px;
}

.plan-table .col-desc .content-text {
    word-break: break-word;
    white-space: pre-wrap;
}

.plan-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Feedback List */
.feedback-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

.feedback-table th {
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.feedback-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.feedback-table tr:last-child td {
    border-bottom: none;
}

.feedback-table tr:hover {
    background: #fafafa;
}

.col-id {
    width: 60px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.col-content {
    min-width: 280px;
}

.col-content .type-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.type-tag.bug {
    background: #fde8e8;
    color: #e74c3c;
}

.type-tag.suggest {
    background: #e8f5e9;
    color: #27ae60;
}

.col-content .content-text {
    word-break: break-word;
    white-space: pre-wrap;
}

.col-content .author {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.col-content .edit-link {
    font-size: 12px;
    color: #2c3e50;
    text-decoration: none;
    margin-left: 8px;
}

.col-content .edit-link:hover {
    text-decoration: underline;
}

.col-time {
    width: 150px;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.col-status,
.col-implemented {
    width: 80px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-badge.pending {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.accepted {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.rejected {
    background: #fde8e8;
    color: #c62828;
}

.status-badge.done {
    background: #e8f5e9;
    color: #2e7d32;
}

.col-actions {
    width: 100px;
    text-align: center;
}

.col-actions .action-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.col-actions .btn-sm {
    font-size: 11px;
    padding: 3px 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a {
    color: #2c3e50;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination .current {
    background: #2c3e50;
    color: #fff;
    border: 1px solid #2c3e50;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .logo a {
        font-size: 28px;
    }

    .feedback-table {
        font-size: 13px;
    }

    .feedback-table th,
    .feedback-table td {
        padding: 10px 8px;
    }

    .col-time,
    .col-id {
        display: none;
    }

    .col-actions {
        width: auto;
    }
}
