/**
 * 吾爱主机测评 - 全局样式
 * 前端美化 v1.0
 */

/* ===== CSS 变量定义 ===== */
:root {
    /* 主色调 */
    --primary-color: #2c3e50;
    --primary-hover: #1a252f;
    --secondary-color: #6c757d;

    /* 强调色 */
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;

    /* 背景色 */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;

    /* 边框 */
    --border-color: #e9ecef;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* ===== 全局样式 ===== */
body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== 导航栏增强 ===== */
.navbar {
    background-color: var(--card-bg) !important;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.navbar:hover {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-brand img,
.footer-logo img {
    margin-right: 0.5rem;
    margin-top: -16px;
    margin-bottom: -16px;
    vertical-align: middle;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--bg-color);
}

/* ===== 按钮样式增强 ===== */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== 卡片样式增强 ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
}

/* ===== 用户头像样式 ===== */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.user-avatar:hover {
    border-color: var(--accent-color);
}

.user-avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-md);
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* ===== Google 登录按钮 ===== */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-google:hover {
    background-color: var(--bg-color);
    border-color: #dadce0;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-google svg {
    flex-shrink: 0;
}

/* ===== 登录弹窗样式 ===== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

/* ===== 认证页面样式 ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* ===== 用户主页样式 ===== */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    color: white;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat .number {
    font-size: 1.75rem;
    font-weight: 700;
}

.profile-stat .label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===== Tab 样式增强 ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--accent-color);
    background: transparent;
    border-bottom: 2px solid var(--accent-color);
}

/* ===== 空状态样式 ===== */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== 底部样式 ===== */
footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* ===== 下拉菜单样式 ===== */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-color);
}

/* ===== 响应式适配 ===== */
@media (max-width: 767.98px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .profile-header {
        padding: 2rem 1.5rem;
    }

    .profile-stats {
        gap: 1rem;
    }

    .profile-stat .number {
        font-size: 1.25rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===== 服务商模块样式 ===== */

/* 页面头部渐变 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    animation: slideInUp 0.5s ease;
}

.page-header p {
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    animation: slideInUp 0.5s ease 0.1s both;
}

/* 搜索和筛选区域 */
.filter-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    min-width: 250px;
}

.search-input-group .form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.search-input-group .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    white-space: nowrap;
}

.filter-group .form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.filter-group .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* 梯队标签 */
.tier-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tier-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tier-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tier-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 服务商卡片列表 */
.provider-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provider-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    animation: fadeIn 0.3s ease;
}

.provider-card:nth-child(1) {
    animation-delay: 0s;
}

.provider-card:nth-child(2) {
    animation-delay: 0.05s;
}

.provider-card:nth-child(3) {
    animation-delay: 0.1s;
}

.provider-card:nth-child(4) {
    animation-delay: 0.15s;
}

.provider-card:nth-child(5) {
    animation-delay: 0.2s;
}

.provider-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: inherit;
}

.provider-card:active {
    transform: translateY(-1px);
}

.provider-card.is-rip {
    opacity: 0.65;
    filter: grayscale(50%);
}

.provider-card.is-rip:hover {
    opacity: 0.8;
}

.provider-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--bg-color), #e9ecef);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.provider-card:hover .provider-logo {
    transform: scale(1.05);
}

.provider-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.provider-info {
    flex: 1;
    min-width: 0;
}

.provider-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.provider-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.provider-card:hover .provider-name {
    color: var(--accent-color);
}

/* 梯队徽章 */
.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: transform var(--transition-fast);
}

.tier-badge.tier-1 {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.tier-badge.tier-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #333;
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.3);
}

.tier-badge.tier-3 {
    background: linear-gradient(135deg, #cd853f, #b8763a);
    color: #fff;
    box-shadow: 0 2px 4px rgba(205, 133, 63, 0.3);
}

.tier-badge.tier-4 {
    background: linear-gradient(135deg, #666, #555);
    color: #fff;
    box-shadow: 0 2px 4px rgba(102, 102, 102, 0.3);
}

.rip-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #ff4d4f, #cf1322);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.provider-intro {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
}

.rating-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.rating-count {
    font-size: 0.8125rem;
    color: var(--secondary-color);
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    border: none;
    color: var(--primary-color);
    padding: 0.5rem 0.875rem;
    margin: 0 0.125rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.pagination .page-item.disabled .page-link {
    color: var(--secondary-color);
    opacity: 0.5;
}

/* ===== 服务商详情页样式 ===== */

/* RIP 提示横幅 - Bootstrap 风格圆角提示 */
.rip-alert {
    background: linear-gradient(135deg, #ff4d4f, #cf1322);
    color: white;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.rip-alert i {
    margin-right: 0.5rem;
}

/* RIP页面灰度 */
.page-is-rip {
    filter: grayscale(30%);
}

.page-is-rip .detail-header {
    opacity: 0.85;
}

/* 详情头部 */
.detail-header {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease;
}

.header-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.detail-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.detail-logo-section .rate-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.detail-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bg-color), #e9ecef);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.detail-logo:hover {
    transform: scale(1.05);
}

.detail-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-logo-placeholder {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-name-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.detail-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.detail-intro {
    font-size: 0.9375rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.big-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.big-stars {
    font-size: 1.5rem;
    color: #ffc107;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.detail-rating-count {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* 头部分项评分区域 */
.header-breakdown-ratings {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    margin-left: auto;
    flex-shrink: 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    line-height: 1.4;
}

.breakdown-label {
    font-size: 0.8125rem;
    color: var(--primary-color);
    font-weight: 500;
    flex-shrink: 0;
}

.breakdown-stars {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #ffc107;
    font-size: 0.6875rem;
    line-height: 1;
}

.breakdown-stars i {
    font-size: 0.6875rem;
    line-height: 1;
}

.breakdown-score {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 0.25rem;
}

/* 圆形综合评分 */
.breakdown-overall {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.25rem;
    border-left: 1px solid var(--border-color);
}

.breakdown-overall-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.rate-btn,
.comment-btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.rate-btn::before,
.comment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.rate-btn:hover::before,
.comment-btn:hover::before {
    left: 100%;
}

/* 信息区块 */
.info-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--accent-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.info-item:hover {
    background: linear-gradient(135deg, var(--bg-color), #e9ecef);
    transform: translateY(-2px);
}

.info-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary-color);
}

.info-value a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-value a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 分项评分 */
.rating-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.rating-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.rating-item:hover {
    background: linear-gradient(135deg, var(--bg-color), #e9ecef);
    transform: translateY(-2px);
}

.rating-item-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.rating-item-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.rating-item-stars {
    font-size: 0.75rem;
    color: #ffc107;
    margin-top: 0.25rem;
}

/* 产品卡片 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.product-card {
    padding: 1.25rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--bg-color), #e9ecef);
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-specs {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ff4d4f;
    margin-bottom: 0.5rem;
}

.product-rating {
    font-size: 0.8125rem;
    color: var(--secondary-color);
}

.product-rating .stars {
    color: #ffc107;
}

/* 评论区 */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sort-tabs {
    display: flex;
    gap: 1rem;
}

.sort-tab {
    font-size: 0.875rem;
    color: var(--secondary-color);
    background: none;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.sort-tab:hover,
.sort-tab.active {
    color: var(--primary-color);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    padding: 1.25rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.comment-item:hover {
    background: linear-gradient(135deg, var(--bg-color), #e9ecef);
}

.comment-item.is-hot {
    border: 1px solid #ffc107;
    background: linear-gradient(135deg, #fffbe6, var(--bg-color));
}

.hot-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #333;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.comment-user-info {
    flex: 1;
}

.comment-username {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

.comment-username:hover {
    text-decoration: underline;
}

.comment-meta {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.comment-rating {
    color: #ffc107;
    font-size: 0.875rem;
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--secondary-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.like-btn:hover {
    color: #ff4d4f;
    border-color: #ff4d4f;
    transform: scale(1.05);
}

.like-btn.liked {
    color: #ff4d4f;
    border-color: #ff4d4f;
    background: #fff1f0;
}

/* 小型空状态 */
.empty-state-sm {
    padding: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

.empty-state-sm i {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* ===== 服务商模块响应式 ===== */
@media (max-width: 767.98px) {
    .page-header {
        padding: 1.5rem 0;
    }

    .provider-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .provider-name-row {
        justify-content: center;
    }

    .provider-intro {
        white-space: normal;
    }

    .provider-stats {
        justify-content: center;
    }

    .filter-section {
        padding: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .tier-tabs {
        justify-content: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .detail-logo {
        margin: 0 auto;
    }

    .detail-name-row {
        justify-content: center;
    }

    .detail-rating {
        justify-content: center;
        flex-wrap: wrap;
    }

    .rating-breakdown {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comments-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* 头部分项评分响应式 */
    .header-breakdown-ratings {
        width: 100%;
        flex-direction: column;
        margin-left: 0;
        margin-top: 1rem;
        padding: 1rem;
    }

    .breakdown-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 0.75rem 1rem;
    }

    .breakdown-overall {
        padding-left: 0;
        padding-top: 1rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
        width: 100%;
        justify-content: center;
    }
}

/* ===== 首页模块样式 ===== */

/* Hero 搜索区域 */
.home-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 50%, #2c3e50 100%);
    color: white;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    animation: slideInUp 0.5s ease;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    animation: slideInUp 0.5s ease 0.1s both;
}

.hero-search {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: slideInUp 0.5s ease 0.2s both;
}

.hero-search-input {
    flex: 1;
    position: relative;
}

.hero-search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.hero-search-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.hero-search-input input:focus {
    outline: none;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.hero-search .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* 章节样式 */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

/* 梯队导航卡片 */
.tier-nav {
    margin-bottom: 2.5rem;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    text-align: center;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.tier-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.tier-card:hover .tier-card-icon {
    transform: scale(1.1);
}

.tier-card-1 .tier-card-icon {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.tier-card-2 .tier-card-icon {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #333;
}

.tier-card-3 .tier-card-icon {
    background: linear-gradient(135deg, #cd853f, #b8763a);
    color: #fff;
}

.tier-card-4 .tier-card-icon {
    background: linear-gradient(135deg, #666, #555);
    color: #fff;
}

.tier-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tier-card-desc {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

/* 排行榜摘要 */
.ranking-summary {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: inherit;
}

.ranking-pos {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.rank-3 {
    background: linear-gradient(135deg, #cd853f, #b8763a);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 133, 63, 0.4);
}

.rank-4,
.rank-5 {
    background: var(--card-bg);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.ranking-logo {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ranking-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ranking-logo-placeholder {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
}

.ranking-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-name {
    font-weight: 600;
    color: var(--primary-color);
}

.ranking-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-count {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    white-space: nowrap;
}

/* 最新评论占位 */
.latest-comments {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.comments-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--secondary-color);
    text-align: center;
}

.comments-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.comments-placeholder p {
    margin: 0;
    font-size: 0.9375rem;
}

/* 首页响应式 */
@media (max-width: 991.98px) {
    .tier-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 3rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search .btn {
        width: 100%;
    }

    .tier-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .tier-card {
        padding: 1.25rem 0.75rem;
    }

    .tier-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .tier-card-title {
        font-size: 0.9375rem;
    }

    .tier-card-desc {
        font-size: 0.75rem;
    }

    .ranking-item {
        flex-wrap: wrap;
    }

    .ranking-info {
        order: 1;
        flex-basis: calc(100% - 100px);
    }

    .ranking-rating {
        order: 2;
    }

    .ranking-count {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ===== QA页面样式 ===== */
.qa-section {
    margin-bottom: 2rem;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qa-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeIn 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

/* 为每个QA项添加延迟动画 */
.qa-item:nth-child(1) {
    animation-delay: 0s;
}

.qa-item:nth-child(2) {
    animation-delay: 0.1s;
}

.qa-item:nth-child(3) {
    animation-delay: 0.2s;
}

.qa-item:nth-child(4) {
    animation-delay: 0.3s;
}

.qa-item:nth-child(5) {
    animation-delay: 0.4s;
}

.qa-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* 悬停效果 */
.qa-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.05), transparent);
    transition: left 0.5s ease;
}

.qa-item:hover::before {
    left: 100%;
}

.qa-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(52, 152, 219, 0.2);
}

.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.qa-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all var(--transition-normal);
}

.qa-item:hover .qa-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.qa-question h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    padding-top: 0.375rem;
    transition: color var(--transition-fast);
}

.qa-item:hover .qa-question h3 {
    color: var(--accent-color);
}

.qa-answer {
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.8;
    padding-left: 3.5rem;
}

.qa-answer p {
    margin-bottom: 0.875rem;
}

.qa-answer p:last-child {
    margin-bottom: 0;
}

.qa-answer ul {
    margin: 1rem 0;
    padding-left: 1.75rem;
}

.qa-answer li {
    margin-bottom: 0.625rem;
    position: relative;
}

.qa-answer li::marker {
    color: var(--accent-color);
}

.qa-answer strong {
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式优化 */
@media (max-width: 767.98px) {
    .qa-item {
        padding: 1.5rem;
    }

    .qa-question {
        gap: 0.875rem;
    }

    .qa-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.125rem;
    }

    .qa-question h3 {
        font-size: 1.125rem;
        padding-top: 0.25rem;
    }

    .qa-answer {
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .qa-answer ul {
        padding-left: 1.25rem;
    }
}

/* 平滑滚动优化 */
@media (prefers-reduced-motion: no-preference) {
    .qa-item {
        scroll-margin-top: 100px;
    }
}

/* ===== 排行榜页面样式 ===== */

.ranking-page {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease;
}

/* 梯队Tab切换 */
.ranking-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ranking-tab {
    padding: 0.625rem 1.25rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.ranking-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ranking-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 排行榜列表 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

.ranking-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
    border-color: var(--accent-color);
}

/* 金银铜特殊样式 */
.ranking-item.rank-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.ranking-item.rank-gold:hover {
    border-color: #f59e0b;
}

.ranking-item.rank-silver {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.ranking-item.rank-silver:hover {
    border-color: #94a3b8;
}

.ranking-item.rank-bronze {
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
    border-color: #fdba74;
}

.ranking-item.rank-bronze:hover {
    border-color: #f97316;
}

/* 排名数字 */
.ranking-pos {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.ranking-item:hover .ranking-pos {
    transform: scale(1.1);
}

.ranking-pos.rank-1 {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #78350f;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.ranking-pos.rank-2 {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #1e293b;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
}

.ranking-pos.rank-3 {
    background: linear-gradient(135deg, #fed7aa, #f97316);
    color: #7c2d12;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* Logo */
.ranking-logo {
    width: 56px;
    height: 56px;
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast);
}

.ranking-item:hover .ranking-logo {
    transform: scale(1.05);
}

.ranking-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ranking-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 信息区域 */
.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.ranking-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.ranking-item:hover .ranking-name {
    color: var(--accent-color);
}

.ranking-intro {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 评分区域 */
.ranking-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ranking-rating .stars {
    color: #ffc107;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.ranking-rating .rating-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 评分人数 */
.ranking-count {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

/* 响应式布局 */
@media (max-width: 991.98px) {
    .ranking-item {
        flex-wrap: wrap;
    }

    .ranking-rating {
        order: 5;
    }

    .ranking-count {
        order: 6;
        text-align: left;
        min-width: auto;
    }
}

@media (max-width: 767.98px) {
    .ranking-page {
        padding: 1rem;
    }

    .ranking-tabs {
        gap: 0.375rem;
    }

    .ranking-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .ranking-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .ranking-pos {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .ranking-pos.rank-1,
    .ranking-pos.rank-2,
    .ranking-pos.rank-3 {
        font-size: 1rem;
    }

    .ranking-logo {
        width: 44px;
        height: 44px;
    }

    .ranking-name {
        font-size: 0.9375rem;
    }

    .ranking-intro {
        display: none;
    }

    .ranking-rating .rating-value {
        font-size: 1.125rem;
    }

    .ranking-count {
        font-size: 0.75rem;
    }
}

/* ===== 评论模块样式 ===== */

/* 评论区头部 */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-count {
    font-size: 0.875rem;
    font-weight: normal;
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

/* 排序标签 */
.sort-tabs {
    display: flex;
    gap: 0.5rem;
}

.sort-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sort-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 差评筛选按钮 */
.sort-tab.filter-bad {
    background: var(--card-bg);
    border-color: #dc3545;
    color: #dc3545;
}

.sort-tab.filter-bad:hover,
.sort-tab.filter-bad.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* 热门评论区 */
.hot-comments-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%);
    border: 1px solid #ffd700;
    border-radius: var(--border-radius);
    animation: fadeIn 0.3s ease;
}

.hot-comments-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #d4a500;
    margin-bottom: 1rem;
}

/* 评论列表 */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 单条评论 */
.comment-item {
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    animation: fadeIn 0.3s ease;
}

.comment-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: #ddd;
}

/* 热评样式 */
.comment-item.is-hot {
    border-color: #ffd700;
    background: #fffdf5;
}

.hot-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* 评论头部 */
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-user-info {
    flex: 1;
    min-width: 0;
}

.comment-username {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    margin-top: 0.125rem;
}

/* 评分星级 */
.comment-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.comment-rating .stars {
    color: #ffc107;
    font-size: 0.875rem;
    letter-spacing: -1px;
}

.rating-score {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 评论内容 */
.comment-content {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}

.comment-content.text-muted {
    font-style: italic;
    color: var(--secondary-color) !important;
}

/* 评论底部 */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 点赞按钮 */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.like-btn:hover {
    color: #ff4d4f;
    border-color: #ffccc7;
    background: #fff1f0;
    transform: translateY(-1px);
}

.like-btn.liked {
    color: #ff4d4f;
    border-color: #ff4d4f;
    background: #fff1f0;
}

.like-btn.liked:hover {
    background: #ffccc7;
}

.like-btn i {
    font-size: 0.9375rem;
}

.like-count {
    font-weight: 500;
}

/* 分页样式 */
.pagination-nav {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 空状态 - 小型 */
.empty-state-sm {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--secondary-color);
}

.empty-state-sm i {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state-sm p {
    margin: 0;
    font-size: 0.9375rem;
}

/* 评论区响应式布局 */
@media (max-width: 767.98px) {
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .sort-tabs {
        width: 100%;
    }

    .sort-tab {
        flex: 1;
        text-align: center;
        padding: 0.625rem;
    }

    .comment-header {
        flex-wrap: wrap;
    }

    .comment-rating {
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 3.25rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .hot-comments-section {
        padding: 1rem;
    }
}

/* ===== 评分表单样式 ===== */

.rating-form-group {
    margin-bottom: 1rem;
}

.rating-form-group.required .rating-label::after {
    content: '';
}

.rating-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating-section-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.rating-form-row {
    display: flex;
    gap: 1.5rem;
}

.rating-form-row .rating-form-group {
    flex: 1;
}

/* 星级选择器（支持半星选择） */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

/* 每颗星的容器 */
.star-rating .star-group {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.star-rating .star-group:hover {
    transform: scale(1.1);
}

.star-rating .star-group.active,
.star-rating .star-group.half-active {
    transform: scale(1.1);
}

/* 星星图标样式 */
.star-rating .star-group i {
    color: #ddd;
    transition: color var(--transition-fast);
}

.star-rating .star-group i.bi-star-fill {
    color: #ffc107;
}

.star-rating .star-group i.bi-star-half {
    color: #ffc107;
}

/* 半星点击区域（覆盖在图标上方） */
.star-rating .half-star {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 2;
    cursor: pointer;
}

.star-rating .half-star.left {
    left: 0;
}

.star-rating .half-star.right {
    right: 0;
}

/* 兼容旧的.star类（如有残留） */
.star-rating .star {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: all var(--transition-fast);
}

.star-rating .star:hover,
.star-rating .star.active {
    transform: scale(1.1);
}

.star-rating .star i {
    transition: color var(--transition-fast);
}

.star-rating .star i.bi-star-fill {
    color: #ffc107;
}

.star-rating .star:hover i {
    color: #ffc107;
}

/* 响应式 */
@media (max-width: 767.98px) {
    .rating-form-row {
        flex-direction: column;
        gap: 0;
    }

    .star-rating .star-group,
    .star-rating .star {
        font-size: 1.25rem;
    }
}

/* 评分表单textarea */
#rating_comment {
    resize: vertical;
    min-height: 100px;
}

/* ===== 操作按钮组 ===== */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.action-buttons .btn {
    position: relative;
    z-index: 1;
}





/* 评论弹窗样式增强 */
#commentModal .modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

#commentModal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

#commentModal .modal-body {
    padding: 1.5rem;
}

#commentModal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

#comment_content {
    resize: vertical;
    min-height: 120px;
}

/* 响应式 */
@media (max-width: 575.98px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* ----------------------------------
   评分弹窗美化样式 (Addon)
---------------------------------- */

/* 分项评分容器 - Grid 布局 */
.breakdown-rating-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* 响应式调整：手机端单列 */
@media (max-width: 767.98px) {
    .breakdown-rating-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}

/* 评分列 */
.rating-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* 增加项之间的间距 */
}

/* 列标题 */
.rating-column-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.rating-column-header i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* 评分表单组 */
.rating-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.125rem;
}

/* 确保星星评分组件正确显示 */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.star-group {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 24px;
    font-size: 1.4rem;
    color: #dee2e6;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: center;
    justify-content: center;
}

.star-group:hover {
    transform: scale(1.1);
}

/* 星星图标 */
.star-group i {
    line-height: 1;
    pointer-events: none;
}

/* 半星点击区域 */
.half-star {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 10;
    cursor: pointer;
}

.half-star.left {
    left: 0;
}

.half-star.right {
    right: 0;
}

/* 选中状态优化 */
.star-group.active i,
.star-group.half-active i {
    color: #ffc107;
}

/* ===========================
   详情页顶部评分面板 redesign
   =========================== */

/* 评分面板容器 */
.header-rating-panel {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: auto;
    flex-shrink: 0;
}

.rating-panel-header {
    display: none;
}

.rating-panel-scores {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.score-info {
    min-width: 32px;
}

.score-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.score-stars {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #ffc107;
    font-size: 0.75rem;
    line-height: 1;
}

.score-stars i {
    font-size: 0.75rem;
}

.score-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 28px;
    text-align: right;
}

/* 综合评分圆环 */
.rating-panel-overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.overall-score-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overall-score-ring:hover {
    transform: scale(1.05);
}

.overall-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.overall-label {
    font-size: 0.6875rem;
    color: var(--secondary-color);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* 动态颜色：根据评分变化 (0-5分) */
.score-color-0,
.score-color-1 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.score-color-2 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.score-color-3 {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35);
}

.score-color-4 {
    background: linear-gradient(135deg, #84cc16, #65a30d);
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.35);
}

.score-color-5 {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

/* 响应式 */
@media (max-width: 991.98px) {
    .header-rating-panel {
        min-width: auto;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .rating-panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .rating-panel-title {
        font-weight: 600;
        color: var(--primary-color);
    }

    .rating-panel-count {
        font-size: 0.75rem;
        color: var(--secondary-color);
    }

    .rating-panel-scores {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .score-item {
        flex-direction: row;
        text-align: left;
        justify-content: center;
    }

    .rating-panel-overall {
        padding-left: 0;
        padding-top: 1rem;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
}

/* ===========================
   评分弹窗 redesign
   =========================== */

/* 综合评分区块 */
.overall-rating-section {
    text-align: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: var(--border-radius);
    border: 1px solid #fcd34d;
    margin-bottom: 1rem;
}

.overall-rating-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.required-badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    background: #ef4444;
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

.overall-rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.star-rating-lg .star-group {
    width: 32px;
    height: 32px;
    font-size: 1.75rem;
}

.score-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    min-width: 40px;
    text-align: center;
}

/* 分项评分区块 */
.sub-ratings-section {
    margin-bottom: 1rem;
}

.sub-ratings-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sub-ratings-header>span:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.optional-hint {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.sub-ratings-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-rating-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.sub-rating-item:hover {
    background: #e9ecef;
}

.sub-rating-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sub-rating-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.sub-rating-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    min-width: 36px;
}

.star-rating-sm .star-group {
    width: 20px;
    height: 20px;
    font-size: 1.125rem;
}

/* 评论区块 */
.comment-section {
    margin-top: 1rem;
}

.comment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.comment-label i {
    color: var(--accent-color);
}

.comment-section .form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    resize: vertical;
    min-height: 80px;
    transition: all var(--transition-fast);
}

.comment-section .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.comment-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

/* 评分弹窗响应式 */
@media (max-width: 767.98px) {
    .overall-rating-section {
        padding: 1rem;
    }

    .overall-rating-stars {
        flex-direction: column;
        gap: 0.75rem;
    }

    .star-rating-lg .star-group {
        width: 32px;
        height: 32px;
        font-size: 1.75rem;
    }

    .sub-rating-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .star-rating-sm .star-group {
        width: 18px;
        height: 18px;
        font-size: 1rem;
    }
}

/* ===========================
   评论列表 redesign
   =========================== */

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.comment-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(0, 0, 0, 0.1);
}

.comment-left {
    flex-shrink: 0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-username {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

.comment-meta {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.comment-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 140px;
}

/* 评分显示区 */
.comment-rating-box {
    text-align: right;
}

.overall-rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

/* 评论中的星星颜色 */
.overall-rating-display .bi-star-fill,
.overall-rating-display .bi-star-half {
    color: #f59e0b;
}

.overall-rating-display .bi-star {
    color: #d1d5db;
}

.overall-rating-display .rating-score {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.sub-ratings-display {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
}

.sub-rating-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.sub-rating-mini i {
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* 点赞点踩按钮 */
.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--secondary-color);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.action-btn.like-btn.liked {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.action-btn.dislike-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.dislike-btn.disliked {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* 响应式 */
@media (max-width: 767.98px) {
    .comment-item {
        flex-direction: column;
    }

    .comment-left {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    .comment-right {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }

    .comment-rating-box {
        text-align: left;
    }

    .overall-rating-display,
    .sub-ratings-display {
        justify-content: flex-start;
    }
}