/* 全局和字体 */
body {
    margin: 0;
    font-family: "Lato", sans-serif;
    background: #0a0e1a;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url("https://images.unsplash.com/photo-1511512575447-f1a60ebac867?q=80&w=2070&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.85);
    z-index: -1;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 450px;
    background: rgba(20, 25, 40, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.3);
    text-align: center;
}

/* Logo */
header img {
    max-width: 90%;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* 标题和段落 */
h1 {
    font-family: "Orbitron", sans-serif;
    color: #4a90e2;
    font-size: 2em;
    margin: 0.5em 0;
}

p {
    color: #a0a0a0;
    margin-bottom: 25px;
}

/* 表单样式 */
.id-check-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.id-check-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #f9a825;
}

.id-check-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box;
    background: #2c3e50;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1em;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}

.id-check-form input[type="text"]:focus {
    outline: none;
    border-color: #f9a825;
    box-shadow: 0 0 8px rgba(249, 168, 37, 0.4);
}

/* 验证码组 */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-wrapper input[type="text"] {
    flex-grow: 1;
}

#captcha-image {
    height: 46px;
    border-radius: 5px;
    border: 1px solid #4a90e2;
    cursor: pointer;
}

#refresh-captcha {
    background: #4a90e2;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition:
        background 0.3s,
        transform 0.2s;
}

#refresh-captcha:hover {
    background: #357abd;
    transform: rotate(90deg);
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #f9a825, #ffeb3b);
    border: none;
    border-radius: 8px;
    color: #0a0e1a;
    font-family: "Orbitron", sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 168, 37, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 消息提示 */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid;
}

.message.success {
    color: #a5d6a7;
    background-color: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.message.error {
    color: #ef9a9a;
    background-color: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* --- Player Information Card --- */
.player-info-card {
    background: linear-gradient(
        145deg,
        rgba(30, 40, 65, 0.9),
        rgba(20, 25, 40, 0.9)
    );
    border: 1px solid rgba(249, 168, 37, 0.5);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 25px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(74, 144, 226, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-info-card h2 {
    font-family: "Orbitron", sans-serif;
    color: #f9a825;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.5);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.info-label {
    font-size: 0.8em;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-family: "Orbitron", sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: #ffffff; /* White for contrast */
    word-break: break-all; /* Prevents long IDs from overflowing */
}

/* Responsive design for the card */
@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }
}

.validation-error {
    margin-bottom: 20px;
}

/* --- Facebook Fanpage Banner --- */
footer {
    margin-top: 30px;
    width: 100%;
}

.facebook-banner {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.facebook-banner:hover {
    transform: translateY(-5px);
}

.facebook-banner a {
    display: block;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #1877f2, #0c63d4);
    padding: 15px 20px;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.facebook-banner i {
    font-size: 24px;
    margin-right: 15px;
}

.banner-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.banner-text p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.banner-action {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.facebook-banner:hover .banner-action {
    background: rgba(255, 255, 255, 0.3);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

/* Responsive design for Facebook banner */
@media (max-width: 480px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .facebook-banner i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .banner-action {
        margin-top: 10px;
    }
}
