* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 全局配色：和独眼蛇完全区分，深海蓝+活力橙暗黑风 */
:root {
    --main-color: #165DFF;
    --sub-color: #FF7D00;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-light: #334155;
    --text-white: #F1F5F9;
    --text-gray: #94A3B8;
    --success: #10B981;
    --danger: #EF4444;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding-bottom: 70px;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 顶部标题栏 */
.header {
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    padding: 18px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 99;
}

/* 搜索框 */
.search-box {
    margin: 15px 20px;
    position: relative;
}
.search-box input {
    width: 100%;
    height: 48px;
    background-color: var(--bg-card);
    border: none;
    border-radius: 12px;
    padding-left: 45px;
    color: var(--text-white);
    font-size: 15px;
    outline: none;
}
.search-box i {
    position: absolute;
    left: 15px;
    top: 14px;
    font-size: 20px;
    color: var(--text-gray);
}

/* 轮播图 */
.banner {
    margin: 0 20px 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.banner img {
    width: 100%;
    display: block;
}

/* 快捷功能入口 */
.quick-nav {
    display: flex;
    justify-content: space-between;
    margin: 0 20px 25px;
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
}
.quick-nav .nav-item {
    text-align: center;
    width: 22%;
}
.quick-nav .nav-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main-color) 0%, #0F42C1 100%);
    border-radius: 12px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.quick-nav .nav-item p {
    font-size: 13px;
    color: var(--text-gray);
}

/* 活动横幅 */
.activity-banner {
    margin: 0 20px 25px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--sub-color) 0%, #F97316 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.activity-banner .text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}
.activity-banner .text p {
    font-size: 13px;
    opacity: 0.9;
}
.activity-banner .btn {
    background-color: #fff;
    color: var(--sub-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* 专区标签栏 */
.zone-tab {
    display: flex;
    overflow-x: auto;
    margin: 0 20px 20px;
    padding-bottom: 5px;
}
.zone-tab::-webkit-scrollbar {
    display: none;
}
.zone-tab .tab-item {
    flex-shrink: 0;
    padding: 8px 18px;
    margin-right: 12px;
    border-radius: 20px;
    background-color: var(--bg-card);
    font-size: 14px;
    color: var(--text-gray);
}
.zone-tab .tab-item.active {
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    color: #fff;
    font-weight: 600;
}

/* 标题栏 */
.title-box {
    margin: 0 20px 15px;
    display: flex;
    align-items: center;
}
.title-box h3 {
    font-size: 18px;
    font-weight: 600;
}
.title-box .more {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-gray);
}

/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 0 20px 20px;
}
.goods-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}
.goods-card:active {
    transform: scale(0.98);
}
.goods-card .cover {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.goods-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.goods-card .info {
    padding: 12px;
}
.goods-card .info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.goods-card .info .sub-title {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.goods-card .info .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.goods-card .info .price {
    font-size: 18px;
    font-weight: 600;
    color: var(--sub-color);
}
.goods-card .info .cart-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 左侧分类栏 */
.category-side {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 70px;
    width: 90px;
    background-color: var(--bg-card);
    overflow-y: auto;
}
.category-side .cate-item {
    padding: 15px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    border-left: 3px solid transparent;
}
.category-side .cate-item.active {
    background-color: var(--bg-dark);
    border-left-color: var(--main-color);
    color: var(--text-white);
    font-weight: 600;
}
.category-content {
    margin-left: 100px;
    padding-top: 10px;
}

/* 陪玩列表卡片 */
.player-card {
    margin: 0 20px 12px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
}
.player-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: var(--bg-light);
}
.player-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-card .info {
    flex: 1;
}
.player-card .info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}
.player-card .info .tag {
    display: inline-block;
    background-color: rgba(22, 93, 255, 0.2);
    color: var(--main-color);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
}
.player-card .info p {
    font-size: 13px;
    color: var(--text-gray);
}
.player-card .order-btn {
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* 消息列表 */
.message-list {
    margin: 0 20px;
}
.message-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
}
.message-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}
.message-item .info {
    flex: 1;
}
.message-item .info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}
.message-item .info p {
    font-size: 13px;
    color: var(--text-gray);
}

/* 我的页面 */
.user-header {
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    padding: 30px 20px 20px;
}
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.user-info .avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid rgba(255,255,255,0.2);
}
.user-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-info .name {
    font-size: 20px;
    font-weight: 600;
}
.user-info .name a {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-left: 10px;
}
.balance-card {
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    backdrop-filter: blur(10px);
}
.balance-card .item {
    text-align: center;
}
.balance-card .item p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}
.balance-card .item .num {
    font-size: 24px;
    font-weight: 600;
}
.order-nav {
    margin: 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
}
.order-nav .title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.order-nav .title h3 {
    font-size: 17px;
}
.order-nav .title .more {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-gray);
}
.order-nav .nav-list {
    display: flex;
    justify-content: space-around;
}
.order-nav .nav-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
}
.order-nav .nav-item .icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 8px;
    font-size: 24px;
    color: var(--main-color);
}
.order-nav .nav-item p {
    font-size: 12px;
    color: var(--text-gray);
}
.tips-box {
    margin: 0 20px 20px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
}
.tips-box .tag {
    background-color: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 600;
}
.tips-box p {
    font-size: 12px;
    color: var(--danger);
}
.func-grid {
    margin: 0 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px 10px;
}
.func-grid .func-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
}
.func-grid .func-item .icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 8px;
    font-size: 22px;
    color: var(--main-color);
}
.func-grid .func-item p {
    font-size: 12px;
    color: var(--text-gray);
}
.footer-logo {
    margin: 40px 0 20px;
    text-align: center;
}
.footer-logo p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
    border-top: 1px solid var(--bg-light);
}
.bottom-nav .nav-item {
    width: 20%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
}
.bottom-nav .nav-item.active {
    color: var(--main-color);
}
.bottom-nav .nav-item .icon {
    font-size: 22px;
    margin-bottom: 4px;
}
.bottom-nav .nav-item p {
    font-size: 11px;
}

/* 表单通用样式 */
.form-box {
    margin: 20px;
}
.form-item {
    margin-bottom: 20px;
}
.form-item label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-gray);
}
.form-item input, .form-item textarea, .form-item select {
    width: 100%;
    height: 50px;
    background-color: var(--bg-card);
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    color: var(--text-white);
    font-size: 15px;
    outline: none;
}
.form-item textarea {
    height: 120px;
    padding: 15px;
    resize: none;
}
.btn-primary {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.btn-sub {
    width: 100%;
    height: 50px;
    background-color: var(--bg-card);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-size: 16px;
    margin-top: 15px;
}
.btn-danger {
    width: 100%;
    height: 50px;
    background-color: var(--danger);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* 订单卡片 */
.order-card {
    margin: 0 20px 12px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
}
.order-card .order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-light);
}
.order-card .order-header .order-sn {
    font-size: 13px;
    color: var(--text-gray);
}
.order-card .order-header .status {
    font-size: 13px;
    color: var(--sub-color);
    font-weight: 600;
}
.order-card .order-content {
    margin-bottom: 15px;
}
.order-card .order-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}
.order-card .order-content p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 3px;
}
.order-card .order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.order-card .order-footer .price {
    font-size: 18px;
    font-weight: 600;
    color: var(--sub-color);
}
.order-card .order-footer .btn-group {
    display: flex;
    gap: 10px;
}
.order-card .order-footer .btn-group .btn {
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
}
.order-card .order-footer .btn-group .btn.main {
    background-color: var(--main-color);
    color: #fff;
}
.order-card .order-footer .btn-group .btn.sub {
    background-color: var(--bg-light);
    color: var(--text-white);
}

/* 详情页 */
.detail-box {
    margin: 20px;
}
.detail-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}
.detail-cover img {
    width: 100%;
    display: block;
}
.detail-info h2 {
    font-size: 22px;
    margin-bottom: 10px;
}
.detail-info .price {
    font-size: 28px;
    font-weight: 600;
    color: var(--sub-color);
    margin-bottom: 20px;
}
.detail-info .content {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.detail-info .content h3 {
    font-size: 17px;
    margin-bottom: 15px;
}
.detail-info .content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 10px;
}
.fixed-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: var(--bg-card);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--bg-light);
}
.fixed-bottom .price {
    font-size: 22px;
    font-weight: 600;
    color: var(--sub-color);
}
.fixed-bottom .btn {
    width: 150px;
    height: 50px;
    background: linear-gradient(90deg, var(--main-color) 0%, #0F42C1 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* 招募页面 */
.recruit-content {
    margin: 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
}
.recruit-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}
.recruit-content h4 {
    font-size: 16px;
    margin: 15px 0 10px;
    color: var(--main-color);
}
.recruit-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 8px;
}
