* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}


.header {
    background-color: #2d3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}


.section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.section h2 {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}


.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}


.card-container.cards-3 .card {
    flex: 0 0 calc(33.33% - 10px);
}

.card-container.cards-4 .card {
    flex: 0 0 calc(50% - 8px);
}

.card-container.cards-5 .card:nth-child(-n+3) {
    flex: 0 0 calc(33.33% - 10px);
}

.card-container.cards-5 .card:nth-child(n+4) {
    flex: 0 0 calc(50% - 8px);
}

.card-container.cards-6 .card {
    flex: 0 0 calc(33.33% - 10px);
}

.card {
    flex: 1;
    min-width: 150px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 16px;
    color: #3498db;
    margin-bottom: 5px;
}

.card .value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.card .source {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}


.industry-chart-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto 20px;
    position: relative;
}

.industry-chart-pie {
    flex: 0 0 300px;
    max-width: 300px;
}

.industry-chart-legend {
    flex: 1;
    min-width: 200px;
    font-size: 14px;
}


.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

tr:hover {
    background-color: #f8f9fa;
}


.tech-cloud-container {
    margin: 25px auto;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    max-width: 800px;
    overflow: hidden;
}

.tech-cloud-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.keyword {
    display: inline-block;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 5px;
    line-height: 1.2;
    font-size: 14px;
}

.keyword:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 2;
}

.keyword.size-xl {
    font-size: 14px;
    padding: 7px 14px;
    background-color: #3498db;
    --rotation: -2deg;
}

.keyword.size-l {
    font-size: 13px;
    padding: 6px 12px;
    background-color: #3498db;
    --rotation: 1deg;
}

.keyword.size-m {
    font-size: 12px;
    padding: 5px 10px;
    background-color: #5dade2;
    --rotation: -1deg;
}

.keyword.size-s {
    font-size: 11px;
    padding: 4px 8px;
    background-color: #85c1e9;
    --rotation: 2deg;
}


.news-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.news-item p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-item .reference {
    text-align: right;
    font-size: 12px;
}

.news-item .reference a {
    color: #3498db;
    text-decoration: none;
}

.news-item .reference a:hover {
    text-decoration: underline;
}

.selected-news-list .news-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.selected-news-list .news-date {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 5px;
}

.selected-news-list h3 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 16px;
}


@media (max-width: 768px) {
    .container {
        width: 100%;
    }
    .card-container .card,
    .card-container.cards-3 .card,
    .card-container.cards-4 .card,
    .card-container.cards-5 .card,
    .card-container.cards-6 .card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        word-break: break-all;
        white-space: normal;
    }
    .industry-chart-flex {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }
    .industry-chart-pie, .industry-chart-legend {
        max-width: 100%;
        min-width: 0;
    }
    .industry-chart-pie .datalabels-plugin {
        display: none !important;
    }
    .modern-card {
        padding: 14px 2vw;
        max-width: 98vw;
    }
    .modern-title {
        font-size: 1.1rem;
    }
    .modern-icon {
        font-size: 1rem;
        width: 20px;
    }
    .modern-item-title, .modern-item-desc {
        font-size: 14px;
    }
    .policy-cards {
        flex-direction: column;
        gap: 10px;
    }
    .policy-card {
        max-width: 100%;
        min-width: 0;
    }
}


.policy-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.policy-card {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 28px 16px 14px 18px;
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
    margin-bottom: 0;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    border-top: 4px solid #eaf2fb;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.policy-card:hover {
    box-shadow: 0 6px 18px rgba(52,152,219,0.13);
    transform: translateY(-4px) scale(1.03);
    z-index: 2;
}

.policy-badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 0;
    vertical-align: middle;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px rgba(52,152,219,0.08);
    z-index: 2;
}


.policy-badge-financial { background: #3498db; }
.policy-badge-green { background: #2ecc71; }
.policy-badge-digital { background: #9b59b6; }
.policy-badge-biopharma { background: #e74c3c; }

.policy-title {
    display: inline-block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.3;
    margin-top: 6px;
}

.policy-desc {
    color: #555;
    font-size: 14px;
    margin-top: 2px;
    line-height: 1.6;
}

.policy-analysis {
    margin-top: 24px;
}

.policy-analysis h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: bold;
}

.policy-analysis p {
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.7;
}


.trend-chart-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 24px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 18px 18px 10px 18px;
    overflow: visible;
}

.trend-chart-wrapper h3 {
    text-align: center;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
}


.modern-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 28px 28px 18px 28px;
    margin: 20px auto;
    border: 1.5px solid #e3f0fb;
    max-width: 600px;
}

.modern-title {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #2176c7;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.modern-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modern-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
}

.modern-icon {
    color: #3498db;
    font-size: 1.35rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.modern-item-title {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #3498db;
    margin-right: 4px;
}

.modern-item-desc {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    color: #333;
    font-size: 14px;
    font-weight: normal;
}


.bar-chart-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 16px 16px 16px;
    margin: 20px auto 0 auto;
    max-width: 600px;
}


.section p, 
.section .summary, 
.section .analysis, 
.section .table-container, 
.section .card-container, 
.section .trend-chart-wrapper, 
.section .industry-chart-flex, 
.section .tech-cloud-container, 
.section .word-cloud, 
.section .news-item {
    margin-top: 18px;
    margin-bottom: 18px;
}

.section p + p {
    margin-top: 18px;
}


html, body, .container, .section, .summary, .analysis, .policy-analysis, .policy-analysis p, .table-container, table, th, td, .news-item, .selected-news-list, .trend-chart-wrapper, .bar-chart-wrapper, .modern-card, .tech-cloud-container, .word-cloud, .keyword, .policy-cards, .policy-card, .policy-title, .policy-desc {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif !important;
    font-size: 14px;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
}

.section h2 {
    font-size: 18px;
    font-weight: bold;
}

.card h3, .modern-title, .trend-chart-wrapper h3, .bar-chart-wrapper h3, .industry-chart-legend, .policy-title {
    font-size: 16px;
    font-weight: bold;
}

.card .value {
    font-size: 20px;
    font-weight: bold;
}

.card .source {
    font-size: 12px;
}


.footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #555;
}


.chart-reference {
    position: absolute;
    bottom: -35px;
    right: 0;
    font-size: 12px;
}

.chart-reference a {
    color: #7f8c8d;
    text-decoration: none;
}

.chart-reference a:hover {
    text-decoration: underline;
    color: #95a5a6;
}

.video-spinner {
    border: 4px solid #e5e6eb;
    border-top: 4px solid #165DFF;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    animation: spin 1s linear infinite;
    box-shadow: 0 2px 8px rgba(22,93,255,0.10);
    background: transparent;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}