/* ========================================
   展示界面 (dashboard.html) 专属样式
   ======================================== */

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

.site-footer {
    position: fixed;
    bottom: 20px;
    right: 28px;
    z-index: 50;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a6a85;
    background: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid #cde4f8;
    box-shadow: 0 2px 12px rgba(58, 141, 209, 0.13);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.github-link:hover {
    background: #3a8dd1;
    color: white;
    box-shadow: 0 4px 18px rgba(58, 141, 209, 0.30);
}

.github-link i { font-size: 1.3rem; }

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f6ff;
    color: #333;
}

/* ── 主区域布局 ── */
.page-content {
    padding-top: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── 搜索区 ── */
.search-section {
    width: 100%;
    max-width: 600px;
    padding: 24px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.search-label {
    font-size: 1.05rem;
    color: #4a7caa;
    letter-spacing: 0.5px;
}

.search-wrap {
    position: relative;
    width: 100%;
}

.search-bar {
    display: flex;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(58, 141, 209, 0.18);
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #cde4f8;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(58, 141, 209, 0.15);
    overflow: hidden;
    z-index: 100;
}

.suggestion-item {
    padding: 11px 20px;
    font-size: 0.95rem;
    color: #2c5f8a;
    cursor: pointer;
    border-bottom: 1px solid #eaf3fb;
    transition: background 0.15s;
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover { background: #eaf3fb; }

.search-bar input {
    flex: 1;
    padding: 13px 20px;
    border: 2px solid #cde4f8;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: #3a8dd1;
}

.search-bar button {
    padding: 13px 22px;
    background: #3a8dd1;
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
}

.search-bar button:hover { background: #2f7cbf; }
.search-bar button:disabled { background: #88bde0; cursor: default; }

.search-hint {
    font-size: 0.83rem;
    color: #a0bcd8;
    min-height: 1.2em;
}

/* ── 结果区 ── */
.result-section {
    width: 100%;
    max-width: 900px;
    padding: 0 24px 64px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.result-section.visible { display: flex; }

/* 游戏名称 */
.game-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: #1a4f7a;
    text-align: center;
    letter-spacing: 1px;
}

/* 名称下方行：左侧评分 + 右侧雷达图 */
.result-body {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 380px;
}

/* 评论行：倒计时环 + 评论条 */
.comment-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 倒计时环 */
.countdown-ring {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-ring svg {
    transform: rotate(-90deg);
}

.score-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
    flex: 1;
    min-width: 0;
    margin-right: 24px;
}

.game-score {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a4f7a;
    background: #eaf3fb;
    border: 1px solid #cde4f8;
    border-radius: 10px;
    padding: 10px 20px;
    letter-spacing: 0.3px;
    text-align: center;
}

.score-dims {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: white;
    border: 1px solid #ddeeff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 14px rgba(58, 141, 209, 0.10);
}

.score-dim-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: #f5f9fd;
    border-radius: 8px;
}

.dim-label {
    font-size: 0.8rem;
    color: #4a6a85;
}

.dim-value {
    font-size: 1rem;
    font-weight: 600;
    color: #3a8dd1;
}

.ai-review-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #ddeeff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 14px rgba(58, 141, 209, 0.10);
    min-height: 72px;
}

.gen-review-btn {
    background: #3a8dd1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 22px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.gen-review-btn:hover:not(:disabled) { background: #2c6fa8; }

.gen-review-btn:disabled {
    background: #9ab8d0;
    cursor: not-allowed;
}

.ai-review-text {
    font-size: 0.92rem;
    color: #4a6a85;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.rotation-dots {
    display: flex;
    gap: 8px;
}

.rotation-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cde4f8;
    transition: background 0.3s;
}

.rotation-dot.active { background: #3a8dd1; }

/* 雷达图容器 */
.chart-wrap {
    width: 380px;
    height: 380px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(58, 141, 209, 0.13);
    padding: 16px;
    border: 1px solid #ddeeff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索无结果 */
.no-result {
    display: none;
    text-align: center;
    color: #9ab8d0;
    font-size: 1rem;
    padding: 40px 0;
}

.no-result.visible { display: block; }

.no-result i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

/* ── 评论轮播条 ── */
.comment-bar {
    display: none;
    flex: 1;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(58, 141, 209, 0.10);
    border: 1px solid #ddeeff;
    padding: 16px 24px;
    height: 100px;
    align-items: center;
    overflow: hidden;
}

.comment-bar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.comment-bar-inner.fade-out {
    opacity: 0;
}

.comment-tag {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.comment-tag.positive {
    background: #e6f4ea;
    color: #2e7d32;
}

.comment-tag.negative {
    background: #fdecea;
    color: #c62828;
}

.comment-text {
    font-size: 0.93rem;
    color: #4a6a85;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    min-width: 0;
}
