/* ==========================================================
   商城版前台公共样式（导航 / 文章 / 商城 页面共用）
   风格延续墨此导航页：白底卡片 + 圆角 + 柔和阴影 + 渐变强调
   ========================================================== */
:root {
    --aw-main: #4e6ef2;
    --aw-main2: #7b4df2;
    --aw-radius: 16px;
    --aw-text: #2b3145;
    --aw-sub: #7a8399;
    --aw-line: #eef1f7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f4f6fb;
    color: var(--aw-text);
}

a {
    text-decoration: none !important;
}

/* 顶部导航 */
.aw-header {
    background: #fff;
    box-shadow: 0 2px 14px rgba(24, 39, 75, .06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.aw-header .aw-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.aw-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--aw-text);
}

.aw-brand img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: cover;
}

.aw-nav {
    flex: 1 1 auto;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.aw-nav a {
    padding: 7px 13px;
    font-size: 14px;
    color: #4b5468;
    border-radius: 10px;
    transition: .25s;
}

.aw-nav a:hover,
.aw-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--aw-main), var(--aw-main2));
}

/* 容器 */
.aw-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 16px 46px;
}

.aw-panel {
    background: #fff;
    border-radius: var(--aw-radius);
    box-shadow: 0 8px 24px rgba(24, 39, 75, .06);
    padding: 20px 22px;
    margin-bottom: 18px;
}

.aw-page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.aw-page-desc {
    font-size: 13px;
    color: var(--aw-sub);
    margin: 0 0 18px;
}

/* 文章列表 */
.aw-article-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--aw-line);
}

.aw-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aw-article-cover {
    flex: 0 0 180px;
    width: 180px;
    height: 112px;
    border-radius: 12px;
    background: #eef1f7 center/cover no-repeat;
    display: block;
}

.aw-article-main {
    flex: 1 1 auto;
    min-width: 0;
}

.aw-article-main h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.5;
}

.aw-article-main h3 a {
    color: var(--aw-text);
}

.aw-article-main h3 a:hover {
    color: var(--aw-main);
}

.aw-article-summary {
    font-size: 13.5px;
    color: var(--aw-sub);
    line-height: 1.7;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aw-meta {
    font-size: 12.5px;
    color: #9aa2b5;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* 文章详情正文 */
.aw-article-body {
    font-size: 15.5px;
    line-height: 1.9;
    color: #333a4d;
    word-break: break-word;
}

.aw-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 12px auto;
}

.aw-article-body h1,
.aw-article-body h2,
.aw-article-body h3 {
    margin: 22px 0 12px;
    font-weight: 700;
}

.aw-article-body p {
    margin: 0 0 14px;
}

.aw-article-body pre {
    background: #f6f8fc;
    border: 1px solid var(--aw-line);
    border-radius: 10px;
    padding: 12px;
    overflow: auto;
}

.aw-article-body blockquote {
    border-left: 4px solid var(--aw-main);
    background: #f7f9ff;
    margin: 0 0 14px;
    padding: 10px 14px;
    color: #5a6379;
}

/* 商品网格 */
.aw-goods-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.aw-goods-card {
    background: #fff;
    border-radius: var(--aw-radius);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(24, 39, 75, .07);
    transition: .25s;
    display: flex;
    flex-direction: column;
}

.aw-goods-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(24, 39, 75, .12);
}

.aw-goods-cover {
    width: 100%;
    height: 168px;
    background: #eef1f7 center/cover no-repeat;
    display: block;
    position: relative;
}

.aw-goods-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(30, 36, 52, .62);
}

.aw-goods-tag.soldout {
    background: #8d95a8;
}

.aw-goods-tag.unlimited {
    background: #17a673;
}

.aw-goods-info {
    padding: 12px 14px 14px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.aw-goods-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--aw-text);
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 43px;
}

.aw-goods-price {
    color: #f0416c;
    font-size: 18px;
    font-weight: 700;
    margin-top: auto;
}

.aw-goods-price small {
    font-size: 12px;
    font-weight: 400;
}

/* 商品详情 */
.aw-detail {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.aw-detail-cover {
    flex: 0 0 380px;
    max-width: 100%;
    height: 300px;
    border-radius: var(--aw-radius);
    background: #eef1f7 center/cover no-repeat;
    box-shadow: 0 8px 24px rgba(24, 39, 75, .08);
}

.aw-detail-info {
    flex: 1 1 320px;
    min-width: 0;
}

.aw-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #f0416c;
    margin: 6px 0 12px;
}
.aw-detail-original {
    font-size: 15px;
    font-weight: 400;
    color: #9aa2b5;
    text-decoration: line-through;
    margin-left: 8px;
}

.aw-buy-form .form-control {
    border-radius: 10px;
    border-color: #e3e7f1;
    height: 42px;
    font-size: 14px;
}

.aw-buy-form label {
    font-size: 13.5px;
    font-weight: 600;
    color: #4b5468;
    margin-bottom: 6px;
}

/* 按钮 */
.aw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--aw-main), var(--aw-main2));
    cursor: pointer;
    transition: .25s;
}

.aw-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

.aw-btn:disabled,
.aw-btn.disabled {
    background: #c8cede;
    cursor: not-allowed;
    transform: none;
}

.aw-btn-block {
    width: 100%;
}

.aw-btn-sm {
    padding: 6px 13px;
    font-size: 13px;
    border-radius: 9px;
}

.aw-btn-light {
    background: #f2f4fa;
    color: #4b5468 !important;
}

.aw-btn-light:hover {
    color: #4b5468;
}

/* 表格 */
.aw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.aw-table th,
.aw-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--aw-line);
    vertical-align: middle;
}

.aw-table th {
    color: #6b7591;
    font-weight: 600;
    background: #fafbfe;
    white-space: nowrap;
}

.aw-table td {
    color: #3b4358;
}

/* 订单状态 */
.aw-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.aw-badge-default {
    background: #eef1f7;
    color: #6b7591;
}

.aw-badge-warning {
    background: #fff4e0;
    color: #d98a12;
}

.aw-badge-info {
    background: #e8f1ff;
    color: #2f6fe4;
}

.aw-badge-primary {
    background: #ece8ff;
    color: #6b4df2;
}

.aw-badge-success {
    background: #e6f7ef;
    color: #17a673;
}

/* 支付二维码 */
.aw-pay-box {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.aw-pay-item {
    flex: 1 1 220px;
    text-align: center;
    background: #fafbfe;
    border: 1px dashed #dfe4ef;
    border-radius: var(--aw-radius);
    padding: 16px;
}

.aw-pay-item img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.aw-pay-item .aw-pay-name {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 4px;
}

.aw-pay-item .aw-pay-tip {
    font-size: 12.5px;
    color: var(--aw-sub);
}

/* 支付方式分区 */
.aw-pay-section { margin-bottom: 18px; }
.aw-pay-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--aw-text);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--aw-main);
}
.aw-pay-section-title i { color: var(--aw-main); margin-right: 6px; }

.aw-pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.aw-pay-method {
    display: block;
    background: #fff;
    border: 1px solid #e3e8f2;
    border-radius: 10px;
    padding: 14px 16px;
    transition: .2s;
}
.aw-pay-method:hover { border-color: var(--aw-main); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(78, 110, 242, .12); }
.aw-pay-method i { font-size: 20px; margin-right: 8px; vertical-align: -2px; }
.aw-pay-method b { font-size: 14.5px; color: var(--aw-text); }
.aw-pay-method small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--aw-sub); line-height: 1.6; }
.aw-pay-go { display: block; margin-top: 10px; font-size: 13px; color: var(--aw-main); font-weight: 600; }
.aw-pay-go i { font-size: 13px; margin: 0 0 0 4px; color: var(--aw-main); }

@media (max-width: 900px) {
    .aw-pay-methods { grid-template-columns: 1fr; }
}

/* 空状态 */
.aw-empty {
    text-align: center;
    padding: 52px 16px;
    color: var(--aw-sub);
    font-size: 14px;
}

.aw-empty i {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
    color: #ccd3e3;
}

/* 分页 */
.aw-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.aw-pager a,
.aw-pager span {
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    background: #fff;
    color: #4b5468;
    box-shadow: 0 4px 12px rgba(24, 39, 75, .06);
}

.aw-pager .current {
    color: #fff;
    background: linear-gradient(135deg, var(--aw-main), var(--aw-main2));
}

/* 页脚 */
.aw-footer {
    text-align: center;
    font-size: 12.5px;
    color: #9aa2b5;
    padding: 8px 16px 30px;
}

@media (max-width: 900px) {
    .aw-goods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aw-detail-cover {
        flex: 1 1 100%;
    }
}

@media (max-width: 560px) {
    .aw-article-cover {
        flex: 0 0 110px;
        width: 110px;
        height: 78px;
    }

    .aw-goods-cover {
        height: 132px;
    }

    .aw-header .aw-inner {
        height: auto;
        padding: 10px 14px;
        flex-wrap: wrap;
    }

    .aw-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .aw-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* ==========================================================
   文章模块（卡片网格 / 独立分类筛选 / 网盘下载区）
   PC 端一行 4 个卡片，移动端（≤900px）一行 2 个卡片
   ========================================================== */
.aw-article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.aw-article-card {
    background: #fff;
    border-radius: var(--aw-radius);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(24, 39, 75, .07);
    transition: .25s;
    display: flex;
    flex-direction: column;
}

.aw-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(24, 39, 75, .12);
}

.aw-card-cover {
    display: block;
    width: 100%;
    height: 150px;
    background: #eef1f7 center/cover no-repeat;
    position: relative;
}

.aw-card-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--aw-main), var(--aw-main2));
    color: rgba(255, 255, 255, .9);
    font-size: 30px;
}

.aw-card-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(30, 36, 52, .62);
    max-width: 76%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aw-card-tag.lock {
    background: rgba(217, 119, 6, .92);
}

.aw-card-body {
    padding: 13px 14px 14px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.aw-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--aw-text);
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 43px;
}

.aw-card-title a {
    color: var(--aw-text);
}

.aw-card-title a:hover {
    color: var(--aw-main);
}

.aw-card-summary {
    font-size: 12.5px;
    color: var(--aw-sub);
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    word-break: break-all;
}

.aw-card-meta {
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid var(--aw-line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11.5px;
    color: #95a0b5;
}

.aw-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分类筛选条（独立文章分类，非网站导航分组） */
.aw-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.aw-cat-bar a {
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #f2f5fb;
    color: #5a6478;
    transition: .2s;
}

.aw-cat-bar a:hover {
    background: #e8edfa;
    color: var(--aw-main);
}

.aw-cat-bar a.active {
    background: linear-gradient(135deg, var(--aw-main), var(--aw-main2));
    color: #fff;
    box-shadow: 0 6px 14px rgba(78, 110, 242, .28);
}

.aw-cat-bar a .aw-cat-count {
    opacity: .7;
    font-size: 11.5px;
    margin-left: 4px;
}

/* 搜索框 */
.aw-search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0 4px;
}

.aw-search-row .form-control {
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--aw-line);
    padding: 0 14px;
    font-size: 14px;
    max-width: 300px;
}

/* 文章详情：标题与正文之间的网盘下载区 */
.aw-download-box {
    background: #fff;
    border-radius: var(--aw-radius);
    box-shadow: 0 8px 24px rgba(24, 39, 75, .06);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.aw-download-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.aw-download-head i {
    color: var(--aw-main);
}

.aw-download-tip {
    font-size: 12.5px;
    color: var(--aw-sub);
    margin: 0 0 12px;
}

.aw-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--aw-line);
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fbfcfe;
}

.aw-download-item:last-child {
    margin-bottom: 0;
}

.aw-download-item .aw-download-info {
    min-width: 0;
    flex: 1 1 auto;
}

.aw-download-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--aw-text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    word-break: break-all;
}

.aw-dl-lock {
    font-size: 11.5px;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    padding: 1px 8px;
    font-weight: 400;
    white-space: nowrap;
}

.aw-download-desc {
    font-size: 12.5px;
    color: var(--aw-sub);
    margin-top: 5px;
    line-height: 1.6;
    word-break: break-all;
}

.aw-download-item .aw-btn {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .aw-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .aw-card-cover {
        height: 138px;
    }
}

@media (max-width: 560px) {
    .aw-article-grid {
        gap: 10px;
    }

    .aw-card-cover {
        height: 116px;
    }

    .aw-card-body {
        padding: 10px 11px 12px;
    }

    .aw-card-title {
        font-size: 13.5px;
        min-height: 39px;
        margin-bottom: 6px;
    }

    .aw-card-summary {
        font-size: 12px;
        min-height: 38px;
        margin-bottom: 9px;
    }

    .aw-card-meta {
        gap: 3px 9px;
        font-size: 11px;
    }

    .aw-search-row .form-control {
        max-width: none;
        flex: 1 1 auto;
    }

    .aw-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .aw-download-item .aw-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   商城首页改版（参考 https://www.iemao.com/shop/ 复刻清单）
   主色 #165DFF · 区块底 #F7F8FA · 文字 #1D2129/#4E5969/#86909C · 线 #E5E6EB
   PC 4 卡 gap 24px / ≤900px 2 卡 / 卡片圆角 8px、封面 172px
   ============================================================ */
.aw-shop-home {
    color: #1D2129;
}

/* 首屏横幅 */
.aw-shop-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 44px 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #165DFF 0%, #4B8BFF 55%, #6AA6FF 100%);
    color: #fff;
    margin-bottom: 18px;
}
.aw-shop-hero-main h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
}
.aw-shop-hero-main p {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .88);
    margin: 0 0 18px;
    max-width: 460px;
}
.aw-shop-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.aw-shop-hero-tags span {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
}
.aw-shop-hero-btn {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 26px;
    border-radius: 6px;
    background: #fff;
    color: #165DFF;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}
.aw-shop-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .16); color: #165DFF; }
.aw-shop-hero-btn + .aw-shop-hero-btn { margin-left: 10px; }
.aw-shop-hero-btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.aw-shop-hero-btn-ghost:hover { color: #fff; }
.aw-shop-hero-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.aw-shop-hero-stat {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
}
.aw-shop-hero-stat b { display: block; font-size: 24px; line-height: 1.2; color: #fff; }
.aw-shop-hero-stat span { font-size: 12px; color: rgba(255, 255, 255, .82); }

/* 权益条 */
.aw-shop-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 26px;
}
.aw-shop-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F7F8FA;
    border-radius: 8px;
    padding: 16px 20px;
}
.aw-shop-benefit i {
    font-size: 22px;
    color: #165DFF;
}
.aw-shop-benefit b { display: block; font-size: 14px; color: #1D2129; }
.aw-shop-benefit span { font-size: 12px; color: #86909C; }

/* 商品目录 */
.aw-shop-catalog { margin-bottom: 26px; }
.aw-shop-cat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.aw-shop-cat-head h2 { font-size: 20px; font-weight: 600; margin: 0; color: #1D2129; }
.aw-shop-cat-total { font-size: 13px; color: #86909C; }

.aw-shop-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
}
.aw-shop-cat {
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    border-radius: 2px;
    background: #F2F3F5;
    color: #165DFF;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
}
.aw-shop-cat:hover { background: #E8F0FF; color: #165DFF; }
.aw-shop-cat.current { background: #165DFF; color: #fff; }

.aw-shop-search { display: flex; gap: 10px; margin: 0 0 20px; max-width: 420px; }
.aw-shop-search input {
    flex: 1 1 auto;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #E5E6EB;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}
.aw-shop-search input:focus { border-color: #165DFF; }
.aw-shop-search-btn {
    height: 38px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: #165DFF;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.aw-shop-search-btn:hover { opacity: .9; }

/* 商品网格：PC 4 卡 */
.aw-shop-home .aw-goods-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 1040px) { .aw-shop-home .aw-goods-grid { gap: 18px; } }
@media (max-width: 900px) { .aw-shop-home .aw-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .aw-shop-home .aw-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* 商品卡：边框式卡片，悬停上移 */
.aw-shop-home .aw-goods-card {
    border: 1px solid #E5E6EB;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}
.aw-shop-home .aw-goods-card:hover {
    transform: translateY(-3px);
    border-color: rgba(22, 93, 255, .45);
    box-shadow: 0 8px 24px rgba(22, 93, 255, .08);
}
.aw-shop-home .aw-goods-card.is-empty { opacity: .92; }
.aw-shop-home .aw-goods-cover {
    height: 172px;
    margin: 8px 8px 0;
    border-radius: 6px;
}
.aw-shop-home .aw-goods-body { padding: 18px 20px; }

.aw-goods-body {
    padding: 14px 16px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.aw-goods-cate {
    font-size: 11px;
    color: #86909C;
    letter-spacing: .2px;
    margin-bottom: 6px;
}
.aw-goods-title {
    font-size: 16px;
    font-weight: 600;
    color: #1D2129;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}
.aw-goods-title:hover { color: #165DFF; }
.aw-goods-desc {
    font-size: 12px;
    line-height: 1.7;
    color: #86909C;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aw-goods-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #F2F3F5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.aw-goods-price {
    color: #165DFF;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
}
.aw-goods-price small { font-size: 14px; font-weight: 500; }
.aw-goods-price i { font-size: 11px; font-style: normal; font-weight: 400; margin-left: 2px; }
.aw-goods-pricewrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.aw-goods-original {
    font-size: 12px;
    color: #C9CDD4;
    text-decoration: line-through;
    line-height: 1;
}
.aw-goods-sales { font-size: 11px; color: #86909C; line-height: 1; }
.aw-goods-buy {
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    background: #165DFF;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
}
.aw-goods-buy:hover { background: #0E4BD1; color: #fff; }
.aw-goods-buy.disabled { background: #C9CDD4; cursor: not-allowed; }

/* 库存态 */
.aw-shop-stock {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(22, 93, 255, .92);
    color: #fff;
}
.aw-shop-stock--empty { background: rgba(134, 144, 156, .92); }

/* 空状态 */
.aw-shop-empty {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px dashed #E5E6EB;
    border-radius: 8px;
    color: #86909C;
}
.aw-shop-empty i { font-size: 42px; color: #C9CDD4; }
.aw-shop-empty b { font-size: 16px; color: #4E5969; font-weight: 600; }
.aw-shop-empty span { font-size: 13px; color: #86909C; }

/* 购买指引 */
.aw-shop-guide {
    background: #F7F8FA;
    border-radius: 8px;
    padding: 26px 28px;
}
.aw-shop-guide h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; color: #1D2129; }
.aw-shop-guide ol { margin: 0; padding-left: 20px; }
.aw-shop-guide li { font-size: 13.5px; line-height: 2; color: #4E5969; }

@media (max-width: 900px) {
    .aw-shop-hero { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; }
    .aw-shop-hero-main h1 { font-size: 26px; }
    .aw-shop-benefits { grid-template-columns: 1fr; gap: 10px; }
    .aw-shop-hero-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aw-shop-home .aw-goods-cover { height: 126px; }
    .aw-shop-home .aw-goods-body { padding: 12px 12px 14px; }
    .aw-shop-home .aw-goods-title { font-size: 14px; min-height: 40px; }
    .aw-shop-home .aw-goods-price { font-size: 18px; }
    .aw-shop-home .aw-goods-desc { display: none; }
    .aw-shop-guide { padding: 20px; }
}

/* ==========================================================
   交付内容框（下单完成页 shop/order.php 复用）
   ========================================================== */
.aw-deliver-box {
    margin-top: 14px;
    background: #f2f7ff;
    border: 1px dashed #b9cbff;
    border-radius: 10px;
    padding: 14px 16px;
}
.aw-deliver-label { font-size: 13px; color: #165DFF; font-weight: 600; margin-bottom: 6px; }
.aw-deliver-link { display: inline-block; font-size: 14px; color: #165DFF; word-break: break-all; line-height: 1.7; }
.aw-deliver-link:hover { text-decoration: underline !important; }

/* ==========================================================
   订单查询页（悬浮卡片版，全部硬编码色值，不依赖 CSS 变量）
   ========================================================== */
.qw-page { max-width: 760px; margin: 0 auto; padding-top: 4px; }

.qw-head { text-align: center; padding: 8px 0 18px; }
.qw-title { margin: 0; font-size: 24px; font-weight: 700; color: #1D2129; }
.qw-title i { color: #165DFF; font-size: 20px; margin-right: 8px; }
.qw-desc { margin: 10px 0 0; font-size: 13.5px; color: #4E5969; line-height: 1.9; }

.qw-search-card {
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(29, 33, 41, .08);
}
.qw-form { display: flex; gap: 10px; }
.qw-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #E5E6EB;
    border-radius: 10px;
    background: #F7F8FA;
    font-size: 14px;
    color: #1D2129;
    outline: none;
    transition: .2s;
}
.qw-input:focus { background: #fff; border-color: #165DFF; box-shadow: 0 0 0 3px rgba(22, 93, 255, .12); }
.qw-btn {
    height: 46px;
    line-height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #165DFF, #4080FF);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s;
}
.qw-btn:hover { box-shadow: 0 6px 18px rgba(22, 93, 255, .35); }

.qw-alert {
    margin-top: 14px;
    background: #FFF7E8;
    border: 1px solid #FFD591;
    color: #D46B08;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13.5px;
}
.qw-alert i { margin-right: 8px; }

.qw-list { margin-top: 16px; display: grid; gap: 14px; }
.qw-card {
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(29, 33, 41, .06);
    transition: transform .2s, box-shadow .2s;
}
.qw-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(29, 33, 41, .13); }
.qw-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.qw-goods { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #1D2129; word-break: break-all; }
.qw-goods-chip {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #E8F3FF, #F2F5FF);
    color: #165DFF;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qw-meta {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 16px;
    background: #F7F8FA;
    border-radius: 10px;
    padding: 12px 14px;
}
.qw-meta-item { font-size: 12.5px; color: #86909C; }
.qw-meta-item b { display: block; margin-top: 3px; font-size: 13.5px; color: #1D2129; font-weight: 600; word-break: break-all; }

.qw-tip {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.8;
    color: #4E5969;
    background: #F7F9FF;
    border-radius: 8px;
    padding: 10px 12px;
}
.qw-tip i { color: #165DFF; margin-right: 8px; }
.qw-tip--muted { background: #F7F8FA; color: #86909C; }
.qw-tip--muted i { color: #86909C; }

.qw-deliver {
    margin-top: 14px;
    background: #f2f7ff;
    border: 1px dashed #b9cbff;
    border-radius: 10px;
    padding: 14px 16px;
}
.qw-deliver-label { font-size: 13px; color: #165DFF; font-weight: 600; margin-bottom: 6px; }
.qw-deliver-link { display: inline-block; font-size: 14px; color: #165DFF; word-break: break-all; line-height: 1.7; }
.qw-deliver-link:hover { text-decoration: underline !important; }

.qw-empty {
    margin-top: 16px;
    background: #fff;
    border: 1px dashed #E5E6EB;
    border-radius: 14px;
    padding: 42px 20px;
    text-align: center;
    color: #86909C;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(29, 33, 41, .04);
}
.qw-empty i { display: block; font-size: 30px; color: #C9CDD4; margin-bottom: 12px; }

.qw-help {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.qw-help-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(29, 33, 41, .04);
    transition: transform .2s, box-shadow .2s;
}
.qw-help-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29, 33, 41, .1); }
.qw-help-item i { color: #165DFF; font-size: 16px; margin-top: 2px; }
.qw-help-item b { display: block; font-size: 14px; color: #1D2129; }
.qw-help-item span { font-size: 12.5px; color: #86909C; }

@media (max-width: 900px) {
    .qw-form { flex-direction: column; }
    .qw-btn { width: 100%; }
    .qw-help { grid-template-columns: 1fr; }
    .qw-card { padding: 15px 16px; }
}
