:root {
            color-scheme: light;
            --primary-color: #0071e3;
            --primary-hover: #005bb5;
            --bg-layer: linear-gradient(135deg, #edf1ff 0%, #f9fbff 65%, #f1f5ff 100%);
            --bg-color: #f5f7fb;
            --card-bg: rgba(255, 255, 255, 0.9);
            --card-border: rgba(15, 23, 42, 0.08);
            --text-color: #0f172a;
            --text-light: #5f6b7c;
            --border-color: rgba(15, 23, 42, 0.12);
            --border-dashed: rgba(15, 23, 42, 0.2);
            --shadow-soft: 0 30px 70px rgba(15, 23, 42, 0.08), 0 4px 25px rgba(15, 23, 42, 0.05);
            --border-radius: 16px;
            --badge-hidden-bg: rgba(255, 229, 170, 0.6);
            --badge-hidden-text: #a0522d;
            --badge-system-bg: rgba(162, 234, 183, 0.6);
            --badge-system-text: #036b26;
            --badge-limited-bg: rgba(250, 177, 160, 0.6);
            --badge-limited-text: #a8322d;
            --input-bg: rgba(255, 255, 255, 0.7);
            --chip-bg: rgba(15, 23, 42, 0.06);
        }

        body[data-theme='dark'] {
            color-scheme: dark;
            --primary-color: #4c8dff;
            --primary-hover: #91b8ff;
            --bg-layer: linear-gradient(135deg, #060b17 0%, #0f172a 50%, #1e1b3a 100%);
            --bg-color: #0f172a;
            --card-bg: rgba(15, 23, 42, 0.85);
            --card-border: rgba(255, 255, 255, 0.08);
            --text-color: #f4f7ff;
            --text-light: #b1bdd8;
            --border-color: rgba(255, 255, 255, 0.12);
            --border-dashed: rgba(255, 255, 255, 0.2);
            --shadow-soft: 0 20px 70px rgba(0, 0, 0, 0.55);
            --badge-hidden-bg: rgba(255, 229, 170, 0.2);
            --badge-system-bg: rgba(162, 234, 183, 0.15);
            --badge-limited-bg: rgba(250, 177, 160, 0.2);
            --badge-hidden-text: #ffd799;
            --badge-system-text: #c3f7d0;
            --badge-limited-text: #ffc8be;
            --input-bg: rgba(255, 255, 255, 0.08);
            --chip-bg: rgba(255, 255, 255, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue',
                'Arial', 'system-ui', sans-serif;
            background: var(--bg-layer);
            color: var(--text-color);
            min-height: 100vh;
            padding: 3rem 1.5rem;
            line-height: 1.6;
            transition: background 0.6s ease, color 0.3s ease;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: var(--bg-layer);
            opacity: 0.95;
            z-index: -2;
        }

        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.2), transparent 45%);
            filter: blur(40px);
            z-index: -1;
            opacity: 0.7;
            pointer-events: none;
        }

        .container {
            width: min(1100px, 100%);
            margin: 0 auto;
            position: relative;
        }

        .header {
            padding: 2.5rem 3rem;
            margin-bottom: 2.5rem;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-soft);
            border: 1px solid var(--card-border);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            backdrop-filter: saturate(180%) blur(28px);
        }

        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .brand-mark {
            width: 46px;
            height: 46px;
            border-radius: 14px;
            background: linear-gradient(135deg, #0071e3, #67aafc);
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6),
                inset 0 -3px 8px rgba(0, 0, 0, 0.1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .brand-mark img {
            width: 28px;
            height: 28px;
        }
        }

        .brand-label {
            font-size: 0.95rem;
            color: var(--text-light);
        }

        .brand-meta {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-color);
        }

        .header-main h1 {
            font-size: clamp(2rem, 4vw, 2.8rem);
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 0.5rem;
        }

        .header-main p {
            color: var(--text-light);
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .meta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .meta-chip {
            padding: 0.4rem 0.9rem;
            border-radius: 999px;
            background: var(--chip-bg);
            color: var(--text-light);
            font-size: 0.85rem;
            border: 1px solid transparent;
        }

        .meta-chip a {
            color: inherit;
            text-decoration: none;
        }

        .meta-chip a:hover {
            text-decoration: underline;
        }

        .theme-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.45rem 1rem;
            border-radius: 999px;
            border: 1px solid var(--card-border);
            background: rgba(255, 255, 255, 0.55);
            cursor: pointer;
            transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
            color: var(--text-color);
        }

        body[data-theme='dark'] .theme-toggle {
            background: rgba(15, 23, 42, 0.7);
        }

        .theme-toggle:hover {
            transform: translateY(-1px);
            border-color: var(--primary-color);
        }

        .theme-toggle .toggle-icon {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .theme-toggle svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            opacity: 0.6;
            transition: opacity 0.3s ease;
        }

        .theme-toggle.is-dark .icon-moon,
        .theme-toggle:not(.is-dark) .icon-sun {
            opacity: 1;
        }

        .theme-toggle-text {
            font-size: 0.9rem;
            font-weight: 600;
        }

        .card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-soft);
            padding: 2rem 2.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--card-border);
            backdrop-filter: saturate(180%) blur(22px);
        }

        /* 上传区域 */
        .upload-area {
            border: 1px dashed var(--border-dashed);
            border-radius: var(--border-radius);
            padding: 3rem 2rem;
            background: rgba(255, 255, 255, 0.65);
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.85rem;
        }

        .upload-area:hover,
        .upload-area.dragover {
            background: rgba(255, 255, 255, 0.9);
            border-color: var(--primary-color);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
        }

        body[data-theme='dark'] .upload-area {
            background: rgba(15, 23, 42, 0.9);
        }

        .upload-icon {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            background: linear-gradient(135deg, #9fd3ff, #3a7bd5);
            display: grid;
            place-items: center;
            box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6);
        }

        .upload-icon svg {
            width: 30px;
            height: 30px;
            stroke: #ffffff;
        }

        .upload-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .upload-desc {
            font-size: 1rem;
            color: var(--text-light);
        }

        .upload-hint {
            font-size: 0.85rem;
            color: var(--text-light);
        }

        input[type='file'] {
            display: none;
        }

        /* 按钮基类 */
        .btn {
            padding: 0.75rem 1.65rem;
            border: 1px solid transparent;
            border-radius: 999px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            gap: 0.5rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: #fff;
            box-shadow: 0 15px 30px rgba(0, 113, 227, 0.25);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 32px rgba(0, 113, 227, 0.35);
        }

        /* 统计信息已移至底部 */
        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin-bottom: 0;
        }

        .stat-item {
            background: rgba(255, 255, 255, 0.65);
            padding: 1.5rem;
            border-radius: 1rem;
            text-align: center;
            border: 1px solid var(--card-border);
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
        }

        body[data-theme='dark'] .stat-item {
            background: rgba(15, 23, 42, 0.85);
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.04);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .info-block h3 {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 1.5rem;
        }

        .toolbar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .search-box {
            width: 100%;
            padding: 0.9rem 1.5rem;
            border: 1px solid var(--border-color);
            border-radius: 999px;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
            background: var(--input-bg);
            color: var(--text-color);
            backdrop-filter: blur(20px);
        }

        .search-box::placeholder {
            color: var(--text-light);
        }

        .search-box:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
        }

        .filter-section {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .btn-filter {
            background: var(--chip-bg);
            color: var(--text-light);
            border: 1px solid transparent;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            font-weight: 500;
            border-radius: 999px;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .btn-filter:hover {
            background: rgba(0, 113, 227, 0.12);
            color: var(--text-color);
        }

        .btn-filter.active {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: #fff;
            border-color: transparent;
            box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2);
        }

        .time-limited-notice {
            background: var(--badge-limited-bg);
            color: var(--badge-limited-text);
            padding: 0.85rem 1.25rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .time-limited-notice::before {
            content: '';
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: currentColor;
            display: inline-block;
        }

        /* 表情网格 */
        .stickers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1.75rem;
        }

        .sticker-item {
            background: rgba(255, 255, 255, 0.75);
            border: 1px solid var(--card-border);
            border-radius: calc(var(--border-radius) - 4px);
            padding: 1.25rem 1rem;
            text-align: center;
            transition: all 0.35s ease;
            cursor: pointer;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        body[data-theme='dark'] .sticker-item {
            background: rgba(15, 23, 42, 0.9);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .sticker-item:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
            border-color: var(--primary-color);
        }

        .sticker-image-container {
            width: 100%;
            aspect-ratio: 1 / 1;
            background: rgba(15, 23, 42, 0.05);
            border-radius: 12px;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px dashed rgba(15, 23, 42, 0.1);
        }

        body[data-theme='dark'] .sticker-image-container {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .sticker-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .sticker-image-placeholder {
            font-size: 0.8rem;
            color: var(--text-light);
        }

        .sticker-name {
            font-weight: 600;
            color: var(--text-color);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sticker-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            justify-content: center;
            min-height: 1.2rem;
        }

        .badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 99px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .badge-hidden {
            background: var(--badge-hidden-bg);
            color: var(--badge-hidden-text);
        }
        .badge-system {
            background: var(--badge-system-bg);
            color: var(--badge-system-text);
        }
        .badge-limited {
            background: var(--badge-limited-bg);
            color: var(--badge-limited-text);
        }

        /* 状态 */
        .loading,
        .error {
            text-align: center;
            padding: 4rem 2rem;
            font-size: 1.05rem;
            font-weight: 500;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            border: 1px solid var(--card-border);
            box-shadow: var(--shadow-soft);
        }
        .loading {
            color: var(--primary-color);
        }
        .error {
            color: var(--badge-limited-text);
        }
        .hidden {
            display: none !important;
        }

        /* 弹窗样式 */
        .modal-backdrop {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
        }

        .modal-backdrop.show {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: var(--card-bg);
            padding: 2.5rem;
            border-radius: 20px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            position: relative;
            animation: slideIn 0.3s ease;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
            border: 1px solid var(--card-border);
            backdrop-filter: blur(30px);
        }

        @keyframes slideIn {
            from {
                transform: scale(0.9) translateY(10px);
                opacity: 0;
            }
            to {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }

        .modal-close {
            position: absolute;
            right: 15px;
            top: 15px;
            font-size: 2rem;
            font-weight: 300;
            color: #aaa;
            cursor: pointer;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: rgba(0, 0, 0, 0.05);
            color: var(--text-color);
        }

        .modal-image {
            max-width: 300px;
            max-height: 300px;
            object-fit: contain;
            margin: 1.5rem auto;
            display: block;
        }

        .modal-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 1rem;
        }

        .modal-badges {
            margin-bottom: 2rem;
            display: flex;
            gap: 8px;
            justify-content: center;
        }

        .download-btn::before {
            content: '';
            width: 10px;
            height: 10px;
            border-left: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(-45deg);
            margin-right: 0.5rem;
            display: inline-block;
        }

        /* 页脚版权信息 */
        .footer {
            text-align: center;
            padding: 2rem;
            color: var(--text-light);
            font-size: 0.85rem;
            border-top: 1px solid var(--border-color);
            margin-top: 2rem;
        }

        .footer a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        @media (min-width: 768px) {
            .toolbar {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }
            .search-box {
                max-width: 320px;
            }
            .filter-section {
                justify-content: flex-end;
            }
        }

        /* ----------- 移动端适配 ----------- */
        @media (max-width: 768px) {
            body { padding: 1.5rem 1rem; }
            .header { padding: 1.5rem; }
            .header-top { flex-direction: column; align-items: flex-start; }
            .header-main h1 { font-size: 1.8rem; }
            .card { padding: 1.5rem; margin-bottom: 1rem; }
            .upload-area { padding: 2rem 1.25rem; }
            .toolbar { gap: 1rem; }
            .search-box { padding: 0.85rem 1.2rem; font-size: 0.95rem; }
            .stickers-grid {
                grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
                gap: 1rem;
            }
            .modal-content { width: 92%; padding: 1.5rem; }
            .modal-image { max-width: 220px; max-height: 220px; }
            .footer { padding: 1.5rem; font-size: 0.85rem; }
        }
