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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* 顶部活动横幅 */
.top-banner {
    background: linear-gradient(90deg, #ffd700, #ffe44d);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.banner-left {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-cartoon {
    font-size: 40px;
}

.banner-tag {
    background: #ff4d4f;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.banner-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.banner-highlight {
    color: #ff4d4f;
    font-size: 28px;
}

.banner-right {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #333;
}

.banner-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 顶部导航栏 */
.header-nav {
    background: #fff;
    height: 40px;
    border-bottom: 1px solid #e8e8e8;
}

.header-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.header-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-link {
    cursor: pointer;
}

.header-link:hover {
    color: #1890ff;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Logo + 搜索栏 */
.search-section {
    background: #fff;
    padding: 30px 0;
}

.search-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 40px;
    font-weight: 700;
    color: #1890ff;
    font-style: italic;
}

.logo-sub {
    font-size: 14px;
    color: #999;
    letter-spacing: 4px;
    margin-top: 4px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    height: 50px;
}

.search-type {
    padding: 0 20px;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    border-radius: 4px 0 0 4px;
    border: 1px solid #e8e8e8;
    border-right: none;
    cursor: pointer;
}

.search-type-text {
    font-size: 14px;
    color: #666;
}

.search-input {
    flex: 1;
    height: 100%;
    padding: 0 20px;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    outline: none;
}

.search-btn {
    height: 100%;
    padding: 0 50px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-search {
    max-width: 1400px;
    margin: 15px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    padding-left: 280px;
}

.hot-item {
    cursor: pointer;
}

.hot-item:hover {
    color: #1890ff;
}

.hot-tag {
    background: #fff1f0;
    color: #ff4d4f;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 主导航菜单 */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.main-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 40px;
}

.nav-item {
    padding: 16px 0;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.nav-item.active {
    color: #1890ff;
    font-weight: 600;
    border-bottom: 2px solid #1890ff;
    margin-bottom: -1px;
}

.nav-tag {
    position: absolute;
    top: 8px;
    right: -30px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 商品分类 */
.category-bar {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-icon {
    width: 20px;
    height: 20px;
    background: #1890ff;
    border-radius: 4px;
}

.category-item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
}

.category-item:hover {
    color: #1890ff;
    background: #f5f5f5;
}

/* 主体布局 */
.main {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 24px;
    display: flex;
    gap: 20px;
}

/* 左侧今日值得推 */
.left-section {
    width: 400px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.section-subtitle {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.hot-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
}

.hot-img {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    flex-shrink: 0;
}

.hot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-tags {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.platform-tag {
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
}

.coupon-tag {
    background: #fff7e6;
    color: #fa8c16;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid #ffd591;
}

.coupon-amount {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.hot-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.hot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sales-tag {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.price-tag {
    font-size: 20px;
    font-weight: 700;
    color: #ff4d4f;
}

.price-label {
    font-size: 12px;
    color: #999;
}

.commission-tag {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

/* 右侧主内容 */
.right-section {
    flex: 1;
}

.banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.banner-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

.banner-btn {
    background: #ffd700;
    color: #333;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.banner-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
}

/* 推荐商品区域（蓝色背景） */
.recommend-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #1890ff;
    padding: 20px;
    border-radius: 8px;
}

.recommend-card {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.recommend-img {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    flex-shrink: 0;
}

.recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommend-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.recommend-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.recommend-tag {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
}

.recommend-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.recommend-sales {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.recommend-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff4d4f;
}

.recommend-commission {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    color: #fff;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

/* 商品板块区域 */
.panels-section {
    display: flex;
    gap: 20px;
}

.panel {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.panel-header {
    margin-bottom: 20px;
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #1890ff;
}

.panel-subtitle {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

/* 新品首推 */
.new-panel {
    flex: 0 0 300px;
}

.new-product {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.new-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    margin-bottom: 15px;
}

.new-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.new-tag {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: inline-block;
}

.new-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    padding: 10px;
    border-radius: 8px;
    color: #fff;
}

.new-price {
    font-size: 24px;
    font-weight: 700;
}

.new-commission {
    font-size: 16px;
}

/* 历史新低 */
.low-product {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
}

.low-product:last-child {
    border-bottom: none;
}

.low-img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    flex-shrink: 0;
}

.low-info {
    flex: 1;
}

.low-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.low-tag {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
}

.low-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.low-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4d4f;
}

.low-old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.low-commission {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}

/* 快消个护 */
.fast-product {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
}

.fast-product:last-child {
    border-bottom: none;
}

.fast-img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    flex-shrink: 0;
}

.fast-info {
    flex: 1;
}

.fast-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.fast-tag {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
}

.fast-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fast-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4d4f;
}

.fast-commission {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}

/* 右侧悬浮工具栏 */
.float-tools {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 8px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tool-item {
    text-align: center;
    cursor: pointer;
}

.tool-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.tool-label {
    font-size: 11px;
    color: #666;
}

/* 底部 */
.footer {
    background: #fff;
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 50px;
}
