/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/res/images/photo-1508804185872-d7badad00f7d.avif');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 特色区域 */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    color: var(--light-text);
    max-width: 700px;
    margin: 15px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-img {
    height: 200px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover .feature-img img {
    transform: scale(1.1);
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-content p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.feature-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.feature-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* 中华五常美德部分 */
.virtues {
    padding: 100px 0;
    background: var(--accent-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.virtues:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
    background-size: cover;
}

.virtues .section-title {
    margin-bottom: 60px;
    text-align: center;
}

.virtues .section-title h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.virtues .section-title h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e8c07d;
}

.virtues .section-title .subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.virtues-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.virtue-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(232, 192, 125, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.virtue-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.virtue-card:before {
    content: attr(data-virtue);
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    opacity: 0.05;
    font-weight: bold;
    z-index: 0;
}

.virtue-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.virtue-icon i {
    font-size: 3rem;
    color: #e8c07d;
    margin-bottom: 15px;
}

.virtue-icon .chinese-character {
    font-size: 3.5rem;
    font-weight: bold;
    color: #e8c07d;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    font-family: "SimSun", "宋体", serif;
}

.virtue-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.virtue-card p {
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.chinese-character {
    font-family: "SimSun", "宋体", serif;
    font-weight: bold;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 1200px) {
    .virtues-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .virtues-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .virtues {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .virtues-grid {
        grid-template-columns: 1fr;
    }

    .virtues .section-title h2 {
        font-size: 2rem;
    }

    .virtue-card {
        padding: 30px 20px;
    }
}