/* banner */
.banner {
    height: 420px;
    background: url(https://images.unsplash.com/photo-1528164344705-47542687000d?auto=format&fit=crop&w=1600&q=80) center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 24px;
}

.btn {
    background: var(--accent);
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 700;
}

/* 商品 */
h2 {
    margin: 16px 0 16px;
    font-size: 26px;
    font-weight: bold;
    color: var(--primary);
}

.product_login {
    display: flex;
    gap: 1.3rem;
}

.product_login1 {
    display: flex;
}

.product_login2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
}

.products {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.products1 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product {
    min-width: 158px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
}

.product:hover {
    transition: ease-in-out .5s;
    color: #C53D2F;
    cursor: pointer;
}

.product img {
    width: 158px;
    overflow: hidden;
}

/* 运费 */
.calc {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1.5rem
}

.calc .row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.calc input,
.calc select {
    flex: 1 1 200px;
    font-weight: bold;
    padding: 8px;
    border: 3px solid #ccc;
    border-radius: var(--radius);
}

.calc button {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
}

.calc button:hover {
    background: var(--main);
    transition: ease-in .5s;
}

.calc table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 14px;
}

.calc th,
.calc td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* FBA */
.fba {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.steps {
    display: flex;
    gap: 24px;
    text-align: center;
    flex-wrap: wrap;
}

.step {
    flex: 1 1 160px;
}

.step .num {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    line-height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
}

/* 流程 */
.flow {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.flow-steps {
    display: flex;
    gap: 24px;
    text-align: center;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1 1 140px;
}

.flow-step .num {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    line-height: 36px;
    border-radius: 50%;
    margin-bottom: 8px;
}

/* 评价 */
.reviews {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.review-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.review {
    min-width: 280px;
    background: #fff7f7;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px;
}

.stars {
    color: var(--accent);
    margin-bottom: 8px;
}

/* 会员 */
.member {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.member button {
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 12px;
}

/* Q&A モジュール */
.qa-section {
    width: 50%;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.qa-search {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.qa-search input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: var(--radius);
}

.qa-search button {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

#qaList details {
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    background: #fff7f7;
    border-radius: var(--radius);
}

#qaList summary {
    font-weight: 700;
    cursor: pointer;
}

#qaList p {
    padding-top: 8px;
    color: #555;
}

/* News モジュール */
.news-section {
    width: 48%;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.news-tag {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
}

.tag.active {
    background: var(--accent);
    color: #fff;
}

.news-list {
    list-style: none;
}

.news-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-list time {
    font-size: 13px;
    color: #777;
}

.news-list .label {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
}

.news-list a {
    font-size: 15px;
}

.more {
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.link_bg {
    width: 100%;
    overflow: hidden;
    background: #eeebe0;
    border-top: 1px solid #e5e2d7;
    border-bottom: 1px solid #e5e2d7;
    margin-top: 2rem;
}

.link {
    width: 75rem;
    overflow: hidden;
    margin: auto;
    display: flex;
    gap: 9rem;
}

.link_list {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.link_list_title {
    border-bottom: 1px solid #dddad0;
    padding-bottom: 1rem;
    font-weight: bold;
    color: #5f5442
}

.link_list ul {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.link_list li {
    margin-bottom: .2rem;
}

.link_list a {
    font-size: 14px;
    color: #999083;
}

.link_list a:hover {
    color: #BF2E27;
    text-decoration: underline;
}

.hot-search {
    margin-top: 12px;
    overflow: auto;
}

.hot-search h3 {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

.hot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-list li {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 16px;
    cursor: pointer;
    transition: .3s;
    list-style: none;
}

.hot-list li:hover {
    transform: translateY(-2px);
}

/* 颜色层级：次数越多越红 */
.hot-list .lv1 {
    background: #fff0f0;
    color: #c53d2f;
    border: 1px solid #fcc;
}

/* 前3 */
.hot-list .lv2 {
    background: #fff8f0;
    color: #ff8c00;
    border: 1px solid #ffd8a8;
}

/* 4-6 */
.hot-list .lv3 {
    background: #f7f7f7;
    color: #666;
    border: 1px solid #ddd;
}

/* 7-10 */
/* 火焰动画 */
@keyframes fire {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

.hot-list .fire::before {
    content: "🔥";
    margin-right: 4px;
    display: inline-block;
    animation: fire .8s infinite;
}

/* 侧边登录 */
.anh {
    width: 310px;
    overflow: hidden;
    margin-bottom: 5px;
}

.lt {
    float: left;
}

.rt {
    float: right;
    width: 214px;
}

.u_Avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid #ececec;
    box-shadow: 0 0 5px #fbfafa;
    margin: 5px;
}

.u_Name {
    width: 100%;
    overflow: hidden;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    color: #1E3A5F;
    margin-top: 1rem;
}

.u_Home {
    width: 214px;
    font-size: 14px;
    color: #333;
    text-align: left;
    display: block;
    margin-top: 3px;
}

.u_Home:hover {
    color: #bf2e27;
    text-decoration: underline;
}

.u_menu {
    overflow: hidden;
    display: flex;
    justify-content: space-evenly;
}

.u_menu a {
    width: 74px;
    height: 60px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: block;
}

.u_menu a:hover {
    color: #C53D2F;
    text-decoration: none;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    padding: 5px 25px;
    font-size: 15px;
    color: #C53D2F;
    background: #fff;
    border: 3px solid #C53D2F;
    border-radius: 22px;
    transition: all .3s;
    font-weight: bold;
}

.btn-logout:hover {
    background: #C53D2F;
    color: #fff;
    text-decoration: none;
}

/* 登录模态框 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: .3s;
    z-index: 999;
}

/* 打开时 */
.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* 白框 */
.modal-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    width: 320px;
    position: relative;
}

.modal-box h4 {
    margin-top: 0 0 20px
}

.modal-box input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #bbb;
    border-radius: 4px
}

.modal-box button {
    width: 100%;
    padding: 10px;
    background: #bf2e27;
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer
}

.close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    color: #666
}

/* 验证码一行 */
.captcha-line {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.captcha-line input {
    flex: 1;
    margin: 0
}

.captcha-line img {
    height: 38px;
    border: 1px solid #bbb;
    border-radius: 4px;
    cursor: pointer
}

/* 容器 */
.top-categories {
    padding: 20px;
    background: #fff;
    margin-top: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


@media (min-width:768px) {
    .tc-list {
        overflow: visible;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tc-card {
        flex: 0 0 150px;
    }
}

/* 设计令牌 */
:root {
    --orange: #ffd8a8;
    --green: #9acd32;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, .08);
    --trans: .25s ease;
}

/* 容器 */
.benefit-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* 卡片 */
.benefit-card {
    flex: 1 1 280px;
    /* 最小 280px，等分剩余空间 */
    height: 128px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--trans), box-shadow var(--trans);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

/* 文字 */
.benefit-card span {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    text-align: center;
    line-height: 1.4;
}

/* 背景色 */
.bg-orange {
    background-color: var(--orange);
}

.bg-green {
    background-color: var(--green);
}