* {
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
    color: #000000;
}

body {
    /* background-image: url('images/FAQs-Sun-Safety-Header-Thumbnail.jpg'); */
    background-size: cover; /* 让图片填充整个页面 */
    background-position: center; 
    background-repeat: repeat-y; 
    height: auto; 
    min-height: 100vh; 
    margin: 0;
    padding: 0;
    padding-top: 60px; 
}


/* 导航栏样式 */
.navbar {
    background: rgba(255, 254, 254, 0.8);
    padding: 15px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    display: inline;
    margin: 0 20px;
}

.navbar ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    transition: 0.3s;
}

.navbar ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

/* Sun Safety 介绍 */
#sun-safety {
    text-align: center;
    padding: 30px;
    background: rgba(247, 245, 245, 0.8);
    color: rgb(0, 0, 0);
    margin: 100px auto 20px auto;
    width: 100%;
    border-radius: 10px;
}

/* Sun Safety 标题 */
#sun-safety h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 介绍文本 */
#sun-safety p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 地址输入栏 */
#location {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

#location input {
    height: 50px;
    width: 300px;
    margin: 0 10px;
    padding: 0 20px;
    background:  rgba(247, 245, 245, 0.8);
    color: rgb(0, 0, 0);
    font-size: 18px;
    border: none;
    border-radius: 8px;
}

#location input[type="submit"] {
    cursor: pointer;
    width: 100px;
    background: #ffffff;
    color: #000000;
    font-weight: bold;
}

.flex {
    background: rgba(247, 245, 245, 0.8);
    padding: 1rem;
    border-radius: 15px;
    width: 1200px;
    margin: 10rem auto 2rem auto;
    text-align: center;
    
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 水平居中 */
    justify-content: center; /* 垂直居中 */
}


.features {
    margin-top: 1rem;
    list-style: none;
    text-align: left;
}

.features li {
    margin: 5px 0;
}

#uvIndex {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    font-size: 24px; /* 调整字体大小 */
}

#chart-container {
    width: 1200px;
    height: 250px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
    background: rgba(247, 245, 245, 0.8);
    border-radius: 10px;

    display: flex;
    flex-direction: column; /* 确保图表和标题垂直排列 */
    align-items: center; /* 让图表水平居中 */
    justify-content: center; /* 让图表在框内垂直居中 */
}


/* Skin recommendation */
.recommendation {
    width: 1200px;
    padding: 15px;
    margin: 0 auto;
    background:  rgba(247, 245, 245, 0.8);
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}

/* Reminder popup */
.reminder-popup {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #FFEB3B;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
}

.hidden {
    display: none;
}

.reminder-popup button {
    margin-left: 15px;
    cursor: pointer;
    background: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
}

.input-hint {
    text-align: center; /* 居中对齐 */
    font-size: 16px; /* 字体大小 */
    color: black; /* 文字颜色黑色 */
    margin-top: 10px; /* 与输入框保持间距 */
    font-weight: bold; /* 让文字稍微加粗 */
}


#uv-forecast-container {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 80%;
    border-radius: 10px;
}

#location-input {
    margin-bottom: 20px;
}

#location-input input {
    padding: 10px;
    margin: 5px;
    font-size: 16px;
    background: white;  /* 确保背景为白色 */
    color: black;  /* 让输入的文字变成黑色 */
    border: 1px solid #ccc;
    border-radius: 5px;
}


#uvForecastChart {
    width: 100%;
    max-width: 800px;
    height: 400px; /* 之前可能没有这个，现在加上 */
    max-height: 400px; /* 确保图表不会无限拉长 */
    margin: auto;
}

.exposure-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: center;
    margin-top: 20px;
}

.exposure-table th {
    background: #004a99;
    color: white;
    padding: 10px;
    font-size: 18px;
}

.exposure-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.exposure-table img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}


.recommendation-image {
    text-align: center;
    margin-top: 20px; /* 与表格保持间距 */
}

.recommendation-image img {
    width: 90%; /* 图片宽度为表格的 80% */
    max-width: 1000px; /* 最大宽度限制 */
    border-radius: 20px; /* 圆角效果 */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* 轻微阴影 */
}

.visualization-container {
    display: flex;
    flex-direction: column; /* 让两个部分上下排列 */
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.visualization-section {
    text-align: center;
    width: 80%; /* 让内容宽度适中 */
    margin-bottom: 40px; /* 让两个部分之间有间距 */
}

.visualization-section h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.visualization-section img {
    width: 100%; /* 让图片充满整个容器 */
    max-width: 900px; /* 限制最大宽度，避免超出页面 */
    height: auto;
    display: block;
    margin: 0 auto;
}

.visualization-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}


#uv-intro {
    text-align: center;
    padding: 100px 20px; /* 保持足够的内边距 */
    background: #FFD700; /* 设定背景为黄色 */
    border-radius: 0; /* 移除圆角 */
    width: 100vw; /* 让它铺满整个页面 */
    margin: 0; /* 移除外边距 */
    color: black; /* 让文字颜色变黑，提高可读性 */
    font-weight: bold;
    text-shadow: none; /* 移除文字阴影 */
}

.uv-title {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
}

.uv-description {
    font-size: 22px;
    line-height: 1.6;
    max-width: 80%;
    margin: 0 auto;
}

.content {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中（如果有足够高度） */
    text-align: center; /* 让里面的文本居中 */
    margin: 20px auto; /* 保持顶部有间距 */
    width: 100%;
}

