/* style.css - CleverGet 快录大师 评论页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, sans-serif;
    background: #f0f7fc;
    color: #1a2c3e;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 头部 */
.header {
    text-align: center;
    background: linear-gradient(135deg, #0a4c6e 0%, #1a6f9c 100%);
    color: white;
    border-radius: 32px;
    padding: 60px 40px;
    margin-bottom: 48px;
}
.header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; }
.header .highlight { color: #e67e22; }
.header p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; opacity: 0.95; }

/* 筛选器 */
.filter-bar {
    background: white;
    border-radius: 60px;
    padding: 8px 16px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.rating-filter a, .admin-link a {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    transition: 0.2s;
}
.rating-filter a { background: #eef2fa; color: #4a6f8f; margin: 0 4px; }
.rating-filter a:hover, .rating-filter a.active { background: #2d9cdb; color: white; }
.admin-link a { background: #eef2fa; color: #e67e22; }
.admin-link a:hover { background: #e67e22; color: white; }

/* 评论卡片 */
.comment-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s;
}
.comment-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.commenter-name { font-weight: 700; font-size: 1.1rem; color: #0a3d58; }
.comment-date { font-size: 0.75rem; color: #a0b8cc; }
.stars { color: #ffc107; margin-bottom: 12px; letter-spacing: 2px; }
.comment-text { color: #4a6f8f; margin-bottom: 16px; line-height: 1.6; }
.admin-actions { text-align: right; border-top: 1px solid #eef2fa; padding-top: 12px; margin-top: 8px; }
.admin-actions a { font-size: 0.75rem; color: #e67e22; text-decoration: none; margin-left: 12px; }
.admin-actions a:hover { text-decoration: underline; }

/* 表单 */
.form-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    margin-top: 48px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.form-card h3 { font-size: 1.3rem; color: #0a4c6e; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: #0a3d58; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cde0ef;
    border-radius: 60px;
    font-size: 0.9rem;
    transition: 0.2s;
    font-family: inherit;
}
.form-group textarea { border-radius: 24px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #2d9cdb; box-shadow: 0 0 0 3px rgba(45,156,219,0.1); }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 8px; }
.star-rating input { display: none; }
.star-rating label { font-size: 28px; color: #ddd; cursor: pointer; transition: 0.2s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #ffc107; }
.btn-submit {
    background: #2d9cdb;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.btn-submit:hover { background: #1a7bb5; transform: scale(1.02); }

/* 管理面板 */
.admin-panel {
    background: #fff8e7;
    border: 1px solid #ffe2a4;
    border-radius: 32px;
    padding: 24px;
    margin-bottom: 32px;
}
.admin-panel h3 { color: #b45f1b; margin-bottom: 16px; }
.admin-edit-form { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #ffe2a4; }
.admin-edit-form input, .admin-edit-form textarea { width: 100%; margin-bottom: 12px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 16px; }
.admin-edit-form button { background: #e67e22; color: white; border: none; padding: 8px 20px; border-radius: 40px; cursor: pointer; }

footer {
    background: #0a4c6e;
    color: #8bb3cc;
    text-align: center;
    padding: 32px;
    font-size: 0.8rem;
    margin-top: 48px;
}
footer a { color: #8bb3cc; text-decoration: none; }

@media (max-width: 768px) {
    .header h1 { font-size: 1.8rem; }
    .header { padding: 40px 24px; }
    .filter-bar { justify-content: center; }
}