:root {
    --primary-blue: #0a2540;
    --accent-blue: #00bfff;
    --light-blue: #e6f3ff;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --font-family: 'Inter', sans-serif;
}
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: var(--text-dark);
    line-height: 1.6;
}
header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}
.nav-item {
    position: relative;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--light-blue);
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-blue);
    list-style: none;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}
.nav-item:hover .submenu {
    display: block;
}
.submenu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.hero, .page-hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--light-blue);
    border-radius: 8px;
    margin-bottom: 2rem;
}
.hero h2, .page-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}
.hero p, .page-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero-img, .page-img {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}
.top50 h3, .industry-chart h3 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.industry-chart {
    width: 50%;  /* 容器响应式，填满父元素 */
    max-width: 959px;  /* 最大尺寸，防止过大 */
    margin: 0 auto;  /* 居中 */
    position: relative;  /* 为 Canvas 定位 */
}

.industry-chart canvas {
    width: 100% !important;  /* 强制 Canvas 填满容器 */
    height: auto !important;  /* 自动高，按比例 */
    max-height: 959px;  /* 限制最大高 */
    display: block;  /* 移除多余的 box-sizing，如果不需要 */
}

/* 媒体查询：移动端缩小 */
@media (max-width: 768px) {
    .industry-chart {
        max-width: 100%;  /* 小屏全宽 */
    }
    
    .industry-chart canvas {
        max-height: 400px;  /* 移动端限高 */
    }
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    max-height: 400px; /* Approx height for 10 rows */
    display: block;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 600px;
    table-layout: fixed;    /* FixAlign */
}
th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;  /* 新增：防止内容溢出列 */
    text-overflow: ellipsis;  /* 新增：长文本省略号 */
    position: relative;
}

/* 可点击的单元格样式（移动端） */
td.cell-clickable {
    cursor: pointer;
    user-select: none;
}

td.cell-clickable:active {
    background-color: #f0f0f0;
}

/* 浮出层样式 */
.cell-tooltip {
    display: none;
    position: absolute;
    background-color: rgba(10, 37, 64, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    min-width: 200px;
    z-index: 10000;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
    pointer-events: none;
}

/* 浮出层箭头（可选） */
.cell-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(10, 37, 64, 0.95);
}

/* 移动端浮出层样式调整 */
@media (max-width: 768px) {
    .cell-tooltip {
        max-width: 90vw;
        min-width: 200px;
        font-size: 0.85rem;
        padding: 10px 14px;
        pointer-events: auto; /* 移动端允许点击 */
    }
    
    td.cell-clickable {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}
th {
    background: var(--primary-blue);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}
/* thead { 
    display: table;
    width: 100%;
    table-layout: fixed;
}*/
tbody {
    max-height: 400px; /* Approx height for 10 rows */
    overflow-y: auto;
    width: 100%;    /* FixAlign */
}
tbody tr {  /* FixAlign */
    display: table-row;  /* 修正：table-row 而非 table！让 tr 作为行 */
    width: 100%;  /* 拉伸到父宽 */
}
/*thead, tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}
tbody tr {
    display: table-row;
}*/

.content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.btn {
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
}
.btn:hover {
    background: var(--primary-blue);
}
.cta {
    text-align: center;
    padding: 4rem 0;
    background: var(--light-blue);
    border-radius: 8px;
}
canvas {
    max-width: 100%;
}
footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}/* Mobile Responsiveness */
@media
 (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }.hamburger {
    display: flex;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-blue);
    flex-direction: column;
    gap: 0;
    display: none;
}

.nav-menu.active {
    display: flex;
}

.nav-item {
    width: 100%;
}

.submenu {
    position: static;
    display: none;
    background: rgba(0,0,0,0.1);
    padding-left: 2rem;
}
.nav-item:hover .submenu {
    display: block;
}
main {
    padding: 1rem;
}
.hero h2, .page-hero h2 {
    font-size: 2rem;
}
.hero p, .page-hero p {
    font-size: 1rem;
}
.hero-img, .page-img {
    height: 250px;
}
.table-container {
    overflow-x: auto;
}
table {
    min-width: 400px;
}
th, td {
    padding: 0.5rem;
    font-size: 0.9rem;
}
tbody {
    max-height: 300px;
}}@media
 (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }.hero h2, .page-hero h2 {
    font-size: 1.5rem;
}}