/* 重置默认样式 */
body {
    margin: 0;
    padding: 0;
}

/* 顶部通知栏 */
.top-banner {
    background: #000;
    color: #fff;
    padding: 8px 0;
    position: relative;
    margin: 0;
}

.top-banner p {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.top-banner .close-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

/* 主要头部区域 */
.main-header {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

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

.logo {
    flex: 0 0 auto;
}

.logo img {
    max-height: 50px;
    display: block;
}

.search-box {
    flex: 1;
    max-width: 600px;
}

.search-box .input-group {
    width: 100%;
}

.search-box input {
    height: 40px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ddd;
    border-right: none;
    padding: 0 15px;
    width: 100%;
}

.search-box .btn-search {
    height: 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
}

.cart {
    flex: 0 0 auto;
    margin-left: 20px;
}

.cart a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.cart i {
    font-size: 20px;
    margin-right: 8px;
}

/* 导航菜单 */
.main-nav {
    background: #000;
    padding: 0;
    min-height: 50px;
    margin: 0;
    border: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: #00c389;
}

.nav-right {
    display: flex;
    align-items: center;
    color: #fff;
    gap: 15px;
}

.language-select {
    display: flex;
    align-items: center;
}

.language-select span {
    margin-right: 8px;
    font-size: 14px;
    color: #fff;
}

.language-select select {
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.language-select select option {
    background: #000;
    color: #fff;
}

.login-link a {
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-link a:hover {
    background: rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .search-box {
        margin: 0;
        max-width: 100%;
    }
    
    .cart {
        margin: 0;
    }
    
    .nav-content {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li a {
        text-align: center;
        padding: 10px;
    }
    
    .nav-right {
        margin-top: 10px;
        padding-bottom: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 轮播器样式 */
.container-fluid.no-padding {
    padding: 0;
    margin: 0;
}

#carouselBanner {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.carousel-inner {
    line-height: 0;
}

.carousel-inner > .item {
    line-height: 0;
}

.carousel-inner > .item > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.carousel {
    position: relative;
}

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

.carousel-inner > .item {
    position: relative;
    display: none;
    transition: .6s ease-in-out left;
}

.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
    display: block;
}

.carousel-inner > .active {
    left: 0;
}

.carousel-inner > .next,
.carousel-inner > .prev {
    position: absolute;
    top: 0;
    width: 100%;
}

.carousel-inner > .next {
    left: 100%;
}

.carousel-inner > .prev {
    left: -100%;
}

.carousel-inner > .next.left,
.carousel-inner > .prev.right {
    left: 0;
}

.carousel-inner > .active.left {
    left: -100%;
}

.carousel-inner > .active.right {
    left: 100%;
}

.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 20%;
    left: 15%;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.carousel-caption h3 {
    font-size: 36px;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
}

.carousel-caption .btn {
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 30px;
    background: #fff;
    color: #333;
    border: none;
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    font-size: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    background-color: rgba(0,0,0,0);
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.carousel-control:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.carousel-control.left {
    left: 0;
    background-image: linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);
}

.carousel-control.right {
    right: 0;
    background-image: linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);
}

.carousel-control .fa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: inline-block;
    font-size: 30px;
}

.carousel-control.left .fa {
    left: 50%;
}

.carousel-control.right .fa {
    right: 50%;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    z-index: 15;
    width: 60%;
    padding-left: 0;
    margin-left: -30%;
    text-align: center;
    list-style: none;
    margin: 0;
}

.carousel-indicators li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 1px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255,255,255,.5);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 12px;
    height: 12px;
    margin: 0;
    background-color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-inner .item img {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

.no-padding {
    padding-left: 0;
    padding-right: 0;
}

.carousel {
    margin-top: 0;
}

.carousel-inner > .item > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.main-content,
body .main-content,
#content-container .main-content {
    padding: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    overflow: auto !important;
    min-height: calc(100vh - 135px) !important;
}

/* 搜索框样式 */
.search-widget {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-widget form {
    position: relative;
    width: 100%;
}

.search-widget input[type="text"] {
    width: 100%;
    height: 45px;
    padding: 0 50px 0 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-widget input[type="text"]:focus {
    border-color: #000;
}

.search-widget button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-widget button svg {
    transition: all 0.3s ease;
}

.search-widget button:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .search-widget {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .search-widget input[type="text"] {
        height: 40px;
    }
}

/* 导航和页脚样式覆盖 */
.footer-main {
    background: #000;
    padding: 60px 0;
}

.footer-bottom {
    background: #000;
    border-top: 1px solid #333;
}

.footer-links h3 {
    color: #fff;
    border-bottom: 1px solid #333;
}

.footer-links ul li a {
    color: #fff;
}

.footer-links ul li a:hover {
    color: #00c389;
}

.contact-info p {
    color: #fff;
}

.copyright {
    color: #fff;
}

/* 主内容区域样式 */
main.content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 商品详情页面样式 */
.product-detail-page {
    margin: 0;
    padding: 0;
    width: 100%;
}