/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.section-title .divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border: 1px solid #d4af37;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    transform: translateY(-2px);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 40px;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d4af37;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.contact-info {
    font-weight: 500;
    color: #333;
}

.contact-info i {
    color: #d4af37;
    margin-right: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Banner */
.banner {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.banner-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.banner-content .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* 响应式Banner */
@media (max-width: 768px) {
    .banner {
        height: 70vh;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 60vh;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .banner img {
        object-position: center;
    }
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-10px);
}

/* 产品展示 */
.products-section {
    padding: 100px 0;
}

/* 加工说明 */
.processing-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.processing-info {
    text-align: center;
    margin-bottom: 40px;
}

.processing-info p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.processing-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.processing-steps {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.processing-step {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.processing-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.processing-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.processing-step p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.processing-image {
    flex: 1;
}

.processing-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .processing-content {
        flex-direction: column;
        text-align: center;
    }
    
    .processing-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .processing-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .processing-section {
        padding: 60px 0;
    }
    
    .processing-step {
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }
    
    .processing-step h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .processing-step p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .processing-steps {
        grid-template-columns: 1fr;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 20px;
}

/* 产品分类 */
.product-categories {
    margin-bottom: 40px;
    text-align: center;
}

.product-categories ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.product-categories a {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.product-categories a:hover,
.product-categories a.active {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    border-color: #d4af37;
}

/* 新闻资讯 */
.news-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.news-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-info {
    padding: 25px;
}

.news-date {
    display: inline-block;
    font-size: 14px;
    color: #d4af37;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.news-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-info h3 a:hover {
    color: #d4af37;
}

.news-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 新闻分类 */
.news-categories {
    margin-bottom: 40px;
    text-align: center;
}

.news-categories ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.news-categories a {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.news-categories a:hover,
.news-categories a.active {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    border-color: #d4af37;
}

/* 页面标题 */
.page-header {
    position: relative;
    padding: 150px 0 100px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    margin-bottom: 0;
}

/* 联系我们 */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.contact-item i {
    font-size: 24px;
    color: #d4af37;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    font-size: 14px;
    color: #666;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f4d03f;
}

.footer-logo p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f4d03f;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #999;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f4d03f;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 14px;
}

.footer-contact i {
    color: #f4d03f;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #999;
}

.footer-bottom a {
    color: #f4d03f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #d4af37;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content h1 {
        font-size: 48px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-links {
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .nav-links li {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .about-section,
    .products-section,
    .news-section,
    .contact-section {
        padding: 60px 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文本居中 */
.text-center {
    text-align: center;
}

/* 卡片悬停效果 */
.product-card,
.news-card {
    position: relative;
    overflow: hidden;
}

.product-card::before,
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before,
.news-card:hover::before {
    left: 100%;
}

/* 金属质感按钮 */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.pagination ul li {
    display: inline-block;
}

.pagination ul li a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination ul li a:hover,
.pagination ul li a.active {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    border-color: #d4af37;
}

.pagination ul li a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination ul li a.disabled:hover {
    background: transparent;
    color: #333;
    border-color: #e9ecef;
}

/* 新闻详情 */
.news-detail {
    padding: 100px 0;
}

.news-detail-layout {
    display: flex;
    gap: 40px;
}

.news-main {
    flex: 1;
    min-width: 0;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.news-meta span {
    font-size: 14px;
    color: #666;
}

.news-body {
    max-width: 800px;
    margin: 0 auto;
}

.news-image {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.news-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.news-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
}

.news-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #333;
}

.news-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.news-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-body li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
}

.news-nav {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.news-nav-prev,
.news-nav-next {
    margin-bottom: 15px;
}

.news-nav-prev:last-child,
.news-nav-next:last-child {
    margin-bottom: 0;
}

.news-nav span {
    font-weight: 600;
    color: #333;
}

.news-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-nav a:hover {
    color: #d4af37;
}

.news-share {
    margin-top: 50px;
    text-align: center;
}

.news-share h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
}

/* 右侧边栏 */
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    color: #333;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-list a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-list a:hover {
    color: #d4af37;
}

/* 响应式新闻详情页 */
@media (max-width: 992px) {
    .news-detail-layout {
        flex-direction: column;
    }
    
    .news-sidebar {
        width: 100%;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f4d03f;
}