* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe6d5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #4a2c15;
    padding: 20px;
    text-align: center;
}

/* 验证页面样式 */
#verificationPage {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(145deg, #ff9a3d, #ff7700);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 119, 0, 0.25);
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a2c15;
}

p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #7c5a3c;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.slider-section {
    width: 100%;
    max-width: 400px;
    margin: 30px 0;
}

.slider-container {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(255, 119, 0, 0.15);
    transition: all 0.5s ease;
    --progress: 0%;
}

.slider-handle {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #ff7700, #ff9a3d);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 119, 0, 0.3);
    transform: translateX(calc(var(--progress) * (400px - 60px) / 100));
    will-change: transform;
    transition: transform 0.1s ease;
}

.slider-handle:active {
    cursor: grabbing;
}

.slider-handle i {
    font-size: 20px;
    color: white;
    transition: all 0.5s ease;
}

.slider-track {
    width: var(--progress);
    height: 100%;
    background: linear-gradient(to right, #ffb366, #ff9a3d);
    border-radius: 30px;
    transition: width 0.1s ease;
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff7700;
    font-weight: 500;
    z-index: 1;
    white-space: nowrap;
    font-size: 16px;
    transition: all 0.5s ease;
}

.progress-text {
    margin-top: 15px;
    font-size: 14px;
    color: #ff7700;
    transition: all 0.5s ease;
}

.security-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 25px;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: #7c5a3c;
}

.security-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    font-size: 18px;
    color: #ff7700;
    box-shadow: 0 5px 15px rgba(255, 119, 0, 0.1);
}

.status-section {
    margin-top: 20px;
    min-height: 20px;
}

.hint {
    margin-top: 15px;
    font-size: 14px;
    color: #7c5a3c;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.footer {
    margin-top: 40px;
    font-size: 12px;
    color: #a87c5c;
}

/* 验证成功后的样式 */
.slider-container.verified {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    --progress: 100%;
}

.slider-container.verified .slider-track {
    background: linear-gradient(to right, #4CAF50, #2E7D32);
}

.slider-container.verified .slider-handle {
    background: linear-gradient(145deg, #4CAF50, #2E7D32);
}

.slider-container.verified .slider-handle i {
    transform: rotate(360deg);
}

.slider-container.verified .slider-text {
    color: #2E7D32;
    font-weight: bold;
}

.redirect-countdown {
    margin-top: 15px;
    font-size: 14px;
    color: #2E7D32;
    font-weight: 500;
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 服务器选择页面样式 */
#serverPage {
    width: 100%;
    max-width: 500px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #7c2d12;
    margin: 5px 0 15px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-title i {
    color: #ff7700;
    font-size: 16px;
}

.servers-section {
    width: 100%;
    max-width: 400px;
    margin: 0 0 20px 0;
}

.server-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(255, 149, 92, 0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 149, 92, 0.25);
    border-color: #ffba74;
}

.server-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffddc1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 18px;
    color: #ff7700;
}

.server-info {
    flex: 1;
    text-align: left;
}

.server-name {
    font-weight: 600;
    color: #7c2d12;
    font-size: 16px;
}

.server-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ping-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.ping-excellent {
    background: #e0ffeb;
    color: #2e8b57;
}

.ping-good {
    background: #fff4d1;
    color: #d97706;
}

.ping-average {
    background: #ffe4d1;
    color: #ed7014;
}

.server-arrow {
    color: #ff7700;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.action-button {
    flex: 1;
    background: linear-gradient(145deg, #ffb380, #ff984f);
    color: #7c2d12;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 149, 92, 0.25);
    text-decoration: none;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 149, 92, 0.35);
    background: linear-gradient(145deg, #ff984f, #ffba74);
    color: #5c220d;
}

.action-button i {
    font-size: 20px;
    margin-bottom: 5px;
}

.action-button span {
    font-size: 12px;
    font-weight: 500;
}

.customer-service {
    background: linear-gradient(145deg, #7fdbda, #5ecbc9);
    color: #0d5c5b;
    box-shadow: 0 4px 8px rgba(94, 203, 201, 0.3);
}

.customer-service:hover {
    box-shadow: 0 6px 12px rgba(94, 203, 201, 0.4);
    background: linear-gradient(145deg, #5ecbc9, #7fdbda);
    color: #063736;
}

.server-footer {
    margin-top: 25px;
    width: 100%;
    max-width: 500px;
}

.footer-title {
    font-size: 16px;
    color: #7c2d12;
    margin-bottom: 12px;
    font-weight: 600;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7c2d12;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 149, 92, 0.1);
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 92, 0.2);
    color: #ff7700;
}

.nav-icon {
    width: 32px;
    height: 32px;
    background: #ffddc1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
    color: #ff7700;
}

.nav-name {
    font-size: 11px;
    font-weight: 500;
}

.copyright {
    font-size: 11px;
    color: #d97706;
    margin-top: 15px;
}