@font-face {
    font-family: "Pricedown";
    src: url("./pricedown.ttf");
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 背景设置 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("background.jpg") no-repeat;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2);
    animation: backgroundBreathing 8s ease-in-out infinite;
}

@keyframes backgroundBreathing {
    0%,
    100% {
        filter: brightness(0.7) contrast(1.2) hue-rotate(0deg) saturate(1);
    }
    25% {
        filter: brightness(0.8) contrast(1.3) hue-rotate(30deg) saturate(1.2);
    }
    50% {
        filter: brightness(0.9) contrast(1.1) hue-rotate(60deg) saturate(1.1);
    }
    75% {
        filter: brightness(0.75) contrast(1.25) hue-rotate(30deg) saturate(1.15);
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
    animation: overlayBreathing 6s ease-in-out infinite;
}

@keyframes overlayBreathing {
    0%,
    100% {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    }
}

/* 主容器 */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    gap: 20px;
}

/* 头部LOGO */
.header {
    text-align: center;
    padding: 10px 0;
    flex-shrink: 0;
}

.logo-container {
    display: inline-block;
    max-width: 250px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
}

/* 服务器标题 */
.server-title {
    text-align: center;
    margin-bottom: 15px;
}

.title {
    font-family: "Pricedown", sans-serif;
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(45deg, #32cd32, #90ee90, #98fb98);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(50, 205, 50, 0.5);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 主要按钮区域 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    width: 100%;
    margin-bottom: 25px;
}

.action-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.action-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.action-btn:hover::before {
    transform: translateX(100%);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-text {
    flex: 1;
}

.btn-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.btn-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.action-btn:hover .btn-glow {
    opacity: 1;
}

/* 按钮样式变体 */
.primary-btn {
    background: rgba(50, 205, 50, 0.25);
    border-color: rgba(50, 205, 50, 0.6);
}

.primary-btn:hover {
    background: rgba(50, 205, 50, 0.35);
    border-color: #32cd32;
}

.primary-btn .btn-icon {
    background: rgba(50, 205, 50, 0.3);
    border-color: rgba(50, 205, 50, 0.6);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.kook-btn {
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.6);
}

.kook-btn:hover {
    background: rgba(255, 107, 107, 0.35);
    border-color: #ff6b6b;
}

.kook-btn .btn-icon {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.6);
}

.qq-btn {
    background: rgba(0, 123, 255, 0.25);
    border-color: rgba(0, 123, 255, 0.6);
}

.qq-btn:hover {
    background: rgba(0, 123, 255, 0.35);
    border-color: #007bff;
}

.qq-btn .btn-icon {
    background: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.6);
}

/* 服务器信息卡片 */
.server-info {
    text-align: center;
    flex-shrink: 0;
}

.info-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    max-width: 450px;
    margin: 0 auto;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #00a8ff;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    font-family: "Courier New", monospace;
    color: #00a8ff;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
        gap: 15px;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .action-btn {
        padding: 18px;
    }

    .btn-content {
        gap: 12px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .btn-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .action-btn {
        padding: 16px;
    }

    .btn-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .btn-icon {
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
    }

    .btn-title {
        font-size: 1rem;
    }

    .btn-subtitle {
        font-size: 0.7rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-title {
    animation: fadeInUp 1s ease;
}

.server-stats {
    animation: fadeInUp 1s ease 0.2s both;
}

.action-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.server-info {
    animation: fadeInUp 1s ease 0.6s both;
}
