/* Custom layout for 全国大车培训网 */

#nav-menu a {
    display: inline-block;
    padding: 0.45em 1em;
    margin: 0 0.5em 0.3em 0;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}
#nav-menu a.current {
    background: #3354AA;
    color: #fff;
}

.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    border: 1px solid #dbe4f3;
    border-radius: 12px;
    padding: 2.5em 2em;
    margin-bottom: 2em;
    text-align: center;
}
.hero-title {
    font-size: 1.9em;
    margin: 0 0 0.5em;
    color: #1a2a4d;
    font-weight: 700;
}
.hero-desc {
    color: #556;
    max-width: 720px;
    margin: 0 auto 1.5em;
    line-height: 1.7;
}
#hero-search {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    max-width: 620px;
    margin: 0 auto 1.2em;
}
#hero-search input.text {
    flex: 1;
    padding: 0.85em 1em;
    border: 1px solid #c5cee0;
    border-radius: 6px;
    font-size: 1em;
}
#hero-search button.submit {
    padding: 0.85em 1.6em;
    background: #3354AA;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}
#hero-search button.submit:hover {
    background: #25408a;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em;
}
.hero-tags a {
    display: inline-block;
    padding: 0.35em 0.95em;
    background: #fff;
    border: 1px solid #c5cee0;
    border-radius: 20px;
    color: #3354AA;
    font-size: 0.92em;
}
.hero-tags a:hover {
    border-color: #3354AA;
    background: #f7f9ff;
    text-decoration: none;
}

.home-section {
    margin-bottom: 2.5em;
}
.section-title {
    font-size: 1.25em;
    color: #1a2a4d;
    margin-bottom: 0.9em;
    padding-left: 0.6em;
    border-left: 4px solid #3354AA;
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2em;
}
.card {
    display: block;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    padding: 1.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform .2s, box-shadow .2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    text-decoration: none;
}
.card h3 {
    margin: 0 0 0.5em;
    color: #1a2a4d;
    font-size: 1.15em;
}
.card p {
    color: #556;
    margin: 0 0 1em;
    line-height: 1.5;
}
.card-link {
    color: #3354AA;
    font-weight: 500;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}
.city-card {
    display: block;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    padding: 1.2em;
    text-align: center;
    transition: all .2s;
}
.city-card:hover {
    border-color: #3354AA;
    box-shadow: 0 4px 12px rgba(51,84,170,0.12);
    text-decoration: none;
}
.city-card h3 {
    margin: 0 0 0.3em;
    font-size: 1.2em;
    color: #1a2a4d;
}
.city-card-desc {
    font-size: 0.85em;
    color: #667;
    margin: 0 0 0.8em;
    line-height: 1.4;
}

.notice {
    background: #fffbe6;
    border: 1px solid #f0e3b1;
    border-radius: 8px;
    padding: 1.2em;
    color: #665;
    line-height: 1.6;
}
.notice strong {
    color: #8a6d1f;
}

#secondary .widget {
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    padding: 1.2em;
    margin-bottom: 1.2em;
}
#secondary .widget-title {
    font-size: 1.05em;
    margin: 0 0 0.8em;
    color: #1a2a4d;
    font-weight: 700;
}
#secondary .widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#secondary .widget-list li {
    margin: 0.4em 0;
    font-size: 0.95em;
}
#secondary .widget-list li a {
    color: #3354AA;
}
#secondary .widget-declare {
    font-size: 0.9em;
    color: #667;
    line-height: 1.5;
    margin: 0;
}

#footer {
    background: #f8fafc;
    border-top: 1px solid #e6e9f0;
    padding: 1.5em 0;
    text-align: center;
    color: #667;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        padding: 1.5em 1em;
    }
    #hero-search {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .city-grid {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}
