* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo {
    max-height: 50px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 主要导航链接（在移动端隐藏） */
.main-nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    letter-spacing: 0.5px;
}


.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 首页链接特殊样式 - 霓虹灯变色 + 半透明玻璃材质 */
.nav-link-home {
    background: rgba(255, 107, 107, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    font-weight: 700 !important;
    animation: neonGlow 4s ease infinite;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-link-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.nav-link-home::after {
    display: none;
}

.nav-link-home:hover {
    animation: neonGlow 2s ease infinite;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes neonGlow {
    0% {
        background: rgba(255, 107, 107, 0.3);
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 107, 107, 0.4);
    }
    16.66% {
        background: rgba(255, 165, 0, 0.3);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 165, 0, 0.4);
    }
    33.33% {
        background: rgba(255, 255, 0, 0.3);
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 0, 0.4);
    }
    50% {
        background: rgba(0, 255, 127, 0.3);
        box-shadow: 0 0 10px rgba(0, 255, 127, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 255, 127, 0.4);
    }
    66.66% {
        background: rgba(0, 191, 255, 0.3);
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 191, 255, 0.4);
    }
    83.33% {
        background: rgba(138, 43, 226, 0.3);
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(138, 43, 226, 0.4);
    }
    100% {
        background: rgba(255, 107, 107, 0.3);
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 107, 107, 0.4);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.auth-links,
.user-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Announcements */
.announcements-section {
    margin-bottom: 2rem;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-height: auto;
    height: auto;
}

.announcement-item {
    margin-bottom: 1rem;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.announcement-item h3 {
    margin-bottom: 0.5rem;
    color: #007bff;
}

.announcement-images {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* 单张图片样式：贴合显示区域 */
.announcement-images-single {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
}

.announcement-image-single {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    object-fit: cover;
}

/* 多张图片轮播样式 */
.announcement-images-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.image-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.announcement-image-carousel {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 24px;
    transition: opacity 0.3s ease;
}

/* 图片轮播指示器 */
.image-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.image-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-carousel-dot:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.image-carousel-dot.active {
    background-color: #667eea;
    width: 24px;
    border-radius: 5px;
}

/* 图片轮播控制按钮 */
.image-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.image-carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-carousel-prev {
    left: 0;
}

.image-carousel-next {
    right: 0;
}

/* 开奖器样式 */
.lottery-display-section {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    padding: 1.25rem;
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 2rem;
}

.lottery-main-content {
    position: relative;
    min-height: 250px;
}

.lottery-numbers-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* 期数区域 */
.period-section {
    text-align: center;
    margin-bottom: 0;
}

.period-highlight {
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: 1px;
}

.period-number {
    color: #e53e3e;
}

.period-year {
    color: #007bff;
}

.period-number-part {
    display: inline;
}

/* 所有号码横排 */
.all-numbers-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.numbers-row-all {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.numbers-row-all::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.number-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.zodiac-separator {
    width: 0;
    height: 0;
    margin: 0;
}

.zodiac-row-all {
    display: none;
}

.number-box {
    width: 85px;
    height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    border: 3px solid rgba(255,255,255,0.3);
}

.number-box:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.3);
}

.number-box.red {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border-color: rgba(255,255,255,0.4);
}

.number-box.blue {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border-color: rgba(255,255,255,0.4);
}

.number-box.green {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    border-color: rgba(255,255,255,0.4);
}

.number-box-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.number-box-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-in;
}

.zodiac-item {
    width: 85px;
    text-align: center;
    font-size: 1.05rem;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 0.3rem;
    animation: fadeIn 0.5s ease-in;
}

.number-separator {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
    line-height: 1;
}

.zodiac-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.countdown-section {
    text-align: center;
    width: 100%;
    margin-bottom: 0;
}

.countdown-label {
    font-size: 1.15rem;
    color: #2d3748;
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 3px;
}

.countdown-item {
    display: inline-block;
    width: 55px;
    height: 65px;
    line-height: 65px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    color: #667eea;
    font-weight: 800;
    font-size: 1.8rem;
}

.countdown-separator {
    font-size: 1.8rem;
    color: #667eea;
    margin: 0 0.3rem;
    font-weight: 800;
}


.history-link-bottom {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.history-link-bottom a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.history-link-bottom a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #764ba2;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 帖子专区样式 */
/* 主页图片区域 */
.homepage-images-section {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* 图片覆盖整个区域 */
.homepage-images-container {
    position: relative;
    width: 100%;
    z-index: 1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.homepage-image-item {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.homepage-image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.homepage-image-item img:hover {
    transform: scale(1.05);
}

/* 标题和上传区域在图片上方 */
.homepage-images-section .section-header,
.homepage-images-section .homepage-images-upload {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.homepage-images-section .section-header {
    margin-bottom: 1rem;
}

.homepage-images-section .homepage-images-upload {
    margin-top: 1rem;
    margin-bottom: 0;
}

.homepage-images-upload-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.posts-section {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.section-header h2 {
    font-size: 1.9rem;
    color: #667eea;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.8px;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.view-all-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-row-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: flex-start;
    gap: 0.75rem;
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-row-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.post-row-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.post-row-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

.post-label {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #dc3545;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-content-preview {
    flex: 1;
    color: #dc3545;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-period {
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-title-content {
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-stats-inline {
    color: #6c757d;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.post-card-mini {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.post-card-mini h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.85rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.post-card-mini .post-meta-mini {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.post-card-mini .post-stats-mini {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

/* 帖子购买信息样式 */
.post-purchase-info {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.points-required {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.points-label {
    color: #856404;
    font-weight: 600;
    font-size: 0.9rem;
}

.points-value {
    color: #e53e3e;
    font-weight: 800;
    font-size: 1.2rem;
}

.free-unlock-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.countdown-label {
    color: #856404;
    font-weight: 600;
    font-size: 0.9rem;
}

.countdown-value {
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* 首页精选帖子购买信息样式 */
.post-purchase-info-mini {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    font-size: 0.85rem;
}

.points-required-mini {
    margin-bottom: 0.5rem;
    color: #856404;
}

.points-required-mini strong {
    color: #e53e3e;
    font-weight: 800;
}

.free-unlock-countdown-mini {
    color: #856404;
}

.free-unlock-countdown-mini strong {
    color: #667eea;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.btn-purchase-mini {
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-purchase-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-purchase-mini:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

/* 详情页购买信息样式 */
.post-purchase-info-detail {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-radius: 12px;
    border-left: 5px solid #ffc107;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.points-required-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.points-required-detail .points-label {
    color: #856404;
    font-weight: 700;
    font-size: 1rem;
}

.points-required-detail .points-value {
    color: #e53e3e;
    font-weight: 900;
    font-size: 1.5rem;
    background: rgba(229, 62, 62, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.free-unlock-countdown-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.free-unlock-countdown-detail .countdown-label {
    color: #856404;
    font-weight: 700;
    font-size: 1rem;
}

.free-unlock-countdown-detail .countdown-value {
    color: #667eea;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    background: rgba(102, 126, 234, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 100px;
    text-align: center;
}

.post-content-locked {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.match-correct {
    color: #28a745;
    font-weight: 700;
}

.match-wrong {
    color: #dc3545;
    font-weight: 700;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

.empty-state, .error-state {
    text-align: center;
    padding: 2rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Forms */
.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tab-btn.active {
    background-color: #007bff;
    color: #fff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* 验证码图片样式 */
#login-captcha-image,
#register-captcha-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
}

#login-captcha-image svg,
#register-captcha-image svg {
    display: block;
    width: 120px;
    height: 40px;
}

.error-message {
    color: #dc3545;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border-radius: 4px;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.filter-group label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 1rem;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    min-height: 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.filter-group label:hover {
    border-color: #667eea;
}

.filter-group label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* 筛选器中的按钮样式 */
.filters .btn-primary,
.filters .btn-secondary {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    min-height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trends-container {
    width: 100%;
    height: 400px;
    position: relative;
    margin-top: 1rem;
}

/* Table */
.table-container {
    background-color: #fff;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #007bff;
    color: #fff;
}

th, td {
    padding: 0.25rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

/* Number with Zodiac */
.number-zodiac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0.125rem;
    padding: 0.25rem;
    gap: 0.15rem;
}

.number-zodiac .number {
    font-weight: bold;
    font-size: 1.1rem;
}

.number-zodiac .zodiac {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* 历史记录页面的小型号码图标 */
.number-box-mini {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}

.number-box-mini:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.3);
}

.number-box-mini.red {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.number-box-mini.blue {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.number-box-mini.green {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.number-box-value-mini {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.zodiac-mini {
    font-size: 0.75rem;
    color: #2d3748;
    font-weight: 600;
    text-align: center;
    margin-top: 0.2rem;
}

/* Match Status */
.match-correct {
    color: #28a745;
    font-weight: bold;
}

.match-wrong {
    color: #dc3545;
    font-weight: bold;
}

/* Posts */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-card h3 {
    margin-bottom: 0.5rem;
    color: #007bff;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination button:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
}

.pagination button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #666;
    user-select: none;
}

/* Points */
.points-container {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.points-main-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.points-left-section {
    flex: 1;
    min-width: 0;
}

.points-right-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
}

.points-balance {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.points-balance h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #666;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin: 0;
}

.signin-section {
    flex: 1;
    padding: 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signin-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #666;
}

.signin-section #signin-status {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.signin-section #signin-status .signin-status-unsigned {
    color: #007bff;
    font-weight: 600;
}

.signin-section #signin-status .signin-status-signed {
    color: #999;
    font-weight: 500;
}

.signin-section .btn-primary {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.records-section {
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.records-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.records-section #points-records {
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
}

.records-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.records-section table thead {
    background-color: #f8f9fa;
}

.records-section table th,
.records-section table td {
    padding: 0.35rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.records-section table th {
    font-weight: 600;
    color: #495057;
    font-size: 0.7rem;
}

.records-section table td {
    color: #666;
}

.records-section table td.text-success {
    color: #28a745;
    font-weight: normal;
}

.records-section table td.text-danger {
    color: #e53e3e;
    font-weight: 600;
}

.points-announcement-section {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.points-announcement-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.points-announcement-content-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.points-announcement-content {
    flex: 1;
    white-space: pre-wrap;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.points-announcement-images {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 规则内容样式 */
.rules-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.rule-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.rule-top-image {
    margin-bottom: 2rem;
}

.rule-top-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.rule-body {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #1a1a1a;
}

.rule-images {
    margin-top: 1.5rem;
}

.rule-images img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
}

/* Admin */
.admin-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.admin-sidebar {
    width: 250px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 0.5rem;
}

.admin-menu a {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-menu a:hover {
    background-color: #f8f9fa;
}

.admin-content {
    flex: 1;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 1.5rem;
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* 管理后台模态框 */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.admin-modal-content {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.admin-item-card {
    transition: all 0.3s ease;
}

.admin-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 统计分析页面样式 */
.stats-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.15);
    overflow: hidden;
}

.stats-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.stats-card-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
}

.stats-card-content {
    padding: 2rem;
}

.stats-table-container {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.stats-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stats-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    border-bottom: 2px solid #dee2e6;
    letter-spacing: 0.3px;
}

.stats-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 500;
}

.stats-table tbody tr {
    transition: background-color 0.2s;
}

.stats-table tbody tr:hover {
    background-color: #f8f9fa;
}

.stats-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.stats-table tbody tr:nth-child(even):hover {
    background-color: #f1f3f5;
}

.loading-text {
    text-align: center;
    color: #718096;
    padding: 3rem !important;
    font-size: 1.1rem;
}

.stats-chart-card {
    grid-column: 1 / -1;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.chart-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.chart-item h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.chart-item-full {
    grid-column: 1 / -1;
}

.chart-item canvas {
    max-height: 300px;
}

.chart-item-full canvas {
    max-height: 400px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.site-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .disclaimer {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.site-footer .copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    margin: 0;
}

/* 添加一些额外的美化 */
.announcement-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-left: 4px solid #667eea;
    min-height: 150px; /* 固定最小高度 */
    height: auto;
}

.announcement-carousel-item {
    min-height: 150px; /* 确保轮播项也有固定高度 */
    height: auto;
}

.btn-logout {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

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

/* 底部导航栏（移动端） */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    z-index: 9999;
    padding: 0.35rem 0;
    /* 安全区域适配（iPhone X等有底部安全区域的设备） */
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom));
    /* 确保始终在窗口底部可见 */
    will-change: transform;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    padding: 0 0.2rem;
    gap: 0.15rem;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    padding: 0.3rem 0.15rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    font-size: 0.7rem;
    gap: 0.1rem;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.bottom-nav-link span:first-child {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.bottom-nav-link span:last-child {
    font-size: 0.55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 500;
    transition: font-weight 0.2s ease;
}

.bottom-nav-link:active {
    transform: scale(0.95);
}

.bottom-nav-link:active span:first-child {
    transform: scale(0.9);
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.12);
}

.bottom-nav-link.active {
    color: #667eea;
    font-weight: 600;
}

.bottom-nav-link.active span:first-child {
    transform: scale(1.1);
}

.bottom-nav-link.active span:last-child {
    font-weight: 600;
}

/* 为底部导航栏预留空间 */
body {
    padding-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    /* 隐藏顶部导航栏中的主要导航链接 */
    .main-nav-links {
        display: none;
    }

    /* 显示底部导航栏 */
    .bottom-nav {
        display: block;
    }

    /* 为底部导航栏预留空间 */
    body {
        padding-bottom: calc(55px + env(safe-area-inset-bottom));
    }

    main {
        margin: 0;
        padding: 0;
        max-width: 100%;
        padding-bottom: 1rem;
    }

    /* Footer 移动端样式 */
    .site-footer {
        padding: 1rem 0.75rem;
        margin-top: 2rem;
        padding-bottom: calc(1rem + 55px + env(safe-area-inset-bottom));
    }

    .site-footer .disclaimer {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .site-footer .copyright {
        font-size: 0.7rem;
    }

    /* 所有section贴合边缘 */
    .announcements-section,
    .lottery-display-section,
    .posts-section,
    .homepage-images-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* 登录注册页面手机端样式 */
    .auth-container {
        padding: 1rem;
        margin: 1rem;
        border-radius: 8px;
    }

    .auth-tabs {
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .auth-form h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 6px;
    }

    .btn-primary {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 6px;
    }

    /* 验证码图片手机端样式 */
    .form-group > div {
        flex-wrap: nowrap;
        overflow: visible;
        align-items: stretch;
    }

    #login-captcha-image,
    #register-captcha-image {
        min-width: 120px;
        width: 120px;
        height: 40px;
        flex-shrink: 0;
        overflow: visible;
        padding: 0.2rem;
        box-sizing: content-box;
    }

    #login-captcha-image svg,
    #register-captcha-image svg {
        width: 120px;
        height: 40px;
        max-width: none;
        max-height: none;
        display: block;
    }

    #login-captcha,
    #register-captcha {
        min-width: 0;
        flex: 1;
    }

    .announcements-section {
        margin-bottom: 0;
        padding: 0;
    }

    /* 公告图片在移动端完全贴合边缘 */
    .announcement-images-single,
    .announcement-images-carousel,
    .image-carousel-container {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .announcement-image-single,
    .announcement-image-carousel {
        width: 100%;
        border-radius: 0;
    }

    .announcement-item {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 0;
    }

    /* 公告图片完全贴合边缘（移动端announcements-section的padding已经是0，所以不需要负margin） */
    .announcement-images {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .lottery-display-section {
        padding: 1rem 0;
    }

    .posts-section {
        padding: 1rem 0;
    }

    .posts-grid {
        padding: 0;
    }

    .homepage-images-section {
        padding: 1.5rem 0;
    }

    /* 移除section的border-radius，贴合边缘 */
    .announcements-section,
    .lottery-display-section,
    .posts-section,
    .homepage-images-section {
        border-radius: 0;
        margin-bottom: 0;
    }

    /* 其他容器也贴合边缘 */
    .filters,
    .table-container,
    .pagination,
    .page-header {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .filters {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
        display: flex;
        flex-direction: row;
        gap: 0.3rem;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filters .filter-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
    }

    .filters .filter-group label {
        font-size: 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.3rem 0.6rem;
        border-width: 1px;
        border-radius: 4px;
        gap: 0.3rem;
    }

    .filters .filter-group label input[type="radio"] {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    .filters .filter-group label span {
        font-size: 0.6rem;
        white-space: nowrap;
    }

    .filters {
        gap: 0.25rem;
        padding: 0.4rem;
    }

    .filters .filter-group {
        gap: 0.2rem;
        flex-shrink: 0;
    }

    .filters .filter-group label {
        font-size: 0.6rem;
        padding: 0;
        border: none;
        background: transparent;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .filters .filter-group input,
    .filters .filter-group select {
        flex: 0 1 auto;
        min-width: 0;
        font-size: 0.6rem;
        padding: 0.3rem 0.4rem;
        min-height: 32px;
        width: auto;
        max-width: 100px;
        flex-shrink: 1;
    }

    .filters .filter-group input::placeholder {
        font-size: 0.55rem;
    }

    /* 日期输入框特殊处理 */
    .filters .filter-group input[type="date"] {
        font-size: 0.55rem;
        padding: 0.3rem 0.3rem;
        min-height: 32px;
        max-width: 95px;
    }

    .filters .btn-primary,
    .filters .btn-secondary {
        flex-shrink: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
        white-space: nowrap;
        min-width: fit-content;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }

    .table-container {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 手机端表格样式 */
    table {
        font-size: 0.7rem;
        min-width: 100%;
    }

    th, td {
        padding: 0.3rem 0.2rem;
        white-space: nowrap;
        font-size: 0.7rem;
    }

    th {
        font-size: 0.65rem;
        padding: 0.35rem 0.2rem;
    }

    /* 正码和特码列不换行 */
    td:nth-child(3),
    td:nth-child(4) {
        white-space: nowrap;
    }

    /* 手机端号码和生肖缩小 */
    .number-zodiac {
        margin: 0.05rem;
        padding: 0.1rem;
        gap: 0.05rem;
    }

    .number-box-mini {
        width: 28px;
        height: 28px;
    }

    .number-box-value-mini {
        font-size: 0.7rem;
    }

    .zodiac-mini {
        font-size: 0.5rem;
        margin-top: 0.1rem;
    }

    /* 正码列使用横向滚动 */
    td:nth-child(3) {
        display: flex;
        gap: 0.2rem;
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pagination {
        padding: 0.5rem;
        margin-top: 1rem;
        gap: 0.25rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .pagination button {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 32px;
        flex-shrink: 0;
    }

    .pagination .pagination-ellipsis {
        padding: 0.3rem 0.15rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .page-header {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
    }

    .page-header h1 {
        font-size: 1.2rem;
    }

    /* 确保内容不会被底部导航栏遮挡 */
    .rules-container,
    .post-detail-container,
    .stats-main-container,
    .points-container {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .points-main-section {
        padding-bottom: 1rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
    }

    /* 规则内容手机端样式 */
    .rule-content {
        padding: 0.75rem;
        font-size: 0.8rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .rule-content h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .rule-body {
        font-size: 0.75rem;
        line-height: 1.5;
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .rule-images img {
        max-width: 100%;
        height: auto;
        margin: 0.5rem 0;
    }

    /* container类也贴合边缘 */
    .container {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    /* 其他容器也贴合边缘 */
    .points-main-section {
        border-radius: 0;
        margin-bottom: 0;
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .points-left-section {
        width: 100%;
    }

    .points-right-section {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    /* 积分记录表格手机端样式 */
    .records-section {
        padding: 0.5rem;
    }

    .records-section h2 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .records-section #points-records {
        max-height: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .records-section table {
        font-size: 0.65rem;
        min-width: 100%;
    }

    .records-section table th,
    .records-section table td {
        padding: 0.3rem 0.4rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .records-section table th {
        font-size: 0.6rem;
        padding: 0.35rem 0.4rem;
    }

    /* 积分余额和签到区域手机端样式 */
    .points-balance,
    .signin-section {
        padding: 0.75rem;
    }

    .points-balance h2,
    .signin-section h2 {
        font-size: 0.8rem;
    }

    .balance-amount {
        font-size: 1.5rem;
    }

    .signin-section #signin-status {
        font-size: 0.75rem;
    }

    .signin-section .btn-primary {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    /* 移动端顶部导航栏样式优化 */
    header {
        padding: 0;
    }

    .header-container {
        padding: 0.5rem 0;
        min-height: 44px;
        flex-direction: row;
        gap: 0.5rem;
    }

    .logo {
        max-height: 32px;
        max-width: 120px;
    }

    .logo-container {
        font-size: 1rem;
        flex: 1;
    }

    .main-nav {
        width: auto;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* 用户信息区域缩小 */
    .user-info {
        gap: 0.5rem;
    }

    #username-display {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }

    .btn-logout {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .admin-container {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }

    .admin-sidebar {
        width: 100%;
        padding: 0.5rem;
        border-radius: 0;
        box-shadow: none;
    }

    .admin-sidebar h2 {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        color: #667eea;
    }

    .admin-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.3rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        margin: 0;
    }

    .admin-menu li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .admin-menu a {
        padding: 0.35rem 0.5rem;
        font-size: 0.6rem;
        white-space: nowrap;
        border-radius: 4px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
    }

    .admin-menu a:hover {
        background-color: #e9ecef;
    }

    .admin-content {
        padding: 0.5rem;
        border-radius: 0;
        box-shadow: none;
        font-size: 0.7rem;
    }

    /* 创建帖子弹窗手机端样式 */
    .admin-modal-content {
        padding: 0.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .admin-modal-content h2 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }

    .admin-modal-content .form-group {
        margin-bottom: 0.5rem !important;
        font-size: 0.6rem !important;
    }

    .admin-modal-content .form-group label {
        font-size: 0.6rem !important;
        margin-bottom: 0.25rem !important;
        white-space: nowrap;
    }

    /* 发布类型、码类型、期号一行显示 */
    .admin-modal-content .form-group > div[style*="display: flex"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .admin-modal-content .form-group > div[style*="display: flex"] label {
        flex-shrink: 0 !important;
        padding: 0.25rem 0.4rem !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
        border-width: 1px !important;
    }

    .admin-modal-content .form-group > div[style*="display: flex"] input[type="radio"] {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
    }

    .admin-modal-content select {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.6rem !important;
        border-radius: 4px !important;
        height: auto !important;
    }

    .admin-modal-content select option {
        font-size: 0.6rem !important;
        padding: 0.2rem !important;
    }

    .admin-modal-content button {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
        border-radius: 4px !important;
    }

    .admin-modal-content input[type="text"],
    .admin-modal-content input[type="number"],
    .admin-modal-content input[type="color"] {
        padding: 0.3rem !important;
        font-size: 0.6rem !important;
        border-radius: 4px !important;
    }

    .admin-modal-content input[type="color"] {
        width: 24px !important;
        height: 24px !important;
    }

    .admin-modal-content .text-format-btn {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
        min-width: auto !important;
    }

    .admin-modal-content [contenteditable="true"] {
        padding: 0.4rem !important;
        font-size: 0.6rem !important;
        min-height: 30px !important;
    }

    /* 作者名字和随机生成按钮一行显示 */
    .admin-modal-content .form-group > div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
    }

    .admin-modal-content #generate-author-name-btn {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* 期号选择框优化 */
    .admin-modal-content #post-period {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.5rem !important;
        width: 100% !important;
    }

    /* 关闭按钮优化 */
    .admin-modal-content .modal-close-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 16px !important;
        line-height: 20px !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
    }

    /* 表单内所有div容器优化 */
    .admin-modal-content .form-group > div {
        font-size: 0.6rem !important;
    }

    /* 工具栏按钮一行显示 */
    .admin-modal-content .form-group > div[style*="flex-wrap: wrap"] {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.25rem !important;
        padding-bottom: 0.3rem !important;
        margin-bottom: 0.3rem !important;
    }

    /* 工具栏分隔符 */
    .admin-modal-content .form-group > div span[style*="margin: 0"] {
        margin: 0 0.2rem !important;
        font-size: 0.5rem !important;
    }

    /* 文字颜色标签优化 */
    .admin-modal-content .form-group label[style*="display: flex"] {
        font-size: 0.55rem !important;
        gap: 0.25rem !important;
    }

    .admin-modal-content .form-group label[style*="display: flex"] span {
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }

    .admin-section h2 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .form-group label {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.65rem;
        padding: 0.35rem 0.4rem;
    }

    .btn-primary {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
    }

    /* 管理后台帖子列表手机端样式 */
    .admin-item-card {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.6rem !important;
    }

    .admin-item-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.3 !important;
    }

    .admin-item-card > div {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .admin-item-card > div > div:first-child {
        flex-direction: row !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }

    .admin-item-card .post-checkbox {
        width: 14px !important;
        height: 14px !important;
        margin-top: 0.1rem !important;
        flex-shrink: 0 !important;
    }

    .admin-item-card > div > div:first-child > div {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .admin-item-card > div > div:first-child > div > div {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
        font-size: 0.55rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .admin-item-card > div > div:first-child > div > div > span {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .admin-item-card > div > div:first-child > div > div:last-child {
        font-size: 0.55rem !important;
        max-height: 60px !important;
        line-height: 1.4 !important;
    }

    .admin-item-card > div > div:last-child {
        flex-direction: row !important;
        gap: 0.3rem !important;
        width: 100% !important;
    }

    .admin-item-card .btn-secondary {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
        flex: 1 !important;
    }

    /* 批量操作栏手机端样式 */
    #batch-actions-bar {
        padding: 0.5rem !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
    }

    #batch-actions-bar > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.3rem !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
    }

    #batch-actions-bar span {
        font-size: 0.6rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #batch-actions-bar button {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #batch-actions-bar #batch-delete-btn {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* 帖子管理按钮手机端样式 */
    #section-posts > div:first-child {
        flex-direction: column !important;
        gap: 0.4rem !important;
    }

    #section-posts > div:first-child button {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.6rem !important;
        width: 100% !important;
    }

    /* 号码同步页面手机端样式 */
    #section-period-content > div:first-child {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    #section-period-content > div:first-child > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.4rem !important;
        margin-bottom: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-period-content label {
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }

    #section-period-content input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
    }

    #section-period-content > div:first-child > div:first-child button {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 4px !important;
        cursor: pointer !important;
    }

    #section-period-content #auto-generate-code-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.55rem !important;
        cursor: pointer !important;
    }

    #batch-actions-period-content {
        padding: 0.4rem !important;
        margin-bottom: 0.5rem !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
    }

    #batch-actions-period-content span {
        font-size: 0.6rem !important;
    }

    /* 用户管理页面手机端样式 */
    #section-users #users-list > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }

    #section-users #users-list > div:first-child input {
        flex: 1 !important;
        min-width: 0 !important;
        font-size: 0.6rem !important;
        padding: 0.4rem 0.5rem !important;
    }

    #section-users #users-list > div:first-child button {
        flex-shrink: 0 !important;
        font-size: 0.55rem !important;
        padding: 0.4rem 0.6rem !important;
        white-space: nowrap !important;
    }

    #section-users #users-list {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-users #users-list .stats-table {
        font-size: 0.6rem !important;
        min-width: 100% !important;
    }

    #section-users #users-list .stats-table th,
    #section-users #users-list .stats-table td {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }

    #section-users #users-list .stats-table th {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.3rem !important;
    }

    #section-users #users-list .stats-table td:last-child > div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-users #users-list .stats-table td:last-child button {
        font-size: 0.5rem !important;
        padding: 0.3rem 0.5rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #section-users #users-list p {
        padding: 1rem !important;
        font-size: 0.65rem !important;
    }

    /* 签到管理页面手机端样式 */
    #section-config .form-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-config .form-group label {
        font-size: 0.6rem !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #section-config .form-group input[type="number"] {
        flex: 1 !important;
        min-width: 0 !important;
        font-size: 0.6rem !important;
        padding: 0.4rem 0.5rem !important;
    }

    #section-config .form-group button {
        flex-shrink: 0 !important;
        font-size: 0.55rem !important;
        padding: 0.4rem 0.6rem !important;
        white-space: nowrap !important;
    }

    /* 积分公告页面手机端样式 */
    #section-points-announcement #create-points-announcement-btn {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.6rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #section-points-announcement #points-announcement-editor {
        font-size: 0.6rem;
        margin-top: 0.5rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card {
        padding: 0.5rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:first-child {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:first-child > div {
        flex: 1 !important;
        min-width: 0 !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:first-child > div > div {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:first-child > button {
        flex-shrink: 0 !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
        margin-left: 0 !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-top: 0.5rem !important;
    }

    #section-points-announcement #points-announcement-editor img {
        max-width: 80px !important;
        max-height: 80px !important;
        flex-shrink: 0 !important;
    }

    #section-points-announcement #points-announcement-editor p {
        padding: 1rem !important;
        font-size: 0.65rem !important;
    }

    /* 规则管理页面手机端样式 */
    #section-rules #create-rule-btn {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.6rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #section-rules #rules-editor {
        font-size: 0.6rem;
    }

    #section-rules #rules-editor .admin-item-card {
        padding: 0.5rem !important;
    }

    #section-rules #rules-editor .admin-item-card > div {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    #section-rules #rules-editor .admin-item-card > div:first-child {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    #section-rules #rules-editor .admin-item-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }

    #section-rules #rules-editor .admin-item-card > div:first-child > div {
        flex: 1 !important;
        min-width: 0 !important;
    }

    #section-rules #rules-editor .admin-item-card > div:first-child > div > div {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-rules #rules-editor .admin-item-card > div:first-child > button {
        flex-shrink: 0 !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }

    #section-rules #rules-editor .admin-item-card > div > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-rules #rules-editor img {
        max-width: 80px !important;
        max-height: 80px !important;
        flex-shrink: 0 !important;
    }

    #section-rules #rules-editor p {
        padding: 1rem !important;
        font-size: 0.65rem !important;
    }

    /* 帖子公告页面手机端样式 */
    #section-post-announcements #edit-post-announcement-btn {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.6rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #section-post-announcements #post-announcement-display {
        font-size: 0.6rem;
    }

    #section-post-announcements #post-announcement-display .admin-item-card {
        padding: 0.5rem !important;
        margin-top: 0.5rem !important;
    }

    #section-post-announcements #post-announcement-display > div > div:first-child {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 0.5rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-post-announcements #post-announcement-display > div > div:nth-child(2) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #section-post-announcements #post-announcement-display img {
        max-width: 80px !important;
        max-height: 80px !important;
    }

    #section-post-announcements #post-announcement-display > div > div:last-child {
        font-size: 0.55rem !important;
        margin-top: 0.5rem !important;
    }

    #section-post-announcements #post-announcement-display p {
        padding: 1rem !important;
        font-size: 0.65rem !important;
    }

    /* 公告管理页面手机端样式 */
    #section-announcements #create-announcement-btn {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.6rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #section-announcements .admin-item-card {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    #section-announcements .admin-item-card > div {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    #section-announcements .admin-item-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }

    #section-announcements .admin-item-card > div > div:first-child > div {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
    }

    #section-announcements .admin-item-card > div > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.3rem !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    #section-announcements .admin-item-card .btn-secondary {
        flex: 1 !important;
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
    }

    #section-announcements .admin-item-card img {
        max-width: 80px !important;
        max-height: 80px !important;
    }

    #section-announcements #announcements-list p {
        padding: 1rem !important;
        font-size: 0.65rem !important;
    }

    /* Logo管理页面手机端样式 */
    #section-logo .form-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.4rem !important;
        flex-wrap: nowrap !important;
    }

    #section-logo .form-group label {
        font-size: 0.6rem !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #section-logo .form-group input[type="file"] {
        flex: 1 !important;
        min-width: 0 !important;
        font-size: 0.6rem !important;
        padding: 0.3rem 0.4rem !important;
    }

    #section-logo .form-group button {
        flex-shrink: 0 !important;
        font-size: 0.6rem !important;
        padding: 0.3rem 0.6rem !important;
        white-space: nowrap !important;
    }

    #section-logo #current-logo {
        margin-top: 0.5rem;
        font-size: 0.6rem;
    }

    #section-logo #current-logo img {
        max-width: 100%;
        height: auto;
        max-height: 150px;
    }

    /* 号码同步帖子列表手机端样式 */
    #period-content-list {
        font-size: 0.6rem;
    }

    #period-content-list p {
        padding: 1rem !important;
        font-size: 0.65rem !important;
    }

    #period-content-list .admin-item-card {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    #period-content-list .admin-item-card h3 {
        font-size: 0.7rem !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:first-child {
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:first-child span {
        font-size: 0.5rem !important;
        padding: 0.15rem 0.3rem !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:nth-child(2) {
        font-size: 0.55rem !important;
        gap: 0.4rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:nth-child(2) > span {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:last-child {
        font-size: 0.55rem !important;
        max-height: 60px !important;
    }

    #period-content-list .period-content-checkbox {
        width: 14px !important;
        height: 14px !important;
    }

    #period-content-list .admin-item-card > div > div:last-child button {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.55rem !important;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .features-section h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .number-item.special {
        grid-column: span 3;
    }
    

    .lottery-numbers-area {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .period-section {
        padding: 0 0.5rem;
    }

    .period-highlight {
        font-size: 1.8rem;
    }

    .countdown-section {
        padding: 0 0.5rem;
    }

    .countdown-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .countdown-display {
        font-size: 1.8rem;
        gap: 0.2rem;
    }

    .countdown-item {
        width: 35px;
        height: 45px;
        line-height: 45px;
        font-size: 1.1rem;
    }

    .last-period-display {
        font-size: 0.425rem;
        margin-top: 0.75rem;
    }

    /* 帖子专区标题字体缩小一半，间距优化 */
    .section-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .section-header h2 {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .view-all-link {
        font-size: 0.8rem;
    }

    /* 帖子消息一横显示齐全，字体和间距优化 */
    .post-row-item {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        text-overflow: clip;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
        gap: 0.15rem;
        line-height: 1.2;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .post-row-item::-webkit-scrollbar {
        display: none;
    }

    .post-label {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
        margin: 0;
    }

    /* 减小两个标签之间的间距 */
    .post-label + .post-label {
        margin-left: 0.15rem !important;
    }

    .post-content-preview,
    .post-period,
    .post-title-content {
        font-size: 0.75rem;
    }

    .post-stats-inline {
        font-size: 0.7rem;
    }

    /* 帖子详情页移动端优化（768px以下） */
    .post-detail-container .post-detail > div {
        margin-bottom: 0 !important;
        padding: 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        border-radius: 0 !important;
    }

    /* 帖子详情页主要内容区域贴合边缘 */
    .post-detail-container .post-detail > div[style*="margin-bottom: 1.5rem"] {
        margin-bottom: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .post-detail-container .post-detail > div > div {
        gap: 0.5rem !important;
        margin-bottom: 0.6rem !important;
    }

    .post-detail-container .post-detail span {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] {
        margin-top: 0.8rem !important;
        padding-top: 0.8rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: column"] {
        gap: 0.3rem !important;
    }

    /* 往期记录容器gap设为0 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] {
        gap: 0 !important;
    }

    /* 往期记录中inline-flex元素的gap也调小 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="display: inline-flex"] {
        gap: 0.15rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] {
        gap: 0 !important;
        flex-wrap: wrap !important;
    }

    /* 手机端作者头像缩小一半 */
    .post-detail-container .post-detail > div > div[style*="display: flex; align-items: center"] > div[style*="width: 48px"] {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.6rem !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }

    /* 手机端主内容区域文字大小统一（改大一半） */
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] span,
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] div {
        font-size: 1.125rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .post-content {
        font-size: 1.125rem !important;
    }

    /* 手机端图标间距设为0 */
    .post-detail-container .post-detail span[style*="margin-left: 0.5rem"] {
        margin-left: 0 !important;
    }

    .post-detail-container .post-detail span[style*="margin-left: 0.25rem"] {
        margin-left: 0 !important;
    }

    /* 往期记录区域所有间距设为0 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] {
        gap: 0 !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] {
        gap: 0 !important;
        flex-wrap: wrap !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div,
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] span {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 手机端往期记录中生肖号码和准错换行到第二行 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) {
        width: 100% !important;
        flex-basis: 100% !important;
        order: 999 !important;
        margin-top: 0.3rem !important;
    }

    /* 确保生肖号码和准错在同一行显示，并添加间距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div[style*="flex-shrink: 0"][style*="white-space: nowrap"]:nth-child(n+4) {
        width: auto !important;
        flex-basis: auto !important;
        margin-top: 0 !important;
        margin-left: 0.5rem !important;
    }

    /* 对错图标不换行，保持在第二行右侧 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        width: auto !important;
        flex-basis: auto !important;
        order: 999 !important;
        margin-top: 0 !important;
    }

    /* 第二行第一个元素不需要左边距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div[style*="flex-shrink: 0"][style*="white-space: nowrap"]:nth-child(n+4):first-of-type {
        margin-left: 0 !important;
    }

    /* 第二行内span元素之间的间距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) span[style*="display: inline-flex"] {
        margin-left: 0.5rem !important;
    }

    /* 对错图标间距和位置调整，确保在号码右边 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    /* 其他图标间距设为0（排除对错图标） */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="margin-left: 0.5rem"]:not([style*="display: inline-block"]),
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="margin-left: 0.25rem"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 第二行内号码图标之间的间距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) span[style*="display: inline-flex"] {
        gap: 0.5rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="display: inline-flex"] {
        gap: 0 !important;
        margin-left: 0 !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        margin-left: 0 !important;
    }

    /* 往期记录区域文字大小统一（改大一半） */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div span,
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div div {
        font-size: 1.125rem !important;
    }

    /* 往期记录号码图标字体大小与主内容区域一致，排除文字大小统一规则 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div .number-box-mini {
        font-size: 0.6rem !important;
    }

    /* 手机端号码图标缩小一半 */
    .post-detail-container .post-detail .number-box-mini[style*="width: 32px"],
    .post-detail-container .post-detail .number-box-mini[style*="height: 32px"] {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.45rem !important;
        border-width: 1px !important;
    }

    .post-detail-container .post-detail .number-box-mini {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.55rem !important;
        border-width: 1px !important;
    }

    /* 手机端主内容区域号码图标调整为20px */
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .number-box-mini[style*="width: 32px"],
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .number-box-mini[style*="height: 32px"] {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
        border-width: 1px !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .number-box-mini {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
        border-width: 1px !important;
    }

    /* 手机端往期记录号码图标调整为20px */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] .number-box-mini[style*="width: 32px"],
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] .number-box-mini[style*="height: 32px"] {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
        border-width: 1px !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] .number-box-mini {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
        border-width: 1px !important;
    }

    /* 手机端往期记录生肖间距为0.1rem */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div[style*="flex-shrink: 0"][style*="white-space: nowrap"]:nth-child(n+4) {
        margin-left: 0.1rem !important;
    }

    /* 手机端往期记录号码间距0.1rem */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) span[style*="display: inline-flex"] {
        gap: 0.1rem !important;
    }

    /* 手机端对错图标宽度长一点，字体大小与号码一致 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
        font-size: 0.6rem !important;
    }

    /* 手机端号码一排显示 */
    .numbers-row-all {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.3rem;
        padding: 0 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .number-item-wrapper {
        flex-shrink: 0;
        gap: 0.3rem;
    }

    .number-box {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .number-box-value {
        font-size: 1.2rem;
    }

    .zodiac-item {
        width: 50px;
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }

    .number-separator {
        font-size: 1.5rem;
        margin: 0 0.2rem;
        height: 50px;
        flex-shrink: 0;
    }

    .stats-main-container {
        padding: 1rem 0.5rem;
        gap: 1.5rem;
    }

    .stats-card-header {
        padding: 0.75rem 1rem;
    }

    .stats-card-header h2 {
        font-size: 1rem;
    }

    .stats-card-content {
        padding: 0.75rem;
    }

    .stats-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .stats-table {
        min-width: 100%;
        font-size: 0.7rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .stats-table th {
        font-size: 0.65rem;
        padding: 0.45rem 0.5rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-item {
        padding: 1rem;
    }

    .chart-item h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .chart-item-full {
        grid-column: 1;
    }

    .number-box {
        width: 60px;
        height: 60px;
    }

    .number-box-value {
        font-size: 1.5rem;
    }

    .zodiac-item {
        width: 60px;
        font-size: 0.85rem;
    }

    .countdown-display {
        font-size: 1.5rem;
    }

    .countdown-item {
        width: 40px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }

    .history-link-bottom {
        bottom: 1rem;
        right: 1rem;
    }

    .history-link-bottom a {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    /* 登录注册页面小屏幕进一步优化 */
    .auth-container {
        padding: 0.75rem;
        margin: 0.5rem;
    }

    .auth-tabs {
        margin-bottom: 1rem;
        gap: 0.4rem;
    }

    .tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .auth-form h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .btn-primary {
        padding: 0.9rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .form-group > div {
        flex-wrap: nowrap;
        overflow: visible;
        align-items: stretch;
    }

    #login-captcha-image,
    #register-captcha-image {
        min-width: 110px;
        width: 110px;
        height: 36px;
        flex-shrink: 0;
        overflow: visible;
        padding: 0.15rem;
        box-sizing: content-box;
    }

    #login-captcha-image svg,
    #register-captcha-image svg {
        width: 110px;
        height: 36px;
        max-width: none;
        max-height: none;
        display: block;
    }

    #login-captcha,
    #register-captcha {
        min-width: 0;
        flex: 1;
    }
    /* 底部导航栏优化 */
    .bottom-nav {
        padding: 0.3rem 0;
        padding-bottom: calc(0.3rem + env(safe-area-inset-bottom));
    }

    .bottom-nav-container {
        padding: 0 0.1rem;
        gap: 0.1rem;
    }

    .bottom-nav-link {
        padding: 0.25rem 0.1rem;
        gap: 0.08rem;
    }

    .bottom-nav-link span:first-child {
        font-size: 1rem;
    }

    .bottom-nav-link span:last-child {
        font-size: 0.5rem;
    }

    body {
        padding-bottom: calc(50px + env(safe-area-inset-bottom));
    }

    /* Footer 小屏幕样式 */
    .site-footer {
        padding: 0.75rem 0.5rem;
        margin-top: 1.5rem;
        padding-bottom: calc(0.75rem + 50px + env(safe-area-inset-bottom));
    }

    .site-footer .disclaimer {
        font-size: 0.7rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }

    .site-footer .copyright {
        font-size: 0.65rem;
    }

    .lottery-display-section {
        padding: 1rem 0;
    }

    /* 小屏幕进一步贴合边缘 */
    .filters {
        padding: 0.4rem;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filters .filter-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
    }

    .filters .filter-group label {
        font-size: 0.55rem;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.25rem 0.5rem;
        border-width: 1px;
        border-radius: 4px;
        gap: 0.25rem;
    }

    .filters .filter-group label input[type="radio"] {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }

    .filters .filter-group label span {
        font-size: 0.55rem;
        white-space: nowrap;
    }

    .filters {
        gap: 0.2rem;
        padding: 0.3rem;
    }

    .filters .filter-group {
        gap: 0.15rem;
        flex-shrink: 0;
    }

    .filters .filter-group label {
        font-size: 0.55rem;
        padding: 0;
        border: none;
        background: transparent;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .filters .filter-group input,
    .filters .filter-group select {
        font-size: 0.55rem;
        padding: 0.25rem 0.3rem;
        min-height: 28px;
        max-width: 80px;
        flex-shrink: 1;
    }

    .filters .filter-group input::placeholder {
        font-size: 0.5rem;
    }

    /* 日期输入框进一步缩小 */
    .filters .filter-group input[type="date"] {
        font-size: 0.5rem;
        padding: 0.25rem 0.25rem;
        min-height: 28px;
        max-width: 75px;
    }

    .filters .btn-primary,
    .filters .btn-secondary {
        padding: 0.25rem 0.5rem;
        font-size: 0.55rem;
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 3px;
    }

    .pagination {
        padding: 0.4rem;
        gap: 0.2rem;
        margin-top: 0.75rem;
    }

    .pagination button {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
        min-width: 28px;
    }

    .pagination .pagination-ellipsis {
        padding: 0.25rem 0.1rem;
        font-size: 0.65rem;
    }

    .period-highlight {
        font-size: 1.6rem;
    }

    .last-period-display {
        font-size: 0.4rem;
    }

    .countdown-display {
        font-size: 1.5rem;
    }

    .countdown-item {
        width: 30px;
        height: 40px;
        line-height: 40px;
        font-size: 1rem;
    }

    /* 小屏幕进一步优化 */
    .numbers-row-all {
        gap: 0.2rem;
        padding: 0 0.25rem;
    }

    /* 帖子消息进一步优化 */
    .post-row-item {
        padding: 0.4rem 0.25rem;
        font-size: 0.7rem;
        gap: 0.1rem;
    }

    .post-label {
        font-size: 0.6rem;
        padding: 0.08rem 0.2rem;
    }

    /* 小屏幕进一步减小标签间距 */
    .post-label + .post-label {
        margin-left: 0.1rem !important;
    }

    .post-content-preview,
    .post-period,
    .post-title-content {
        font-size: 0.7rem;
    }

    /* 小屏幕表格进一步优化 */
    table {
        font-size: 0.65rem;
    }

    th, td {
        padding: 0.25rem 0.15rem;
        font-size: 0.65rem;
    }

    th {
        font-size: 0.6rem;
        padding: 0.3rem 0.15rem;
    }

    .number-box-mini {
        width: 24px;
        height: 24px;
    }

    .number-box-value-mini {
        font-size: 0.6rem;
    }

    .zodiac-mini {
        font-size: 0.45rem;
    }

    .number-zodiac {
        margin: 0.03rem;
        padding: 0.08rem;
        gap: 0.03rem;
    }

    td:nth-child(3) {
        gap: 0.15rem;
    }

    .post-stats-inline {
        font-size: 0.65rem;
    }

    /* 帖子详情页移动端优化（480px以下） */
    .post-detail-container .post-detail > div {
        margin-bottom: 0.8rem !important;
        padding: 0.5rem 0.4rem !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .post-detail-container .post-detail > div > div {
        gap: 0.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    .post-detail-container .post-detail span {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] {
        margin-top: 0.6rem !important;
        padding-top: 0.6rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: column"] {
        gap: 0.25rem !important;
    }

    /* 小屏幕往期记录中inline-flex元素的gap也调小 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="display: inline-flex"] {
        gap: 0.1rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] {
        gap: 0 !important;
        flex-wrap: wrap !important;
    }

    /* 小屏幕作者头像缩小一半 */
    .post-detail-container .post-detail > div > div[style*="display: flex; align-items: center"] > div[style*="width: 48px"] {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.55rem !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }

    /* 小屏幕主内容区域文字大小统一（改大一半） */
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] span,
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] div {
        font-size: 1.05rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .post-content {
        font-size: 1.05rem !important;
    }

    /* 小屏幕图标间距设为0 */
    .post-detail-container .post-detail span[style*="margin-left: 0.5rem"] {
        margin-left: 0 !important;
    }

    .post-detail-container .post-detail span[style*="margin-left: 0.25rem"] {
        margin-left: 0 !important;
    }

    /* 小屏幕往期记录区域所有间距设为0 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] {
        gap: 0 !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] {
        gap: 0 !important;
        flex-wrap: wrap !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div,
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] span {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 小屏幕往期记录中生肖号码和准错换行到第二行 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) {
        width: 100% !important;
        flex-basis: 100% !important;
        order: 999 !important;
        margin-top: 0.25rem !important;
    }

    /* 确保生肖号码和准错在同一行显示，并添加间距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div[style*="flex-shrink: 0"][style*="white-space: nowrap"]:nth-child(n+4) {
        width: auto !important;
        flex-basis: auto !important;
        margin-top: 0 !important;
        margin-left: 0.5rem !important;
    }

    /* 小屏幕对错图标不换行，保持在第二行右侧 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        width: auto !important;
        flex-basis: auto !important;
        order: 999 !important;
        margin-top: 0 !important;
    }

    /* 小屏幕第二行第一个元素不需要左边距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div[style*="flex-shrink: 0"][style*="white-space: nowrap"]:nth-child(n+4):first-of-type {
        margin-left: 0 !important;
    }

    /* 小屏幕第二行内span元素之间的间距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) span[style*="display: inline-flex"] {
        margin-left: 0.5rem !important;
    }

    /* 小屏幕对错图标间距和位置调整，确保在号码右边 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    /* 小屏幕其他图标间距设为0（排除对错图标） */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="margin-left: 0.5rem"]:not([style*="display: inline-block"]),
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="margin-left: 0.25rem"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 小屏幕第二行内号码图标之间的间距 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) span[style*="display: inline-flex"] {
        gap: 0.5rem !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="display: inline-flex"] {
        gap: 0 !important;
        margin-left: 0 !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        margin-left: 0 !important;
    }

    /* 小屏幕往期记录区域文字大小统一（改大一半） */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div span,
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div div {
        font-size: 1.05rem !important;
    }

    /* 小屏幕往期记录号码图标字体大小与主内容区域一致，排除文字大小统一规则 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div .number-box-mini {
        font-size: 0.55rem !important;
    }

    /* 小屏幕号码图标缩小一半 */
    .post-detail-container .post-detail .number-box-mini[style*="width: 32px"],
    .post-detail-container .post-detail .number-box-mini[style*="height: 32px"] {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.4rem !important;
        border-width: 1px !important;
    }

    .post-detail-container .post-detail .number-box-mini {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.5rem !important;
        border-width: 1px !important;
    }

    /* 小屏幕主内容区域号码图标调整为20px */
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .number-box-mini[style*="width: 32px"],
    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .number-box-mini[style*="height: 32px"] {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.55rem !important;
        border-width: 1px !important;
    }

    .post-detail-container .post-detail > div > div[style*="display: flex; flex-direction: row"] .number-box-mini {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.55rem !important;
        border-width: 1px !important;
    }

    /* 小屏幕往期记录号码图标调整为20px */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] .number-box-mini[style*="width: 32px"],
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] .number-box-mini[style*="height: 32px"] {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.55rem !important;
        border-width: 1px !important;
    }

    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] .number-box-mini {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.55rem !important;
        border-width: 1px !important;
    }

    /* 小屏幕往期记录生肖间距为0.1rem */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div[style*="flex-shrink: 0"][style*="white-space: nowrap"]:nth-child(n+4) {
        margin-left: 0.1rem !important;
    }

    /* 小屏幕往期记录号码间距0.1rem */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > div:nth-child(n+4) span[style*="display: inline-flex"] {
        gap: 0.1rem !important;
    }

    /* 小屏幕对错图标宽度长一点，字体大小与号码一致 */
    .post-detail-container .post-detail > div > div[style*="margin-top: 1.5rem"] > div[style*="display: flex; flex-direction: column"] > div[style*="display: flex; flex-direction: row"] > span[style*="display: inline-block"][style*="margin-left: 0.5rem"] {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        font-size: 0.55rem !important;
    }

    .number-item-wrapper {
        gap: 0.25rem;
    }

    .number-box {
        width: 45px;
        height: 45px;
    }

    .number-box-value {
        font-size: 1.1rem;
    }

    .zodiac-item {
        width: 45px;
        font-size: 0.65rem;
    }

    .number-separator {
        font-size: 1.3rem;
        margin: 0 0.15rem;
        height: 45px;
    }

    .countdown-display {
        font-size: 1.2rem;
    }

    .countdown-item {
        width: 35px;
        height: 45px;
        line-height: 45px;
        font-size: 1rem;
    }

    .stats-main-container {
        padding: 0.5rem 0.4rem;
        gap: 0.75rem;
    }

    .stats-card-header {
        padding: 0.5rem 0.75rem;
    }

    .stats-card-header h2 {
        font-size: 0.85rem;
    }

    .stats-card-content {
        padding: 0.5rem;
    }

    .stats-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .stats-table {
        font-size: 0.65rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 0.3rem 0.4rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .stats-table th {
        font-size: 0.6rem;
        padding: 0.35rem 0.4rem;
    }

    /* 规则内容小屏幕进一步优化 */
    .page-header {
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .page-header h1 {
        font-size: 1rem;
    }

    .rules-container {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .rule-content {
        padding: 0.5rem;
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .rule-content h2 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .rule-body {
        font-size: 0.65rem;
        line-height: 1.4;
    }

    .rule-images img {
        margin: 0.4rem 0;
    }

    /* 管理后台小屏幕进一步优化 */
    .admin-container {
        padding: 0.4rem;
        gap: 0.4rem;
        margin-top: 0.4rem;
    }

    .admin-sidebar {
        padding: 0.4rem;
    }

    .admin-sidebar h2 {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .admin-menu {
        gap: 0.25rem;
    }

    .admin-menu a {
        padding: 0.3rem 0.4rem;
        font-size: 0.55rem;
    }

    .admin-content {
        padding: 0.4rem;
        font-size: 0.65rem;
    }

    .admin-section h2 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .form-group {
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }

    .form-group label {
        font-size: 0.6rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.6rem;
        padding: 0.3rem 0.35rem;
    }

    .btn-primary {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }

    .admin-item-card {
        padding: 0.4rem !important;
        font-size: 0.55rem !important;
    }

    .admin-item-card h3 {
        font-size: 0.65rem !important;
    }

    .admin-item-card > div > div:first-child > div > div {
        font-size: 0.5rem !important;
        gap: 0.3rem !important;
    }

    .admin-item-card > div > div:first-child > div > div:last-child {
        font-size: 0.5rem !important;
    }

    .admin-item-card .btn-secondary {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
    }

    #batch-actions-bar {
        padding: 0.4rem !important;
        gap: 0.4rem !important;
    }

    #batch-actions-bar > div {
        gap: 0.25rem !important;
    }

    #batch-actions-bar span {
        font-size: 0.55rem !important;
    }

    #batch-actions-bar button {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
    }

    /* 帖子管理按钮小屏幕进一步优化 */
    #section-posts > div:first-child button {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    /* 号码同步页面小屏幕进一步优化 */
    #section-period-content > div:first-child {
        padding: 0.4rem !important;
    }

    #section-period-content > div:first-child > div:first-child {
        gap: 0.3rem !important;
        margin-bottom: 0 !important;
    }

    #section-period-content label {
        gap: 0.25rem !important;
        font-size: 0.55rem !important;
    }

    #section-period-content input[type="checkbox"] {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
    }

    #section-period-content > div:first-child > div:first-child button {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
    }

    #section-period-content #auto-generate-code-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.5rem !important;
    }

    #batch-actions-period-content {
        padding: 0.3rem !important;
    }

    #batch-actions-period-content span {
        font-size: 0.55rem !important;
    }

    /* 用户管理页面小屏幕进一步优化 */
    #section-users #users-list > div:first-child {
        gap: 0.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    #section-users #users-list > div:first-child input {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.4rem !important;
    }

    #section-users #users-list > div:first-child button {
        font-size: 0.5rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    #section-users #users-list .stats-table {
        font-size: 0.55rem !important;
    }

    #section-users #users-list .stats-table th,
    #section-users #users-list .stats-table td {
        padding: 0.4rem 0.25rem !important;
        font-size: 0.55rem !important;
    }

    #section-users #users-list .stats-table th {
        font-size: 0.6rem !important;
        padding: 0.4rem 0.25rem !important;
    }

    #section-users #users-list .stats-table td:last-child > div {
        gap: 0.25rem !important;
    }

    #section-users #users-list .stats-table td:last-child button {
        font-size: 0.45rem !important;
        padding: 0.25rem 0.4rem !important;
    }

    #section-users #users-list p {
        padding: 0.75rem !important;
        font-size: 0.6rem !important;
    }

    /* 签到管理页面小屏幕进一步优化 */
    #section-config .form-group {
        gap: 0.4rem !important;
    }

    #section-config .form-group label {
        font-size: 0.55rem !important;
    }

    #section-config .form-group input[type="number"] {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.4rem !important;
    }

    #section-config .form-group button {
        font-size: 0.5rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    /* 积分公告页面小屏幕进一步优化 */
    #section-points-announcement #create-points-announcement-btn {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card {
        padding: 0.4rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:first-child {
        gap: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card h3 {
        font-size: 0.65rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:first-child > div > div {
        font-size: 0.55rem !important;
    }

    #section-points-announcement #points-announcement-editor .admin-item-card > div:first-child > button {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
    }

    #section-points-announcement #points-announcement-editor > div > div:last-child {
        gap: 0.3rem !important;
        margin-top: 0.4rem !important;
    }

    #section-points-announcement #points-announcement-editor img {
        max-width: 60px !important;
        max-height: 60px !important;
    }

    #section-points-announcement #points-announcement-editor p {
        padding: 0.75rem !important;
        font-size: 0.6rem !important;
    }

    /* 规则管理页面小屏幕进一步优化 */
    #section-rules #create-rule-btn {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    #section-rules #rules-editor .admin-item-card {
        padding: 0.4rem !important;
    }

    #section-rules #rules-editor .admin-item-card > div:first-child {
        gap: 0.4rem !important;
    }

    #section-rules #rules-editor .admin-item-card h3 {
        font-size: 0.65rem !important;
    }

    #section-rules #rules-editor .admin-item-card > div:first-child > div > div {
        font-size: 0.55rem !important;
    }

    #section-rules #rules-editor .admin-item-card > div:first-child > button {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
    }

    #section-rules #rules-editor > div > div:last-child {
        gap: 0.3rem !important;
    }

    #section-rules #rules-editor img {
        max-width: 60px !important;
        max-height: 60px !important;
    }

    #section-rules #rules-editor p {
        padding: 0.75rem !important;
        font-size: 0.6rem !important;
    }

    /* 帖子公告页面小屏幕进一步优化 */
    #section-post-announcements #edit-post-announcement-btn {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    #section-post-announcements #post-announcement-display .admin-item-card {
        padding: 0.4rem !important;
    }

    #section-post-announcements #post-announcement-display > div > div:first-child {
        font-size: 0.55rem !important;
        margin-bottom: 0.4rem !important;
    }

    #section-post-announcements #post-announcement-display > div > div:nth-child(2) {
        gap: 0.3rem !important;
    }

    #section-post-announcements #post-announcement-display img {
        max-width: 60px !important;
        max-height: 60px !important;
    }

    #section-post-announcements #post-announcement-display > div > div:last-child {
        font-size: 0.5rem !important;
        margin-top: 0.4rem !important;
    }

    #section-post-announcements #post-announcement-display p {
        padding: 0.75rem !important;
        font-size: 0.6rem !important;
    }

    /* 公告管理页面小屏幕进一步优化 */
    #section-announcements #create-announcement-btn {
        font-size: 0.55rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    #section-announcements .admin-item-card {
        padding: 0.4rem !important;
    }

    #section-announcements .admin-item-card h3 {
        font-size: 0.65rem !important;
    }

    #section-announcements .admin-item-card > div > div:first-child > div {
        font-size: 0.55rem !important;
    }

    #section-announcements .admin-item-card .btn-secondary {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
    }

    #section-announcements .admin-item-card img {
        max-width: 60px !important;
        max-height: 60px !important;
    }

    #section-announcements #announcements-list p {
        padding: 0.75rem !important;
        font-size: 0.6rem !important;
    }

    /* Logo管理页面小屏幕进一步优化 */
    #section-logo .form-group {
        gap: 0.3rem !important;
    }

    #section-logo .form-group label {
        font-size: 0.55rem !important;
    }

    #section-logo .form-group input[type="file"] {
        font-size: 0.55rem !important;
        padding: 0.25rem 0.35rem !important;
    }

    #section-logo .form-group button {
        font-size: 0.55rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    #section-logo #current-logo {
        font-size: 0.55rem;
    }

    #section-logo #current-logo img {
        max-height: 120px;
    }

    /* 号码同步帖子列表小屏幕进一步优化 */
    #period-content-list p {
        padding: 0.75rem !important;
        font-size: 0.6rem !important;
    }

    #period-content-list .admin-item-card {
        padding: 0.4rem !important;
    }

    #period-content-list .admin-item-card h3 {
        font-size: 0.65rem !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:first-child span {
        font-size: 0.45rem !important;
        padding: 0.1rem 0.25rem !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:nth-child(2) {
        font-size: 0.5rem !important;
        gap: 0.3rem !important;
    }

    #period-content-list .admin-item-card > div > div:first-child > div > div:last-child {
        font-size: 0.5rem !important;
    }

    #period-content-list .period-content-checkbox {
        width: 12px !important;
        height: 12px !important;
    }

    #period-content-list .admin-item-card > div > div:last-child button {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.5rem !important;
    }

    /* 积分记录表格小屏幕进一步优化 */
    .points-container {
        padding: 0.4rem;
    }

    .points-main-section {
        padding: 0.4rem;
        gap: 0.5rem;
    }

    .records-section {
        padding: 0.4rem;
    }

    .records-section h2 {
        font-size: 0.75rem;
    }

    .records-section table {
        font-size: 0.6rem;
    }

    .records-section table th,
    .records-section table td {
        padding: 0.25rem 0.3rem;
        font-size: 0.6rem;
    }

    .records-section table th {
        font-size: 0.55rem;
        padding: 0.3rem 0.3rem;
    }

    .points-balance,
    .signin-section {
        padding: 0.5rem;
    }

    .points-balance h2,
    .signin-section h2 {
        font-size: 0.75rem;
    }

    .balance-amount {
        font-size: 1.3rem;
    }

    .signin-section #signin-status {
        font-size: 0.7rem;
    }

    .signin-section .btn-primary {
        font-size: 0.7rem;
        padding: 0.35rem;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-item-full {
        grid-column: 1 / -1;
    }
}

