:root {
    --gc-ink: #122033;
    --gc-muted: #607087;
    --gc-line: #dce4ee;
    --gc-surface: #ffffff;
    --gc-page: #f3f6fa;
    --gc-primary: #123f70;
    --gc-primary-hover: #0c3159;
    --gc-accent: #20a6b5;
    --gc-danger: #e53b5d;
    --gc-success: #178b63;
    --gc-shadow: 0 10px 28px rgba(20, 45, 75, 0.09);
}

* {
    letter-spacing: 0;
}

html {
    min-width: 320px;
    background: var(--gc-page);
}

body.gc-market-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--gc-page) !important;
    color: var(--gc-ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gc-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.gc-topbar {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(18, 32, 51, 0.1);
    background: rgba(255, 255, 255, 0.97);
}

.gc-topbar-inner {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gc-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--gc-ink);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.gc-brand:hover {
    color: var(--gc-primary);
}

.gc-brand img {
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
}

.gc-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-primary-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
}

.gc-primary-nav a {
    display: inline-flex;
    min-width: 84px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-bottom: 2px solid transparent;
    color: #4d5d71;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.gc-primary-nav a:hover,
.gc-primary-nav a.is-active {
    border-bottom-color: var(--gc-accent);
    color: var(--gc-primary);
}

.gc-hero {
    padding: 30px 0 34px;
    background: var(--gc-primary);
    color: #ffffff;
}

.gc-hero-inner {
    display: grid;
    gap: 20px;
}

.gc-hero-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gc-hero-heading img {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

.gc-eyebrow {
    margin: 0 0 4px;
    color: #a8e5eb;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.gc-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.35;
}

.gc-subtitle {
    margin: 7px 0 0;
    color: #d7e5f2;
    font-size: 14px;
    line-height: 1.5;
}

.gc-announcement {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.gc-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #ffffff;
}

.gc-section-label h2 {
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.gc-announcement-content {
    max-height: 160px;
    overflow: auto;
    color: #e7eff7;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.gc-announcement-content > :last-child,
.gc-notice-content > :last-child {
    margin-bottom: 0;
}

.gc-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.gc-search-box {
    display: grid;
    width: min(650px, 100%);
    min-height: 48px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;
    background: #ffffff;
    color: var(--gc-muted);
}

.gc-search-box > i {
    justify-self: end;
    color: var(--gc-primary);
}

.gc-search-box input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gc-ink);
    font-size: 14px;
}

.gc-search-box input:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(32, 166, 181, 0.35);
}

.gc-search-button {
    display: inline-flex;
    height: 36px;
    margin-right: 3px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 5px;
    background: var(--gc-ink);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
}

.gc-search-button:hover {
    background: #000d1f;
}

.gc-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.gc-quick-actions a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 12px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 5px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.gc-quick-actions a:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.gc-quick-actions a[aria-disabled="true"] {
    display: none;
}

.gc-catalog {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 44px;
    align-items: start;
}

.gc-categories,
.gc-products {
    min-width: 0;
}

.gc-catalog-heading,
.gc-products-heading {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid var(--gc-ink);
}

.gc-catalog-heading p,
.gc-products-heading p {
    margin: 0 0 2px;
    color: var(--gc-muted);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
}

.gc-catalog-heading h2,
.gc-products-heading h2 {
    margin: 0;
    color: var(--gc-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.gc-category-list {
    overflow: hidden;
    border: 1px solid var(--gc-line);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: var(--gc-surface);
    box-shadow: var(--gc-shadow);
}

.gc-category-list .switch-category {
    display: grid;
    min-height: 52px;
    padding: 8px 12px;
    grid-template-columns: 30px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #edf1f5;
    color: #34445a;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.gc-category-list .switch-category:last-child {
    border-bottom: 0;
}

.gc-category-list .switch-category:hover,
.gc-category-list .switch-category.is-primary {
    background: #eaf7f8;
    color: #0e6570;
}

.gc-category-list .switch-category.is-primary {
    box-shadow: inset 3px 0 0 var(--gc-accent);
}

.gc-category-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e8ef;
    border-radius: 50%;
    background-color: #f4f7fa;
    background-position: center;
    background-size: cover;
    color: var(--gc-primary);
}

.gc-category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-category-arrow {
    justify-self: end;
    color: #9ba7b5;
    font-size: 11px;
}

.gc-category-empty {
    display: flex;
    min-height: 108px;
    padding: 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gc-muted);
    font-size: 13px;
    text-align: center;
}

.gc-category-empty i {
    color: #8ca0b6;
}

.gc-products-heading > a {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    align-items: center;
    gap: 7px;
    border-radius: 5px;
    background: var(--gc-ink);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gc-products .item-list.row {
    display: grid;
    margin: 12px 0 0 !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.gc-products .item-list > a {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    text-decoration: none;
}

.gc-products .item-list .acg-card {
    position: relative;
    display: grid;
    min-height: 66px;
    grid-template-columns: 50px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--gc-line);
    border-radius: 6px;
    background: var(--gc-surface);
    box-shadow: 0 3px 12px rgba(18, 32, 51, 0.045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gc-products .item-list > a:hover .acg-card {
    border-color: #9ccbd0;
    box-shadow: 0 8px 20px rgba(18, 63, 112, 0.1);
    transform: translateY(-1px);
}

.gc-products .item-list .acg-thumb {
    width: 34px;
    height: 34px;
    margin: 15px 7px 15px 9px;
    align-self: center;
    border: 1px solid #e1e7ef;
    border-radius: 50%;
    background-color: #edf2f7 !important;
}

.gc-products .item-list .acg-thumb.gc-image-fallback {
    background-size: 26px 26px !important;
}

.gc-products .item-list .p-3 {
    display: grid;
    min-width: 0;
    padding: 9px 12px 8px 0 !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "title meta price"
        "tags meta price";
    column-gap: 10px;
    align-items: center;
}

.gc-products .item-list .tags {
    grid-area: tags;
    min-height: 18px;
    margin: 0 0 2px;
}

.gc-products .item-list .goods-title {
    grid-area: title;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--gc-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-products .item-list .stat-row {
    display: flex;
    grid-area: price;
    margin: 0 !important;
    align-items: center;
    align-self: center;
    gap: 8px;
}

.gc-products .item-list .stat-row .price {
    color: var(--gc-danger);
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
}

.gc-products .item-list .stat-row .unit {
    margin-right: 2px;
    font-size: 12px;
}

.gc-products .item-list .stat-bottom {
    display: flex;
    grid-area: meta;
    justify-content: center;
    gap: 0;
    margin: 0;
    color: #8290a2;
    font-size: 11px;
}

.gc-products .item-list .stat-bottom span:first-child {
    padding: 5px 8px;
    border: 1px solid #e1e6ec;
    border-radius: 13px;
    background: #fbfcfd;
    white-space: nowrap;
}

.gc-products .item-list .stat-bottom span:last-child {
    display: none;
}

.gc-buy-button {
    display: inline-flex;
    min-width: 66px;
    min-height: 34px;
    padding: 7px 11px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    background: #101828;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.gc-product-link:hover .gc-buy-button,
.gc-product-link:focus-visible .gc-buy-button {
    background: #2563eb;
}

.gc-products .item-list .badge-soft {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

.gc-products .item-list .soldout {
    filter: grayscale(0.65);
    opacity: 0.72;
}

.gc-products .item-list .soldout-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 7px;
    border-radius: 0 5px 0 5px;
    background: #687486;
    color: #ffffff;
    font-size: 10px;
}

.gc-loading,
.gc-empty,
.gc-products .item-list > div:not(.acg-card) {
    display: flex;
    width: 100%;
    min-height: 220px;
    margin: 0 !important;
    padding: 28px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #c6d1de;
    border-radius: 6px;
    background: #ffffff;
    color: var(--gc-muted);
    font-size: 14px !important;
    text-align: center;
}

.gc-empty {
    flex-direction: column;
}

.gc-empty i {
    color: #8ca0b6;
    font-size: 30px;
}

.gc-empty strong {
    color: var(--gc-ink);
    font-size: 16px;
}

.gc-empty span {
    max-width: 380px;
    line-height: 1.7;
}

.gc-notice-modal[hidden] {
    display: none !important;
}

.gc-notice-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    padding: 18px;
    place-items: center;
    background: rgba(6, 17, 31, 0.68);
}

.gc-notice-dialog {
    width: min(540px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: hidden;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.gc-notice-header {
    display: flex;
    min-height: 68px;
    padding: 14px 16px 12px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--gc-line);
}

.gc-notice-header span {
    display: block;
    margin-bottom: 2px;
    color: var(--gc-accent);
    font-size: 10px;
    font-weight: 850;
}

.gc-notice-header h2 {
    margin: 0;
    color: var(--gc-ink);
    font-size: 18px;
    font-weight: 800;
}

.gc-icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 1px solid var(--gc-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--gc-muted);
}

.gc-icon-button:hover {
    border-color: #aebdcd;
    color: var(--gc-ink);
}

.gc-notice-content {
    max-height: min(480px, calc(100vh - 200px));
    padding: 20px;
    overflow: auto;
    color: #45556a;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.gc-notice-actions {
    display: grid;
    padding: 14px 20px 18px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid var(--gc-line);
}

.gc-notice-actions button {
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 750;
}

.gc-notice-read {
    background: var(--gc-ink);
    color: #ffffff;
}

.gc-notice-hide {
    background: #fceaf0;
    color: #c6294b;
}

.gc-footer {
    padding: 18px 16px 28px;
    color: var(--gc-muted);
    font-size: 12px;
    text-align: center;
}
