* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fc;
    font-family: "Microsoft YaHei", system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ========= 顶部导航 ========= */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: #fff;
    border-bottom: 1px solid #eef2f8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #2277ee, #5f9eff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    padding: 6px 0;
}

.nav-list a.active {
    color: #2277ee;
    border-bottom: 2px solid #2277ee;
}

.head-right {
    display: flex;
    gap: 24px;
}

.head-right a {
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    color: #2277ee;
}

.head-right a span {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* ========= 首页左右布局 ========= */
.main-box {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.banner-wrap {
    flex: 2;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    min-height: 260px;
    position: relative;
}

.banner-text {
    position: absolute;
    top: 40px;
    left: 40px;
}

.banner-text h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-text p {
    color: #ccc;
    font-size: 14px;
}

.login-box {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eef2f8;
}

.login-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.login-tip {
    font-size: 11px;
    color: #2277ee;
    background: #eef4ff;
    padding: 3px 10px;
    border-radius: 20px;
}

.inp {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
}

.inp:focus {
    border-color: #2277ee;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin: 16px 0 12px;
}

.btn-blue {
    flex: 1;
    background: #2277ee;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
}

.btn-white {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
}

.social-login {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

.tag-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eef2f8;
}

.tag-row span {
    font-size: 11px;
    color: #666;
    background: #f5f7fa;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ========= 商品列表标题 ========= */
.section-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #1a2a3a;
    margin: 40px 0 20px;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2277ee;
    margin: 10px auto 0;
    border-radius: 4px;
}

/* ========= 分类标签（新增，不影响原布局） ========= */
.category-tags {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.category-tag-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.category-tag:hover {
    background: #2277ee;
    color: #fff;
    border-color: #2277ee;
}

/* ========= 商品列表 ========= */
.goods-list-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.goods-item {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #edf2f9;
}

.good-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.good-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2277ee, #5f9eff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    object-fit: cover;
}

.good-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.good-price {
    font-size: 20px;
    color: #e53935;
    font-weight: bold;
}

.good-sold {
    font-size: 12px;
    color: #888;
}

.good-right {
    text-align: right;
}

.stock-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.auto-tag {
    font-size: 11px;
    color: #2277ee;
    background: #eef4fe;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.buy-btn {
    border: 1px solid #2277ee;
    color: #2277ee;
    background: #fff;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.buy-btn:hover {
    background: #2277ee;
    color: #fff;
}

/* ========= 底部区域 ========= */
.bottom-section {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.danmaku-section {
    flex: 2;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #edf2f9;
}

.danmaku-messages {
    min-height: 100px;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 12px;
}

.danmaku-item {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 8px 4px 0;
    background: #eef4ff;
    border-radius: 20px;
    font-size: 13px;
    color: #2277ee;
}

.danmaku-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.danmaku-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 13px;
}

.danmaku-input-area button {
    padding: 8px 20px;
    background: #2277ee;
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

.danmaku-tip {
    font-size: 11px;
    color: #999;
}

.service-section {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #edf2f9;
}

.service-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-content {
    font-size: 13px;
    color: #666;
}

/* ========= 版权 ========= */
.copyright {
    text-align: center;
    padding: 30px 20px;
    font-size: 11px;
    color: #aaa;
    border-top: 1px solid #eef2f8;
    margin-top: 40px;
    background: #fff;
}

/* ========= 移动端底部导航 ========= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: space-around;
    padding: 8px 0 14px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    border-top: 0.5px solid #eef2fc;
    z-index: 100;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #697b9a;
    text-decoration: none;
}

.bottom-nav a i {
    font-size: 20px;
    margin-bottom: 4px;
    font-style: normal;
}

.bottom-nav a.active {
    color: #2277ee;
}

/* ========= 响应式 ========= */
@media (max-width: 768px) {
    .top-header {
        padding: 12px 16px;
    }
    .nav-list {
        display: none;
    }
    .main-box {
        flex-direction: column;
        padding: 0 16px;
    }
    .login-box {
        display: none;
    }
    .banner-text h2 {
        font-size: 18px;
    }
    .banner-text p {
        font-size: 12px;
    }
    .bottom-section {
        flex-direction: column;
        padding: 0 16px;
    }
    .goods-list-wrapper {
        padding: 0 16px;
    }
    .goods-item {
        flex-direction: column;
        text-align: center;
    }
    .good-left {
        flex-direction: column;
        text-align: center;
        margin-bottom: 12px;
    }
    .good-right {
        text-align: center;
    }
    .bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
    .category-tags {
        padding: 0 16px;
    }
}
/* ========= 分类标签样式 ========= */
.category-tags {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.category-tag-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.category-tag:hover {
    background: #2277ee;
    color: #fff;
    border-color: #2277ee;
}

.category-tag.active {
    background: #2277ee;
    color: #fff;
    border-color: #2277ee;
}

.category-tag .cat-count {
    font-size: 11px;
    margin-left: 3px;
    opacity: 0.8;
}

/* 当前分类提示 */
.current-category-info {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 10px 20px;
    background: #eef4ff;
    border-radius: 12px;
    font-size: 13px;
    color: #2277ee;
}

.clear-filter {
    margin-left: 12px;
    color: #e53935;
    text-decoration: none;
}

.clear-filter:hover {
    text-decoration: underline;
}

/* 空商品提示 */
.empty-goods {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

.empty-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #2277ee;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
}
/* Banner 图片样式 */
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 20px;
}

.banner-item {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 20px;
    overflow: hidden;
}

.banner-text {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 1;
}