/* 基础样式 */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-content: flex-start;
    justify-content: center;
    background-size: 300% 300%;
    background-image: linear-gradient(-45deg,
        rgba(59, 173, 227, 1) 0%,
        rgba(87, 111, 230, 1) 25%,
        rgba(152, 68, 183, 1) 51%,
        rgba(255, 53, 127, 1) 100%);
    animation: AnimateBG 20s ease infinite;
    text-align: center;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

/* 动画效果 */
@keyframes AnimateBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* 颜色变量 */
:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --card-shadow: 0 3px 10px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gap-size: 5px;
    --circle-size: 100px;
}

/* 主要容器 */
.limiter {
    width: 100%;
    margin: 0 auto;
}

.container-table100 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0px 30px;
}

.wrap-table100 {
    width: 615px;
    margin-top: 0;
}

.main-container {
    background: white;
    border-radius: 12px; /* 恢复全部圆角 */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 头部区域 */
.header-container {
    border-bottom: 1px solid var(--border-color);
}

.announcement-bar {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}

.announcement-label {
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 22px;
    cursor: pointer;
}

.announcement-title {
    position: absolute;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

/* 文字滚动动画 */
@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 彩虹文字效果 */
.rainbow {
    background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 5s linear infinite;
}

/* 移动端专用调整 (小于576px) */
@media (max-width: 575.98px) {
    body {
        padding: 0;
        background-size: 300% 300%;
        /* 禁止用户缩放 */
        touch-action: pan-y;
        -webkit-text-size-adjust: 100%;
    }
    
    .main-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .container-table100 {
        width: 100%;
        padding: 0;
    }
    
    .wrap-table100 {
        width: 100%;
        padding: 0;
    }
    
    /* 简化移动端的背景动画 */
    @keyframes AnimateBG {
        0% { background-position: 0% 0% }
        50% { background-position: 100% 100% }
        100% { background-position: 0% 0% }
    }
    
    /* 调整字体大小 */
    .announcement-label, 
    .announcement-title {
        font-size: 13px;
    }
}

/* 电脑端/平板端 (大于等于576px) */
@media (min-width: 576px) {
    .wrap-table100 {
        width: 613px;
    }
    
    .main-container {
        width: 100%;
        max-width: 613px;
        border-radius: 12px; /* 确保电脑端有圆角 */
    }
}