/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d32f2f;
    --secondary: #f44336;
    --accent: #ff6e40;
    --dark: #b71c1c;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --text-dark: #212121;
    --text: #424242;
    --text-light: #757575;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 顶部信息栏 */
.top-info-bar {
    background: var(--dark);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 13px;
}

.info-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-left,
.info-right {
    color: rgba(255, 255, 255, 0.9);
}

/* 主导航栏 */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-top {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.site-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.site-subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.main-nav {
    padding: 15px 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    font-size: 14px;
}

.breadcrumb-container a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb-container a:hover {
    color: var(--primary);
}

.separator {
    margin: 0 10px;
    color: var(--text-light);
}

.current {
    color: var(--text-dark);
    font-weight: 500;
}

/* 主横幅 */
.hero-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    padding: 80px 0;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.banner-content {
    animation: fadeInLeft 0.6s ease-out;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 500;
}

.banner-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.banner-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 0.6s ease-out;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 内容区域 */
.main-content-area {
    padding: 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 文章区块 */
.content-article {
    padding: 80px 0;
    background: var(--bg-white);
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 25px;
}

.article-body p:last-child {
    margin-bottom: 0;
}

/* 分类区块 */
.categories-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-heading {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 30px;
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.category-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.category-link:hover {
    color: var(--dark);
}

/* 商品区块 */
.products-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-category {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 特色区块 */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: all 0.3s;
}

.feature-box:hover .feature-img {
    border-color: var(--primary);
    transform: scale(1.1);
}

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

.feature-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-content {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 页面标题 */
.page-title-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    padding: 60px 0;
    text-align: center;
}

.title-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.page-main-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-desc {
    font-size: 18px;
    color: var(--text-light);
}

/* 商品展示 */
.products-showcase {
    padding: 80px 0;
    background: var(--bg-white);
}

/* 分类展示 */
.categories-showcase {
    padding: 80px 0;
    background: var(--bg-light);
}

/* 博览会内容 */
.exhibition-content {
    padding: 80px 0;
    background: var(--bg-white);
}

.exhibition-intro {
    max-width: 1000px;
    margin: 0 auto 60px;
    text-align: center;
}

.exhibition-intro h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.exhibition-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.exhibition-item {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.exhibition-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.exhibition-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibition-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 25px 25px 10px;
    margin: 0;
}

.exhibition-text {
    font-size: 15px;
    color: var(--text-light);
    padding: 0 25px 25px;
    line-height: 1.6;
    margin: 0;
}

/* 关于内容 */
.about-content-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.about-image {
    position: sticky;
    top: 100px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 联系内容 */
.contact-content-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.contact-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 信息区块 */
.info-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.info-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.info-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.info-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 页脚 */
.main-footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent);
}

.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);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .banner-image {
        order: -1;
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 99;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-list .nav-link {
        display: block;
        padding: 15px 0;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .banner-title {
        font-size: 42px;
    }

    .section-heading {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 32px;
    }

    .page-main-title {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}
