:root {
    --primary-color: #1E9FFF;
    --primary-gradient: linear-gradient(135deg, #1E9FFF, #0078d7);
    --secondary-color: #f44336;
    --text-main: #333;
    --text-sub: #888;
    --bg-page: #f2f4f8;
    --bg-card: #ffffff;
    --radius-main: 12px;
    --radius-sm: 6px;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.skinstore-page {
    background: var(--bg-page);
    padding-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 顶部导航 */
.skinstore-nav {
    display: flex;
    background: var(--bg-card);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 0 10px;
    border-radius: 0 0 16px 16px;
}

.skinstore-nav a {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    color: var(--text-sub);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.skinstore-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.skinstore-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 35%;
    right: 35%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* 资产概览卡片 */
.skinstore-dashboard {
    padding: 0 12px 15px;
}

.dashboard-card {
    background: var(--primary-gradient);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 159, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.dashboard-card:after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.dashboard-title {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.dashboard-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-meta {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 分类导航 */
.skinstore-cats {
    display: flex;
    padding: 0 12px 15px;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.skinstore-cats::-webkit-scrollbar { display: none; }

.skinstore-cats a {
    padding: 6px 18px;
    background: var(--bg-card);
    border-radius: 20px;
    color: var(--text-sub);
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.3s;
}

.skinstore-cats a.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 159, 255, 0.3);
}

/* 列表容器 */
.skinstore-list {
    padding: 0 12px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* 单个物品卡片 */
.skinstore-item {
    background: var(--bg-card);
    border-radius: var(--radius-main);
    padding: 12px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    box-sizing: border-box;
}

.skinstore-item:active {
    transform: scale(0.98);
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-meta {
    margin-bottom: 8px;
    font-size: 12px;
}

.item-meta .price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
}

.item-meta .count {
    color: #bbb;
    font-size: 10px;
    display: block;
    margin-top: 2px;
}

.item-meta .empty {
    color: #ccc;
    font-size: 12px;
}

.status.owned {
    font-size: 10px;
    color: #52c41a;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 8px;
}

/* 底部操作区 */
.item-actions {
    border-top: 1px dashed #eee !important;
    padding-top: 8px !important;
    margin-top: auto !important;
    color: #999 !important;
    font-size: 11px !important;
    text-align: center !important;
    background: transparent !important;
}

/* 交易列表样式 */
.skinstore-trades {
    padding: 0 12px 20px;
}

.trade-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.trade-item:active {
    transform: scale(0.99);
}

/* 装饰背景 */
.trade-item:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(30, 159, 255, 0.05) 50%);
    border-radius: 0 16px 0 100%;
    pointer-events: none;
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f7f7f7;
    margin-bottom: 14px;
}

.trade-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
    background: #f5f7fa;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.trade-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.trade-status.pending { 
    color: #ff9800; 
    background: #fff7e6;
    border: 1px solid #ffebd1;
}
.trade-status.success { 
    color: #52c41a; 
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}
.trade-status.fail { 
    color: #ff4d4f; 
    background: #fff1f0;
    border: 1px solid #ffa39e;
}

.trade-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.trade-item-icon {
    width: 48px;
    height: 48px;
    background: #e6f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
    flex-shrink: 0;
}

.trade-details {
    flex: 1;
}

.trade-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.trade-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.trade-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 17px;
}

.trade-price small {
    font-size: 12px;
    font-weight: normal;
    margin-right: 1px;
}

.trade-user {
    color: var(--text-sub);
    font-size: 12px;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trade-actions {
    display: flex;
    gap: 10px;
    padding-top: 6px;
}

.trade-actions .btn {
    flex: 1;
    border-radius: 20px;
    padding: 9px 0;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.trade-actions .btn:active {
    transform: scale(0.98);
}

.btn-success {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    color: #fff;
    box-shadow: 0 4px 10px rgba(82, 196, 26, 0.25);
}

.btn-fail {
    background: #fff;
    color: #ff4d4f;
    border: 1px solid #ff4d4f;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 80px 20px;
    color: #ccc;
    font-size: 14px;
    grid-column: 1 / -1;
}

.empty-tip:before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='28' height='28'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.501 3.501 0 1 1 13 13.355z' fill='%23cccccc'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.skinstore-notice {
    background: #fffbe6 !important;
    color: #faad14 !important;
    border: 1px solid #ffe58f;
    border-radius: 8px !important;
    padding: 12px !important;
    box-shadow: 0 2px 6px rgba(250, 173, 20, 0.1);
    margin-bottom: 16px !important;
}
