@font-face {
    font-family: 'New Railway';
    src: url("NewRailway.otf") format("otf");
    font-weight: normal;
    font-display: swap;
}

.new-railway {
    display: inline-block;
    font-family: "New Railway" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 基础样式 */
body {
    font-family: 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei UI', '文泉驿微米黑', 'PingFang SC', sans-serif;
    background-color: rgb(191,228,255);
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 20px;
    line-height: 1.5;
}

main {
    margin: 0 auto;
    min-height: calc(100vh - 96px);
    display: -webkit-flex;
    display: flex;
    -webkit-gap: 10px;
    gap: 5px;
    flex-wrap: wrap;
    margin: 0 auto;
    -webkit-flex-direction: row;
    flex-direction: row;
}

.info-containers {
    flex: 1 1 400px;
    min-height: calc(100vh - 96px);
    display: -webkit-flex;
    display: flex;
    -webkit-gap: 10px;
    gap: 5px;
    flex-wrap: nowrap;
    -webkit-flex-direction: row;
    flex-direction: row;
}

header {
    background-color: rgb(0,90,255);
    color: #fff;
    padding: 4px 0 6px;
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid #fff;
    font-weight: bold;
    height: 32px;
}

h1 {
    font-size: 24px;
    font-family: 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei UI', '文泉驿微米黑', 'PingFang SC', sans-serif;
    margin: 0;
}

details {
    font-size: 16px;
    border-left: 2px solid rgb(100,100,100);
	padding-left: 10px;
	margin: 2px 0;
}

summary {
    font-weight: bold;
    font-size: 18px;
}

p {
    margin-block-start: 0.2em; margin-block-end: 0.2em; }

footer {
    background-color: #555;
    color: #fff;
    padding: 5px 0 5px;
    text-align: center;
    font-size: 16px;
    height: 22px;
}

/* 容器样式 */
.info-container {
    flex: 1 1 400px;
    margin: 0 auto;
    padding: 10px 5px;
}

/* 容器样式 
.info-container-list {
    flex: 1 1 400px;
    margin: 0 auto;
}*/

#eventsList {
	margin: 0;
    position: relative;
    padding: 0;
    height: calc(100vh - 76px);
    width: 250px;
    background-color: rgb(210,210,210);
    border-right: 2px solid #aaa;
    list-style: none;
    transition: all 0.3s ease-in-out;
	overflow: auto;
}

.event {
    margin: 5px 0px;
    background: rgb(220,220,220);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
}

.left-subtitle {
    text-align: left;
    background-color: rgb(170,170,170);
    padding: 10px 5px;
    font-size: 14px;
    width: 14px;
    writing-mode: vertical-rl;
    text-orientation: upright;
	display: flex;
    align-items: center;
}

.main-contents {
    padding: 4px;
    gap: 15px;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
}

.main-content {
    padding: 4px 8px;
    gap: 2px;
    display: flex;
    flex-direction: column;
    padding-bottom: 5px;
    border-radius: 4px;
    transition: all 0.5s ease;
    background: rgb(230,230,230);
}

.max-intensity {
    font-size: 14px;
    font-weight: bold;
	padding: 2px;
    text-align: center;
}

.event-place {
    font-size: 20px;
    font-weight: bold;
}

.list-time {
    font-size: 14px;
}

.list-title {
    font-size: 14px;
    color: #555;
    padding-bottom: 3px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.icon {
    display: inline-block;
    padding-bottom: 5px;
    font-size: 18px;
}

.eq-info {
    font-size: 16px;
}

.intensity-details {
    padding-top: 5px;
    font-size: 14px;
	margin: 0;
	padding: 0;
	border: 0;
}

.intensity-item {
    padding-top: 2px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.icon-wide-border-old {
    border-width: 2px;
}

.details-content {
	padding-left: 10px;
	font-size: 16px;
}

.details-content-warning-area {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	font-weight: bold;
	font-size: 24px;
}

.details-title {
	font-weight: normal;
}

.event-status {
	font-weight: bold;
	color: #111;
}

/* 预警信息列表 */
.warning-list {
    padding: 10px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-gap: 5px;
    gap: 5px;
}

/* 预警项样式 */
.warning-item {
    flex: 1 1 100%;
    transition: all 0.2s ease;
    background: rgb(230,230,230);
    border-radius: 6px;
    border-left: 6px solid transparent;
    padding: 10px 15px;
}

.warning-item-header {
    display: -webkit-flex;
    align-items: center;
    font-weight: bold;
}


.warning-icon {
    font-size: 30px;
    width: 36px;
    height: 36px;
    text-align: center;
    border-radius: 5px;
    margin-right: 5px;
    line-height: 1.25;
}

.icon-inline {
    text-align: center;
    border-radius: 3px;
	width: 1.3em;
	height: 1.3em;
	display: inline-block;
	line-height: 1.3!important;
	margin-right: 5px;
	background-color: #fff;
}

.icon-inline-warning {
    text-align: center;
    border-radius: 3px;
    width: 45px;
    display: flex;
    line-height: 1.75!important;
    margin-right: 2px;
    background-color: rgb(255 255 255);
    font-size: 16px;
    align-items: center;
    align-content: center;
    justify-content: center;
	gap: 3px;
}

.forecast-icon {
    font-size: 24px;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 5px;
    line-height: 1.25;
    display: inline-block;
}

.warning-name {
    font-weight: bold;
    font-size: 24px;
    margin-left: 5px;
}

.warning-details {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-top: 5px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 16px;
    margin-left: 8px;
    text-align: center;
}

.status-active {
    background-color: #fff;
    color: #333;
}

.status-pre {
    background-color: #fff;
    color: rgb(255,75,0);
}

.status-inactive {
    background-color: rgb(3,175,122);
    color: #fff;
}

.forecastTable {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    background-color: rgb(204 204 204);
    border: 1px solid rgb(160,160,160);
    border-radius: 5px;
	font-size: 18px;
}

.forecastTable th, .forecastTable td {
    border: 1px solid rgb(160,160,160);
	padding: 0 4px;
}

hr {
    width: 100%;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    transition: all 0.2s ease;
}

a:visited {
    color: inherit;
}

a:hover, a:focus {
    color: rgb(255,75,0);
    text-shadow: 1px 1px 1px #fff, -1px -1px 1px #fff, -1px 1px 1px #fff, 1px -1px 1px #fff, 0px 1px 1px #fff, 0px -1px 1px #fff, -1px 0px 1px #fff, 1px 0px 1px #fff;
}

/* 响应式设计 
@media (max-width: 900px) {
    main {
        -webkit-flex-direction: column;
        flex-direction: column;
        flex-wrap: nowrap;
    }
	
	.info-containers {
		flex-direction: column;
		min-height: fit-content;
	}

    .info-container {
        width: calc(100vw - 40px);
        flex: 1 1 auto;
    }
	
	.info-container-list {
		width: 100%;
	}
	
	.event {
		flex-direction: row;
		margin: 1px 5px;
	}
	
	.main-contents {
		flex-direction: row-reverse;
	}
	
	.left-subtitle {
		writing-mode: initial;
		text-orientation: initial;
		width: auto;
		padding: 2px 7px;
	}
	
	#eventsList {
		width: 100%;
		height: fit-content;
		padding: 5px 0px;
		border-right: none;
		border-bottom: 2px solid #aaa;
	}
	
	#events-container {
		flex-direction: row-reverse;
		margin-right: auto;
		overflow: auto;
	}
}*/

#headlineInfo, #earthquakeInfo {
    background-color: #f5f5f5;
    border-radius: 3px;
    overflow: clip;
}

.text {
    background-color: rgb(235,235,235);
    border-radius: 3px;
	padding: 5px 10px;
	margin: 5px 0;
}

.title {
	text-align: center;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
	gap: 10px;
}

#headlineInfo div, #earthquakeInfo div {
    padding: 10px;
}

#headlineInfo h1 {
    text-align: center;
    padding: 5px;
    background-color: rgb(200,200,203);
    color: #000;
}

#headlineInfo h1.red {
    background-color: rgb(230,0,0);
    color: #ff0;
}

#headlineInfo h1.orange {
    background-color: rgb(255,153,0);
    color: #fff;
}

#headlineInfo h1.yellow {
    background-color: rgb(250,245,0);
    color: #000;
}

#headlineInfo details {
    margin: 5px 0px;
    padding-left: 10px;
}

#headlineInfo .red summary {
    color: rgb(230,0,0);
}

#headlineInfo details.red {
    border-left: 2px solid rgb(230,0,0);
}

#headlineInfo .orange summary {
    color: rgb(255,153,0);
}

#headlineInfo details.orange {
    border-left: 2px solid rgb(255,153,0);
}

#headlineInfo details.yellow {
    border-left: 2px solid rgb(250,245,0);
}

.tsunami-details {
	padding: 5px 10px;
    background-color: #ccc;
    border-radius: 3px;
    overflow: clip;
}

#warningInfo, #observationInfo {
	border-collapse: collapse;
}

#warningInfo th, #warningInfo td, #observationInfo th, #observationInfo td {
	padding: 1px 5px;
	height: 30px;
}

/* 触发按钮 */
.trigger-btn {
    margin-bottom: 10px;
	display: inline-block;
    padding: 5px 10px;
    color: #fff;
    background: rgb(255,75,0);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'HarmonyOS Sans SC', 'Sarasa UI SC', 'Sarasa Gothic SC', '文泉驿微米黑', 'WenQuanYi Micro Hei', 'Noto Sans SC', 'Microsoft YaHei UI', 'SimHei', 'SimSun', sans-serif;
}

.trigger-btn:hover {
    background: #fff;
    color: rgb(255,75,0);
}

.trigger-btn:active {
    background: #eee;
    color: rgb(255,75,0);
}

/* 预警图标区域样式 */
.alert-icons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    background-color: rgb(200,200,200);
    border-radius: 6px;
    padding: 5px;
}

.alert-icon {
    font-size: 24px;
    gap: 2px;
    width: 50px;
    height: 35px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.alert-icon:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.alert-icon.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgb(0,0,0);
}

/* 无预警提示样式 */
.no-alert {
    text-align: center;
    background-color: rgb(230,230,230);
    border-radius: 6px;
    padding: 5px;
    font-size: 18px;
}

.no-alert-content p i {
    color: rgb(3,175,122);
    font-size: 24px;
}

/* 预警详情区域样式 */
.alert-details {
    display: none;
    background: rgb(230,230,230);
    border-radius: 6px;
    padding: 10px 15px;
    border-left: 6px solid transparent;
}

.alert-details.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.alert-header {
    display: flex;
    align-items: center;
}

.alert-header i {
    font-size: 24px;
    margin-right: 10px;
}

.alert-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.alert-content {
    line-height: 1.6;
    font-size: 16px;
}

.alert-time {
    color: #555;
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    gap: 0 10px;
    flex-wrap: wrap;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.asc::after {
    content: " ↑";
    color: rgb(0,65,255);
    font-weight: bold;
}

.desc::after {
    content: " ↓";
    color: rgb(255,40,0);
    font-weight: bold;
}

th {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

th:hover {
    background-color: #fff;
}

.not-sortable th {
    cursor: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    transition: none;
}

.not-sortable th:hover {
    background-color: inherit;
}

.chart-container {
    width: calc(100% - 38px);
    height: 400px;
    padding: 10px;
    transition: all 0.3s ease;
}

#lineChart {
    width: 100%!important;
    height: 400px!important;
}

#map {
    width: 100%!important;
    height: calc(100vh - 100px);
    background-color: rgb(242,242,255);
    border-radius: 3px;
    overflow: clip;
}

.unknownIntensity {
    /*background-color: rgb(200,200,203);
    border: 1px solid RGB(153,134,56);*/
    border-radius: 3px;
    color: #000;
    background-color: rgb(77,196,255);
    border: 1px solid RGB(46,118,153);
    z-index: 194!important;
}
.tropicalDepression {
    /*background-color: rgb(160,210,255);
    border: 1px solid RGB(96,126,153);*/
    border-radius: 3px;
    color: #fff;
    background-color: rgb(132,145,158);
    border: 1px solid RGB(79,87,95);
    z-index: 195!important;
}
.tropicalStorm {
    /*background-color: rgb(33,140,255);
    border: 1px solid RGB(20,84,153);*/
    border-radius: 3px;
    color: #fff;
    background-color: rgb(3,175,122);
    border: 1px solid RGB(2,105,73);
    z-index: 196!important;
}
.severeTropicalStorm {
    /*background-color: rgb(0,65,255);
    border: 1px solid RGB(0,39,153);*/
    border-radius: 3px;
    color: #fff;
    background-color: rgb(0,65,255);
    border: 1px solid RGB(0,39,153);
    z-index: 197!important;
}
.typhoon {
    background-color: rgb(255,40,0);
    border: 1px solid RGB(153,24,0);
    border-radius: 3px;
    color: #fff;
    z-index: 198!important;
}
.severeTyphoon {
    /*background-color: rgb(255,40,0);
    border: 1px solid RGB(153,24,0);*/
    border-radius: 3px;
    color: #000;
    background-color: rgb(255,128,130);
    border: 1px solid RGB(153,77,78);
    z-index: 199!important;
}
.superTyphoon {
    /*background-color: rgb(200,0,255);
    border: 1px solid RGB(120,0,153);*/
    border-radius: 3px;
    color: #fff;
    background-color: rgb(153,0,153);
    border: 1px solid RGB(92,0,92);
    z-index: 200!important;
}

.unknownIntensity.lightColor {
    border-color: RGB(202,237,255);
}
.tropicalDepression.lightColor {
    border-color: RGB(224,230,236);
}
.tropicalStorm.lightColor {
    border-color: RGB(179,255,232);
}
.severeTropicalStorm.lightColor {
    border-color: RGB(179,198,255);
}
.typhoon.lightColor {
    border-color: RGB(255,191,179);
}
.severeTyphoon.lightColor {
    border-color: RGB(255,217,218);
}
.superTyphoon.lightColor {
    border-color: RGB(255,178,255);
}

.unknownIntensity-filter {
    filter: drop-shadow(0 0 2px RGB(202,237,255));
}
.tropicalDepression-filter {
    filter: drop-shadow(0 0 2px RGB(224,230,236));
}
.tropicalStorm-filter {
    filter: drop-shadow(0 0 2px RGB(179,255,232));
}
.severeTropicalStorm-filter {
    filter: drop-shadow(0 0 2px RGB(179,198,255));
}
.typhoon-filter {
    filter: drop-shadow(0 0 2px RGB(255,191,179));
}
.severeTyphoon-filter {
    filter: drop-shadow(0 0 2px RGB(255,217,218));
}
.superTyphoon-filter {
    filter: drop-shadow(0 0 2px RGB(255,178,255));
}

.current-circle {
    border-color: #fff;
	z-index: 300!important;
	text-align: center;
	display: flex;
}

.icon-wide-border {
    border-width: 2px;
	border-radius: 50%;
}

.forecast-border {
    border-color: #fff;
}

.intensity0 {
    color: #000;
    background-color: rgb(200,200,203);
    border: 1px solid RGB(120,120,122);
    border-radius: 3px;
    z-index: 189!important;
}
.intensity1 {
    color: #fff;
    background-color: rgb(107,107,120);
    border: 1px solid RGB(64,64,72);
    border-radius: 3px;
    z-index: 189!important;
}
.intensity2 {
    color: #000;
    background-color: rgb(160,210,255);
    border: 1px solid RGB(96,126,153);
    border-radius: 3px;
    z-index: 190!important;
}
.intensity3 {
    color: #fff;
    background-color: rgb(33,140,255);
    border: 1px solid RGB(20,84,153);
    border-radius: 3px;
    z-index: 191!important;
}
.intensity4 {
    color: #fff;
    background-color: rgb(33,33,255);
    border: 1px solid RGB(20,20,153);
    border-radius: 3px;
    z-index: 192!important;
}
.intensity5 {
    color: #fff;
    background-color: rgb(50,150,120);
    border: 1px solid RGB(30,90,72);
    border-radius: 3px;
    z-index: 193!important;
}
.intensity6 {
    color: #000;
    background-color: rgb(250,230,100);
    border: 1px solid RGB(153,138,60);
    border-radius: 3px;
    z-index: 194!important;
}
.intensity7 {
    color: #000;
    background-color: rgb(255,170,0);
    border: 1px solid RGB(153,102,0);
    border-radius: 3px;
    z-index: 195!important;
}
.intensity8 {
    color: #fff;
    background-color: rgb(255,120,0);
    border: 1px solid RGB(153,72,0);
    border-radius: 3px;
    z-index: 196!important;
}
.intensity9 {
    color: #fff;
    background-color: rgb(230,0,0);
    border: 1px solid RGB(138,0,0);
    border-radius: 3px;
    z-index: 197!important;
}
.intensity10 {
    color: #fff;
    background-color: rgb(180,0,120);
    border: 1px solid RGB(108,0,72);
    border-radius: 3px;
    z-index: 198!important;
}
.intensity11 {
    color: #fff;
    background-color: rgb(170,0,204);
    border: 1px solid RGB(102,0,122);
    border-radius: 3px;
    z-index: 199!important;
}
.intensity12 {
    color: #fff;
    background-color: rgb(90,0,150);
    border: 1px solid #ff0;
    border-radius: 3px;
    z-index: 200!important;
}

.menu-item > .menu-link,
.submenu-link {
    display: block;
    padding: 4px 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    user-select: none;
	display: flex;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
	gap: 4px;
}
.menu-item > .menu-link {
	font-weight: bold;
	border-bottom: 1px solid #aaa;
	font-size: 18px;
}
.has-submenu > .menu-link::after {
    content: '▶';
	margin-left: auto;
    transition: transform 0.3s ease;
}

.has-submenu.active > .menu-link::after {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background-color: rgb(230,230,230);
    transition: max-height 0.3s ease;
	list-style: none;
	padding-left: 5px;
	font-size: 16px;
}
.submenu-link {
	border-bottom: 1px solid #ccc;
}
.has-submenu.active > .submenu {
    max-height: fit-content;
}

.content {
    flex-grow: 1;
    padding: 30px;
}

/* 自定义滚动条样式 - 仅适用于 WebKit 内核浏览器 */
        *::-webkit-scrollbar {
            width: 6px; /* 设置滚动条宽度为6像素 */
			height: 6px;
        }

        *::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        *::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        *::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
		
.marineIconOuter {
	background-color: rgb(240,240,240);
	border-radius: 2px;
    font-family: 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei UI', '文泉驿微米黑', 'PingFang SC', sans-serif;
}

.marineIconContainer {
	padding: 2px;
	display: flex;
	gap: 2px;
	align-content: center;
    justify-content: center;
    align-items: center;
}

.marineIcon {
	font-size: 14px;
	width: 18px;
	height: 18px;
	display: flex;
	align-content: center;
    justify-content: center;
    align-items: center;
	border: 1px solid #000;
	border-radius: 2px;
}

.leaflet-control {
    font-family: 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei UI', '文泉驿微米黑', 'PingFang SC', sans-serif;
}

#tcCurrent, #tcForecast, #tcHistory, #sccwTable, #sccwTableForecast {
	font-size: 16px;
}

.windDir {
	display: inline-block;
}