/* ============================================
   导航页样式 - 精确复刻版
   风格：新拟态设计 (Neumorphism)
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #121212;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   页面容器
   ============================================ */
.page-container {
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* ============================================
   顶部导航栏
   ============================================ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    padding: 8px 0;
}

.nav-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: white;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1), -3px -3px 6px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo i {
    font-size: 20px;
    color: #121212;
}

.nav-title {
    color: #121212;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.nav-subtitle {
    color: #121212;
    opacity: 0.8;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.nav-action-button {
    background: linear-gradient(145deg, #121212, #333333);
    color: white;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), -2px -2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25), -3px -3px 6px rgba(255, 255, 255, 0.15);
}

.nav-action-button i {
    font-size: 12px;
}

/* ============================================
   Banner 轮播图区域
   ============================================ */
.banner-section {
    margin: 10px 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.banner-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.banner-slide {
    flex-shrink: 0;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slide a {
    display: block;
}

/* 轮播箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    opacity: 0;
    z-index: 5;
}

.banner-slider:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.banner-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.banner-prev { left: 10px; }
.banner-next { right: 10px; }

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* 单张Banner兼容 */
.banner-image-single {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* ============================================
   双按钮区域
   ============================================ */
.dual-btn-section {
    margin: 8px 12px;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.dual-btn {
    flex: 1;
    background-color: #121212;
    border-radius: 14px;
    padding: 16px 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.dual-btn span {
    background-image: linear-gradient(145deg, #FFB6C1, #FFDAB9, #FFFACD, #E6E6FA, #B0E0E6, #98FB98, #FFC0CB, #F0E68C, #DDA0DD, #AFEEEE, #FFB3BA, #FFDFBA, #FFFFBA, #BAFFC9, #BAE1FF, #FADADD, #E0BBE4, #FEC8D8, #FFE5B4, #B5EAD7, #C7CEEA, #F7CAC9, #F9E6B3, #E2F0CB, #D4E2D4, #FBC8D5, #C9E4DE, #FED7C1, #E5D1FA, #FFC8A2, #FFB6C1);
    background-size: 1000% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 900;
    font-size: 18px;
    animation: textGradient 12s linear infinite;
    display: inline-block;
}

.dual-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background-color: #1a1a1a;
}

.dual-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   公告栏
   ============================================ */
.announcement-bar {
    background: linear-gradient(145deg, #121212, #333333);
    border-radius: 12px;
    margin: 8px 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.announcement-icon {
    color: white;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.announcement-container {
    flex: 1;
    overflow: hidden;
    height: 24px;
    white-space: nowrap;
}

.announcement-marquee {
    color: white;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    width: 100%;
    border: none;
    background: transparent;
}

/* ============================================
   分类标签按钮
   ============================================ */
.tab-buttons-section {
    margin: 0 12px 8px;
}

.tab-buttons-container {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 14px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.05), -4px -4px 8px rgba(255, 255, 255, 0.8);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-buttons-container::-webkit-scrollbar {
    display: none;
}

.tab-button {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    color: #666;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    cursor: pointer;
    position: relative;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.08), -4px -4px 8px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    min-width: fit-content;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.tab-button.active {
    background: linear-gradient(145deg, #121212, #333333);
    color: white;
    font-weight: 600;
    box-shadow: 6px 6px 12px rgba(18, 18, 18, 0.15), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tab-button.active:hover {
    background: linear-gradient(145deg, #333333, #121212);
    transform: translateY(-3px);
    box-shadow: 8px 8px 16px rgba(18, 18, 18, 0.2), -3px -3px 8px rgba(255, 255, 255, 0.15), inset 3px 3px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   内容区域
   ============================================ */
.tab-content-container {
    margin: 0 12px 10px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* ============================================
   网站卡片 - 新拟态设计
   ============================================ */
.category-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 14px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.08), -4px -4px 8px rgba(255, 255, 255, 0.7), inset 1px 1px 0 rgba(255, 255, 255, 0.8), inset -1px -1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    border: none;
    margin-bottom: 0;
    height: auto;
    min-height: 0;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.12), -8px -8px 16px rgba(255, 255, 255, 0.8), inset 2px 2px 0 rgba(255, 255, 255, 0.9), inset -2px -2px 0 rgba(0, 0, 0, 0.07);
}

.category-card:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08), -3px -3px 6px rgba(255, 255, 255, 0.6), inset 3px 3px 5px rgba(0, 0, 0, 0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 14px 0 0 0;
    pointer-events: none;
}

.category-card-inner {
    display: flex;
    align-items: flex-start;
    height: 100%;
    width: 100%;
}

.category-card-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08), -3px -3px 6px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.category-card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.category-card-img .icon-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.category-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    gap: 4px;
    padding-top: 0;
    overflow: hidden;
}

.category-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    color: #121212;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
    word-break: break-word;
    white-space: normal;
    display: block;
    overflow: visible;
    max-height: none;
}

.category-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 6px;
    padding-top: 0;
}

.download-btn {
    background: linear-gradient(145deg, #333333, #121212);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), -1px -1px 3px rgba(255, 255, 255, 0.1), inset 1px 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 26px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    min-width: 70px;
    animation: bounce 1s infinite;
}

.download-btn:hover {
    background: linear-gradient(145deg, #121212, #333333);
    transform: translateY(-2px);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15), inset 2px 2px 0 rgba(255, 255, 255, 0.2);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15), -1px -1px 2px rgba(255, 255, 255, 0.05), inset 3px 3px 5px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 10px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    background: #f0f0f0;
    text-align: center;
}

.site-footer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.site-footer .footer-desc {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state p {
    color: #999;
    font-size: 14px;
}

/* ============================================
   骨架屏
   ============================================ */
.skeleton-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 14px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.08), -4px -4px 8px rgba(255, 255, 255, 0.7);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 89px;
}

.sk-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
    flex-shrink: 0;
}

.sk-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sk-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
}

.sk-line-title {
    width: 60%;
    height: 14px;
}

.sk-line-desc {
    width: 80%;
}

@keyframes sk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   弹窗
   ============================================ */
.share-popup, .announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
}

.share-popup.active, .announcement-popup.active {
    display: flex;
    opacity: 1;
}

.share-container, .announcement-container-new {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 28rem;
    margin: 0 1rem;
    transform: scale(0.95);
    transition: transform 0.3s;
    z-index: 50;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.share-popup.active .share-container,
.announcement-popup.active .announcement-container-new {
    transform: scale(1);
}

.popup-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #121212;
}

.popup-close {
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.15s;
    padding: 4px;
}

.popup-close:hover {
    color: #121212;
}

.popup-body {
    padding: 1.25rem;
}

.popup-body p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.popup-input-group {
    display: flex;
    margin-bottom: 1.25rem;
}

.popup-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem 0 0 0.5rem;
    outline: none;
    color: #121212;
}

.popup-copy-btn {
    background: linear-gradient(145deg, #121212, #333333);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分享弹窗 - 新方案 */
.share-qr-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.share-qr-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.08), -4px -4px 8px rgba(255,255,255,0.8);
    text-align: center;
}

.share-qr-card canvas {
    display: block;
    border-radius: 4px;
}

.share-qr-tip {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
}

.share-url-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-actions {
    display: flex;
    gap: 8px;
}

.share-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.08), -4px -4px 8px rgba(255,255,255,0.8);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    transition: all 0.25s ease;
}

.share-action-btn i {
    font-size: 1rem;
    color: #121212;
}

.share-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0,0,0,0.12), -6px -6px 12px rgba(255,255,255,0.9);
}

.share-action-btn:active {
    transform: translateY(0);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.08), -2px -2px 4px rgba(255,255,255,0.6);
}

/* 公告弹窗 */
.notice-new {
    position: relative;
    width: 100%;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 25px 20px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.top-line {
    height: 0.25rem;
    width: 40%;
    background-color: #121212;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    display: block;
    max-height: 50px;
    margin: 10px auto;
    width: auto;
    border-radius: 0.75rem;
}

.dear-text {
    text-align: left;
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: #333;
    font-weight: 700;
}

.main-contents {
    margin-bottom: 1.25rem;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    font-size: 0.875rem;
    color: #333;
    font-weight: 700;
    line-height: 1.625;
}

.info-group {
    text-align: right;
    margin-top: 10px;
}

.foot-text {
    font-size: 0.875rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.date-text {
    font-size: 0.75rem;
    color: #333;
    font-weight: 700;
}

.popup-footer-btn {
    width: 100%;
    margin: 15px auto;
    padding: 0.75rem;
    text-align: center;
    background: linear-gradient(145deg, #121212, #333333);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    border: 0;
    transition: all 0.3s;
}

.popup-footer-btn:hover {
    background: linear-gradient(145deg, #333333, #121212);
}

/* ============================================
   客服页面
   ============================================ */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
}

.page-header-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #121212;
    margin: 0;
}

.service-content {
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.7);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.15), -12px -12px 24px rgba(255, 255, 255, 0.8);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #121212, #333333);
    border-radius: 18px 18px 0 0;
}

.contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 28px;
    color: #121212;
}

.contact-info {
    margin-left: 12px;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.contact-copy-area {
    background: linear-gradient(145deg, #fafafa, #f0f0f0);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-copy-text {
    font-size: 14px;
    color: #121212;
    font-weight: 600;
    margin-bottom: 0;
    padding: 4px 0;
}

.contact-account {
    font-size: 15px;
    color: #121212;
    font-weight: 500;
}

.contact-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact-action-btn {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.08), -4px -4px 8px rgba(255, 255, 255, 0.8);
    border: none;
}

.contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #333333, #121212);
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.contact-action-btn.bg-primary:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15), -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.contact-action-btn.border-primary {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    color: #121212;
    border: 1px solid rgba(18, 18, 18, 0.2);
}

/* ============================================
   复制成功提示
   ============================================ */
.share-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #121212, #333333);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.share-notification.show {
    opacity: 1;
}

/* ============================================
   管理后台入口
   ============================================ */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #121212, #333333);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 30;
    transition: all 0.3s ease;
    font-size: 18px;
}

.admin-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.4);
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 380px) {
    .category-card {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .category-card-img {
        width: 55px;
        height: 55px;
        margin-right: 8px;
        border-radius: 10px;
    }

    .category-card-title {
        font-size: 13px;
    }

    .category-card-desc {
        font-size: 11px;
        line-height: 1.4;
    }

    .download-btn {
        padding: 5px 8px;
        font-size: 10px;
        height: 24px;
        min-width: 65px;
    }

    .sites-grid {
        gap: 6px;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    .tab-buttons-container {
        padding: 10px;
        border-radius: 12px;
        gap: 6px;
    }

    .announcement-bar {
        margin: 8px 10px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .announcement-icon {
        font-size: 16px;
        margin-right: 10px;
    }

    .announcement-marquee {
        font-size: 13px;
        line-height: 20px;
    }

    .announcement-container {
        height: 20px;
    }

    .top-nav {
        padding: 6px 0;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .nav-title {
        font-size: 16px;
    }

    .nav-subtitle {
        font-size: 11px;
    }

    .nav-action-button {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    .contact-card {
        padding: 15px;
        border-radius: 16px;
        margin-bottom: 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .contact-copy-area {
        padding: 12px;
        border-radius: 10px;
    }

    .contact-copy-text {
        font-size: 13px;
    }

    .contact-action-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .banner-section {
        margin: 8px 10px;
    }

    .dual-btn-section {
        margin: 8px 10px;
    }

    .dual-btn {
        padding: 14px 4px;
    }

    .dual-btn span {
        font-size: 16px;
    }

    .tab-buttons-section,
    .tab-content-container {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 320px) {
    .category-card {
        padding: 6px 8px;
        border-radius: 10px;
    }

    .category-card-img {
        width: 50px;
        height: 50px;
        margin-right: 6px;
        border-radius: 8px;
    }

    .category-card-title {
        font-size: 12px;
    }

    .category-card-desc {
        font-size: 10px;
        line-height: 1.3;
    }

    .download-btn {
        min-width: 60px;
        font-size: 9px;
        padding: 4px 6px;
        height: 22px;
    }

    .sites-grid {
        gap: 5px;
    }

    .nav-title {
        font-size: 15px;
    }

    .nav-subtitle {
        font-size: 10px;
    }

    .nav-action-button {
        font-size: 11px;
        padding: 5px 10px;
    }

    .dual-btn {
        padding: 12px 2px;
    }

    .dual-btn span {
        font-size: 14px;
    }
}

/* ============================================
   平板和桌面端
   ============================================ */
@media (min-width: 768px) {
    .banner-image {
        max-height: 250px;
    }

    .nav-logo {
        width: 48px;
        height: 48px;
    }

    .nav-title {
        font-size: 20px;
    }

    .nav-subtitle {
        font-size: 14px;
    }

    .nav-action-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (min-width: 1024px) {
    .banner-image {
        max-height: 300px;
    }

    .sites-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px;
    }

    .category-card-img {
        width: 70px;
        height: 70px;
    }

    .category-card-title {
        font-size: 16px;
    }

    .category-card-desc {
        font-size: 13px;
    }
}

/* ============================================
   主题切换器 UI
   ============================================ */
.theme-switcher {
    position: relative;
    margin-left: 6px;
}

.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08), -3px -3px 6px rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    font-size: 18px;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.12), -4px -4px 12px rgba(255, 255, 255, 0.8);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 100;
}

.theme-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.theme-option:hover {
    background: #f5f5f5;
}

.theme-option.active {
    background: #f0f0f0;
    font-weight: 600;
}

.theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.15), inset -2px -2px 4px rgba(255,255,255,0.5);
}

/* ============================================
   颜色模板 - 主题系统
   ============================================ */

/* ---- 1. 默认黑 (Default) ---- */
body.theme-default,
body:not([class*="theme-"]) {
    /* 使用原有样式作为默认 */
}

/* ---- 2. 深海蓝 (Ocean) ---- */
body.theme-ocean .top-nav,
body.theme-ocean .page-header {
    background-color: #e8f4f8;
}
body.theme-ocean .nav-title,
body.theme-ocean .page-header-title {
    color: #0d3b66;
}
body.theme-ocean .nav-action-button {
    background: linear-gradient(145deg, #0d3b66, #1565c0);
    box-shadow: 3px 3px 6px rgba(13, 59, 102, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15);
}
body.theme-ocean .dual-btn {
    background-color: #0d3b66;
}
body.theme-ocean .announcement-bar {
    background: linear-gradient(145deg, #0d3b66, #1565c0);
}
body.theme-ocean .tab-button.active {
    background: linear-gradient(145deg, #0d3b66, #1565c0);
    box-shadow: 6px 6px 12px rgba(13, 59, 102, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
}
body.theme-ocean .download-btn {
    background: linear-gradient(145deg, #1565c0, #0d3b66);
}
body.theme-ocean .contact-card::before {
    background: linear-gradient(90deg, #0d3b66, #1565c0);
}
body.theme-ocean .popup-footer-btn,
body.theme-ocean .popup-copy-btn {
    background: linear-gradient(145deg, #0d3b66, #1565c0);
}
body.theme-ocean .admin-link {
    background: linear-gradient(145deg, #0d3b66, #1565c0);
}
body.theme-ocean .share-notification {
    background: linear-gradient(145deg, #0d3b66, #1565c0);
}
body.theme-ocean .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #1565c0, #0d3b66);
}
body.theme-ocean .top-line {
    background-color: #0d3b66;
}

/* ---- 3. 森林绿 (Forest) ---- */
body.theme-forest .top-nav,
body.theme-forest .page-header {
    background-color: #e8f5e9;
}
body.theme-forest .nav-title,
body.theme-forest .page-header-title {
    color: #1b5e20;
}
body.theme-forest .nav-action-button {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
    box-shadow: 3px 3px 6px rgba(27, 94, 32, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15);
}
body.theme-forest .dual-btn {
    background-color: #1b5e20;
}
body.theme-forest .announcement-bar {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
}
body.theme-forest .tab-button.active {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
    box-shadow: 6px 6px 12px rgba(27, 94, 32, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
}
body.theme-forest .download-btn {
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
}
body.theme-forest .contact-card::before {
    background: linear-gradient(90deg, #1b5e20, #2e7d32);
}
body.theme-forest .popup-footer-btn,
body.theme-forest .popup-copy-btn {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
}
body.theme-forest .admin-link {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
}
body.theme-forest .share-notification {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
}
body.theme-forest .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
}
body.theme-forest .top-line {
    background-color: #1b5e20;
}

/* ---- 4. 紫罗兰 (Violet) ---- */
body.theme-violet .top-nav,
body.theme-violet .page-header {
    background-color: #f3e5f5;
}
body.theme-violet .nav-title,
body.theme-violet .page-header-title {
    color: #4a148c;
}
body.theme-violet .nav-action-button {
    background: linear-gradient(145deg, #4a148c, #7b1fa2);
    box-shadow: 3px 3px 6px rgba(74, 20, 140, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15);
}
body.theme-violet .dual-btn {
    background-color: #4a148c;
}
body.theme-violet .announcement-bar {
    background: linear-gradient(145deg, #4a148c, #7b1fa2);
}
body.theme-violet .tab-button.active {
    background: linear-gradient(145deg, #4a148c, #7b1fa2);
    box-shadow: 6px 6px 12px rgba(74, 20, 140, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
}
body.theme-violet .download-btn {
    background: linear-gradient(145deg, #7b1fa2, #4a148c);
}
body.theme-violet .contact-card::before {
    background: linear-gradient(90deg, #4a148c, #7b1fa2);
}
body.theme-violet .popup-footer-btn,
body.theme-violet .popup-copy-btn {
    background: linear-gradient(145deg, #4a148c, #7b1fa2);
}
body.theme-violet .admin-link {
    background: linear-gradient(145deg, #4a148c, #7b1fa2);
}
body.theme-violet .share-notification {
    background: linear-gradient(145deg, #4a148c, #7b1fa2);
}
body.theme-violet .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #7b1fa2, #4a148c);
}
body.theme-violet .top-line {
    background-color: #4a148c;
}

/* ---- 5. 珊瑚橙 (Coral) ---- */
body.theme-coral .top-nav,
body.theme-coral .page-header {
    background-color: #fff3e0;
}
body.theme-coral .nav-title,
body.theme-coral .page-header-title {
    color: #bf360c;
}
body.theme-coral .nav-action-button {
    background: linear-gradient(145deg, #bf360c, #e65100);
    box-shadow: 3px 3px 6px rgba(191, 54, 12, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15);
}
body.theme-coral .dual-btn {
    background-color: #bf360c;
}
body.theme-coral .announcement-bar {
    background: linear-gradient(145deg, #bf360c, #e65100);
}
body.theme-coral .tab-button.active {
    background: linear-gradient(145deg, #bf360c, #e65100);
    box-shadow: 6px 6px 12px rgba(191, 54, 12, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
}
body.theme-coral .download-btn {
    background: linear-gradient(145deg, #e65100, #bf360c);
}
body.theme-coral .contact-card::before {
    background: linear-gradient(90deg, #bf360c, #e65100);
}
body.theme-coral .popup-footer-btn,
body.theme-coral .popup-copy-btn {
    background: linear-gradient(145deg, #bf360c, #e65100);
}
body.theme-coral .admin-link {
    background: linear-gradient(145deg, #bf360c, #e65100);
}
body.theme-coral .share-notification {
    background: linear-gradient(145deg, #bf360c, #e65100);
}
body.theme-coral .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #e65100, #bf360c);
}
body.theme-coral .top-line {
    background-color: #bf360c;
}

/* ---- 6. 樱花粉 (Sakura) ---- */
body.theme-sakura .top-nav,
body.theme-sakura .page-header {
    background-color: #fce4ec;
}
body.theme-sakura .nav-title,
body.theme-sakura .page-header-title {
    color: #880e4f;
}
body.theme-sakura .nav-action-button {
    background: linear-gradient(145deg, #880e4f, #c2185b);
    box-shadow: 3px 3px 6px rgba(136, 14, 79, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15);
}
body.theme-sakura .dual-btn {
    background-color: #880e4f;
}
body.theme-sakura .announcement-bar {
    background: linear-gradient(145deg, #880e4f, #c2185b);
}
body.theme-sakura .tab-button.active {
    background: linear-gradient(145deg, #880e4f, #c2185b);
    box-shadow: 6px 6px 12px rgba(136, 14, 79, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
}
body.theme-sakura .download-btn {
    background: linear-gradient(145deg, #c2185b, #880e4f);
}
body.theme-sakura .contact-card::before {
    background: linear-gradient(90deg, #880e4f, #c2185b);
}
body.theme-sakura .popup-footer-btn,
body.theme-sakura .popup-copy-btn {
    background: linear-gradient(145deg, #880e4f, #c2185b);
}
body.theme-sakura .admin-link {
    background: linear-gradient(145deg, #880e4f, #c2185b);
}
body.theme-sakura .share-notification {
    background: linear-gradient(145deg, #880e4f, #c2185b);
}
body.theme-sakura .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #c2185b, #880e4f);
}
body.theme-sakura .top-line {
    background-color: #880e4f;
}

/* ---- 7. 薄荷青 (Mint) ---- */
body.theme-mint .top-nav,
body.theme-mint .page-header {
    background-color: #e0f7fa;
}
body.theme-mint .nav-title,
body.theme-mint .page-header-title {
    color: #006064;
}
body.theme-mint .nav-action-button {
    background: linear-gradient(145deg, #006064, #00838f);
    box-shadow: 3px 3px 6px rgba(0, 96, 100, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15);
}
body.theme-mint .dual-btn {
    background-color: #006064;
}
body.theme-mint .announcement-bar {
    background: linear-gradient(145deg, #006064, #00838f);
}
body.theme-mint .tab-button.active {
    background: linear-gradient(145deg, #006064, #00838f);
    box-shadow: 6px 6px 12px rgba(0, 96, 100, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
}
body.theme-mint .download-btn {
    background: linear-gradient(145deg, #00838f, #006064);
}
body.theme-mint .contact-card::before {
    background: linear-gradient(90deg, #006064, #00838f);
}
body.theme-mint .popup-footer-btn,
body.theme-mint .popup-copy-btn {
    background: linear-gradient(145deg, #006064, #00838f);
}
body.theme-mint .admin-link {
    background: linear-gradient(145deg, #006064, #00838f);
}
body.theme-mint .share-notification {
    background: linear-gradient(145deg, #006064, #00838f);
}
body.theme-mint .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #00838f, #006064);
}
body.theme-mint .top-line {
    background-color: #006064;
}

/* ---- 8. 暖日落 (Sunset) ---- */
body.theme-sunset .top-nav,
body.theme-sunset .page-header {
    background-color: #fff8e1;
}
body.theme-sunset .nav-title,
body.theme-sunset .page-header-title {
    color: #e65100;
}
body.theme-sunset .nav-action-button {
    background: linear-gradient(145deg, #e65100, #f57c00);
    box-shadow: 3px 3px 6px rgba(230, 81, 0, 0.25), -2px -2px 4px rgba(255, 255, 255, 0.15);
}
body.theme-sunset .dual-btn {
    background-color: #e65100;
}
body.theme-sunset .announcement-bar {
    background: linear-gradient(145deg, #e65100, #f57c00);
}
body.theme-sunset .tab-button.active {
    background: linear-gradient(145deg, #e65100, #f57c00);
    box-shadow: 6px 6px 12px rgba(230, 81, 0, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.15);
}
body.theme-sunset .download-btn {
    background: linear-gradient(145deg, #f57c00, #e65100);
}
body.theme-sunset .contact-card::before {
    background: linear-gradient(90deg, #e65100, #f57c00);
}
body.theme-sunset .popup-footer-btn,
body.theme-sunset .popup-copy-btn {
    background: linear-gradient(145deg, #e65100, #f57c00);
}
body.theme-sunset .admin-link {
    background: linear-gradient(145deg, #e65100, #f57c00);
}
body.theme-sunset .share-notification {
    background: linear-gradient(145deg, #e65100, #f57c00);
}
body.theme-sunset .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #f57c00, #e65100);
}
body.theme-sunset .top-line {
    background-color: #e65100;
}

/* ---- 9. 暗夜黑 (Dark) ---- */
body.theme-dark {
    background: #1a1a2e;
    color: #e0e0e0;
}
body.theme-dark .top-nav,
body.theme-dark .page-header {
    background-color: #16213e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.theme-dark .nav-title,
body.theme-dark .page-header-title,
body.theme-dark .category-card-title {
    color: #e0e0e0;
}
body.theme-dark .nav-subtitle {
    color: #b0b0b0;
}
body.theme-dark .nav-logo {
    background: #1a1a2e;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), -3px -3px 6px rgba(255, 255, 255, 0.05);
}
body.theme-dark .nav-action-button {
    background: linear-gradient(145deg, #0f3460, #16213e);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), -2px -2px 4px rgba(255, 255, 255, 0.05);
}
body.theme-dark .dual-btn {
    background-color: #0f3460;
}
body.theme-dark .announcement-bar {
    background: linear-gradient(145deg, #0f3460, #16213e);
}
body.theme-dark .tab-buttons-container {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -4px -4px 8px rgba(255, 255, 255, 0.03);
}
body.theme-dark .tab-button {
    background: linear-gradient(145deg, #16213e, #1a1a2e);
    color: #b0b0b0;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -4px -4px 8px rgba(255, 255, 255, 0.03);
}
body.theme-dark .tab-button.active {
    background: linear-gradient(145deg, #0f3460, #16213e);
    color: #e0e0e0;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25), -2px -2px 6px rgba(255, 255, 255, 0.03), inset 2px 2px 0 rgba(255, 255, 255, 0.1);
}
body.theme-dark .category-card {
    background: linear-gradient(145deg, #16213e, #1a1a2e);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -4px -4px 8px rgba(255, 255, 255, 0.03), inset 1px 1px 0 rgba(255, 255, 255, 0.05), inset -1px -1px 0 rgba(0, 0, 0, 0.2);
}
body.theme-dark .category-card:hover {
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3), -8px -8px 16px rgba(255, 255, 255, 0.03), inset 2px 2px 0 rgba(255, 255, 255, 0.05), inset -2px -2px 0 rgba(0, 0, 0, 0.2);
}
body.theme-dark .category-card-desc {
    color: #b0b0b0;
}
body.theme-dark .category-card-img {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), -3px -3px 6px rgba(255, 255, 255, 0.03);
}
body.theme-dark .download-btn {
    background: linear-gradient(145deg, #0f3460, #16213e);
}
body.theme-dark .contact-card {
    background: linear-gradient(145deg, #16213e, #1a1a2e);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.03);
}
body.theme-dark .contact-card::before {
    background: linear-gradient(90deg, #0f3460, #16213e);
}
body.theme-dark .contact-icon {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2), -4px -4px 8px rgba(255, 255, 255, 0.03);
}
body.theme-dark .contact-info h3 {
    color: #e0e0e0;
}
body.theme-dark .contact-info p,
body.theme-dark .contact-copy-text,
body.theme-dark .contact-account {
    color: #b0b0b0;
}
body.theme-dark .contact-copy-area {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.03);
}
body.theme-dark .contact-action-btn.border-primary {
    background: linear-gradient(145deg, #16213e, #1a1a2e);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.theme-dark .popup-footer-btn,
body.theme-dark .popup-copy-btn {
    background: linear-gradient(145deg, #0f3460, #16213e);
}
body.theme-dark .admin-link {
    background: linear-gradient(145deg, #0f3460, #16213e);
}
body.theme-dark .share-notification {
    background: linear-gradient(145deg, #0f3460, #16213e);
}
body.theme-dark .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, #0f3460, #16213e);
}
body.theme-dark .site-footer {
    background: #16213e;
}
body.theme-dark .site-footer p,
body.theme-dark .site-footer .footer-desc {
    color: #b0b0b0;
}
body.theme-dark .top-line {
    background-color: #0f3460;
}
body.theme-dark .popup-header h3 {
    color: #e0e0e0;
}
body.theme-dark .popup-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.theme-dark .popup-close {
    color: #b0b0b0;
}
body.theme-dark .popup-close:hover {
    color: #e0e0e0;
}
body.theme-dark .popup-body p {
    color: #b0b0b0;
}
body.theme-dark .popup-input {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
body.theme-dark .notice-new {
    background-color: #16213e;
}
body.theme-dark .dear-text,
body.theme-dark .main-contents,
body.theme-dark .foot-text,
body.theme-dark .date-text {
    color: #e0e0e0;
}
body.theme-dark .share-qr-card {
    background: #16213e;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2), -4px -4px 8px rgba(255,255,255,0.03);
}
body.theme-dark .share-action-btn {
    background: linear-gradient(145deg, #16213e, #1a1a2e);
    color: #e0e0e0;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2), -4px -4px 8px rgba(255,255,255,0.03);
}
body.theme-dark .theme-toggle-btn {
    background: linear-gradient(145deg, #16213e, #1a1a2e);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), -3px -3px 6px rgba(255, 255, 255, 0.03);
    color: #e0e0e0;
}
body.theme-dark .theme-dropdown {
    background: #16213e;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3), -4px -4px 12px rgba(255, 255, 255, 0.03);
}
body.theme-dark .theme-option {
    color: #e0e0e0;
}
body.theme-dark .theme-option:hover,
body.theme-dark .theme-option.active {
    background: #1a1a2e;
}

/* ============================================
   自定义主题色 (CSS 变量覆盖)
   通过 JS 设置 --custom-theme-color 变量来动态应用后台设置的颜色
   ============================================ */
body.custom-theme-active .nav-action-button,
body.custom-theme-active .dual-btn {
    background-color: var(--custom-theme-color);
}
body.custom-theme-active .nav-action-button {
    background: linear-gradient(145deg, var(--custom-theme-color), var(--custom-theme-color-dark));
}
body.custom-theme-active .dual-btn {
    background-color: var(--custom-theme-color);
}
body.custom-theme-active .announcement-bar {
    background: linear-gradient(145deg, var(--custom-theme-color), var(--custom-theme-color-dark));
}
body.custom-theme-active .tab-button.active {
    background: linear-gradient(145deg, var(--custom-theme-color), var(--custom-theme-color-dark));
    box-shadow: 6px 6px 12px rgba(0,0,0,0.15), -2px -2px 6px rgba(255,255,255,0.1), inset 2px 2px 0 rgba(255,255,255,0.15);
}
body.custom-theme-active .download-btn {
    background: linear-gradient(145deg, var(--custom-theme-color-dark), var(--custom-theme-color));
}
body.custom-theme-active .contact-card::before {
    background: linear-gradient(90deg, var(--custom-theme-color), var(--custom-theme-color-dark));
}
body.custom-theme-active .popup-footer-btn,
body.custom-theme-active .popup-copy-btn {
    background: linear-gradient(145deg, var(--custom-theme-color), var(--custom-theme-color-dark));
}
body.custom-theme-active .admin-link {
    background: linear-gradient(145deg, var(--custom-theme-color), var(--custom-theme-color-dark));
}
body.custom-theme-active .share-notification {
    background: linear-gradient(145deg, var(--custom-theme-color), var(--custom-theme-color-dark));
}
body.custom-theme-active .contact-action-btn.bg-primary {
    background: linear-gradient(145deg, var(--custom-theme-color-dark), var(--custom-theme-color));
}
body.custom-theme-active .top-line {
    background-color: var(--custom-theme-color);
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}
