/* assets/css/style.css */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #1f2933;
    background: #f9fbfb;
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: #0f172a;
}

/* Nav */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: linear-gradient(90deg,#94F09A,#94EAF0);
    color: #000;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px 0;
    gap: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 20px;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(90deg,#94F09A,#94EAF0);
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn:hover {
    box-shadow: 0 0 10px rgba(148,234,240,0.8);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Cards */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3,1fr);
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Image placeholder */
.img-placeholder {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.timeline .step {
    min-width: 200px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stats div {
    font-size: 20px;
    font-weight: bold;
}

/* Footer */
footer {
    background: #0f172a;
    color: #fff;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.footer-grid h4 {
    margin-bottom: 10px;
}

.footer-grid a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
    color: #94a3b8;
}

/* Responsive */
@media(max-width: 900px){
    .hero {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        right: 20px;
        top: 60px;
        width: 200px;
        padding: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}
/* 图片统一处理（关键修复） */
.img-placeholder {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：不变形裁切 */
    display: block;
}