* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* 让内容区域可以平滑滚动 */
.container,
.user-page {
    -webkit-overflow-scrolling: touch;
}

.loader-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 加载中隐藏元素 */
.loading-hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 加载完成显示元素 */
.loading-show {
    opacity: 1;
    visibility: visible;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #1a1a2e;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0;
    background-color: #fff;
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar-left {
    font-size: 18px;
    font-weight: bold;
    color: #0ea5e9;
}

.top-bar-right {
    position: relative;
    font-size: 14px;
    color: #0ea5e9;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.top-bar-right:hover {
    background-color: #0ea5e9;
    color: #fff;
}

.auth-badge {
    display: none;
    margin-left: 6px;
    background: #ff4757;
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
}

.top-bar-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-link {
    color: #0ea5e9;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.1);
}

.top-bar-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.header {
    background-color: #0ea5e9;
    padding: 10px 2px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.category-tab {
    flex: 1;
    padding: 10px 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.category-tab:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.category-tab.active {
    background-color: #fff;
    color: #0ea5e9;
    border-color: #fff;
}

.search-box {
    display: flex;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
}

.search-button {
    padding: 10px 20px;
    background-color: #ff4757;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #ff6b7a;
}

.product-list {
    padding: 0 2px;
}

.notice-popup {
    margin: 0px 0px;
    padding: 5px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 1px solid #ffe5e5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.15);
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notice-title {
    font-size: 18px;
    font-weight: bold;
    color: #dc2626;
    flex-shrink: 0;
}

.notice-text {
    font-size: 14px;
    color: #991b1b;
    line-height: 1.6;
}

.notice-more {
    font-size: 14px;
    color: #0ea5e9;
    text-decoration: underline;
    flex-shrink: 0;
}

.notice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notice-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.notice-modal {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 90%;
    width: 320px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.notice-modal-overlay.show .notice-modal {
    transform: scale(1);
}

.notice-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f97316;
    color: #fff;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.notice-modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.notice-modal-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.notice-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notice-modal-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-modal-btn.cancel {
    background-color: #f0f0f0;
    color: #666;
}

.notice-modal-btn.cancel:hover {
    background-color: #e0e0e0;
}

.notice-modal-btn.confirm {
    background-color: #f97316;
    color: #fff;
}

.notice-modal-btn.confirm:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.product-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    margin-bottom: -15px;
    background-color: transparent;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: none;
    box-shadow: none;
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    background-color: #ddd;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.product-tags {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.tag {
    padding: 1px 1px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.tag-hot {
    background-color: #ff9f43;
    color: #fff;
}

.tag-exclusive {
    background-color: #a55eea;
    color: #fff;
}

.product-description {
    font-size: 10px;
    color: #666;
    line-height: 1.5;
    word-break: break-word;
}

.download-button {
    display: inline-block;
    text-decoration: none;
    padding: 4px 8px;
    background-color: #ff4757;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
}

.download-button:hover {
    background-color: #ff6b7a;
    transform: scale(1.05);
}


