/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.8;
    background: #f8f9fa;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #8c222c;
    letter-spacing: 1px;
}
.logo span {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-left: 12px;
    border-left: 1px solid #ddd;
    padding-left: 12px;
}
nav ul {
    display: flex;
    gap: 35px;
}
nav ul li a {
    font-size: 15px;
    color: #444;
    padding: 8px 0;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #8c222c;
    transition: width 0.3s;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}
nav ul li a:hover,
nav ul li a.active {
    color: #8c222c;
}

/* ===== Banner ===== */
.banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(140,34,44,0.85), rgba(44,62,80,0.75));
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}
.banner-content h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.banner-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 35px;
}
.btn-primary {
    display: inline-block;
    background: #8c222c;
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    border: 2px solid #8c222c;
}
.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ===== 通用区块 ===== */
section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 55px;
}
.section-title h2 {
    font-size: 34px;
    color: #222;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #8c222c;
}
.section-title p {
    color: #888;
    font-size: 16px;
    margin-top: 20px;
}

/* ===== 卡片通用 ===== */
.card-grid {
    display: grid;
    gap: 30px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    padding: 35px 28px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #8c222c;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8c222c, #c0392b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}
.card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ===== 页脚 ===== */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 55px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 35px;
}
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #8c222c;
}
.footer-col p, .footer-col li {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.8;
}
.footer-col a:hover { color: #8c222c; }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 22px;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a {
    color: #007bff;
    background: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    margin: 0 5px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .banner-content h1 { font-size: 32px; }
    .banner { height: 380px; }
    nav ul { display: none; }
    .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 50px 0; }
}