:root {
    --primary-color: #ff4d4d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #999999;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    max-width: 500px;
    /* 模拟移动端宽度 */
    margin: 0 auto;
    position: relative;
    padding-bottom: 70px;
    /* 为底部状态栏留出空间 */
}

/* 轮播图区域 */
.banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 锁定 16:9 比例 */
    background-color: #eee;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保证图片在固定容器内自适应铺满 */
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.banner-counter {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}


/* 导航网格 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card-bg);
    padding: 20px 10px;
    row-gap: 15px;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-item span {
    font-size: 11px;
    color: #666;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.icon-box img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.icon-box:active {
    transform: scale(0.9);
}

/* 移除原有的背景和边框样式 */
.icon-box.orange,
.icon-box.purple,
.icon-box.pink,
.icon-box.blue,
.icon-box.red {
    background: transparent;
    border: none;
    color: inherit;
}

/* 搜索栏 */
.search-section {
    padding: 15px;
}

.search-bar {
    background: #fff;
    border-radius: 25px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: #ccc;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
}

.search-bar input::placeholder {
    color: #ff4d4d;
    font-weight: 500;
}

/* 分类入口 */
.category-entry {
    padding: 0 15px 15px;
}

.entry-header {
    background: #fff;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.entry-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #ff4d4d;
    border-radius: 50%;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-icon img {
    width: 100%;
    height: 100%;
}

.title-text h3 {
    font-size: 15px;
    color: #333;
}

.title-text p {
    font-size: 11px;
    color: #999;
}

.entry-more svg {
    width: 20px;
    height: 20px;
    fill: #ccc;
}

/* 内容列表 */
.content-list {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 12px;
    margin-bottom: 2px;
}

.card-header {
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-image-small {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 85px;
    padding: 2px 0;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-box .unit {
    font-size: 14px;
    color: #ff4d4d;
    font-weight: bold;
}

.price-box .val {
    font-size: 22px;
    color: #ff4d4d;
    font-weight: bold;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.game-label {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
}

.id-label {
    background: #f0f7ff;
    padding: 2px 6px;
    border-radius: 4px;
    color: #2196f3;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.game-tag {
    color: #2196f3;
    font-size: 12px;
}

.price {
    color: #ff4d4d;
    font-weight: bold;
    font-size: 16px;
}

.card-desc {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    font-weight: normal;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 8px;
}

/* 顺游页面粘性头部 */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sub-header {
    background: #fff;
    padding: 12px 15px;
    text-align: center;
}

.sub-header h2 {
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.filter-tabs {
    background: #fff;
    display: flex;
    padding: 10px 0;
}

.filter-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    color: #333;
    position: relative;
    padding: 8px 0;
}

.filter-tab.active {
    color: var(--primary-color);
    font-weight: bold;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.filter-tab svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.filter-tab svg.rotate {
    transform: rotate(180deg);
}

.filter-tab.active svg {
    fill: var(--primary-color);
}

.product-count-bar {
    padding: 8px 15px 12px;
    background: #fff;
}

.count-box {
    background: #fceeee;
    /* 浅粉红色背景，还原效果图 */
    padding: 10px 15px;
    border-radius: 30px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.count-box em {
    font-style: normal;
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 6px;
    font-size: 16px;
}

/* 调整安游页面的内容列表 */
.anyou-list {
    background: #f4f4f4;
    padding: 10px 15px;
    min-height: calc(100vh - 180px);
}

/* 底部标签栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    height: 60px;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    gap: 4px;
}

.tab-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.tab-item span {
    font-size: 11px;
}

.tab-item.active {
    color: #ff4d4d;
}

/* 公告页面特定样式 */
.notice-header {
    background: #fff;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.notice-header h2 {
    font-size: 17px;
    color: #000;
    font-weight: bold;
}

.notice-list {
    padding: 15px;
    background: #f4f4f4;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notice-card-content {
    padding: 15px;
}

.notice-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 12px;
}

.notice-cover {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.notice-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.notice-footer {
    border-top: 1px solid #f5f5f5;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.notice-footer span {
    font-size: 14px;
    color: #666;
}

.notice-footer svg {
    width: 18px;
    height: 18px;
    fill: #ccc;
}

/* 详情页面特定样式 */
.detail-page {
    background: #fff;
    min-height: 100vh;
    padding-bottom: 80px;
}

.detail-header {
    position: relative;
    width: 100%;
}

.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    text-decoration: none;
}

.back-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.detail-banner {
    width: 100%;
    display: block;
}

.detail-main {
    padding: 15px;
}

.detail-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-row .price-large {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.status-badge {
    background: #ff4d4d;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    padding: 6px 12px;
    border-radius: 20px;
    color: #2196f3;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.share-btn:active {
    background: #e1efff;
    transform: scale(0.95);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    font-size: 14px;
}

.info-label {
    color: #999;
    min-width: 70px;
}

.info-value {
    color: #666;
}

.section-divider {
    text-align: center;
    position: relative;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
    margin: 0 15px;
}

.section-divider span {
    font-size: 15px;
}

.description-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.graphic-details img {
    width: 100%;
    display: block;
    margin-bottom: 5px;
}

/* 底部悬浮栏 */
.bottom-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.home-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    margin-right: 20px;
}

.home-link svg {
    width: 24px;
    height: 24px;
    fill: #666;
}

.home-link span {
    font-size: 11px;
}

.bottom-floating-bar .contact-btn {
    flex: 1;
    background: linear-gradient(90deg, #ff9068 0%, #ff4b1f 100%);
    color: #fff;
    height: 46px;
    border-radius: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 75, 31, 0.3);
}

.bottom-floating-bar .contact-btn-img {
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.bottom-floating-bar .contact-btn-img img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 30px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #fff;
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    padding: 25px 20px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 12px;
}

.modal-body {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.modal-confirm {
    border-top: 1px solid #eee;
    padding: 15px;
    text-align: center;
    color: #007aff;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}

.modal-confirm:active {
    background: #f9f9f9;
}

/* 筛选侧边栏样式 */
.filter-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3000;
}

.filter-sidebar-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    visibility: visible;
}

.filter-sidebar {
    position: absolute;
    top: 0;
    right: -85%;
    width: 85%;
    height: 100%;
    background: #fff;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.filter-sidebar-overlay.active .filter-sidebar {
    right: 0;
}

.filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px 80px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.filter-group-title::before {
    content: '|';
    color: #333;
    margin-right: 6px;
    font-weight: bold;
}

/* 筛选中的搜索框 */
.filter-search {
    width: 100%;
    height: 44px;
    background: #f5f5f5;
    border-radius: 22px;
    padding: 0 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

/* 标签网格 */
.pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pill {
    height: 34px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.pill.active {
    border-color: #ffa500;
    color: #ffa500;
}

.pill.wide {
    grid-column: span 2;
}

/* 筛选底部按钮 */
.filter-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding: 10px 15px;
    background: #fff;
    display: flex;
    gap: 15px;
    border-top: 1px solid #f5f5f5;
}

.btn-reset,
.btn-submit {
    flex: 1;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn-reset {
    background: #e54d42;
    color: #fff;
}

.btn-submit {
    background: #e54d42;
    color: #fff;
}

.btn-reset:active,
.btn-submit:active {
    opacity: 0.8;
}