/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    background: url('sky.jpg') no-repeat center center/cover;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 50px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin-left: 20px;
    text-align: center;
}

/* Main Section Styles */
main {
    background-color: white;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h2 {
    color: #007bff;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="number"] {
    width: 90%;
    max-width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    width: 90%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 4px;
}

button:hover {
    background-color: #218838;
}

/* FAQ Section Styles */
.faq-section {
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
    margin-bottom: 120px;
}

.faq-item {
    background-color: #e9ecef;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

.faq-item h3 {
    cursor: pointer;
    margin: 0;
}

.faq-item p {
    display: none;
    padding: 10px 0 0;
}
.faq-item div {
    display: none;
    padding: 10px 0 0;
}
.faq-item a {
    color: black;
    text-decoration: underline;
}
/* Footer Styles */
footer {
    text-align: center;
    padding: 10px;
    background-color: #007bff;
    color: white;
    width: 100%;
    position: fixed;
    bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header, main, .faq-section {
        padding: 10px;
        width: 95%;
    }

    /* 计算结果表格的响应式样式 */
    .table-container {
        width: 100%;
        overflow-x: auto; /* 添加水平滚动条，以便在表格溢出时可以水平滚动查看内容 */
    }

    th, td {
        white-space: normal; /* 允许表格单元格内容换行 */
    }

    table {
        width: 98%; /* 设置表格宽度为100% */
    }
}

/* Table Styles */
table {
    width: 100%; /* 设置表格宽度为100% */
    border-collapse: collapse;
    overflow-x: auto; /* 让表格在移动设备上出现水平滚动条 */
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #333;
}