:root {
    --primary-color: #d32f2f; /* Red */
    --secondary-color: #1976d2; /* Blue */
    --bg-color: #f5f5f5;
    --text-color: #333;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 20px;
}

/* Header */
.site-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 12px 10px;
    border-bottom: 1px solid #ccc;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--banner-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.5);
    filter: blur(5px);
    z-index: -1;
    transform: scale(1.1); /* Prevents white edges from blur */
}

.logo-area h1 {
    color: #d32f2f; /* Purple */
    font-size: 36px;
    margin-bottom: 5px;
    font-family: "KaiTi", "楷体_GB2312", "STKaiti", "AR PL UKai CN", serif;
    -webkit-font-smoothing: antialiased; /* iOS 抗锯齿，让文字更清晰 */
    -moz-osx-font-smoothing: grayscale;
}

.logo-area h1 span {
    font-size: 16px;
    color: #4a148c;
}

.sub-logo {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #1a38ac;
}

.slogan {
    font-size: 14px;
    color: #000;
    letter-spacing: 1px;
}

/* Search Section */
.search-section {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    align-items: center;
    border: 3px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
    height: 50px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: #fff;
}

.search-icon {
    margin-right: 8px;
    color: #999;
}

.search-input-wrapper input[type="text"] {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--secondary-color);
    white-space: nowrap;
    margin-left: 5px;
    display: flex;
    align-items: center;
}

/* Filter Section */
.filter-section {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    flex-wrap: wrap;
}

.filter-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-tab {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    white-space: nowrap;
    color: #666;
}

.filter-tab.active {
    background: #e3f2fd;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.filter-dropdowns {
    display: flex;
    gap: 10px;
}

.filter-dropdowns select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.reset-btn {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

/* List Header */
.list-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    background: #f9f9f9;
    color: #666;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
}

.sortable-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.sortable-header.left-align {
    justify-content: flex-start;
    flex: 0 0 50%;
}

.sortable-header.right-align {
    justify-content: flex-end;
    text-align: right;
}

.sort-indicator {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
    font-size: 10px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.sortable-header:hover .sort-indicator {
    opacity: 0.7;
}

.sort-arrow {
    line-height: 0.6;
}

.sort-arrow.up {
    margin-bottom: 2.5px;
}

.sort-indicator.asc .sort-arrow.up,
.sort-indicator.desc .sort-arrow.down {
    opacity: 1;
    color: #000;
}

.sort-indicator.asc .sort-arrow.down,
.sort-indicator.desc .sort-arrow.up {
    opacity: 0.2;
}

/* Number List */
.number-list {
    background: #fff;
}

.number-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end !important;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.number-item:active {
    background: #f0f0f0;
}

.item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 50%;
}

.item-network {
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
    width: fit-content;
}

.net-unicom { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; } /* Unicom Orange */
.net-mobile { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; } /* Mobile Green */
.net-telecom { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; } /* Telecom Blue */
.net-virtual { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; } /* Virtual Purple */

.item-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.item-right {
    text-align: right;
    width: 25%;
}

.item-price {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.item-min-cons {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
