/* ==================== 全局样式 ==================== */
:root {
    --primary-red: #FF4655;
    --dark-bg: #0F1923;
    --dark-secondary: #1B2733;
    --light-text: #ECE8E1;
    --gray-text: #768079;
    --accent-blue: #5B9DBF;
    --gold: #D4A574;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== 背景与装饰 ==================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 70, 85, 0.02) 0px,
            rgba(255, 70, 85, 0.02) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(91, 157, 191, 0.02) 0px,
            rgba(91, 157, 191, 0.02) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: -1;
}

/* ==================== 导航锚点 ==================== */
.nav-anchor {
    position: fixed;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 25, 35, 0.7);
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 70, 85, 0.3);
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    border-left-color: var(--primary-red);
    color: var(--primary-red);
    padding-left: 12px;
}

/* ==================== Hero 区 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1) 0%, rgba(15, 25, 35, 0.8) 100%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-left {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--light-text);
    text-shadow: 0 4px 20px rgba(255, 70, 85, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-desc {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.8;
}

.hero-right {
    animation: slideInRight 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agent-placeholder {
    position: relative;
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.15) 0%, rgba(91, 157, 191, 0.1) 100%);
    border: 2px solid var(--primary-red);
    border-right: none;
    border-top: none;
    clip-path: polygon(0 0, 100% 20px, 100% 100%, 20px 100%, 0 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.agent-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ==================== 过渡动画 ==================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 70, 85, 0.3), inset 0 0 10px rgba(255, 70, 85, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 70, 85, 0.6), inset 0 0 20px rgba(255, 70, 85, 0.2);
    }
}

/* ==================== 数据卡片 ==================== */
.overview-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.title-marker {
    width: 4px;
    height: 30px;
    background: var(--primary-red);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-red);
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
}

.section-desc {
    color: var(--gray-text);
    font-size: 14px;
    font-weight: 400;
}

.section-subtitle {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(27, 39, 51, 0.8) 0%, rgba(15, 25, 35, 0.9) 100%);
    border: 1px solid rgba(255, 70, 85, 0.2);
    padding: 25px;
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }

.stat-card:hover {
    background: linear-gradient(135deg, rgba(27, 39, 51, 1) 0%, rgba(15, 25, 35, 1) 100%);
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.5), inset 0 0 15px rgba(255, 70, 85, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 32px;
    min-width: 50px;
}

.card-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-red);
}

.card-label {
    font-size: 12px;
    color: var(--gray-text);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== Tab 切换区 ==================== */
.analysis-mode {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.tab-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid transparent;
    background: transparent;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-red);
}

.tab-btn.active {
    color: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.3), inset 0 0 15px rgba(255, 70, 85, 0.1);
}

.tab-btn.active::before {
    width: 100%;
}

.tab-icon {
    font-size: 20px;
}

/* ==================== 图表容器 ==================== */
.wordcloud-section,
.theme-section,
.timeline-section,
.comments-section,
.insights-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 40px;
}

.chart-box {
    background: linear-gradient(135deg, rgba(27, 39, 51, 0.6) 0%, rgba(15, 25, 35, 0.8) 100%);
    border: 1px solid rgba(255, 70, 85, 0.2);
    padding: 25px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-box:hover {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, rgba(27, 39, 51, 0.8) 0%, rgba(15, 25, 35, 0.9) 100%);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.3), inset 0 0 10px rgba(255, 70, 85, 0.05);
}

.echarts-container {
    width: 100%;
    height: 350px;
}

.wordcloud-canvas {
    width: 100% !important;
    height: 350px !important;
}

.chart-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--gray-text);
    text-align: center;
}

/* ==================== 评论筛选 ==================== */
.comments-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 70, 85, 0.3);
    color: var(--light-text);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--dark-bg);
    font-weight: 600;
}

/* ==================== 评论墙 ==================== */
.comments-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.comment-card {
    background: linear-gradient(135deg, rgba(27, 39, 51, 0.7) 0%, rgba(15, 25, 35, 0.9) 100%);
    border: 1px solid rgba(255, 70, 85, 0.2);
    padding: 20px;
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.comment-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.4), inset 0 0 10px rgba(255, 70, 85, 0.05);
    transform: translateY(-5px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.comment-tag {
    background: rgba(255, 70, 85, 0.2);
    color: var(--primary-red);
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-likes {
    color: var(--gold);
    font-weight: 600;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--light-text);
    flex-grow: 1;
}

.comment-source {
    font-size: 11px;
    color: var(--gray-text);
    border-top: 1px solid rgba(255, 70, 85, 0.1);
    padding-top: 8px;
}

/* ==================== 评论分页 ==================== */
.comments-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 70, 85, 0.3);
    color: var(--light-text);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.nav-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--dark-bg);
}

.page-info {
    color: var(--gray-text);
    font-size: 12px;
}

/* ==================== Insight 卡片 ==================== */
.insight-wrap {
    display: grid;
    gap: 32px;
    margin-top: 40px;
}

.insight-banner {
    position: relative;
    overflow: hidden;
    background: rgba(255, 70, 85, 0.08);
    border: 1px solid rgba(255, 70, 85, 0.25);
    border-left: 4px solid var(--primary-red);
    border-radius: 10px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 40px rgba(255, 70, 85, 0.04);
}

.insight-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 70, 85, 0.08) 50%, transparent 80%);
    opacity: 0.6;
    transform: translateX(-100%);
    animation: bannerSweep 4s linear infinite;
}

.insight-banner-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.insight-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-banner-text {
    font-size: 15px;
    line-height: 1.6;
    max-width: 880px;
    color: var(--light-text);
}

.insight-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .insight-card-grid,
    .action-chip-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 30px;
    }

    .section-desc,
    .section-subtitle {
        font-size: 13px;
    }

    .wordcloud-section,
    .theme-section,
    .timeline-section,
    .comments-section,
    .insights-section {
        padding: 60px 24px;
    }

    .insight-card-grid,
    .action-chip-grid {
        grid-template-columns: 1fr;
    }

    .insight-banner {
        padding: 20px 22px;
    }

    .insight-card {
        padding: 22px;
    }
}

.insight-card {
    background: linear-gradient(180deg, rgba(18, 28, 42, 0.85) 0%, rgba(17, 23, 34, 0.98) 100%);
    border: 1px solid rgba(255, 70, 85, 0.18);
    border-left: 4px solid var(--primary-red);
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.insight-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 70, 85, 0.1);
}

.insight-card:hover {
    transform: translateY(-6px);
    border-left-color: #FF7A84;
    box-shadow: 0 20px 45px rgba(255, 70, 85, 0.16);
}

.insight-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 70, 85, 0.12);
    color: var(--primary-red);
    font-size: 22px;
}

.insight-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.02em;
}

.insight-card-summary {
    font-size: 13px;
    line-height: 1.75;
    color: var(--light-text);
    min-height: 46px;
}

.insight-card-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.insight-bullet {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--light-text);
    font-size: 12px;
    line-height: 1.7;
}

.insight-bullet::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--primary-red);
    flex-shrink: 0;
}

.insight-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.insight-tag {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 70, 85, 0.18);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    background: rgba(255, 70, 85, 0.06);
}

.insight-status {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.action-panel {
    background: rgba(15, 23, 34, 0.95);
    border: 1px solid rgba(255, 70, 85, 0.18);
    border-radius: 16px;
    padding: 24px 26px;
    display: grid;
    gap: 18px;
}

.action-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.action-panel-header h3 {
    font-size: 16px;
    color: var(--accent-blue);
    margin: 0;
}

.action-panel-header .action-tag {
    color: var(--gray-text);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.action-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.action-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 70, 85, 0.12);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.action-chip:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 70, 85, 0.35);
    box-shadow: 0 18px 30px rgba(255, 70, 85, 0.12);
}

.action-chip-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.action-chip-desc {
    font-size: 12px;
    line-height: 1.7;
    color: var(--light-text);
}

.action-chip-priority {
    display: inline-flex;
    margin-top: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 70, 85, 0.12);
    color: var(--primary-red);
}

.action-panel-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 70, 85, 0.1);
    padding-top: 12px;
}

.fade-panel {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bannerSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.insight-box {
    background: linear-gradient(135deg, rgba(27, 39, 51, 0.6) 0%, rgba(15, 25, 35, 0.8) 100%);
    border: 1px solid rgba(255, 70, 85, 0.2);
    padding: 20px;
    border-radius: 4px;
}

.insight-box h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.insight-box p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 8px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, rgba(27, 39, 51, 0.9) 0%, rgba(15, 25, 35, 1) 100%);
    border-top: 1px solid rgba(255, 70, 85, 0.2);
    padding: 60px 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: 2px;
}

.footer-text {
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.8;
}

.footer-text p {
    margin: 5px 0;
}

.back-to-top {
    padding: 10px 20px;
    background: var(--primary-red);
    color: var(--dark-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 12px;
}

.back-to-top:hover {
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.6);
    transform: translateY(-2px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-grid,
    .timeline-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .nav-anchor {
        position: static;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .tab-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .comments-wall {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}

/* ==================== 微动画 ==================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ==================== 深色模式完美 ==================== */
::selection {
    background: var(--primary-red);
    color: var(--dark-bg);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}
