/* GeekFaka-like clean theme for mcy-shop / 异次元店铺系统 */
:root{
    --gf-bg:#f6f8fb;
    --gf-card:#ffffff;
    --gf-text:#111827;
    --gf-muted:#6b7280;
    --gf-line:#e5e7eb;
    --gf-primary:#2563eb;
    --gf-primary-dark:#1d4ed8;
    --gf-soft:#eef4ff;
    --gf-shadow:0 18px 45px rgba(15, 23, 42, .08);
    --gf-radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.gf-body{
    margin:0;
    min-height:100vh;
    color:var(--gf-text);
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, var(--gf-bg) 100%);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
}
.gf-header{
    position:sticky;
    top:0;
    z-index:50;
    backdrop-filter:blur(18px);
    background:rgba(255,255,255,.82);
    border-bottom:1px solid rgba(229,231,235,.8);
}
.gf-nav{
    max-width:1180px;
    margin:0 auto;
    height:72px;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.gf-brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--gf-text);
    font-size:21px;
    font-weight:800;
    text-decoration:none!important;
    white-space:nowrap;
}
.gf-brand-mark{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:12px;
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    box-shadow:0 10px 25px rgba(37,99,235,.25);
}
.gf-menu{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex:1;
}
.gf-menu a,.gf-pill{
    color:#374151;
    text-decoration:none!important;
    padding:10px 14px;
    border-radius:999px;
    font-weight:600;
    font-size:14px;
    transition:.18s ease;
}
.gf-menu a:hover,.gf-pill:hover{background:var(--gf-soft);color:var(--gf-primary)}
.gf-user{display:flex;align-items:center;gap:8px}
.gf-pill{background:var(--gf-primary);color:#fff!important}
.gf-pill:hover{background:var(--gf-primary-dark);color:#fff!important}
.gf-pill-ghost{background:#f3f4f6;color:#374151!important}
.gf-main{
    max-width:1180px;
    margin:0 auto;
    padding:34px 20px 18px;
}
.gf-hero{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
    gap:24px;
    align-items:stretch;
    margin:10px 0 22px;
}
.gf-hero-left,.gf-order-card,.gf-notice,.gf-card,.gf-empty,.gf-footer-card{
    background:rgba(255,255,255,.88);
    border:1px solid rgba(229,231,235,.9);
    box-shadow:var(--gf-shadow);
    border-radius:var(--gf-radius);
}
.gf-hero-left{
    padding:44px;
    position:relative;
    overflow:hidden;
}
.gf-hero-left:after{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    right:-60px;
    bottom:-80px;
    background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(124,58,237,.13));
    border-radius:50%;
}
.gf-kicker{
    margin:0 0 10px;
    color:var(--gf-primary);
    letter-spacing:.12em;
    font-weight:800;
    font-size:12px;
}
.gf-hero h1{
    margin:0;
    font-size:46px;
    line-height:1.08;
    letter-spacing:-.04em;
}
.gf-subtitle{
    max-width:620px;
    margin:18px 0 0;
    color:var(--gf-muted);
    font-size:17px;
    line-height:1.8;
}
.gf-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.gf-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 20px;
    border-radius:999px;
    font-weight:800;
    text-decoration:none!important;
}
.gf-btn-primary{background:var(--gf-primary);color:#fff!important}
.gf-btn-primary:hover{background:var(--gf-primary-dark)}
.gf-btn-soft{background:#eef4ff;color:var(--gf-primary)!important}
.gf-order-card{
    padding:30px;
    align-self:stretch;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.gf-order-title{
    font-size:24px;
    font-weight:900;
    margin-bottom:8px;
}
.gf-order-card p{color:var(--gf-muted);margin:0 0 18px;line-height:1.7}
.gf-search-row{display:flex;gap:10px}
.gf-search-row input{
    flex:1;
    min-width:0;
    height:46px;
    border:1px solid var(--gf-line);
    border-radius:14px;
    padding:0 14px;
    outline:none;
    background:#fff;
}
.gf-search-row input:focus{border-color:rgba(37,99,235,.65);box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.gf-search-row button,.gf-buy{
    border:0;
    cursor:pointer;
    height:46px;
    padding:0 18px;
    border-radius:14px;
    background:var(--gf-primary);
    color:#fff!important;
    font-weight:800;
    text-decoration:none!important;
    white-space:nowrap;
}
.gf-search-row button:hover,.gf-buy:hover{background:var(--gf-primary-dark)}
.gf-notice{
    padding:18px 22px;
    display:flex;
    gap:14px;
    align-items:flex-start;
    margin:18px 0 24px;
}
.gf-notice strong{color:var(--gf-primary);white-space:nowrap}
.gf-notice div{color:#4b5563;line-height:1.7}
.gf-section{margin-top:24px}
.gf-section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin:0 0 16px;
}
.gf-section-head h2{margin:0;font-size:28px;letter-spacing:-.02em}
.gf-link{color:var(--gf-primary);font-weight:800;text-decoration:none!important}
.gf-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}
.gf-card{
    overflow:hidden;
    transition:.2s ease;
}
.gf-card:hover{transform:translateY(-4px);box-shadow:0 22px 55px rgba(15,23,42,.12)}
.gf-card-cover{
    display:block;
    height:150px;
    background:#eef2ff center/cover no-repeat;
    border-bottom:1px solid var(--gf-line);
}
.gf-card-body{padding:18px}
.gf-card h3{
    margin:0;
    font-size:18px;
    line-height:1.35;
    min-height:48px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.gf-desc{
    color:var(--gf-muted);
    font-size:13px;
    line-height:1.7;
    min-height:45px;
    margin:10px 0 12px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.gf-detail{
    display:inline-flex;
    color:var(--gf-primary)!important;
    text-decoration:none!important;
    font-weight:800;
    margin-bottom:16px;
}
.gf-buy-row{
    padding-top:14px;
    border-top:1px dashed var(--gf-line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.gf-price{
    font-size:21px;
    font-weight:950;
    color:#ef4444;
}
.gf-stock{
    margin-top:4px;
    color:var(--gf-muted);
    font-size:12px;
}
.gf-buy{
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
}
.gf-empty{
    padding:50px 20px;
    text-align:center;
}
.gf-empty h3{margin:0 0 8px}
.gf-empty p{margin:0;color:var(--gf-muted)}
.gf-footer{
    max-width:1180px;
    margin:20px auto 0;
    padding:18px 20px 34px;
}
.gf-footer-card{
    text-align:center;
    padding:30px;
    color:#6b7280;
}
.gf-footer-card h3{margin:0 0 10px;color:var(--gf-text)}
.gf-footer-card p{margin:5px 0}
.gf-footer-card a{color:var(--gf-primary);text-decoration:none}
.gf-copy{font-size:13px}

@media (max-width: 1024px){
    .gf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 768px){
    .gf-nav{height:auto;min-height:66px;align-items:flex-start;padding:14px 16px;flex-wrap:wrap}
    .gf-brand{font-size:18px}
    .gf-menu{order:3;width:100%;justify-content:flex-start;overflow:auto}
    .gf-menu a{padding:8px 10px}
    .gf-user{margin-left:auto}
    .gf-main{padding:22px 14px 10px}
    .gf-hero{grid-template-columns:1fr}
    .gf-hero-left{padding:30px 24px}
    .gf-hero h1{font-size:34px}
    .gf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .gf-card-cover{height:128px}
    .gf-search-row{flex-direction:column}
    .gf-search-row button{width:100%}
}
@media (max-width: 520px){
    .gf-grid{grid-template-columns:1fr}
    .gf-card-cover{height:170px}
    .gf-section-head{align-items:flex-start;gap:10px;flex-direction:column}
}

/* ===== 手机端二次优化 - 2026-05-02 ===== */
@media (max-width: 768px) {
    .gf-header {
        position: sticky;
        top: 0;
    }

    .gf-nav {
        height: auto;
        min-height: auto;
        padding: 12px 14px;
        align-items: center;
        gap: 10px;
    }

    .gf-brand {
        font-size: 16px;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .gf-brand span:last-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gf-brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        flex: 0 0 30px;
    }

    .gf-user {
        gap: 6px;
        flex-shrink: 0;
    }

    .gf-pill,
    .gf-pill-ghost {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .gf-menu {
        order: 3;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-top: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .gf-menu::-webkit-scrollbar {
        display: none;
    }

    .gf-menu a {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
        line-height: 1.2;
        writing-mode: horizontal-tb;
    }

    .gf-main {
        padding: 16px 12px 10px;
    }

    .gf-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 6px 0 18px;
    }

    .gf-hero-left {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .gf-hero-left:after {
        width: 160px;
        height: 160px;
        right: -40px;
        bottom: -60px;
    }

    .gf-kicker {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .gf-hero h1 {
        font-size: 28px;
        line-height: 1.15;
        margin: 0;
    }

    .gf-subtitle {
        font-size: 15px;
        line-height: 1.8;
        margin-top: 14px;
    }

    .gf-actions {
        margin-top: 20px;
        gap: 10px;
    }

    .gf-btn {
        min-height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }

    .gf-order-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .gf-order-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .gf-order-card p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 14px;
    }

    .gf-search-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gf-search-row input {
        height: 42px;
        font-size: 14px;
        border-radius: 12px;
    }

    .gf-search-row button {
        width: 100%;
        height: 42px;
        font-size: 14px;
        border-radius: 12px;
    }

    .gf-section {
        margin-top: 18px;
    }

    .gf-section-head {
        margin-bottom: 12px;
        gap: 8px;
    }

    .gf-section-head h2 {
        font-size: 22px;
    }

    .gf-link {
        font-size: 14px;
    }

    .gf-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gf-card {
        border-radius: 18px;
    }

    .gf-card-cover {
        height: 150px;
    }

    .gf-card-body {
        padding: 16px;
    }

    .gf-card h3 {
        font-size: 17px;
        min-height: auto;
    }

    .gf-desc {
        font-size: 13px;
        min-height: auto;
        margin: 8px 0 10px;
    }

    .gf-buy-row {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .gf-price {
        font-size: 19px;
    }

    .gf-buy {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .gf-notice {
        padding: 14px 16px;
        border-radius: 16px;
        margin: 14px 0 18px;
        flex-direction: column;
        gap: 8px;
    }

    .gf-footer {
        padding: 10px 12px 24px;
    }

    .gf-footer-card {
        padding: 20px 16px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .gf-brand {
        font-size: 15px;
    }

    .gf-pill,
    .gf-pill-ghost {
        padding: 7px 10px;
        font-size: 12px;
    }

    .gf-hero h1 {
        font-size: 24px;
    }

    .gf-subtitle {
        font-size: 14px;
    }

    .gf-btn {
        font-size: 13px;
        min-height: 38px;
    }

    .gf-order-title {
        font-size: 17px;
    }

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

/* ===== 强制修复手机端右侧空白和导航挤压 ===== */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.gf-body,
.gf-header,
.gf-main,
.gf-footer {
    width: 100% !important;
    max-width: 100% !important;
}

.gf-nav,
.gf-main,
.gf-footer {
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    body.gf-body {
        min-width: 0 !important;
        width: 100vw !important;
        overflow-x: hidden !important;
    }

    .gf-header {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .gf-nav {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 12px !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .gf-brand {
        min-width: 0 !important;
        font-size: 15px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .gf-brand-mark {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
    }

    .gf-user {
        justify-content: flex-end !important;
        white-space: nowrap !important;
    }

    .gf-pill {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }

    .gf-menu {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 4px 0 0 !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
    }

    .gf-menu a {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto !important;
        padding: 7px 10px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .gf-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 14px 10px 10px !important;
    }

    .gf-hero {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin: 0 0 14px !important;
    }

    .gf-hero-left,
    .gf-order-card,
    .gf-notice,
    .gf-card,
    .gf-empty,
    .gf-footer-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 18px !important;
    }

    .gf-hero-left {
        padding: 22px 16px !important;
    }

    .gf-hero h1 {
        font-size: 26px !important;
        line-height: 1.15 !important;
    }

    .gf-subtitle {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    .gf-actions {
        gap: 8px !important;
        margin-top: 18px !important;
    }

    .gf-btn {
        min-height: 38px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
    }

    .gf-order-card {
        padding: 18px 16px !important;
    }

    .gf-order-title {
        font-size: 20px !important;
    }

    .gf-search-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .gf-search-row input,
    .gf-search-row button {
        width: 100% !important;
        height: 40px !important;
        font-size: 13px !important;
    }

    .gf-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .gf-section-head {
        display: block !important;
    }

    .gf-section-head h2 {
        font-size: 22px !important;
    }

    .gf-footer {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 10px 24px !important;
    }
}

@media (max-width: 420px) {
    .gf-main {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .gf-hero h1 {
        font-size: 24px !important;
    }

    .gf-subtitle {
        font-size: 13px !important;
    }
}
