/* General Styles */
body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f1f3f4;
    color: #202124;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Bar */
nav {
    background-color: #1a73e8;
    color: #ffffff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    margin: 0;
    font-size: 1.5rem; /* 调整字体大小 */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem; /* 调整字体大小 */
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #34a853;
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a73e8, #34a853);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    animation: slideIn 1.5s ease-out;
}

header p {
    font-size: 1.2rem;
    margin-top: 20px;
    animation: fadeIn 2s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main Content */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.category {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category h2 {
    color: #1a73e8;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 10px;
    margin-top: 0;
}

.category ul {
    list-style-type: none;
    padding: 0;
}

.category li {
    margin-bottom: 10px;
}

.category a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.category a:hover {
    color: #34a853;
    text-decoration: underline;
}

/* 常见问题与解决方案 */
.faq-list {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px; /* 设置最大高度 */
    overflow-y: auto;  /* 启用滚动 */
}

.faq-list h3 {
    margin-top: 0;
    color: #1a73e8;
}

#questionList {
    list-style-type: none;
    padding: 0;
}

#questionList li {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #f9f9f9;
}

#questionList li h4 {
    margin: 0;
    color: #1a73e8;
}

#questionList li p {
    margin: 5px 0;
    color: #555;
}

.submit-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: #ffffff; /* 文字颜色改为白色 */
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #34a853;
}

/* Footer */
footer {
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    margin: 0;
}
