/**
 * C3-b migrated from main-legacy.css — global reset
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* 只允许body滚动 */
body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* 隐藏所有内部元素的滚动条 */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* 只为主页面body保留滚动条 */
body {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #007bff #f1f1f1; /* Firefox */
}

body::-webkit-scrollbar {
    width: 8px; /* Chrome, Safari, Edge */
    display: block;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* 禁用所有内部元素的滚动 */
.container, 
.water-quality, 
.analysis-result, 
.result-content, 
.params-grid, 
.ai-content,
.charts-grid, 
.chart-container, 
.streaming-container,
.streaming-content,
.analysis-report,
.action-plan,
.reminder-section,
.patent-cards,
.service-cards,
.params-grid,
.analysis-content {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    max-height: none !important;
}

/* 导航菜单保留滚动（仅移动端弹出菜单） */
.nav-menu {
    /* 移动端菜单可以滚动 */
    overflow-y: auto;
}

:root {
    --primary: #1a73e8;
    --secondary: #34a853;
    --accent: #fbbc05;
    --dark: #202124;
    --light: #f8f9fa;
    --gray: #5f6368;
}
