/* assets/css/style.css */

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f5;
    color: #333;
    line-height: 1.6;
}

/* ===== Container ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3 {
    color: #1f2d2b;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 15px;
    color: #555;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    background-color: #6b8f8d;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #557c79;
}

/* ===== Header ===== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #1f2d2b;
}

/* ===== Navigation ===== */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: #6b8f8d;
}

/* ===== Mobile Menu ===== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0;
    background-color: #D3DFDD;
    text-align: center;
}

.hero img {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ===== Card ===== */
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e6eceb;
    transition: 0.3s;
}

.card:hover {
    border-color: #d5e0df;
    transform: translateY(-2px);
}

.card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ===== Section ===== */
.section {
    padding: 60px 0;
}

/* ===== Footer（重点优化） ===== */
footer {
    background-color: #1f3a38; /* 深绿色 */
    color: #cfd8d7;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

footer h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

footer a {
    color: #b8c7c5;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: 0.3s;
}

footer a:hover {
    color: #6b8f8d; /* 呼应主色 */
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #2e4d4a;
    padding-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #9fb2b0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        border: 1px solid #eee;
        padding: 15px;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
img {
max-width: 100%;
height: auto;
display: block;
}