/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fdf5f5;
}
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航 */
.header {
    background: #c81623;
    color: white;
}
.header-top {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
}
.logo a {
    color: white;
    text-decoration: none;
}
.header-contact {
    display: flex;
    gap: 20px;
    font-size: 14px;
}
.main-nav {
    background: #b3121f;
}
.nav-list {
    display: flex;
    list-style: none;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 16px;
    transition: background 0.3s;
}
.nav-link:hover, .nav-link.active {
    background: #9e101b;
}

/* 英雄区（首页） */
.hero {
    height: 400px;
    background: linear-gradient(rgba(200, 22, 35, 0.8), rgba(200, 22, 35, 0.9)), url("hero-bg.jpg") center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.hero-btn {
    display: inline-block;
    background: white;
    color: #c81623;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: transform 0.3s;
}
.hero-btn:hover {
    transform: translateY(-3px);
}

/* 内容板块（首页） */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #c81623;
}
.section-title h2 {
    font-size: 28px;
    color: #333;
}

/* 简介板块 */
.intro-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 30px;
    align-items: center;
}
.intro-img {
    flex: 0 0 300px;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow:hidden
}
.intro-text {
    flex: 1;
}
.intro-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.more-link {
    color: #c81623;
    text-decoration: none;
    font-weight: bold;
}
.more-link:hover {
    text-decoration: underline;
}

/* 新闻列表（首页） */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-img {
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow:hidden
}
.news-content {
    padding: 20px;
}
.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.news-title {
    font-size: 18px;
    margin-bottom: 10px;
}
.news-title a {
    color: #333;
    text-decoration: none;
}
.news-title a:hover {
    color: #c81623;
}
.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 产品中心（首页） */
.product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}
.product-item {
    min-width: 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.product-img {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow:hidden
}
.product-name {
    padding: 15px;
    text-align: center;
    font-weight: bold;
}
.product-name a {
    color: #333;
    text-decoration: none;
}
.product-name a:hover {
    color: #c81623;
}

/* 列表页样式 */
.page-title {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.page-title h1 {
    font-size: 24px;
    color: #333;
}
.breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: #999;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #c81623;
}
.breadcrumb span {
    margin: 0 5px;
}
.list-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 30px;
}
.list-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-item:last-child {
    border-bottom: none;
}
.list-item a {
    color: #333;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}
.list-item a:hover {
    color: #c81623;
}
.list-date {
    font-size: 14px;
    color: #999;
    margin-left: 20px;
    white-space: nowrap;
}

/* 详情页样式 */
.article-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 30px;
}
.article-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.article-title {
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
}
.article-meta {
    font-size: 14px;
    color: #999;
}
.article-content {
    line-height: 2;
    color: #555;
    font-size: 16px;
}
.article-content p {
    margin-bottom: 20px;
}
.article-img {
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 30px;
    overflow:hidden
}
.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background: #c81623;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.back-btn:hover {
    background: #b3121f;
}

/* 底部样式 */
.footer {
    background: #333;
    color: white;
    margin-top: 60px;
}
.footer-top {
    padding: 50px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #c81623;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: white;
}
.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}
.copyright {
    background: #222;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
}
.copyright a {
    color: #999;
    text-decoration: none;
}
.copyright a:hover {
    color: white;
}

/* 两栏布局（列表/详情页） */
.two-column {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}
.sidebar-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 20px;
}
.sidebar-title {
    font-size: 16px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #c81623;
    margin-bottom: 15px;
}
.sidebar-content .footer-links a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}
.sidebar-content .footer-links a.active {
    color: #c81623;
    font-weight: bold;
}