* {
    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;
}

.mobile-change-password-link {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #4f46e5;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mobile-change-password-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.18);
}

.btn-logout {
    min-height: 36px;
    padding: 0.48rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: 1px solid rgba(185, 28, 28, 0.22);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow:
        0 8px 18px rgba(220, 38, 38, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-logout::before {
    content: '↗';
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.92;
}

.btn-logout:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
    box-shadow:
        0 12px 22px rgba(220, 38, 38, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow:
        0 6px 12px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* 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: 1rem;
    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;
    margin-bottom: 1rem;
}

/* 滚动文字公告容器 */
.scrolling-text-container {
    width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #1a1a1a;
    padding: 0.25rem 0;
    border-radius: 24px;
}

.scrolling-text-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scrolling-text-content {
    display: inline-block;
    white-space: nowrap;
    color: #ff3333;
    font-size: 1.3rem;
    font-weight: 700;
    padding-left: 100%;
    animation: scroll-text 30s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 多张图片轮播样式 */
.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: 1rem;
}

.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;
}

/* 开奖区紧凑布局重构 */
.lottery-main-content {
    position: relative;
    min-height: auto;
}

.lottery-numbers-area {
    gap: 0.85rem;
    padding: 0;
    align-items: stretch;
}

.lottery-top-panel {
    display: block;
    width: 100%;
}

.lottery-info-card {
    position: relative;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.14);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.08);
    padding: 0.8rem 1rem 0.85rem;
}

.period-section {
    text-align: center;
    margin-bottom: 0.55rem;
}

.period-highlight {
    font-size: 1.42rem;
    line-height: 1.15;
}

.last-period-display {
    margin-top: 0.45rem;
    margin-bottom: 0.4rem;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.countdown-section {
    margin-bottom: 0;
}

.countdown-display {
    justify-content: center;
    gap: 0.22rem;
    font-size: 1.4rem;
    letter-spacing: 0;
}

.countdown-item {
    width: 42px;
    height: 48px;
    line-height: 48px;
    border-radius: 10px;
    font-size: 1.28rem;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.18);
}

.countdown-separator {
    font-size: 1.35rem;
    margin: 0 0.1rem;
}

.sync-lottery-btn {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    padding: 0.58rem 0.95rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.22);
    white-space: nowrap;
}

.sync-lottery-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.28);
}

.all-numbers-section {
    width: 100%;
    margin-top: 0;
    padding: 0.6rem 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.numbers-row-all {
    gap: 0.35rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

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

.number-box {
    width: 64px;
    height: 64px;
    border-width: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18), inset 0 2px 3px rgba(255,255,255,0.18);
}

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

.zodiac-item {
    width: 64px;
    font-size: 0.88rem;
    margin-top: 0;
}

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


.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);
}

/* 帖子专区样式 */
/* 论坛专区上方图片窗口 */
.forum-section-images-section {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.forum-section-images-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-section-image-item {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    border: none;
}

.forum-section-image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: default;
    border-radius: 24px;
}

/* 主页图片区域 */
.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: 1rem;
    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: default;
}

/* 标题和上传区域在图片上方 */
.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: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.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);
    min-width: 0;
    max-width: 100%;
}

.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;
    width: 100%;
    max-width: 100%;
    min-width: 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: var(--post-row-font-size, 0.9rem);
    --post-row-label-size: 0.9rem;
    --post-row-icon-size: 1rem;
    --post-row-icon-gap: 0.5rem;
}

.post-row-content {
    display: inline-flex;
    align-items: center;
    gap: inherit;
    min-width: max-content;
    transform-origin: left center;
}

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

/* 论坛专区列表隔行底色：1/3保持不动，2/4使用浅色底 */
#featured-posts .post-row-item:nth-child(even) {
    background: #f6f8ff;
}

/* 论坛列表页隔行底色：1/3保持不动，2/4使用浅色底 */
#posts-container .post-row-item:nth-child(even) {
    background: #f6f8ff;
}

/* 历史记录表格隔行底色：1/3保持不动，2/4使用浅色底 */
#results-table tbody tr:nth-child(even) {
    background: #f6f8ff;
}

.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: var(--post-row-label-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-list-suffix {
    display: inline-block;
    margin-left: 0.45rem;
    color: #dc3545;
    font-weight: 700;
}

/* 帖子购买信息基础样式（桌面端） */
.post-purchase-info-text {
    font-size: 1.1rem;
}

.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 {
    min-height: calc(100vh - 140px);
    padding: 2rem 1rem 3rem;
}

.auth-shell {
    max-width: 460px;
    margin: 0 auto;
}

.auth-container {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.12);
}

.auth-container {
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.6rem;
}

.auth-tabs {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.3rem;
    padding: 0.35rem;
    border-radius: 18px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.tab-btn {
    flex: 1;
    min-height: 48px;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.22s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.22);
}

.auth-panel-head {
    margin-bottom: 1.2rem;
}

.auth-panel-kicker {
    color: #6366f1;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-panel-head h2 {
    margin: 0.45rem 0 0 0;
    color: #0f172a;
    font-size: 1.7rem;
    font-weight: 900;
}

.auth-panel-head p {
    margin: 0.5rem 0 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.75;
}

.auth-feedback {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
    border: 1px solid transparent;
}

.auth-feedback.error {
    color: #991b1b;
    background: #fff1f2;
    border-color: #fecdd3;
}

.auth-feedback.success {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.auth-feedback.warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.auth-form {
    display: none;
}

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

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

.auth-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-container .form-group input,
.auth-container .form-group select,
.auth-container .form-group textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 0.95rem;
    border: 1px solid #d8e1ef;
    border-radius: 16px;
    font-size: 0.98rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-container .form-group input:focus,
.auth-container .form-group select:focus,
.auth-container .form-group textarea:focus {
    outline: none;
    border-color: #7c8cff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.auth-form-hint {
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.6;
}

.auth-input-with-action {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-with-action input {
    padding-right: 4.6rem !important;
}

.auth-input-action {
    position: absolute;
    right: 0.55rem;
    min-width: 56px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: rgba(238, 242, 255, 0.96);
    color: #4f46e5;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.8rem;
    transition: all 0.2s ease;
}

.auth-input-action:hover {
    background: rgba(224, 231, 255, 0.96);
    transform: translateY(-1px);
}

.security-verify-widget {
    position: relative;
}

.security-verify-card {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.security-verify-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.security-verify-title {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
}

.security-verify-desc {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.security-verify-refresh {
    height: 34px;
    padding: 0 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.security-verify-track {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e9efff 0%, #eef2ff 46%, #f4f7fb 100%);
    border: 1px solid rgba(99, 102, 241, 0.14);
}

.security-verify-progress {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.22) 0%, rgba(124, 58, 237, 0.22) 100%);
    transition: width 0.08s linear;
}

.security-verify-progress-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: translateX(-120%);
    animation: securitySweep 2.8s ease-in-out infinite;
    pointer-events: none;
}

.security-verify-button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1rem;
    border: none;
    background: transparent;
    color: #1e293b;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
}

.security-verify-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.74);
    color: #4f46e5;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.security-verify-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.5;
}

.security-verify-widget.holding .security-verify-track {
    border-color: rgba(99, 102, 241, 0.26);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.08);
}

.security-verify-widget.holding .security-verify-button {
    color: #312e81;
}

.security-verify-widget.verifying .security-verify-track {
    border-color: rgba(14, 165, 233, 0.26);
}

.security-verify-widget.success .security-verify-track {
    background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 100%);
    border-color: rgba(34, 197, 94, 0.28);
}

.security-verify-widget.success .security-verify-icon {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.security-verify-widget.success .security-verify-button {
    color: #166534;
}

.security-verify-widget.error .security-verify-track {
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
    border-color: rgba(239, 68, 68, 0.24);
}

.auth-submit-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 0.25rem;
    border-radius: 16px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    box-shadow: 0 16px 28px rgba(99, 102, 241, 0.2);
}

@keyframes securitySweep {
    0%,
    18% {
        transform: translateX(-120%);
        opacity: 0;
    }
    45% {
        opacity: 0.8;
    }
    65%,
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.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-content img {
    width: 50% !important;
    max-width: 50% !important;
    height: auto !important;
}

.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;
}

/* =========================
   首页：互联模块
   ========================= */
.interlink-grid-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.interlink-grid-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.interlink-grid-card {
    position: relative;
    overflow: hidden;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.32) 100%),
        var(--interlink-card-bg, linear-gradient(135deg, #eef4ff 0%, #e0ebff 100%));
    border: 1px solid var(--interlink-card-border, rgba(102, 126, 234, 0.18));
    box-shadow:
        0 8px 18px rgba(30, 64, 175, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.interlink-grid-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 58%);
    pointer-events: none;
}

.interlink-grid-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed 0%, #2563eb 35%, #06b6d4 65%, #22c55e 100%);
    background-size: 220% 100%;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
    opacity: 0.95;
    pointer-events: none;
    animation: interlink-breathing-line 3.2s ease-in-out infinite;
}

.interlink-grid-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(30, 64, 175, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--interlink-card-hover-border, rgba(99, 102, 241, 0.32));
    filter: saturate(1.03);
}

.interlink-grid-card.is-disabled {
    cursor: default;
    opacity: 0.86;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.36) 100%),
        linear-gradient(135deg, #edf2f9 0%, #e1e8f3 100%);
    border-style: dashed;
}

.interlink-grid-card.is-disabled:hover {
    transform: none;
    box-shadow:
        0 8px 18px rgba(30, 64, 175, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    border-color: var(--interlink-card-border, rgba(102, 126, 234, 0.18));
    filter: none;
}

.interlink-grid-card:nth-child(6n + 1) {
    --interlink-card-bg: linear-gradient(135deg, #dce8ff 0%, #c7d8ff 100%);
    --interlink-card-border: rgba(92, 124, 250, 0.3);
    --interlink-card-hover-border: rgba(92, 124, 250, 0.38);
}

.interlink-grid-card:nth-child(6n + 2) {
    --interlink-card-bg: linear-gradient(135deg, #e0f7e8 0%, #c9eed7 100%);
    --interlink-card-border: rgba(46, 160, 67, 0.3);
    --interlink-card-hover-border: rgba(46, 160, 67, 0.38);
}

.interlink-grid-card:nth-child(6n + 3) {
    --interlink-card-bg: linear-gradient(135deg, #ffedd8 0%, #ffdcb4 100%);
    --interlink-card-border: rgba(245, 158, 11, 0.3);
    --interlink-card-hover-border: rgba(245, 158, 11, 0.38);
}

.interlink-grid-card:nth-child(6n + 4) {
    --interlink-card-bg: linear-gradient(135deg, #efe5ff 0%, #ddcbff 100%);
    --interlink-card-border: rgba(139, 92, 246, 0.3);
    --interlink-card-hover-border: rgba(139, 92, 246, 0.38);
}

.interlink-grid-card:nth-child(6n + 5) {
    --interlink-card-bg: linear-gradient(135deg, #ffe4eb 0%, #ffd0dd 100%);
    --interlink-card-border: rgba(225, 29, 72, 0.28);
    --interlink-card-hover-border: rgba(225, 29, 72, 0.36);
}

.interlink-grid-card:nth-child(6n) {
    --interlink-card-bg: linear-gradient(135deg, #dff8f4 0%, #c5eee8 100%);
    --interlink-card-border: rgba(13, 148, 136, 0.3);
    --interlink-card-hover-border: rgba(13, 148, 136, 0.38);
}

@keyframes interlink-breathing-line {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(1);
        opacity: 0.78;
        box-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
    }
    25% {
        background-position: 35% 50%;
        filter: hue-rotate(35deg) saturate(1.12);
        opacity: 1;
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
    }
    50% {
        background-position: 70% 50%;
        filter: hue-rotate(70deg) saturate(1.18);
        opacity: 0.88;
        box-shadow: 0 0 12px rgba(6, 182, 212, 0.48);
    }
    75% {
        background-position: 100% 50%;
        filter: hue-rotate(120deg) saturate(1.12);
        opacity: 1;
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.42);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(180deg) saturate(1);
        opacity: 0.78;
        box-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
    }
}

.interlink-grid-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
    -webkit-text-stroke: 0.35px rgba(15, 23, 42, 0.35);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(15, 23, 42, 0.2);
}

.interlink-grid-hint {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.14rem 0.3rem;
    border-radius: 999px;
    transform: translateY(-50%);
    color: #1e3a8a;
    background: rgba(224, 231, 255, 0.88);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: none;
    pointer-events: none;
    animation: interlink-hint-blink 1.15s ease-in-out infinite;
}

.interlink-grid-hint-left {
    left: 0.45rem;
}

.interlink-grid-hint-right {
    right: 0.45rem;
}

.interlink-grid-hint-icon {
    color: #4338ca;
    font-size: 0.78rem;
    line-height: 1;
}

.interlink-grid-hint-text {
    line-height: 1;
    white-space: nowrap;
}

@keyframes interlink-hint-blink {
    0% {
        opacity: 0.45;
        filter: saturate(0.95);
    }
    50% {
        opacity: 1;
        filter: saturate(1.18);
    }
    100% {
        opacity: 0.55;
        filter: saturate(1);
    }
}

/* =========================
   首页：六肖表格
   ========================= */
.six-zodiac-section {
    margin-top: 1rem;
    padding: 0.55rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(236, 242, 255, 0.96) 0%, rgba(227, 235, 250, 0.96) 100%);
    border: 1px solid rgba(125, 146, 191, 0.22);
    box-shadow: 0 10px 24px rgba(59, 91, 168, 0.08);
}

.six-zodiac-section #six-zodiac-container {
    margin-top: 0;
}

.six-zodiac-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.six-zodiac-merged {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
    border: 1px solid rgba(111, 135, 196, 0.22);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(48, 78, 153, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.six-zodiac-entry {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.22);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.six-zodiac-entry-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(243, 247, 255, 0.7) 100%);
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0.8rem 1rem 0.9rem;
}

.six-zodiac-entry-card + .six-zodiac-entry-card {
    border-top: 1px solid rgba(111, 135, 196, 0.18);
}

.six-zodiac-entry-header {
    background: transparent;
    color: #1a1a1a;
    font-weight: 900;
    text-align: center;
    padding: 0.1rem 0 0.65rem;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    border-bottom: none;
    text-shadow: none;
    line-height: 1.2;
}

/* 确保嵌套的 period-year/period-number 在标题里生效 */
.six-zodiac-entry-header .period-year { color: #007bff; }
.six-zodiac-entry-header .period-number { color: #e53e3e; }

.six-zodiac-entry-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 124px;
    gap: 0.55rem;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 14px;
    padding: 0.18rem;
}

.six-zodiac-cell {
    padding: 0;
    border: none;
    font-size: 0.96rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.six-zodiac-label {
    min-height: 56px;
    padding: 0.6rem 0.75rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.18) 100%);
    border: 1px solid rgba(99, 102, 241, 0.24);
    color: #4338ca;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.32),
        0 4px 10px rgba(99, 102, 241, 0.08);
}

.six-zodiac-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: #c81e1e;
    font-weight: 900;
    letter-spacing: 0;
    min-height: 56px;
    padding: 0.32rem 0.42rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 247, 255, 0.92) 100%);
    border: 1px solid rgba(99, 115, 170, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 4px 10px rgba(73, 98, 160, 0.08);
}

.six-zodiac-pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    font-weight: 900;
    padding: 0.32rem 0.5rem;
    margin: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
    border: 1px solid rgba(125, 146, 191, 0.22);
    color: #334155;
    box-shadow:
        0 2px 6px rgba(100, 116, 139, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.six-zodiac-pick.dim {
    opacity: 1;
    color: #475569;
    background: linear-gradient(180deg, #f8fbff 0%, #e8eef8 100%);
    border-color: rgba(125, 146, 191, 0.24);
    letter-spacing: 0;
}

.six-zodiac-pick.hit {
    opacity: 1;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: rgba(185, 28, 28, 0.2);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.24);
    transform: translateY(-1px);
}

.six-zodiac-updating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-weight: 900;
    color: #e11d48;
    background: linear-gradient(180deg, #fff5f7 0%, #ffe7ec 100%);
    border: 1px solid rgba(225, 29, 72, 0.2);
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.08);
    letter-spacing: 0.04em;
}

.six-zodiac-status {
    font-weight: 900;
    min-height: 56px;
}

.six-zodiac-cell.six-zodiac-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-content: center;
    padding: 0.55rem 0.65rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.18) 100%);
    border: 1px solid rgba(99, 102, 241, 0.24);
    color: #4338ca;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.32),
        0 4px 10px rgba(99, 102, 241, 0.08);
}

.six-zodiac-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.55rem;
    margin-left: 0.3rem;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    white-space: nowrap;
}

.six-zodiac-status-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-width: 3.2rem;
    line-height: 1.1;
    color: #4338ca;
}

.six-zodiac-status-prefix {
    font-weight: 900;
    color: #4338ca;
}

.six-zodiac-status-ball {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16), inset 0 1px 2px rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.six-zodiac-status-ball.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.six-zodiac-status-ball.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.six-zodiac-status-ball.green {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.six-zodiac-badge-hit {
    background: #22c55e;
}

.six-zodiac-badge-miss {
    background: #ef4444;
}

.six-zodiac-status.hit,
.six-zodiac-status.miss,
.six-zodiac-status.pending {
    color: #4338ca;
    opacity: 1;
}

.six-zodiac-empty {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    color: #718096;
    font-weight: 800;
}

@media (max-width: 760px) {
    /* 手机端：开奖区与六肖区无缝衔接 */
    .lottery-display-section {
        margin-bottom: 0 !important;
    }
    .six-zodiac-section {
        margin-top: 0 !important;
        padding: 0.32rem 0.32rem 0.36rem !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, rgba(232, 239, 252, 0.98) 0%, rgba(224, 233, 248, 0.98) 100%) !important;
        border: none !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }
    .six-zodiac-section #six-zodiac-container {
        margin-top: 0 !important;
    }
    .six-zodiac-container {
        gap: 0 !important;
    }

    .six-zodiac-merged,
    .six-zodiac-entry {
        border-radius: 0 !important;
    }

    .six-zodiac-entry-card {
        border-radius: 0;
        padding: 0.55rem 0.65rem 0.6rem;
        box-shadow: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(241, 246, 255, 0.74) 100%);
    }

    .six-zodiac-entry-row {
        grid-template-columns: 64px minmax(0, 1fr) 88px;
        gap: 0.32rem;
        padding: 0.14rem;
        border-radius: 10px;
    }

    .six-zodiac-entry-header {
        font-size: 0.88rem;
        padding: 0.05rem 0 0.42rem;
    }

    .six-zodiac-cell {
        font-size: 0.8rem;
        padding: 0;
        min-height: 42px;
    }

    .six-zodiac-label,
    .six-zodiac-cell.six-zodiac-status {
        min-height: 42px;
        padding: 0.38rem 0.28rem;
        border-radius: 10px;
    }

    .six-zodiac-picks {
        gap: 0.22rem;
        min-height: 42px;
        padding: 0.2rem 0.24rem;
    }

    .six-zodiac-pick {
        min-width: 1.6rem;
        padding: 0.18rem 0.32rem;
        font-size: 0.74rem;
        border-radius: 8px;
    }

    .six-zodiac-pick.hit {
        font-size: 0.76rem;
    }

    .six-zodiac-status-text {
        gap: 0.22rem;
    }

    .six-zodiac-status-ball {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        border-width: 1.5px;
    }

    .six-zodiac-updating {
        padding: 0.24rem 0.48rem;
        font-size: 0.72rem;
    }

    .six-zodiac-badge {
        margin-left: 0.18rem;
        padding: 0.18rem 0.32rem;
        font-size: 0.62rem;
    }

    .six-zodiac-status-text {
        min-width: 2.5rem;
        font-size: 0.72rem;
    }
}

.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;
    }

    #change-password-link {
        display: none !important;
    }

    /* 显示底部导航栏 */
    .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,
    .forum-section-images-section,
    .posts-section,
    .homepage-images-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* 帖子购买信息手机端字体加大 - 确保所有文字（包括数字）字体大小一致 */
    .post-detail-container .post-detail .post-purchase-info-text,
    .post-detail-container .post-detail span.post-purchase-info-text,
    .post-detail-container .post-detail .post-purchase-info-text span {
        font-size: 1.3rem !important;
        line-height: 1.5 !important;
    }

    /* 登录注册页面手机端样式 */
    .auth-main {
        padding: 1rem 0.75rem 2rem;
        min-height: auto;
    }

    .auth-shell {
        border-radius: 22px;
    }

    .auth-container {
        padding: 1rem;
    }

    .auth-tabs {
        gap: 0.45rem;
        margin-bottom: 1rem;
        padding: 0.28rem;
        border-radius: 16px;
    }

    .tab-btn {
        min-height: 42px;
        padding: 0.65rem 0.75rem;
        font-size: 0.84rem;
        border-radius: 12px;
    }

    .auth-panel-head h2 {
        font-size: 1.35rem;
    }

    .auth-panel-head p {
        font-size: 0.88rem;
    }

    .auth-feedback {
        padding: 0.75rem 0.85rem;
        font-size: 0.84rem;
        border-radius: 14px;
    }

    .auth-container .form-group {
        margin-bottom: 0.9rem;
    }

    .auth-container .form-group label {
        font-size: 0.86rem;
    }

    .auth-container .form-group input,
    .auth-container .form-group select,
    .auth-container .form-group textarea {
        min-height: 48px;
        font-size: 0.94rem;
        border-radius: 14px;
    }

    .auth-input-action {
        min-width: 52px;
        height: 32px;
        font-size: 0.76rem;
    }

    .security-verify-card {
        padding: 0.85rem;
        border-radius: 18px;
    }

    .security-verify-head {
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .security-verify-title {
        font-size: 0.86rem;
    }

    .security-verify-desc {
        font-size: 0.76rem;
    }

    .security-verify-refresh {
        height: 32px;
        padding: 0 0.75rem;
        font-size: 0.74rem;
    }

    .security-verify-track,
    .security-verify-button {
        min-height: 52px;
    }

    .security-verify-button {
        font-size: 0.84rem;
        gap: 0.42rem;
        padding: 0 0.8rem;
    }

    .security-verify-icon {
        width: 24px;
        height: 24px;
        font-size: 0.74rem;
    }

    .security-verify-meta {
        font-size: 0.72rem;
        gap: 0.4rem;
    }

    .auth-submit-btn {
        min-height: 48px;
        font-size: 0.94rem !important;
        border-radius: 14px !important;
    }

    .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;
        margin-bottom: 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;
    }

    .forum-section-images-section {
        padding: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .forum-section-image-item,
    .forum-section-image-item img {
        border-radius: 0;
    }

    .posts-grid {
        padding: 0;
    }

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

    /* 滚动文字容器在移动端缩小高度和字体 */
    .scrolling-text-container {
        padding: 0.125rem 0;
        border-radius: 0;
        margin-bottom: 0;
    }

    .scrolling-text-content {
        font-size: 0.9rem;
    }

    /* 移除section的border-radius，贴合边缘 */
    .announcements-section,
    .lottery-display-section,
    .forum-section-images-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;
    }

    .mobile-change-password-link {
        display: inline-flex !important;
        min-height: 30px;
        padding: 0.35rem 0.62rem;
        border-radius: 9px;
        font-size: 0.74rem;
    }

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

    .btn-logout {
        min-height: 32px;
        padding: 0.36rem 0.68rem;
        font-size: 0.74rem;
        border-radius: 999px;
        box-shadow:
            0 6px 14px rgba(220, 38, 38, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .btn-logout::before {
        font-size: 0.72rem;
    }

    .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 {
        overflow-x: visible !important;
    }

    #section-users .users-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
    }

    #section-users .users-search-input {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.88rem !important;
        padding: 0.68rem 0.8rem !important;
    }

    #section-users .users-toolbar-btn {
        width: 100% !important;
        font-size: 0.82rem !important;
        padding: 0.72rem 0.9rem !important;
        white-space: normal !important;
    }

    #section-users .users-table {
        width: 100% !important;
        table-layout: fixed !important;
        background: #fff !important;
    }

    #section-users .users-table thead {
        display: table-header-group !important;
    }

    #section-users .users-table tbody {
        display: table-row-group !important;
    }

    #section-users .users-table .users-table-row {
        display: table-row !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    #section-users .users-table th,
    #section-users .users-table td {
        display: table-cell !important;
        padding: 0.48rem 0.28rem !important;
        font-size: 0.68rem !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: middle !important;
        border-bottom: 1px solid #eef2f7 !important;
        box-sizing: border-box !important;
    }

    #section-users .users-table th {
        font-size: 0.66rem !important;
        padding: 0.55rem 0.28rem !important;
    }

    #section-users .users-table td::before {
        content: none !important;
    }

    #section-users .users-table th:nth-child(1),
    #section-users .users-table td:nth-child(1) {
        width: 22% !important;
    }

    #section-users .users-table th:nth-child(2),
    #section-users .users-table td:nth-child(2) {
        width: 17% !important;
    }

    #section-users .users-table th:nth-child(3),
    #section-users .users-table td:nth-child(3) {
        width: 10% !important;
        text-align: center !important;
    }

    #section-users .users-table th:nth-child(4),
    #section-users .users-table td:nth-child(4) {
        width: 14% !important;
        text-align: center !important;
    }

    #section-users .users-table th:nth-child(5),
    #section-users .users-table td:nth-child(5) {
        width: 37% !important;
    }

    #section-users .user-action-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;
        width: 100% !important;
    }

    #section-users .user-action-buttons .user-action-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0.34rem 0.2rem !important;
        font-size: 0.62rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #section-users .user-action-label-mobile {
        display: inline !important;
    }

    #section-users .user-action-label-desktop {
        display: none !important;
    }

    #section-users #users-list p {
        padding: 1rem !important;
        font-size: 0.82rem !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 #post-announcement-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    #section-post-announcements #edit-post-announcement-btn,
    #section-post-announcements #edit-post-announcement-share-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: hidden;
        text-overflow: clip;
        flex-wrap: nowrap;
        padding: 0.45rem 0.12rem 0.45rem 0.08rem;
        font-size: var(--post-row-font-size, 0.75rem);
        gap: 0.1rem;
        line-height: 1.2;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        --post-row-label-size: 0.65rem;
        --post-row-icon-size: 0.78rem;
        --post-row-icon-gap: 0.12rem;
    }

    .post-label {
        font-size: var(--post-row-label-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-main {
        padding: 0.85rem 0.45rem 1.4rem;
    }

    .auth-container {
        border-radius: 18px;
    }

    .auth-container {
        padding: 0.8rem;
    }

    .auth-tabs {
        gap: 0.35rem;
        margin-bottom: 0.9rem;
        border-radius: 14px;
    }

    .tab-btn {
        min-height: 40px;
        padding: 0.55rem 0.6rem;
        font-size: 0.78rem;
        border-radius: 10px;
    }

    .auth-panel-kicker {
        font-size: 0.74rem;
    }

    .auth-panel-head h2 {
        font-size: 1.16rem;
    }

    .auth-panel-head p {
        font-size: 0.8rem;
    }

    .auth-feedback {
        padding: 0.68rem 0.75rem;
        font-size: 0.78rem;
        border-radius: 12px;
    }

    .auth-container .form-group label {
        font-size: 0.82rem;
    }

    .auth-container .form-group input,
    .auth-container .form-group select,
    .auth-container .form-group textarea {
        min-height: 44px;
        padding-left: 0.82rem;
        padding-right: 0.82rem;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .auth-input-with-action input {
        padding-right: 4rem !important;
    }

    .auth-input-action {
        right: 0.42rem;
        min-width: 48px;
        height: 30px;
        font-size: 0.72rem;
        padding: 0 0.6rem;
    }

    .security-verify-card {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .security-verify-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .security-verify-refresh {
        width: 100%;
        height: 34px;
    }

    .security-verify-track,
    .security-verify-button {
        min-height: 48px;
        border-radius: 14px;
    }

    .security-verify-button {
        font-size: 0.78rem;
    }

    .security-verify-icon {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }

    .security-verify-meta {
        font-size: 0.68rem;
        flex-direction: column;
    }

    .auth-submit-btn {
        min-height: 44px;
        font-size: 0.88rem !important;
        border-radius: 12px !important;
    }
    /* 底部导航栏优化 */
    .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.38rem 0.08rem 0.38rem 0.04rem;
        font-size: var(--post-row-font-size, 0.7rem);
        gap: 0.06rem;
        --post-row-label-size: 0.6rem;
        --post-row-icon-size: 0.72rem;
        --post-row-icon-gap: 0.08rem;
    }

    .post-label {
        font-size: var(--post-row-label-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-toolbar {
        gap: 0.5rem !important;
        margin-bottom: 0.8rem !important;
    }

    #section-users .users-search-input {
        font-size: 0.8rem !important;
        padding: 0.58rem 0.72rem !important;
    }

    #section-users .users-toolbar-btn {
        font-size: 0.76rem !important;
        padding: 0.62rem 0.75rem !important;
    }

    #section-users .users-table th,
    #section-users .users-table td {
        padding: 0.42rem 0.18rem !important;
        font-size: 0.62rem !important;
    }

    #section-users .users-table th {
        font-size: 0.6rem !important;
    }

    #section-users .user-action-buttons {
        gap: 0.16rem !important;
    }

    #section-users .user-action-buttons .user-action-btn {
        padding: 0.28rem 0.12rem !important;
        font-size: 0.58rem !important;
    }

    #section-users #users-list p {
        padding: 0.8rem !important;
        font-size: 0.74rem !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,
    #section-post-announcements #edit-post-announcement-share-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;
    }
}

/* 论坛公告字体保护：避免被帖子详情页移动端全局压缩规则误伤 */
.post-detail-container .post-detail .post-announcement-content,
.post-detail-container .post-detail .post-announcement-content * {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
}

.post-detail-container .post-detail .post-announcement-content img {
    width: 50% !important;
    max-width: 50% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .post-detail-container .post-detail .post-announcement-block {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    .post-detail-container .post-detail .post-announcement-content,
    .post-detail-container .post-detail .post-announcement-content * {
        font-size: 1.08rem !important;
        line-height: 1.7 !important;
    }
}

@media (max-width: 480px) {
    .post-detail-container .post-detail .post-announcement-block {
        margin-top: 0.8rem !important;
        padding-top: 0.8rem !important;
    }

    .post-detail-container .post-detail .post-announcement-content,
    .post-detail-container .post-detail .post-announcement-content * {
        font-size: 1.02rem !important;
        line-height: 1.65 !important;
    }
}

@media (max-width: 900px) {
    #section-users .users-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
    }

    #section-users .users-search-input {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        font-size: 0.9rem !important;
        padding: 0.72rem 0.85rem !important;
        box-sizing: border-box !important;
    }

    #section-users .users-toolbar-btn {
        width: 100% !important;
        font-size: 0.84rem !important;
        padding: 0.72rem 0.9rem !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    .ip-activity-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
    }

    .ip-activity-summary-card {
        padding: 0.55rem !important;
        border-radius: 10px !important;
    }

    .ip-activity-summary-label {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    .ip-activity-summary-value {
        margin-top: 0.2rem !important;
        font-size: 1.05rem !important;
    }
}

#section-users .user-action-label-mobile {
    display: none;
}

#section-users .user-action-label-desktop {
    display: inline;
}

@media (max-width: 560px) {
    .ip-activity-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.3rem !important;
    }

    .ip-activity-summary-card {
        padding: 0.45rem 0.3rem !important;
    }

    .ip-activity-summary-label {
        font-size: 0.56rem !important;
    }

    .ip-activity-summary-value {
        font-size: 0.92rem !important;
    }
}

@media (max-width: 760px) {
    .ip-activity-modal-content {
        padding: 0.85rem !important;
        width: calc(100% - 1rem) !important;
        max-width: none !important;
        border-radius: 10px !important;
        margin: 0.5rem !important;
    }

    .ip-activity-table-wrap {
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .ip-activity-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .ip-activity-table thead {
        display: table-header-group !important;
    }

    .ip-activity-table tbody {
        display: table-row-group !important;
    }

    .ip-activity-table .ip-activity-table-row {
        display: table-row !important;
    }

    .ip-activity-table th,
    .ip-activity-table td {
        display: table-cell !important;
        padding: 0.45rem 0.2rem !important;
        font-size: 0.64rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: normal !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
    }

    .ip-activity-table th {
        font-size: 0.58rem !important;
        padding: 0.5rem 0.2rem !important;
    }

    .ip-activity-table td::before {
        content: none !important;
    }

    .ip-activity-table th:nth-child(1),
    .ip-activity-table td:nth-child(1) {
        width: 20% !important;
    }

    .ip-activity-table th:nth-child(2),
    .ip-activity-table td:nth-child(2) {
        width: 22% !important;
    }

    .ip-activity-table th:nth-child(3),
    .ip-activity-table td:nth-child(3) {
        width: 38% !important;
    }

    .ip-activity-table th:nth-child(4),
    .ip-activity-table td:nth-child(4) {
        width: 20% !important;
        text-align: center !important;
    }

    .ip-activity-summary-text {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .points-records-modal-content {
        padding: 0.85rem !important;
        width: calc(100% - 1rem) !important;
        max-width: none !important;
        border-radius: 10px !important;
        margin: 0.5rem !important;
    }

    .points-records-toolbar {
        gap: 0.4rem !important;
        align-items: center !important;
    }

    .points-records-toolbar label {
        font-size: 0.68rem !important;
    }

    .points-records-toolbar select {
        min-width: 0 !important;
        padding: 0.38rem 0.45rem !important;
        font-size: 0.68rem !important;
    }

    .points-records-count {
        width: 100% !important;
        margin-left: 0 !important;
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .points-records-table-wrap {
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .points-records-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .points-records-table th,
    .points-records-table td {
        padding: 0.42rem 0.16rem !important;
        font-size: 0.56rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
    }

    .points-records-table th {
        font-size: 0.5rem !important;
        padding: 0.48rem 0.14rem !important;
    }

    .points-records-table th:nth-child(1),
    .points-records-table td:nth-child(1) {
        width: 24% !important;
    }

    .points-records-table th:nth-child(2),
    .points-records-table td:nth-child(2) {
        width: 14% !important;
    }

    .points-records-table th:nth-child(3),
    .points-records-table td:nth-child(3) {
        width: 11% !important;
    }

    .points-records-table th:nth-child(4),
    .points-records-table td:nth-child(4) {
        width: 12% !important;
        text-align: center !important;
    }

    .points-records-table th:nth-child(5),
    .points-records-table td:nth-child(5) {
        width: 25% !important;
    }

    .points-records-table th:nth-child(6),
    .points-records-table td:nth-child(6) {
        width: 14% !important;
    }

    .lottery-display-section {
        padding: 0.6rem !important;
    }

    .interlink-grid-section {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0.45rem;
        border-radius: 0;
    }

    .interlink-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .interlink-grid-card {
        min-height: 42px;
        padding: 0.4rem 0.55rem;
        border-radius: 0;
        box-shadow:
            0 6px 14px rgba(30, 64, 175, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    .interlink-grid-title {
        font-size: 0.82rem;
    }

    .interlink-grid-hint {
        padding: 0.08rem 0.16rem;
        font-size: 0.5rem;
    }

    .interlink-grid-hint-left {
        left: 0.2rem;
    }

    .interlink-grid-hint-right {
        right: 0.2rem;
    }

    .interlink-grid-hint-text {
        display: none;
    }

    .interlink-grid-hint-icon {
        font-size: 0.68rem;
    }

    .lottery-top-panel {
        display: block;
    }

    .lottery-numbers-area {
        gap: 0.45rem;
        padding: 0 !important;
    }

    .lottery-info-card {
        border-radius: 14px;
        padding: 0.65rem 0.7rem 0.65rem;
    }

    .period-highlight {
        font-size: 1.08rem !important;
    }

    .last-period-display {
        margin-top: 0.35rem;
        margin-bottom: 0.3rem;
        font-size: 0.72rem !important;
    }

    .countdown-display {
        justify-content: center;
        gap: 0.12rem;
        font-size: 1.1rem !important;
    }

    .countdown-item {
        width: 30px !important;
        height: 36px !important;
        line-height: 36px !important;
        border-radius: 8px;
        font-size: 0.98rem !important;
    }

    .countdown-separator {
        font-size: 1rem !important;
        margin: 0 0.04rem !important;
    }

    .sync-lottery-btn {
        top: 0.55rem;
        right: 0.7rem;
        padding: 0.42rem 0.72rem;
        font-size: 0.74rem;
        border-radius: 8px;
    }

    .all-numbers-section {
        margin-top: 0;
        padding: 0.42rem 0 0;
        border-radius: 0;
    }

    .numbers-row-all {
        justify-content: flex-start;
        gap: 0.2rem;
        padding: 0 0.05rem 0.1rem;
    }

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

    .number-box {
        width: 42px !important;
        height: 42px !important;
    }

    .number-box-value {
        font-size: 1rem !important;
    }

    .zodiac-item {
        width: 42px !important;
        font-size: 0.62rem !important;
        letter-spacing: 0;
    }

    .number-separator {
        height: 42px;
        font-size: 1rem;
        margin: 0 0.02rem;
    }
}

