/* ===== 全局重置与基础样式 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --brown-dark: #5C3317;
    --brown-mid: #A0522D;
    --cream: #F5F0E8;
    --cream-dark: #EDE0CC;
    --text-dark: #3C2A1A;
    --text-mid: #6B4C2A;
    --text-light: #9A7B5A;
    --white: #ffffff;
    --font-main: 'Microsoft YaHei', 'PingFang SC', '微软雅黑', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #e8e0d4;
    overflow-x: hidden;
    min-width: 320px;
}

/* 页面整体内容区最大宽度居中 */
.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--white);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 页面最大宽度限制 */
.page-wrap {
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    z-index: 1000;
    background: url('../images/meun_bg.png') center center / cover no-repeat;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 15px;
    color: var(--brown-dark);
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--white);
    background-color: var(--brown-mid);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--brown-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ===== Banner 轮播 ===== */
.banner-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: calc(1085 / 1920 * 100%);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.banner-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.7);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--brown-dark);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-prev:hover, .banner-next:hover { background: rgba(255,255,255,0.95); }

/* ===== 通用板块标题 ===== */
.section-title {
    text-align: center;
    padding: 50px 20px 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 28px;
    color: var(--brown-dark);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title .sub {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--brown-mid);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== 页脚 ===== */
.footer {
    background-color: var(--cream);
    padding: 40px 0 0;
    border-top: 1px solid var(--cream-dark);
}

.footer-main {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px 30px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand .naifu {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.footer-brand .naifu-logo {
    font-size: 36px;
    font-weight: 900;
    color: var(--brown-dark);
    font-style: italic;
}

.footer-brand .naifu-sub {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 3px;
}

.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.footer-logo-block img {
    height: 40px;
    width: auto;
}

.footer-logo-block .purewhite-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--brown-dark);
    line-height: 1.2;
}

.footer-logo-block .purewhite-sub {
    font-size: 13px;
    color: var(--text-mid);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.footer-social .social-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social .social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-mid);
}

.footer-social .social-item .qr-placeholder {
    width: 70px;
    height: 70px;
    background: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
}

.footer-address {
    flex: 1;
    min-width: 260px;
}

.footer-address h4 {
    font-size: 15px;
    color: var(--brown-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-address p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 2;
}

.footer-bottom {
    background-color: var(--cream-dark);
    text-align: center;
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 通用产品网格 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 0 20px;
}

.product-item {
    text-align: center;
}

.product-item .img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f5f0;
    margin-bottom: 8px;
}

.product-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .img-wrap img {
    transform: scale(1.05);
}

.product-item .name {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.4;
}

/* ===== 产品分类标题 ===== */
.category-header {
    background: var(--cream);
    border-radius: 8px;
    padding: 10px 20px;
    margin: 30px 0 15px;
    display: inline-block;
}

.category-header h3 {
    font-size: 20px;
    color: var(--brown-dark);
    font-weight: 700;
}

/* ===== 响应式布局 ===== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(calc(-50% - 100%));
        width: 100%;
        max-width: 1440px;
        background: url('../images/meun_bg.png') center center / cover;
        background-color: #F5EDE0;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transition: transform 0.3s;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.open {
        transform: translateX(-50%);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-header h3 {
        font-size: 17px;
    }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== 首页特定样式 ===== */

/* 首页 hero 区域（无 banner） */
.index-hero {
    margin-top: 70px;
    width: 100%;
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

.index-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.index-hero-text {
    flex: 1;
    min-width: 280px;
}

.index-hero-text .tag {
    display: inline-block;
    background: var(--brown-mid);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.index-hero-text h1 {
    font-size: 42px;
    color: var(--brown-dark);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
}

.index-hero-text p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}

.index-hero-img {
    flex: 0 0 auto;
    width: 45%;
    max-width: 500px;
}

.index-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 关于我们 */
.about-section {
    padding: 60px 0;
    background: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-mid);
    line-height: 2;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.about-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* 品牌介绍 */
.brand-intro-section {
    padding: 60px 0;
    background: var(--cream);
}

.brand-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-name-block {
    text-align: center;
    padding: 40px 0;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 30px;
}

.brand-name-block h2 {
    font-size: 64px;
    font-weight: 900;
    color: var(--brown-dark);
    letter-spacing: 10px;
}

.brand-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.brand-adv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-adv-item {
    background: var(--cream);
    border-left: 4px solid var(--brown-mid);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.brand-adv-item .num {
    font-size: 12px;
    color: var(--brown-mid);
    font-weight: 700;
    margin-bottom: 4px;
}

.brand-adv-item p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* 产品优势 */
.product-adv-section {
    padding: 60px 0;
    background: var(--white);
}

.product-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-adv-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.product-adv-item p {
    text-align: center;
    font-size: 14px;
    color: var(--text-mid);
    margin-top: 8px;
    font-weight: 600;
}

/* 扶持服务流程 */
.support-section {
    padding: 60px 0;
    background: var(--cream);
}

.support-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.support-flow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px 0;
}

.flow-item {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flow-item:hover {
    transform: scale(1.08);
}

.flow-item.green { background: #6DB573; }
.flow-item.orange { background: #E8832A; }
.flow-item.red { background: #D85050; }
.flow-item.teal { background: #45B0A8; }
.flow-item.dark-green { background: #3D7A55; }
.flow-item.dark-brown { background: var(--brown-dark); }
.flow-item.pink { background: #E07A8A; }
.flow-item.light-teal { background: #7DC8C4; }

/* 企业动态 */
.news-section {
    padding: 60px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.news-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.14);
}

.news-item .img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .img-wrap img {
    transform: scale(1.05);
}

.news-item .info {
    padding: 15px;
    background: var(--cream);
}

.news-item .date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.news-item h4 {
    font-size: 15px;
    color: var(--brown-dark);
    line-height: 1.5;
    font-weight: 600;
}

/* ===== 品牌页特定样式 ===== */
.brand-page-hero {
    margin-top: 70px;
    background: var(--cream);
    padding: 60px 0;
}

.brand-page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.brand-vi-section {
    padding: 60px 0;
    background: var(--white);
}

.brand-vi-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-vi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.brand-vi-grid img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: var(--cream);
    border-radius: 8px;
    padding: 8px;
}

.brand-store-section {
    padding: 60px 0;
    background: var(--cream);
}

.store-images {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.store-images-main {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.store-images-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.store-images-row img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.brand-ip-section {
    padding: 60px 0;
    background: var(--white);
}

.brand-ip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ip-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.ip-text h3 {
    font-size: 48px;
    font-weight: 900;
    color: var(--brown-dark);
    font-style: italic;
    margin-bottom: 10px;
}

.ip-text .ip-sub {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.ip-text p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 2;
}

.ip-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ip-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== 服务页特定样式 ===== */
.service-hero {
    margin-top: 70px;
    background: var(--cream);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.service-hero-text {
    flex: 1;
    text-align: left;
}

.service-hero-text h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--brown-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-hero-text p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 2;
}

.service-hero-img {
    flex: 0 0 400px;
    max-width: 400px;
}

.service-channels {
    padding: 60px 0;
    background: #4a3728;
    position: relative;
}

.service-channels-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.service-channels-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--white);
}

.service-channels-inner h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 900;
}

.service-channels-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.channel-icon {
    font-size: 50px;
    color: var(--white);
    transition: transform 0.3s;
}

.channel-icon:hover {
    transform: scale(1.15);
}

.service-channels-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-channels-sub {
    font-size: 16px;
    opacity: 0.85;
}

.supply-section {
    padding: 60px 0;
    background: var(--cream);
}

.supply-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.supply-text h2 {
    font-size: 28px;
    color: var(--brown-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.supply-text p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 2;
}

.supply-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.flow-section {
    padding: 60px 0;
    background: #7a5c4a;
}

.flow-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--white);
}

.flow-inner .section-title h2 {
    color: var(--white);
}

.flow-inner .section-title .sub {
    color: rgba(255,255,255,0.75);
}

.join-section {
    padding: 80px 0;
    background: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-section h2 {
    font-size: 56px;
    font-weight: 900;
    color: var(--brown-dark);
    margin-bottom: 15px;
}

.join-section p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 2;
    max-width: 600px;
    margin: 0 auto 30px;
}

.join-section .slogan {
    font-size: 24px;
    font-weight: 700;
    color: var(--brown-mid);
}

.join-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.join-deco-1 {
    width: 120px;
    height: 120px;
    background: #E8C87A;
    top: 40px;
    left: 15%;
}

.join-deco-2 {
    width: 80px;
    height: 80px;
    background: #E07A8A;
    top: 80px;
    right: 15%;
}

/* ===== 动态页特定样式 ===== */
.news-page-section {
    padding: 60px 0;
    background: var(--white);
}

.news-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-article {
    max-width: 900px;
    margin: 0 auto;
}

.news-article h1 {
    font-size: 28px;
    color: var(--brown-dark);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
}

.news-article .main-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.news-article p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 2;
    margin-bottom: 16px;
}

/* ===== 首页 banner 区域（图片展示） ===== */
.index-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .about-images {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .brand-advantages {
        grid-template-columns: 1fr;
    }
    .product-adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .supply-inner {
        grid-template-columns: 1fr;
    }
    .support-flow .flow-item {
        width: 90px;
        height: 90px;
        font-size: 13px;
    }
    .join-section h2 {
        font-size: 36px;
    }
    .ip-content {
        grid-template-columns: 1fr;
    }
    .store-images-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-vi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .index-hero-text h1 {
        font-size: 28px;
    }
    .service-hero-img {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .about-images {
        grid-template-columns: 1fr;
    }
    .product-adv-grid {
        grid-template-columns: 1fr;
    }
    .support-flow .flow-item {
        width: 80px;
        height: 80px;
        font-size: 12px;
    }
}
