/* 基础样式 */
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 {
    padding: 10px;
	display: flex;
	display: -webkit-flex;
	gap: 10px;
	-webkit-gap: 10px;
	flex-wrap: wrap;
    margin: 0 auto;
    flex-direction: row;
    -webkit-flex-direction: row;
	min-height: calc(100vh - 96px)
}

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;
}

p {
	margin-block-start: 0.1em;
    margin-block-end: 0.1em;
}

footer {
    background-color: #555;
    color: #fff;
    padding: 5px 0 5px;
    text-align: center;
    font-size: 16px;
	height: 22px;
}

/* 容器样式 */
.info-container {
	flex: 1 1 400px;
	display: flex;
	display: -webkit-flex;
	gap: 10px;
	-webkit-gap: 10px;
	flex-wrap: wrap;
    margin: 0 auto;
    flex-direction: column;
	-webkit-flex-direction: column;
}

/* 地区卡片样式 */
.region-card {
	flex: 1 1 auto;
    background: rgb(213,213,217);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-height: fit-content;
	overflow: hidden;
}

.region-card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

/* 卡片头部 */
.card-header {
    padding: 5px 15px;
    background-color: #555;
    color: white;
    font-size: 22px;
    font-weight: bold;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
}

.announce-header {
    padding: 5px 10px;
	margin-top: 10px;
    background-color: #fff;
    color: rgb(255,75,0);
    font-size: 18px;
    font-weight: bold;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
}

/* 预警信息列表 */
.warning-list {
    padding: 10px;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    gap: 5px;
    -webkit-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;
}

.warning-icon {
    font-size: 30px;
    width: 36px;
	height: 36px;
    text-align: center;
	border-radius: 5px;
    margin-right: 5px;
	line-height: 1.25;
}

.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 {
    max-width: 100%;
    text-align: center;
    border-collapse: collapse;
    /*background-color: rgb(240,240,240);*/
    border: 1px solid rgb(160,160,160);
    border-radius: 5px;
}

.forecastTable th, .forecastTable td {
    border: 1px solid rgb(160,160,160);
	padding: 0 4px;
}

.alert-time {
    color: #555;
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    gap: 0 10px;
    flex-wrap: wrap;
}




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: 800px) {
    main {
        flex-direction: column;
        -webkit-flex-direction: column;
        flex-wrap: nowrap;
    }

    .info-container {
        width: 100%;
		flex: 1 1 auto;
    }

    .region-card {
		flex: 1 1 auto; /* 移动端占满宽度 */
		min-width: unset;
		max-width: unset;
    }

    .warning-item {
        padding: 10px;
    }
}
