
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: #333; background: #f8f5f0; line-height: 1.8;
}
a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-area img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #FFD700; }
.logo-text h1 { color: #FFD700; font-size: 24px; letter-spacing: 3px; }
.logo-text p { color: #ffecec; font-size: 12px; letter-spacing: 1px; }
.nav { display: flex; gap: 5px; }
.nav a {
    color: #fff; padding: 10px 20px; font-size: 16px; border-radius: 4px;
    position: relative;
}
.nav a:hover, .nav a.active { background: rgba(255,215,0,0.2); color: #FFD700; }
.nav a.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 2px; background: #FFD700;
}

/* Banner */
.banner {
    position: relative; height: 500px; overflow: hidden;
    background: linear-gradient(rgba(139,0,0,0.5), rgba(139,0,0,0.3)), url('../images/banner1.png') center/cover;
}
.banner-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: #fff; width: 80%;
}
.banner-content h2 { font-size: 48px; margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); letter-spacing: 5px; }
.banner-content p { font-size: 20px; margin-bottom: 30px; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.banner-btn {
    display: inline-block; padding: 12px 40px; background: #FFD700; color: #8B0000;
    font-size: 18px; font-weight: bold; border-radius: 30px; letter-spacing: 2px;
}
.banner-btn:hover { background: #fff; transform: scale(1.05); box-shadow: 0 5px 20px rgba(255,215,0,0.5); }

/* Page Banner */
.page-banner {
    height: 250px; background: linear-gradient(rgba(139,0,0,0.6), rgba(139,0,0,0.4)), url('../images/culture.png') center/cover;
    display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff;
}
.page-banner h2 { font-size: 36px; letter-spacing: 5px; margin-bottom: 10px; }
.page-banner .breadcrumb { font-size: 14px; color: #ffecec; }
.page-banner .breadcrumb a:hover { color: #FFD700; }

/* Section */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: #8B0000; position: relative; display: inline-block; padding: 0 20px; }
.section-title h2::before, .section-title h2::after {
    content: ''; position: absolute; top: 50%; width: 60px; height: 2px; background: linear-gradient(90deg, transparent, #FFD700);
}
.section-title h2::before { right: 100%; }
.section-title h2::after { left: 100%; background: linear-gradient(90deg, #FFD700, transparent); }
.section-title p { color: #999; margin-top: 10px; font-size: 15px; }

/* About Section on Homepage */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.about-text h3 { font-size: 26px; color: #8B0000; margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; text-indent: 2em; color: #555; font-size: 15px; }
.about-text .more-btn {
    display: inline-block; margin-top: 20px; padding: 10px 30px; background: #8B0000; color: #fff;
    border-radius: 5px; font-size: 15px;
}
.about-text .more-btn:hover { background: #B22222; padding-left: 40px; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(139,0,0,0.15); }
.product-card .pimg { height: 200px; overflow: hidden; }
.product-card .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .pimg img { transform: scale(1.1); }
.product-card .pinfo { padding: 20px; text-align: center; }
.product-card .pinfo h4 { color: #8B0000; font-size: 18px; margin-bottom: 8px; }
.product-card .pinfo p { color: #999; font-size: 13px; }

/* News */
.news-section { background: #fff; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-item {
    display: flex; gap: 20px; padding: 20px; background: #faf8f5; border-radius: 8px;
    border-left: 3px solid #FFD700; transition: all 0.3s;
}
.news-item:hover { border-left-color: #8B0000; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.news-date {
    text-align: center; min-width: 70px; padding: 10px;
    background: linear-gradient(135deg, #8B0000, #B22222); color: #fff; border-radius: 6px;
}
.news-date .day { font-size: 28px; font-weight: bold; }
.news-date .ym { font-size: 12px; }
.news-text h4 { font-size: 16px; color: #333; margin-bottom: 8px; }
.news-item:hover .news-text h4 { color: #8B0000; }
.news-text p { font-size: 13px; color: #888; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more-news { text-align: center; margin-top: 40px; }
.more-news a { display: inline-block; padding: 10px 40px; background: #8B0000; color: #fff; border-radius: 5px; }
.more-news a:hover { background: #B22222; }

/* News Page */
.news-page-list .news-item { border-left: 3px solid #ddd; background: #fff; margin-bottom: 15px; }
.news-page-list .news-item:hover { border-left-color: #8B0000; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-block; min-width: 40px; height: 40px; line-height: 40px; text-align: center;
    padding: 0 12px; border: 1px solid #ddd; border-radius: 4px; color: #666; font-size: 14px;
}
.pagination a:hover { background: #8B0000; color: #fff; border-color: #8B0000; }
.pagination .current { background: #8B0000; color: #fff; border-color: #8B0000; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }

/* News Detail */
.news-detail { background: #fff; padding: 50px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); max-width: 900px; margin: 0 auto; }
.news-detail h1 { font-size: 28px; color: #8B0000; text-align: center; margin-bottom: 20px; line-height: 1.5; }
.news-detail .meta { text-align: center; color: #999; font-size: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px dashed #ddd; }
.news-detail .meta span { margin: 0 10px; }
.news-detail .content p { margin-bottom: 20px; text-indent: 2em; font-size: 16px; color: #444; line-height: 2; }
.news-detail .content img { margin: 20px auto; border-radius: 8px; max-width: 100%; }
.news-detail .content h3 { font-size: 20px; color: #8B0000; margin: 25px 0 15px; }
.news-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px dashed #ddd; }
.news-nav a { color: #8B0000; font-size: 14px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-nav a:hover { color: #B22222; text-decoration: underline; }

/* Advantages */
.advantages { background: linear-gradient(135deg, #f8f5f0, #fff); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.adv-item { text-align: center; padding: 30px 20px; background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.adv-item .icon { font-size: 48px; margin-bottom: 15px; }
.adv-item h4 { font-size: 18px; color: #8B0000; margin-bottom: 10px; }
.adv-item p { font-size: 13px; color: #888; }

/* Contact */
.contact-section { background: #8B0000; color: #fff; }
.contact-section .section-title h2 { color: #FFD700; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.contact-item { padding: 30px; }
.contact-item .icon { font-size: 40px; margin-bottom: 15px; }
.contact-item h4 { color: #FFD700; font-size: 18px; margin-bottom: 10px; }
.contact-item p { color: #ffecec; font-size: 14px; }

/* About Page */
.about-page-content { background: #fff; padding: 50px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.about-page-content h3 { font-size: 22px; color: #8B0000; margin: 30px 0 15px; padding-left: 15px; border-left: 4px solid #FFD700; }
.about-page-content p { margin-bottom: 15px; text-indent: 2em; color: #555; }
.about-page-content img { border-radius: 8px; margin: 20px 0; }
.honors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.honor-item { background: #faf8f5; padding: 20px; border-radius: 8px; text-align: center; border-top: 3px solid #FFD700; }
.honor-item h4 { color: #8B0000; margin-bottom: 8px; }
.honor-item p { font-size: 13px; color: #888; text-indent: 0; }

/* Products Page */
.prod-category { margin-bottom: 50px; }
.prod-category h3 { font-size: 24px; color: #8B0000; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #FFD700; display: inline-block; }
.prod-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.prod-detail-card {
    background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.prod-detail-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(139,0,0,0.12); }
.prod-detail-card .pimg { height: 220px; overflow: hidden; }
.prod-detail-card .pimg img { width: 100%; height: 100%; object-fit: cover; }
.prod-detail-card .pinfo { padding: 20px; }
.prod-detail-card .pinfo h4 { color: #8B0000; font-size: 18px; margin-bottom: 8px; }
.prod-detail-card .pinfo .desc { color: #888; font-size: 13px; margin-bottom: 10px; line-height: 1.6; }
.prod-detail-card .pinfo .tags span {
    display: inline-block; background: #faf0e6; color: #8B0000; padding: 3px 10px;
    border-radius: 3px; font-size: 12px; margin-right: 5px;
}

/* Footer */
.footer { background: #2c1810; color: #ccc; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #FFD700; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: #FFD700; }
.footer-col p { font-size: 13px; line-height: 2; color: #999; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #999; }
.footer-col ul li a:hover { color: #FFD700; padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #3d2a1f; font-size: 13px; color: #777; }
.footer-bottom a { color: #FFD700; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .nav a { padding: 8px 12px; font-size: 14px; }
    .banner-content h2 { font-size: 28px; }
    .about-grid, .products-grid, .news-list, .adv-grid, .contact-grid,
    .honors-grid, .prod-page-grid, .footer-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-detail { padding: 20px; }
}
