/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 导航栏样式 */
.nav-bar {
    background-color: #8b0000;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    text-align: center;
    color: #fff;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.brand h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.brand p {
    font-size: 1rem;
    opacity: 0.9;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-bar a:hover,
.nav-bar a.active {
    background-color: #a52a2a;
    transform: translateY(-2px);
}

/* 面包屑导航 */
.breadcrumb {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
    color: #666;
    animation: slideIn 0.5s ease-out;
}

.breadcrumb a {
    color: #8b0000;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #a52a2a;
    text-decoration: underline;
}

/* 页头样式 */
.hero,
.category-header {
    position: relative;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero img,
.category-header img {
    width: 100%;
    height: auto;
    object-fit: cover;
    animation: zoomIn 1s ease-out;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

.brand-intro,
.category-intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 1s ease-out;
}

.brand-intro p,
.category-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #666;
}

.featured-products,
.product-showcase,
.brand-story,
.categories {
    margin-bottom: 4rem;
    animation: slideUp 1s ease-out;
}

h2 {
    text-align: center;
    color: #8b0000;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8b0000;
    margin: 1rem auto 0;
}

/* 产品网格样式 */
.product-grid,
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card,
.story-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out;
}

.product-card:hover,
.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-detail {
    padding: 0.8rem 1.5rem;
    background-color: #fff;
    color: #8b0000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.product-card:hover .btn-detail {
    transform: translateY(0);
}

.btn-detail:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #8b0000;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
}

.product-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-features span {
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.product-features span:hover {
    background-color: #8b0000;
    color: #fff;
    transform: translateY(-2px);
}

/* 分类卡片样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    height: 200px;
    background-color: #8b0000;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.category-card:hover .category-content {
    transform: translateY(-10px);
}

.category-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* 页脚样式 */
footer {
    background-color: #8b0000;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.brand-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav h4 {
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.footer-nav a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-bar {
        padding: 0.5rem 0;
    }

    .nav-bar ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .product-grid,
    .story-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-image img {
        height: 250px;
    }

    .brand-intro p,
    .category-intro p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .product-features {
        flex-direction: column;
        align-items: center;
    }

    .product-features span {
        width: 100%;
        text-align: center;
    }
} 
} 