/* 页面基础样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('../bg233.png') center center/cover no-repeat fixed;
    color: #2d3748;
    line-height: 1.6;
    position: relative;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(255, 255, 255, 0.1);
}

h1, h2 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* 主内容部分 */
section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    transform: translate3d(0,0,0);
    will-change: transform;
    contain: layout style paint;
}

.con_wrap {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    animation: updateBlur 1s steps(1) infinite;
}

/* 卡片悬停效果 */
.con_wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.3);
}

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

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 20px;
}

table td {
    position: relative;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    animation: updateBlur 1s steps(1) infinite;
}

/* 表格单元格悬停效果 */
table td:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* 确保内容在动画层之上 */
.con_wrap > *, table td > * {
    position: relative;
    z-index: 1;
}

table img {
    width: 100%;
    max-width: 200px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block;
}

table img:hover {
    transform: scale(1.05);
}

/* 链接和按钮 */
.button {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    border-radius: 10px;
    margin: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    text-decoration: none;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    z-index: 1;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 弹出窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    left: 50%;
    transform: translateX(-50%);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-button {
    display: block;
    width: calc(100% - 20px);
    margin: 10px;
    padding: 15px;
    background: rgba(6, 182, 212, 0.3);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-button:hover {
    background: rgba(6, 182, 212, 0.5);
}

/* 移动端优化 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .con_wrap {
        padding: 15px;
        margin: 10px;
    }

    table td {
        padding: 10px;
        font-size: 14px;
    }

    .button {
        display: block;
        width: calc(100% - 20px);
        margin: 10px;
        padding: 12px;
        font-size: 14px;
    }

    .modal-content {
        margin: 5vh auto;
        padding: 15px;
        width: 85%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-button {
        padding: 12px;
        font-size: 14px;
        margin: 8px;
    }

    h1 {
        font-size: 24px;
        margin: 10px 0;
    }

    h2 {
        font-size: 20px;
        margin: 8px 0;
    }

    p {
        font-size: 14px;
        margin: 8px 0;
    }

    /* 移除可能导致闪烁的动画 */
    .line {
        display: none;
    }

    /* 优化模态框滚动 */
    .modal {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 修复背景滚动问题 */
    body.modal-open {
        position: fixed;
        width: 100%;
    }
}

/* 修复按钮布局 */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

@media (min-width: 769px) {
    .button-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .button {
        flex: 0 1 auto;
    }
}

/* 移除多余的动画效果 */
.gradient-text {
    animation: none;
    background: linear-gradient(45deg, #0eaf6d, #ff6ac6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 强化文字内容 */
p {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* 文字渐变流光效果 - 基础样式 */
.gradient-text {
    background-image: -webkit-linear-gradient(135deg,
        #0eaf6d,
        #ff6ac6 25%,
        #147b96 50%,
        #e6d205 55%,
        #2cc4e0 60%,
        #8b2ce0 80%,
        #ff6384 95%,
        #08dfb4);
    background-image: linear-gradient(135deg,
        #0eaf6d,
        #ff6ac6 25%,
        #147b96 50%,
        #e6d205 55%,
        #2cc4e0 60%,
        #8b2ce0 80%,
        #ff6384 95%,
        #08dfb4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-size: 200% 100%;
    background-size: 200% 100%;
    -webkit-animation: flowCss 12s infinite linear;
    animation: flowCss 12s infinite linear;
    padding: 2px; /* 防止文字被切断 */
}

/* 应用渐变文字效果到所有文本元素 */
h1, h2, p, td, strong, .button, .modal-button {
    background-image: -webkit-linear-gradient(135deg,
        #0eaf6d,
        #ff6ac6 25%,
        #147b96 50%,
        #e6d205 55%,
        #2cc4e0 60%,
        #8b2ce0 80%,
        #ff6384 95%,
        #08dfb4);
    background-image: linear-gradient(135deg,
        #0eaf6d,
        #ff6ac6 25%,
        #147b96 50%,
        #e6d205 55%,
        #2cc4e0 60%,
        #8b2ce0 80%,
        #ff6384 95%,
        #08dfb4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-background-size: 200% 100%;
    background-size: 200% 100%;
    -webkit-animation: flowCss 12s infinite linear;
    animation: flowCss 12s infinite linear;
    text-shadow: none;
}

/* 动画关键帧 */
@keyframes flowCss {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -400% 0;
    }
}

@-webkit-keyframes flowCss {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -400% 0;
    }
}

/* 鼠标悬停效果 */
.gradient-text:hover,
h1:hover, h2:hover, p:hover, td:hover, strong:hover,
.button:hover, .modal-button:hover {
    -webkit-animation: flowCss 4s infinite linear;
    animation: flowCss 4s infinite linear;
}

/* 按钮特殊处理 */
.button, .modal-button {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    z-index: 1;
    display: inline-block;
    transition: all 0.3s ease;
}

.button:hover, .modal-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

/* 移除之前的按钮悬停样式 */
.button:hover, .modal-button:hover {
    background: transparent;
}

/* 确保渐变文字在按钮悬停时仍然可见 */
.button.gradient-text, .modal-button.gradient-text {
    background-color: transparent;
    background-image: -webkit-linear-gradient(135deg,
        #0eaf6d,
        #ff6ac6 25%,
        #147b96 50%,
        #e6d205 55%,
        #2cc4e0 60%,
        #8b2ce0 80%,
        #ff6384 95%,
        #08dfb4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

.button.gradient-text:hover, .modal-button.gradient-text:hover {
    -webkit-animation: flowCss 4s infinite linear;
    animation: flowCss 4s infinite linear;
    background-image: -webkit-linear-gradient(135deg,
        #0eaf6d,
        #ff6ac6 25%,
        #147b96 50%,
        #e6d205 55%,
        #2cc4e0 60%,
        #8b2ce0 80%,
        #ff6384 95%,
        #08dfb4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 添加按钮边框发光效果 */
.button:hover, .modal-button:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4),
               0 0 10px rgba(6, 182, 212, 0.4);
}

/* 确保表格内容正确显示 */
table td {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* 强化标题效果 */
h1 {
    font-size: 2.5em;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* 强化段落文字 */
p {
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* 强化强调文字 */
strong {
    font-weight: 800;
    font-size: 1.2em;
    position: relative;
    z-index: 1;
}

/* 服务器信息单元格的特殊样式 */
.server-info {
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.server-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: none;
}

.server-info .gradient-text {
    opacity: 1;
    z-index: 2;
    position: relative;
}

/* 性能优化 */
* {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
}

/* 优化背景图片加载 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('../bg233.png') center center/cover no-repeat fixed;
    color: #2d3748;
    line-height: 1.6;
    position: relative;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 优化毛玻璃效果 */
.con_wrap, .modal-content, table td {
    transform: translate3d(0,0,0);
    will-change: transform, opacity;
    contain: content;
}

/* 分层渲染优化 */
section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    transform: translate3d(0,0,0);
    will-change: transform;
    contain: layout style paint;
}

/* 优化图片加载 */
table img {
    width: 100%;
    max-width: 200px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block;
}

/* 确保图片容器正确显示 */
table td[rowspan="6"] {
    vertical-align: top;
    padding: 1.2rem;
    width: 200px;
}

@media (max-width: 768px) {
    /* 移动端特定优化 */
    .con_wrap, .modal-content {
        contain: content;
        will-change: transform, opacity;
        transform: translate3d(0,0,0);
    }

    /* 减少重绘区域 */
    table td {
        contain: layout style;
    }

    /* 优化动画性能 */
    .button, .modal-button {
        will-change: transform;
        transform: translate3d(0,0,0);
    }
}

/* 预加载关键资源 */
head {
    link[rel="preload"] {
        as: "image";
        href: "bg233.png";
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    section {
        padding: 10px;
        margin: 1rem auto;
    }
    
    .con_wrap {
        padding: 1rem;
    }

    table {
        display: block;
        width: 100%;
    }

    table tbody {
        display: block;
        width: 100%;
    }

    table tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    table td {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        box-sizing: border-box;
    }

    table td[rowspan="6"] {
        width: 100%;
        text-align: center;
    }

    table td[rowspan="6"] img {
        max-width: 200px;
        margin: 0 auto;
    }

    .button {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 15px;
        font-size: 16px;
        text-align: center;
    }

    /* 模态框优化 */
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
    }

    .modal-button {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 15px;
        font-size: 16px;
    }

    h1 {
        font-size: 1.8em;
        text-align: center;
    }

    h2 {
        font-size: 1.5em;
        text-align: center;
    }

    p {
        font-size: 1em;
        margin: 0.5rem 0;
    }

    /* 优化点击区域 */
    .button, .modal-button {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* 防止误触 */
    .button, .modal-button {
        margin-bottom: 15px;
    }

    /* 优化模态框滚动 */
    .modal {
        -webkit-overflow-scrolling: touch;
    }

    /* 优化模态框背景 */
    .modal::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* 添加触摸反馈 */
@media (hover: none) {
    .button:active, .modal-button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* 优化模态框关闭按钮 */
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
    border: none;
    outline: none;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 修复页面滚动和模态框定位问题 */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

/* 添加线条环绕动画 */
.line {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    filter: brightness(1.5);
}

.line:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        #ff0000,
        #ff3300,
        #ff0000
    );
    animation: animate1 4s linear infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

@keyframes animate1 {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.line:nth-child(2) {
    top: -100%;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent,
        #00ff00,
        #33ff00,
        #00ff00
    );
    animation: animate2 4s linear infinite;
    animation-delay: 1s;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

@keyframes animate2 {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

.line:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(270deg, 
        transparent,
        #0066ff,
        #0099ff,
        #0066ff
    );
    animation: animate3 4s linear infinite;
    animation-delay: 2s;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

@keyframes animate3 {
    0% {
        right: -100%;
    }
    100% {
        right: 100%;
    }
}

.line:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(360deg, 
        transparent,
        #ff00ff,
        #ff33ff,
        #ff00ff
    );
    animation: animate4 4s linear infinite;
    animation-delay: 3s;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }
    100% {
        bottom: 100%;
    }
}

/* 优化移动端模态框位置 */
@media (max-width: 768px) {
    .modal-content {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 85%;
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
    }

    /* 移除之前的线条动画隐藏 */
    .line {
        display: block;
    }

    /* 优化模态框滚动 */
    .modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 15px 0;
        width: 100%;
    }

    .button {
        display: flex;
        width: 100% !important;
        margin: 5px 0 !important;
        padding: 15px !important;
        font-size: 16px !important;
        justify-content: center;
        align-items: center;
        height: 50px;
        box-sizing: border-box;
    }

    .modal-content {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
        margin: 0;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
    }

    .modal-button {
        display: flex;
        width: 100%;
        margin: 10px 0;
        padding: 15px;
        font-size: 16px;
        justify-content: center;
        align-items: center;
        height: 50px;
        box-sizing: border-box;
    }
}

/* 添加呼吸灯样式 */
.circle-breath {
    background: #0eaf6d; /* 使用绿色表示在线状态 */
    box-shadow: 0 0 0 0 rgba(14, 175, 109, 0.7);
    height: 25px; /* 增大尺寸 */
    width: 25px;  /* 增大尺寸 */
    border-radius: 50%;
    animation: donghua 2.4s infinite;
    display: inline-block;
    margin-left: 15px;  /* 增加间距 */
    vertical-align: middle;
    position: relative;
    top: -3px;  /* 微调位置以对齐标题 */
}

@keyframes donghua {
    0% {
        transform: scale(0.60);
        box-shadow: 0 0 0 0 rgba(14, 175, 109, 0.8);  /* 增加透明度 */
    }

    60% {
        transform: scale(1);
        box-shadow: 0 0 0 25px rgba(14, 175, 109, 0);  /* 增加扩散范围 */
    }

    100% {
        transform: scale(0.60);
        box-shadow: 0 0 0 0 rgba(14, 175, 109, 0);
    }
}

/* 添加新的公告样式 */
.notice-title {
    color: #000;
    font-size: 1.3em;
    font-weight: 800;
    margin-bottom: 15px;
    -webkit-text-fill-color: #000 !important;  /* 覆盖渐变效果 */
}

.notice-text {
    color: #000;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.8;
    margin: 8px 0;
    -webkit-text-fill-color: #000 !important;  /* 覆盖渐变效果 */
}

.ip-text {
    font-weight: 800;
    background: linear-gradient(to right, #000, #333);
    -webkit-background-clip: text;
    color: transparent;
    padding: 0 5px;
}

/* 添加平滑过渡 */
.con_wrap, table td {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* 优化文字渲染 */
.notice-title, .notice-text, .ip-text {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    will-change: transform;
}

/* 添加更新动画 */
@keyframes updateBlur {
    0%, 100% {
        backdrop-filter: blur(50px) saturate(180%);
        -webkit-backdrop-filter: blur(50px) saturate(180%);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .con_wrap, table td {
        animation: none; /* 移动端禁用动画以提升性能 */
    }
} 