:root {
    --primary-color: #8B0000;
    --secondary-color: #4A0404;
    --text-color: #333;
    --light-color: #fff;
    --background-color: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式优化 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    max-width: 1400px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 10px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s;
    display: block;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after {
    width: 70%;
}

/* 当前活动页面的样式 */
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a.active::after {
    width: 70%;
}

/* 滚动时导航栏样式变化 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
}

/* 轮播图样式 */
.hero-slider {
    margin-top: 80px;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 控制按钮样式 */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 100;
}

.prev-slide,
.next-slide {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-slide {
    left: 30px;
}

.next-slide {
    right: 30px;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 进度条样式 */
.slider-progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.progress-item {
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.progress-item.active {
    background: rgba(255, 255, 255, 0.8);
}

.progress-text {
    color: white;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 产品网格样式 */
.products-grid {
    padding: 80px 0;
    background: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.5em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.product-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-icon img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 品牌历史时间轴样式 */
.history-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.year {
    position: absolute;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-item:nth-child(odd) .year {
    right: -90px;
}

.timeline-item:nth-child(even) .year {
    left: -90px;
}

/* 视频区域样式 */
.video-section {
    padding: 80px 0;
    background: var(--light-color);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.video-container video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-description {
    padding: 20px;
}

.video-description h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.video-description p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1em;
}

/* 下拉菜单样式 */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 1em;
    display: block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(139, 0, 0, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu li a::after {
    display: none;
}

/* 添加下拉箭头指示器 */
.has-dropdown > a::before {
    content: '▾';
    margin-left: 5px;
    font-size: 0.8em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a::before {
    transform: rotate(180deg);
}

/* 产品详情弹窗样式 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

.product-gallery {
    position: relative;
}

.modal-product-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.modal-product-title {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.product-specs,
.product-benefits,
.product-usage {
    margin-bottom: 20px;
}

.product-specs h3,
.product-benefits h3,
.product-usage h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.modal-product-benefits {
    list-style: none;
    padding-left: 0;
}

.modal-product-benefits li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.modal-product-benefits li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
} 