/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
:root {
    --primary-color: #333333;
    --secondary-color: #d4af37;
    --accent-color: #e63946;
    --light-color: #f5f5f5;
    --dark-color: #222222;
    --gray-color: #666666;
    --light-gray: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-divider {
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
}

/* 警告栏 */
.warning-bar {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

/* 导航栏 */
.navbar {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
}

.logo .tagline {
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 5px;
    font-style: italic;
}

.nav-menu {
    display: flex;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu li a {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

.menu li a:hover,
.menu li a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: white;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    color: white;
}

.hero-text h2 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.hero-text h3 {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 产品系列 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
}

.product-info {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    font-size: 14px;
    color: var(--gray-color);
}

/* 产品特色 */
.features {
    background-color: var(--primary-color);
    color: white;
}

.features .section-title {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--secondary-color);
}

.feature-icon i {
    font-size: 32px;
    color: var(--secondary-color);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 匠心工艺 */
.craftsmanship-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.craftsmanship-img {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.craftsmanship-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--secondary-color);
    z-index: -1;
    border-radius: 8px;
}

.craftsmanship-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.craftsmanship-text {
    flex: 1;
}

.craftsmanship-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.craftsmanship-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.craftsmanship-text p {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 新闻资讯 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-info {
    padding: 20px;
}

.news-date {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.news-info p {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: '\f178';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
}

.read-more:hover::after {
    right: -5px;
}

/* 友情链接 */
.friendship-links {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

.friendship-links h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.links-container a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    padding: 0 5px;
}

.links-container a::after {
    content: '|';
    position: absolute;
    right: -12px;
    top: 0;
    color: rgba(255, 255, 255, 0.3);
}

.links-container a:last-child::after {
    display: none;
}

.links-container a:hover {
    color: var(--secondary-color);
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.footer-logo p {
    font-size: 14px;
    color: var(--secondary-color);
    font-style: italic;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #b89524;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* 纹理背景 */
.bg-texture {
    position: relative;
}

.bg-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/texture.png');
    background-repeat: repeat;
    opacity: 0.03;
    z-index: 0;
}

.bg-texture-light {
    position: relative;
}

.bg-texture-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/texture.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 0;
}

/* 动画效果 */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .craftsmanship-content {
        flex-direction: column;
    }

    .craftsmanship-img,
    .craftsmanship-text {
        flex: none;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 76px;
        flex-direction: column;
        background-color: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-text h2 {
        font-size: 40px;
    }

    .hero-text h3 {
        font-size: 30px;
    }

    .product-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 30px;
    }

    .hero-text h3 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 16px;
    }
}