/* 非关键 CSS - 延迟加载 */

/* 互动话题卡片 */
.topic-card {
    background: linear-gradient(135deg, var(--highlight), var(--white));
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.topic-card::before {
    content: '💬';
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.topic-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.topic-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    padding: 0.4rem 1rem;
    background: var(--white);
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.topic-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 30px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.card-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0.5rem 0;
}

/* 图表容器 */
.chart-container {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 30px var(--shadow);
    margin-bottom: 2rem;
}

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

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.chart-wrapper.large {
    height: 400px;
}

/* 两列布局 */
.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/* 角色标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: default;
}

.tag:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.tag.hot {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}

/* 洞察列表 */
.insight-list {
    list-style: none;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--secondary);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.insight-item:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.insight-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.insight-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.insight-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 引用块 */
.quote-block {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 10rem;
    opacity: 0.2;
    line-height: 1;
}

.quote-block p {
    font-size: 1.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.quote-block .author {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.quote-block .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.quote-block .footer-logo span {
    font-size: 1.5rem;
    color: var(--white);
}

/* 投票/互动区 */
.poll-section {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px var(--shadow);
    margin: 2rem 0;
}

.poll-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--secondary);
    border-radius: 12px;
    transition: all 0.3s;
}

.poll-option:hover {
    background: var(--primary-light);
}

.poll-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.poll-option.selected .poll-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.poll-text {
    flex: 1;
    color: var(--text-primary);
}

.poll-count {
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

/* 对比表格 */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--primary-light);
}

.compare-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--secondary);
}

.compare-table td {
    color: var(--text-secondary);
}

.compare-table tr:hover td {
    background: var(--secondary);
}

.role-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-badge.coser {
    background: #E3F2FD;
    color: #1976D2;
}

.role-badge.client {
    background: #F3E5F5;
    color: #7B1FA2;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: var(--primary-light);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 1.5rem;
    color: var(--white);
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
    }

    .quote-block {
        padding: 2rem 1.5rem;
    }

    .quote-block p {
        font-size: 1.15rem;
    }

    .topic-card {
        padding: 1.5rem;
    }

    .poll-section {
        padding: 1.5rem;
    }

    .chart-container {
        padding: 1.5rem;
    }

    .chart-wrapper {
        height: 250px;
    }

    .chart-wrapper.large {
        height: 300px;
    }
}

/* 高亮文字 */
.highlight {
    background: linear-gradient(transparent 60%, rgba(196, 167, 125, 0.4) 60%);
    padding: 0 4px;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--primary-light);
}

.data-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--secondary);
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--secondary);
}

/* 导航链接下划线动画 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}
