/* 尚品购（ShangPinGou） - 首页专用样式表 (index.css) */

/* ================= 1. 三列复合主主体 (.main-section) ================= */
.main-section {
    margin-top: 10px;
}

/* 左侧分类菜单 (.category-menu) */
.category-menu {
    width: 200px;
    height: 460px;
    background-color: #2b2b2b;
    float: left;
    position: relative;
}

.category-menu ul.menu-list > li {
    height: 46px;
    line-height: 46px;
    padding: 0 15px;
    transition: background-color 0.2s ease;
}

.category-menu ul.menu-list > li:hover {
    background-color: #e4393c;
}

.category-menu ul.menu-list > li a {
    color: #ffffff;
    font-size: 14px;
    display: block;
}

.category-menu .sub-menu {
    display: none;
    position: absolute;
    left: 200px;
    top: 0;
    width: 600px;
    height: 460px;
    background-color: #ffffff;
    border: 2px solid #e4393c;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.15);
    z-index: 100;
    padding: 20px;
}

.category-menu ul.menu-list > li:hover .sub-menu {
    display: block;
}

.sub-menu dl {
    display: flex;
    margin-bottom: 15px;
    line-height: 24px;
}

.sub-menu dt {
    width: 80px;
    font-weight: bold;
    color: #333333;
    text-align: right;
    padding-right: 15px;
}

.sub-menu dd {
    flex: 1;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.sub-menu dd a {
    color: #666666;
    margin-right: 12px;
    font-size: 12px;
    display: inline-block;
}

.sub-menu dd a:hover {
    color: #e4393c;
}

/* 中间轮播图区域 (#banner-slider) */
.banner-container {
    width: 730px;
    height: 460px;
    float: left;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

#banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

#banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 轮播图控制按钮 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 60px;
    background-color: rgba(0,0,0,0.3);
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.banner-arrow:hover {
    background-color: rgba(228, 57, 60, 0.8);
}

.banner-arrow.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.banner-arrow.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicators span.active {
    background-color: #e4393c;
    width: 28px;
    border-radius: 6px;
}

/* 右侧尚品快报与平台公告 (.news-sidebar) */
.news-sidebar {
    width: 250px;
    height: 460px;
    float: right;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.news-sidebar .news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.news-sidebar .news-header h3 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.news-sidebar .news-list {
    margin-top: 12px;
}

.news-sidebar .news-list li {
    margin-bottom: 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-sidebar .news-tag {
    background-color: #fdeeee;
    color: #e4393c;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 6px;
    font-size: 11px;
}

.news-sidebar .news-tag.hot {
    background-color: #e4393c;
    color: #fff;
    font-weight: bold;
}

.news-sidebar .quick-services {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.news-sidebar .service-item {
    font-size: 12px;
    color: #666;
    display: block;
}

.news-sidebar .service-item:hover {
    color: #e4393c;
}

.news-sidebar .service-icon {
    font-size: 20px;
    margin-bottom: 4px;
    color: #e4393c;
}

/* ================= 2. 通用楼层容器与头部 (.floor-container) ================= */
.floor-container {
    margin-top: 30px;
    scroll-margin-top: 50px; /* 锚点定位防顶栏遮挡 */
}

.floor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2b2b2b;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.floor-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.floor-title h2 {
    font-size: 20px;
    font-weight: bold;
    color: #2b2b2b;
    border-left: 4px solid #e4393c;
    padding-left: 10px;
}

.floor-title span {
    font-size: 13px;
    color: #888;
}

.floor-links {
    font-size: 13px;
    color: #999;
}

.floor-links a {
    color: #666;
    margin: 0 4px;
}

.floor-links a:hover,
.floor-more:hover {
    color: #e4393c;
}

.floor-more {
    color: #e4393c;
    font-weight: 500;
    font-size: 13px;
}

/* ================= 3. 1F 秒杀专区 (.seckill-section) ================= */
.seckill-section {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.seckill-header {
    background: linear-gradient(90deg, #e4393c, #ff6b6b);
    color: #ffffff;
    padding: 15px 20px;
    border-bottom: none;
    margin-bottom: 0;
}

.seckill-title h2 {
    color: #fff;
    border-left: none;
    padding-left: 0;
}

.seckill-title span {
    color: rgba(255,255,255,0.85);
}

.countdown-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.countdown-box .time-badge {
    background-color: #2b2b2b;
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.seckill-goods-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 15px;
    gap: 15px;
}

.seckill-card {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.seckill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #e4393c;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
}

.seckill-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.seckill-card .goods-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
}

.seckill-card .price-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
}

.seckill-card .seckill-price {
    color: #e4393c;
    font-size: 16px;
    font-weight: bold;
}

.seckill-card .origin-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

/* ================= 4. 2F 黑金排行榜 (.ranking-section) ================= */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ranking-card {
    background: linear-gradient(180deg, #333333 0%, #1a1a1a 100%);
    color: #ffffff;
    border-radius: 6px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.ranking-card:hover {
    transform: translateY(-4px);
}

.ranking-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background-color: #ffd700;
    color: #1a1a1a;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ranking-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin: 15px 0 10px 0;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 10px;
}

.ranking-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: #f1f1f1;
    margin-bottom: 4px;
}

.ranking-card .rank-desc {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 6px;
}

.ranking-card .rank-price {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

/* ================= 5. 3F/4F/5F 商品楼层 5列网格 (.floor-grid-5) ================= */
.floor-grid-5 {
    display: grid;
    grid-template-columns: 240px repeat(4, 1fr);
    gap: 15px;
}

.floor-banner-card {
    border-radius: 6px;
    padding: 25px 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.floor-banner-card.phone-bg {
    background: linear-gradient(135deg, #1f4e79 0%, #2e5b82 100%);
}

.floor-banner-card.computer-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.floor-banner-card.clothing-bg {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
}

.floor-banner-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.floor-banner-card p {
    font-size: 13px;
    opacity: 0.9;
}

.btn-floor-action {
    display: inline-block;
    background-color: rgba(255,255,255,0.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(4px);
    width: fit-content;
    transition: background-color 0.2s ease;
}

.btn-floor-action:hover {
    background-color: #fff;
    color: #333;
}

.floor-item-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floor-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.floor-item-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 10px;
}

.floor-item-card h4 {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floor-item-card .item-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floor-item-card .item-price {
    font-size: 16px;
    font-weight: bold;
    color: #e4393c;
}

/* ================= 6. 6F 品牌多媒体影音专区 (.media-section) ================= */
.media-section {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.media-container {
    display: flex;
    gap: 25px;
}

.video-card {
    flex: 1.2;
    background-color: #1e1e1e;
    color: #fff;
    border-radius: 6px;
    padding: 16px;
}

.media-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #f1f1f1;
}

.video-wrapper video {
    width: 100%;
    height: 260px;
    border-radius: 4px;
    background-color: #000;
    outline: none;
}

.video-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    margin-top: 10px;
}

.audio-card {
    flex: 0.8;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.audio-card .media-title {
    color: #333;
}

.audio-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.audio-wrapper audio {
    width: 100%;
    margin-bottom: 20px;
}

.media-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.feature-item .icon {
    font-size: 24px;
}

.feature-item h5 {
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

.feature-item p {
    font-size: 11px;
    color: #888;
}

/* ================= 7. 左侧固定悬浮【楼层电梯导航】 (.elevator-nav) ================= */
.elevator-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 6px;
    overflow: hidden;
    z-index: 999;
    border: 1px solid #e0e0e0;
}

.elevator-title {
    background-color: #e4393c;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 6px 2px;
}

.elevator-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elevator-nav ul li {
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.elevator-nav ul li a {
    display: block;
    padding: 8px 2px;
    color: #555;
    font-size: 12px;
    transition: all 0.2s ease;
}

.elevator-nav ul li a .floor-num {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #999;
}

.elevator-nav ul li:hover a,
.elevator-nav ul li.active a {
    background-color: #e4393c;
    color: #ffffff;
}

.elevator-nav ul li:hover a .floor-num,
.elevator-nav ul li.active a .floor-num {
    color: #ffffff;
}

.elevator-nav ul li.btn-top {
    background-color: #f9f9f9;
}

.elevator-nav ul li.btn-top a span {
    display: block;
    font-size: 10px;
}

/* ================= 8. 右侧固定悬浮【工具条】 (.toolbar-right) ================= */
.toolbar-right {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    background-color: #2b2b2b;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.toolbar-item {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toolbar-item a {
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.toolbar-item:hover {
    background-color: #e4393c;
}

.tool-tip {
    position: absolute;
    right: 36px;
    top: 0;
    background-color: #e4393c;
    color: #ffffff;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
    border-radius: 4px 0 0 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, right 0.2s ease;
}

.toolbar-item:hover .tool-tip {
    opacity: 1;
    right: 36px;
}

.tool-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #e4393c;
    color: #fff;
    font-size: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
