/* 全局样式 */
body {
    background-color: #ffffff;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 16px; /* 设置主要显示文字为16px */
}

/* Header样式 */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.nav-link {
    color: #333 !important;
    margin-right: 1rem;
    transition: color 0.3s;
    font-size: 16px;
}
.nav-link:hover {
    color: #e53e3e !important;
}

/* PC端下拉菜单鼠标滑过显示 */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .dropdown-menu {
        display: none;
    }
}

/* 确保下拉菜单正确定位 */
.dropdown-menu {
    border-radius: 0;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 下拉菜单项悬停效果 */
.dropdown-item {
    transition: background-color 0.2s;
    font-size: 14px; /* 下拉菜单项使用小字14px */
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #e53e3e;
}

/* 幻灯片样式 */
.carousel {
    position: relative;
}
.carousel-item img {
    height: auto;
    object-fit: contain;
    width: 100%;
}
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}
.carousel-indicators button {
    width: 20px;
    height: 4px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    transition: all 0.3s;
    box-sizing: content-box;
    padding: 0;
}
.carousel-indicators button.active {
    background-color: #ffffff;
    width: 25px;
}

/* 幻灯片样式 */
.desktop-carousel .carousel-item img {
    height: auto;
    object-fit: contain;
    width: 100%;
}

/* 幻灯片响应式样式 */
.desktop-carousel {
    display: block;
}

.mobile-carousel {
    display: none;
}

/* 内容区域样式 */
.container {
    max-width: 1200px;
}
/* 故事内容中的图片响应式样式 */
.story-content img {
    max-width: 100% !important;
    height: auto;
    display: block;
    box-sizing: border-box;
}
.ad-banner img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.ad-pair img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}
.ad-pair img:hover {
    transform: scale(1.02);
}

/* Footer样式 */
.footer {
    background-color: #333333;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
}
.footer h5 {
    margin-bottom: 1rem;
    font-size: 16px; /* 页脚标题使用主要文字大小 */
    font-weight: bold;  
}
.footer h5 a {color:#fff; text-decoration: none;}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer li {
    margin-bottom: 0.5rem;
}
.footer li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px; /* 页脚链接使用小字14px */
}
.footer a:hover {
    color: #ffffff;
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #555555;
    font-size: 14px; /* 版权信息使用小字14px */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
    .ad-banner img {
        height: 200px;
    }
    .ad-pair img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* 移动端幻灯片样式 */
    .desktop-carousel {
        display: none;
    }
    
    .mobile-carousel {
        display: block;
    }
    
    .mobile-carousel .carousel-item img {
        height: auto;
        width: 100%;
    }
}

/* 移动端侧边菜单样式 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #333;
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-nav {
    padding: 70px 0 20px;
    list-style: none;
}

.mobile-menu-link {
    display: block;
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: background-color 0.3s ease;
    position: relative;
    font-size: 16px; /* 移动菜单主链接使用主要文字大小 */
}

.mobile-menu-link:hover {
    background-color: #444;
    color: #fff;
}

.mobile-dropdown-toggle::after {
    content: '>';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.open::after {
    transform: translateY(-50%) rotate(90deg);
}

.mobile-menu-dropdown {
    display: none;
    list-style: none;
    padding: 0;
    background-color: #444;
}

.mobile-menu-dropdown.show {
    display: block;
}

.mobile-menu-dropdown li a {
    display: block;
    padding: 12px 45px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s ease;
    font-size: 14px; /* 移动菜单下拉项使用小字14px */
}

.mobile-menu-dropdown li a:hover {
    background-color: #555;
    color: #fff;
}

.mobile-menu-dropdown li:last-child a {
    border-bottom: none;
}

/* 移动端菜单按钮样式 */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    display: none;
}

/* 面包屑导航样式 */
.breadcrumb-section {
    background-color: #f8f8f8;
    padding: 40px 0;
    margin-bottom: 30px;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.breadcrumb-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.breadcrumb-path {
    font-size: 14px;
    color: #888;
}

.breadcrumb-path a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-path a:hover {
    color: #e53e3e;
}

.current-page {
    color: #e53e3e;
    font-weight: bold;
}

/* 品牌故事内容样式 */
.brand-story-content {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.story-main-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.story-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.story-content p {
    margin-bottom: 20px;
}

.story-image-container {
    margin: 30px 0;
    text-align: center;
}

.story-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* 移动端菜单的登录注册按钮样式 */
.mobile-menu-auth {
    padding: 20px 20px;
    gap: 10px;
}

.mobile-menu-auth .btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-menu-auth .btn-primary {
    background-color: #e53e3e;
    border: 1px solid #e53e3e;
    color: white;
}

.mobile-menu-auth .btn-primary:hover {
    background-color: #c53030;
    border-color: #c53030;
}

.mobile-menu-auth .btn-outline-primary {
    background-color: transparent;
    border: 1px solid #e53e3e;
    color: white;
}

.mobile-menu-auth .btn-outline-primary:hover {
    background-color: #e53e3e;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .breadcrumb-title {
        font-size: 1.8rem;
    }
    
    .breadcrumb-subtitle {
        font-size: 14px;
    }
    
    .story-main-title {
        font-size: 1.8rem;
    }
    
    .story-content {
        font-size: 16px;
    }
}

/* 响应式设计 */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-collapse {
        display: none;
    }
    
    /* 隐藏原Bootstrap折叠菜单 */
    #mainMenu {
        display: none !important;
    }
    
    /* 隐藏Bootstrap默认菜单按钮 */
    .navbar-toggler {
        display: none;
    }
    
    /* 移动logo位置 */
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header .navbar {
        width: 100%;
        justify-content: space-between;
    }
}