/* 福音钢琴厂官网样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f8f8f8;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #8b0000;
}

img {
    max-width: 100%;
    border: none;
}

ul, ol {
    list-style: none;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    color: #d4af37;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-text p {
    color: #ccc;
    font-size: 12px;
    letter-spacing: 3px;
}

/* 导航栏 */
.nav {
    background: #8b0000;
    border-bottom: 3px solid #d4af37;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav ul {
    display: flex;
    justify-content: center;
}

.nav ul li {
    position: relative;
}

.nav ul li a {
    display: block;
    padding: 15px 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
    background: #6b0000;
    color: #d4af37;
}

/* Banner区域 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #1a1a2e;
}

.banner-slides {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.banner-text h2 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.banner-text p {
    font-size: 20px;
    letter-spacing: 2px;
}

/* 主体容器 */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b0000;
    position: relative;
}

.section-title h2 {
    font-size: 28px;
    color: #8b0000;
    display: inline-block;
    position: relative;
    padding: 0 20px;
    background: #f8f8f8;
}

.section-title h2::before,
.section-title h2::after {
    content: "♪";
    color: #d4af37;
    margin: 0 10px;
}

/* 关于我们 */
.about-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-image {
    flex: 0 0 45%;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    color: #8b0000;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    text-indent: 2em;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.about-text .btn-more {
    display: inline-block;
    padding: 10px 25px;
    background: #8b0000;
    color: #fff;
    border-radius: 4px;
    margin-top: 10px;
    transition: background 0.3s;
}

.about-text .btn-more:hover {
    background: #6b0000;
    color: #d4af37;
}

/* 产品展示 */
.products-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-item {
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: #8b0000;
    font-weight: bold;
}

/* 新闻中心 */
.news-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: background 0.3s;
}

.news-item:hover {
    background: #f9f5f5;
}

.news-item-image {
    flex: 0 0 120px;
}

.news-item-image img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.news-item-content {
    flex: 1;
}

.news-item-content h4 {
    font-size: 15px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item-content h4 a:hover {
    color: #8b0000;
}

.news-item-content p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
}

/* 工艺展示 */
.craft-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #fff;
}

.craft-section .section-title h2 {
    background: transparent;
    color: #d4af37;
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.craft-item {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    transition: all 0.3s;
}

.craft-item:hover {
    border-color: #d4af37;
    background: rgba(212,175,55,0.1);
}

.craft-icon {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 15px;
}

.craft-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #d4af37;
}

.craft-item p {
    font-size: 13px;
    color: #ccc;
    line-height: 1.7;
}

/* 联系我们 */
.contact-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.contact-item {
    padding: 30px;
}

.contact-item .icon {
    font-size: 40px;
    color: #8b0000;
    margin-bottom: 15px;
}

.contact-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    line-height: 1.8;
}

/* 底部 */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 0 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-block h4 {
    color: #d4af37;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.footer-block p,
.footer-block a {
    font-size: 13px;
    color: #999;
    line-height: 2;
}

.footer-block a:hover {
    color: #d4af37;
}

.footer-block ul li {
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

.footer-bottom a {
    color: #d4af37;
}

/* 分页 */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    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;
}

/* 新闻列表页 */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #8b0000 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 16px;
    color: #d4af37;
}

.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    color: #8b0000;
}

/* 新闻详情页 */
.news-detail {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.news-detail-title {
    text-align: center;
    margin-bottom: 20px;
}

.news-detail-title h1 {
    font-size: 28px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-detail-meta {
    color: #999;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-meta span {
    margin: 0 10px;
}

.news-detail-content {
    padding: 30px 0;
    line-height: 2;
    font-size: 16px;
    color: #444;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.news-detail-content img {
    display: block;
    max-width: 80%;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-detail-nav {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.news-detail-nav p {
    margin-bottom: 10px;
}

.news-detail-nav a {
    color: #8b0000;
}

/* 侧边栏 */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.sidebar {
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: #8b0000;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #8b0000;
}

.sidebar-widget ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    font-size: 14px;
    color: #555;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-widget ul li a:hover {
    color: #8b0000;
}

.sidebar-widget ul li .date {
    font-size: 12px;
    color: #aaa;
    float: right;
}

/* 响应式 */
@media (max-width: 992px) {
    .products-grid,
    .craft-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        flex-direction: column;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav ul {
        flex-wrap: wrap;
    }
    .nav ul li a {
        padding: 12px 18px;
        font-size: 14px;
    }
    .banner-text h2 {
        font-size: 28px;
    }
    .products-grid,
    .craft-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}
