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

/* 使用rem进行响应式设计 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #1a1a1a; /* 高级黑背景 */
    overflow-x: hidden;
}

.container {
    width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 滚动显示动画 */
.reveal-section {
    opacity: 0;
    transform: translateY(3.125rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端菜单按钮样式 */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
}

/* 头部导航样式 */
.header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.header.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.3);
    padding: 0.625rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    max-height: 3.125rem;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav > ul > li {
    position: relative;
    margin-left: 40px;
    transition: transform 0.3s ease;
}

.main-nav > ul > li:hover {
    transform: translateY(-2px);
}

.main-nav > ul > li > a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8c6e4a;
    transition: width 0.3s ease;
}

.main-nav > ul > li:hover > a {
    color: #fff;
    background-color: rgba(140, 110, 74, 0.8);
    box-shadow: 0 4px 15px rgba(140, 110, 74, 0.3);
}

.main-nav > ul > li:hover > a::after {
    width: 100%;
}

.main-nav .active > a {
    color: #fff;
    background-color: rgba(140, 110, 74, 0.8);
    box-shadow: 0 4px 15px rgba(140, 110, 74, 0.3);
}

/* 品牌标题样式 */
.brand-story-wrapper h2,
.brand-concept-wrapper h2 {
    font-size: 1.5rem;
    color: #8c6e4a;
    text-align: center;
    margin: 0.625rem 0 1.25rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #8c6e4a, #d4b171, #8c6e4a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    text-shadow: 0 2px 10px rgba(140, 110, 74, 0.3);
    font-weight: normal;
    white-space: nowrap;
}

.brand-story-wrapper h2 span,
.brand-concept-wrapper h2 span {
    margin-left: 15px;
    display: inline-block;
    vertical-align: middle;
}

.brand-story-wrapper h2 span:first-child,
.brand-concept-wrapper h2 span:first-child {
    margin-left: 0;
}

.reveal-section .brand-story-wrapper h2,
.reveal-section .brand-concept-wrapper h2 {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.reveal-section.active .brand-story-wrapper h2,
.reveal-section.active .brand-concept-wrapper h2 {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 94px;
    min-width: 94px;
    background-color: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.main-nav > ul > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    font-size: 14px;
    display: block;
    padding: 12px 15px;
    color: #ccc;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(140, 110, 74, 0.2);
    color: #fff;
    border-left-color: #8c6e4a;
    padding-left: 20px;
}

/* 防伪查询样式 */
.anti-counterfeit {
    position: relative;
}

.anti-counterfeit:hover .qrcode-hover {
    display: block;
}

.qrcode-hover {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-color: #fff;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    margin-top: 5px;
}

.qrcode-hover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 轮播样式 */
.carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-items {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.carousel-item.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

.carousel-item.next {
    transform: translateX(100%);
    opacity: 0;
    z-index: 0;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9); /* 调整背景图片亮度 */
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.carousel-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 3px;
}

.carousel-content p {
    font-size: 24px;
    letter-spacing: 5px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(140, 110, 74, 0.8);
    border-color: #8c6e4a;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.carousel-indicators span {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicators span:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-indicators span.active {
    background-color: #8c6e4a;
    border-color: #fff;
    transform: scale(1.2);
}

/* 品牌理念区域样式 */
.brand-section {
    padding: 100px 0;
    background-color: #111;
}

.brand-section .container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.brand-story-wrapper,
.brand-concept-wrapper {
    position: relative;
}

.brand-section h2 {
    font-size: 28px;
    color: #8c6e4a;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    position: relative;
}

.brand-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #8c6e4a;
    margin: 20px auto 0;
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand-content.concept-reverse {
    flex-direction: row-reverse;
}

.story-image,
.concept-image {
    width: 45%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.story-image:hover,
.concept-image:hover {
    transform: scale(1.02);
}

.story-image img,
.concept-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.story-image:hover img,
.concept-image:hover img {
    transform: scale(1.05);
}

.story-text,
.concept-text {
    width: 55%;
    padding: 20px;
}

.story-text p,
.concept-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 0;
    text-align: justify;
}

/* 热门花色区域样式 */
.popular-colors {
    padding: 100px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.popular-colors h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
}

.popular-colors h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8c6e4a;
    margin: 20px auto 0;
}

.colors-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 20px;
}

.color-item {
    width: 23%;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.color-item:hover {
    transform: translateY(-10px);
}

.color-item img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.color-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.color-item span {
    font-size: 18px;
    color: #ccc;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.color-item span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #8c6e4a;
    transition: width 0.3s ease;
}

.color-item:hover span::after {
    width: 100%;
}

.color-item:hover span {
    color: #8c6e4a;
}

.view-more {
    display: inline-block;
    padding: 12px 40px;
    background-color: #8c6e4a;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #a88858;
    transition: left 0.3s ease;
    z-index: -1;
}

.view-more:hover::before {
    left: 0;
}

.view-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(140, 110, 74, 0.4);
}

.view-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-more:hover i {
    transform: translateX(5px);
}

/* 页脚样式 */
.footer {
    background-color: #0d0d0d;
    color: #fff;
    padding: 3.75rem 0 1.25rem;
}

/* 底部备案号样式 */
.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 75rem) { /* 1200px */
    .container {
        width: 90%;
        max-width: 100%;
    }
    
    .main-nav > ul > li {
        margin-left: 1.25rem;
    }
    
    .brand-content {
        flex-direction: column;
        text-align: center;
    }
    
    .story-image,
    .concept-image,
    .story-text,
    .concept-text {
        width: 100%;
    }
    
    .brand-concept-wrapper .brand-content {
        flex-direction: column;
    }
    
    .colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .brand-content,
    .brand-content.concept-reverse {
        flex-direction: column;
    }
    
    .story-image,
    .concept-image,
    .story-text,
    .concept-text {
        width: 100%;
    }
    
    .colors-grid {
        flex-wrap: wrap;
    }
    
    .color-item {
        width: 48%;
        margin-bottom: 30px;
    }
}

@media (max-width: 48rem) { /* 768px */
    /* 移动端菜单 */
.mobile-menu-toggle {
    display: block !important;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
    width: 48px !important;
    height: 48px !important;
    background-color: #8c6e4a !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 22px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* 确保图标不会被其他样式覆盖 */
.mobile-menu-toggle i {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    color: #fff !important;
}

/* 确保Font Awesome伪元素在任何状态下都存在并显示 */
.mobile-menu-toggle i::before,
.mobile-menu-toggle.active i::before {
    display: inline-block !important;
    font-family: 'FontAwesome' !important;
    opacity: 1 !important;
    color: #fff !important;
}

.mobile-menu-toggle:hover {
    background-color: #6a5337 !important;
    transform: scale(1.05) !important;
}

/* 移动端侧边菜单样式 */
.main-nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 75% !important;
    max-width: 280px !important;
    height: 100vh !important;
    background-color: rgba(17, 17, 17, 0.99) !important;
    z-index: 998 !important;
    transition: right 0.4s ease !important;
    overflow-y: auto !important;
    padding-top: 80px !important;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px) !important;
}

.main-nav.active {
    right: 0 !important;
}

/* 移动端菜单列表样式 */
.main-nav > ul {
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.main-nav > ul > li {
    margin: 0 !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.main-nav > ul > li > a {
    padding: 16px 20px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #f0f0f0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    text-align: left !important;
    font-size: 16px !important;
    position: relative !important;
}

/* 移动端菜单项右侧箭头和底部下划线 */
.main-nav > ul > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 20px !important;
    width: calc(100% - 40px) !important;
    height: 2px !important;
    background-color: #8c6e4a !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

/* 移动端菜单项右侧箭头 */
.main-nav > ul > li > a span.arrow {
    margin-left: auto;
}

/* 确保mobile-menu-toggle按钮在激活状态下图标仍然显示 */
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    outline: none;
}

/* 确保图标不会因为active状态而被覆盖 */
.mobile-menu-toggle.active i,
.mobile-menu-toggle i {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    color: #fff !important;
}

.main-nav > ul > li:hover > a {
    background-color: rgba(140, 110, 74, 0.2) !important;
    color: #8c6e4a !important;
}

.main-nav > ul > li:hover > a::after {
    transform: scaleX(1) !important;
}

.main-nav .active > a {
    background-color: rgba(140, 110, 74, 0.2) !important;
    color: #8c6e4a !important;
    font-weight: 500 !important;
}

.main-nav .active > a::after {
    transform: scaleX(1) !important;
}

/* 移动端下拉菜单样式 */
.dropdown-menu {
    position: static !important;
    width: 100% !important;
    background-color: rgba(26, 26, 26, 0.7) !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.main-nav > ul > li.active .dropdown-menu {
    max-height: 31.25rem !important;
}

.dropdown-menu li {
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dropdown-menu li a {
    padding: 14px 40px !important;
    color: #ddd !important;
    background-color: transparent !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* 移除下拉菜单项的伪元素箭头，避免与HTML中的Font Awesome图标冲突 */
.dropdown-menu li a::after {
    content: none !important;
}

.dropdown-menu li a:hover {
    background-color: rgba(140, 110, 74, 0.15) !important;
    color: #8c6e4a !important;
    padding-left: 45px !important;
    border-left-color: #8c6e4a !important;
}

/* 移动端下拉菜单展开指示器 */
.main-nav > ul > li:has(.dropdown-menu) > a span.arrow {
    content: '\\f107';
    font-family: 'FontAwesome';
    transition: transform 0.3s ease;
}

.main-nav > ul > li.active:has(.dropdown-menu) > a span.arrow {
    transform: rotate(180deg);
}

/* 移动端防伪查询特殊处理 */
.main-nav > ul > li.anti-counterfeit .qrcode-hover {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    width: 200px !important;
    height: 200px !important;
    z-index: 9999 !important;
    margin-top: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.main-nav > ul > li.anti-counterfeit:hover .qrcode-hover {
    transform: translate(-50%, -50%) scale(1) !important;
    left: 50% !important;
    right: auto !important;
}
    
    /* 轮播调整 */
    .carousel-content h1 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    /* 品牌理念调整 */
    .brand-content {
        padding: 30px 0;
    }
    
    .brand-section h2 {
        font-size: 24px;
    }
    
    /* 热门花色调整 */
    .colors-grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚调整 */
    .footer-column {
        margin-bottom: 30px;
    }
    
    /* 防伪查询二维码调整 */
    .qrcode-hover {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        z-index: 9999;
        width: 12.5rem;
        height: 12.5rem;
        margin-top: 0;
    }
    
    .brand-story-wrapper,
    .brand-concept-wrapper {
        margin-bottom: 50px;
    }
    
    .color-item {
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 40px;
    }
    
    /* 移动端联系信息调整 */
    .contact-item .qrcode {
        position: fixed;
        right: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0);
        z-index: 9999;
    }
    
    .contact-item:hover .qrcode {
        transform: translate(-50%, -50%) scale(1);
        right: auto;
        left: 50%;
    }
    
    .contact-item .qrcode::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .carousel-content {
        padding: 10px;
    }
    
    .carousel-content h1 {
        font-size: 20px;
    }
    
    .brand-section h2 {
        font-size: 20px;
    }
    
    .popular-colors h2 {
        font-size: 24px;
    }
}