/* rating-card.css - 评分卡片与功能网格样式 */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.rating-section {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    width: 100%;
}

.rating-card {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #c4b5fd;
    border-radius: 16px;
    padding: 14px 20px 18px;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.08);
    box-sizing: border-box;
    position: relative;
}

.rating-card::before {
    content: "Feature-Übersicht";
    position: absolute;
    top: -10px;
    left: 25px;
    background: #7c3aed;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 3px;
    border: 1px solid #8b5cf6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
    white-space: nowrap;
    z-index: 2;
}

.rating-header-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    margin-top: 6px;
}

.rating-header {
    flex: 0 0 90px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overall-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overall-score-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #7c3aed;
}

.feature-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 16px;
    width: 100%;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 4px 8px;
    border-right: 1px solid #ddd6fe;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item .feature-label {
    color: #5b21b6;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.feature-item .feature-label i {
    color: #7c3aed;
    font-size: 14px;
}

.feature-item .feature-value {
    color: #424242;
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.feature-item .highlight {
    background-color: rgba(124, 58, 237, 0.13);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    color: #4c1d95;
    font-size: 0.8rem;
    border: 1px solid rgba(124, 58, 237, 0.15);
    white-space: nowrap;
}

.feature-item .supported {
    color: #16a34a;
    background-color: rgba(22, 163, 74, 0.10);
    border: 1px solid rgba(22, 163, 74, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feature-item .supported i {
    color: #16a34a;
    font-size: 12px;
}

.feature-item .unsupported {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.10);
    border: 1px solid rgba(231, 76, 60, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feature-item .unsupported i {
    color: #e74c3c;
    font-size: 12px;
}

.feature-item .star-rating {
    color: #7c3aed;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.feature-item .rating-text {
    color: #9ca3af;
    font-size: 0.7rem;
    margin: 0;
}

.rating-divider {
    height: 1px;
    background: #ddd6fe;
    margin: 12px 0 10px;
    border: none;
}

.pros-cons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pros,
.cons {
    flex: 1 1 300px;
}

.section-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 2px solid #ddd6fe;
}

.pros-title {
    color: #16a34a;
}

.cons-title {
    color: #dc2626;
}

.score-desc-item {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 3px;
    line-height: 1.25;
    padding: 6px 8px;
    background: #faf8ff;
    border-radius: 8px;
    display: flex;
    gap: 6px;
}

.score-desc-item strong {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.score-desc-item strong::after {
    content: ":";
    margin-left: 2px;
    color: #9ca3af;
}

/* 测试反馈框 */
.test-feedback-box {
    background: #ffffff;
    border: 1px solid #c4b5fd;
    border-radius: 16px;
    padding: 24px 28px 20px;
    margin: 20px 0;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.08);
    box-sizing: border-box;
}

.test-feedback-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-feedback-title i {
    color: #7c3aed;
    font-size: 1.2rem;
}

.test-feedback-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1e1b4b;
    background: #faf8ff;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #7c3aed;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #c4b5fd;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}

.table-responsive table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
    color: #2d1b4e;
    font-family: system-ui, -apple-system, sans-serif;
}

.table-responsive th,
.table-responsive td {
    padding: 10px 14px;
    border: 1px solid #ddd6fe;
    text-align: center;
}

.table-responsive th {
    background: #7c3aed;
    color: #ffffff;
    font-weight: 600;
}

.table-responsive td:first-child {
    background: #f5f0ff;
    color: #5b21b6;
    font-weight: 500;
    text-align: left;
    width: 22%;
}

.table-responsive tr:nth-child(even) {
    background: #faf8ff;
}

.table-responsive tr:hover {
    background: #ede9fe;
}

.table-responsive table a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.table-responsive table a:hover {
    text-decoration: underline;
    color: #5b21b6;
}

/* 备注网格 */
.note-box-grid {
    background: #f5f0ff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 20px 0;
    transition: all 0.2s ease;
}

.note-box-grid:hover {
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.12);
    transform: translateY(-2px);
}

.note-title {
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    font-size: 15px;
    color: #5b21b6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-title::before {
    content: "⚠";
    font-size: 20px;
    color: #f59e0b;
}

.note-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.note-item {
    font-size: 16px;
    line-height: 1.3;
    color: #3f3f46;
    position: relative;
    padding: 6px 10px 6px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: default;
}

.note-item::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #7c3aed;
    font-size: 16px;
}

.note-item:hover {
    background: #ede9fe;
    color: #1f1f1f;
    transform: translateX(2px);
}

/* 响应式 - 大屏 */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px 12px;
    }
    .feature-item:nth-child(3) {
        border-right: none;
    }
    .feature-item .feature-label {
        font-size: 0.65rem;
    }
    .feature-item .feature-value {
        font-size: 0.65rem;
    }
}

/* 响应式 - 平板 */
@media (max-width: 768px) {
    .rating-card {
        padding: 12px 14px 14px;
    }
    .rating-card::before {
        font-size: 10px;
        padding: 2px 10px;
        left: 15px;
        top: -8px;
    }
    .rating-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .rating-header {
        flex: unset;
        text-align: center;
    }
    .overall-score-num {
        font-size: 1.4rem;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 10px;
    }
    .feature-item {
        border-right: none;
        border-bottom: 1px solid #ddd6fe;
        padding-bottom: 6px;
    }
    .feature-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .table-responsive table {
        font-size: 12px;
        min-width: 500px;
    }
    .table-responsive th,
    .table-responsive td {
        padding: 7px 10px;
    }
    .note-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 576px) {
    .rating-card {
        padding: 10px 10px 12px;
        border-radius: 12px;
    }
    .rating-card::before {
        font-size: 9px;
        padding: 1px 8px;
        left: 12px;
        top: -7px;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
    }
    .feature-item {
        padding: 2px 0 4px;
    }
    .feature-item .feature-label {
        font-size: 0.75rem;
    }
    .feature-item .feature-label i {
        font-size: 10px;
    }
    .feature-item .feature-value {
        font-size: 0.6rem;
    }
    .feature-item .highlight {
        font-size: 0.65rem;
    }
    .feature-item .star-rating {
        font-size: 0.6rem;
    }
    .table-responsive table {
        font-size: 11px;
        min-width: 400px;
    }
    .table-responsive th,
    .table-responsive td {
        padding: 5px 7px;
    }
    .test-feedback-box {
        padding: 14px 12px 12px;
        border-radius: 12px;
    }
    .test-feedback-title {
        font-size: 0.95rem;
    }
    .test-feedback-content {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    .section-title {
        font-size: 0.8rem;
    }
    .score-desc-item {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
}