/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
:root {
    --primary-color: #0a2342;
    --secondary-color: #d4af37;
    --accent-color: #e63946;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;
    --gray-color: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    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 28px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #b89524;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title.white {
    color: var(--white);
}

.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: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto 25px;
}

.section-divider.gold {
    background-color: var(--secondary-color);
}

/* 警告栏 */
.warning-bar {
    background-color: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
}

/* 导航栏 */
.navbar {
    background-color: rgba(10, 35, 66, 0.95);
    color: var(--white);
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px 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: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
}

.logo .tagline {
    font-size: 14px;
    color: var(--secondary-color);
    margin-top: 5px;
    font-style: italic;
}

.nav-menu {
    display: flex;
}

.menu {
    display: flex;
    gap: 35px;
}

.menu li a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.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: var(--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: 85px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 35, 66, 0.85), rgba(10, 35, 66, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 70px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.reveal-delay-2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* 产品系列 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.product-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.product-badge.special {
    background-color: var(--accent-color);
    color: var(--white);
}

.product-badge.new {
    background-color: #2a9d8f;
    color: var(--white);
}

.product-badge.limited {
    background-color: #e76f51;
    color: var(--white);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    font-size: 15px;
    color: var(--gray-color);
}

/* 产品特色 */
.features {
    position: relative;
    overflow: hidden;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #134074 100%);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-icon i {
    font-size: 40px;
    color: var(--secondary-color);
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* 精湛工艺 */
.craftsmanship-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.craftsmanship-steps {
    flex: 1;
}

.step-item {
    margin-bottom: 40px;
    padding-left: 60px;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.step-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-item p {
    font-size: 15px;
    color: var(--gray-color);
    line-height: 1.7;
}

.reveal-step {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.craftsmanship-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.craftsmanship-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 新闻资讯 */
.bg-light {
    background-color: #f5f7fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-info {
    padding: 25px;
}

.news-date {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(10, 35, 66, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-info h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.news-info p {
    font-size: 15px;
    color: var(--gray-color);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 友情链接 */
.bg-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

.friendship-links {
    padding: 40px 0;
}

.friendship-links h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.links-container a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 0 5px;
}

.links-container a::after {
    content: '|';
    position: absolute;
    right: -15px;
    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 {
    color: var(--white);
    padding: 80px 0 40px;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0a1128 0%, #1c2541 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col {
    position: relative;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer-logo h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-logo p {
    font-size: 14px;
    color: var(--secondary-color);
    font-style: italic;
}

.footer-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
    width: 15px;
    text-align: center;
}

.contact-info li span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    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: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    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(212, 175, 55, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #b89524;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 22px;
}

/* 动画效果 */
.hover-lift {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.5s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@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-steps,
    .craftsmanship-image {
        flex: none;
        width: 100%;
    }

    .craftsmanship-image {
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu {
        flex-direction: column;
        gap: 25px;
    }

    .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-title {
        font-size: 50px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .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-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}