/* 通用样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* 页眉 */
header {
    background: #343a40;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: #007bff 4px solid;
}

header h1 {
    margin: 0;
    float: left;
    font-size: 24px;
}

header nav {
    float: right;
    margin-top: 5px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    transition: color 0.3s ease;
}

header a:hover {
    color: #007bff;
}

/* 响应式页眉 */
@media (max-width: 768px) {
    header h1,
    header nav {
        float: none;
        text-align: center;
        width: 100%;
    }

    header h1 {
        margin-bottom: 15px;
    }

    header li {
        padding: 5px 10px;
    }
}


/* 主要内容 */
main section {
    padding: 60px 0;
    border-bottom: 1px solid #dee2e6;
}

main section:last-child {
    border-bottom: none;
}

#hero {
    background: #007bff;
    color: white;
    text-align: center;
    padding: 80px 0;
}

#hero h2 {
    font-size: 42px;
    margin-top: 0;
    margin-bottom: 15px;
}

#hero p {
    font-size: 20px;
}

#services h2, #contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-item {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-item h3 {
    margin-top: 0;
    color: #007bff;
}

#contact ul {
    list-style: none;
    padding: 0;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
}

#contact li {
    padding: 12px 0;
    border-bottom: 1px dotted #ced4da;
    font-size: 16px;
}

#contact li:last-child {
    border-bottom: none;
}

#contact strong {
    color: #495057;
}

#contact a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #0056b3;
}

#contact p {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #6c757d;
}

/* 页脚 */
footer {
    background: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff;
}

/* 政策页面样式 */
.policy-container {
    background: #ffffff;
    padding: 40px;
    margin-top: 30px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.policy-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.policy-container h3 {
    margin-top: 30px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    color: #343a40;
}

.policy-container p, .policy-container li {
    color: #495057;
} 