﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#form1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    min-height: 100vh;
    text-align: center;
    font-family: 'Microsoft YaHei', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

/* 背景星空样式 */
#starBg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: #023466;
}

/* 头部图片满屏样式 */
.header-image {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

/* 布局容器 */
.container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: #FFFF00;
    font-size: small;
    z-index: 1;
    flex: 1;
    padding-bottom: 20px;
}

/* 标题样式 */
.title-block {
    display: inline-block;
    position: relative;
    margin: 20px 0 30px;
    padding: 0 25px;
    height: 45px;
    line-height: 45px;
    background: #F3715D;
    color: white;
    border-radius: 5px 5px 5px 0;
    letter-spacing: 2px;
    font-size: medium;
}

    .title-block .triangle {
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-top: 5px solid #DD6755;
        border-right: 5px solid #DD6755;
    }

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    width: 95%;
}

/* 结果页面样式 */
.result-container {
    font-size: 14px;
    margin-bottom: 25px;
}

.result-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.result-label {
    width: 60px;
    text-align: right;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.result-value {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    text-align: left;
}

.result-number {
    color: #fdbb2d;
    font-weight: bold;
}

/* 表单页面样式 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

    .form-input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }

/* 验证码容器 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

    .captcha-image:active {
        transform: scale(0.95);
    }

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 50px;
    background: rgba(243, 113, 93, 0.85);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

    .submit-btn:hover {
        background: rgba(243, 113, 93, 1);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .submit-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

/* 页脚样式 */
.footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
}

.hlong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 10px;
}

    .hlong * {
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 0;
    }

    .hlong img {
        vertical-align: middle;
        max-height: 20px;
    }

    .hlong a {
        color: white;
        text-decoration: underline;
    }

        .hlong a:hover {
            color: #ffd700;
        }

.footer-divider {
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 0 15px;
    }

    .glass-card {
        padding: 20px 15px;
        width: 95%;
        margin: 15px auto;
    }

    .title-block {
        font-size: 16px;
        height: 45px;
        line-height: 45px;
        padding: 0 20px;
        margin-left: 2.5%;
    }

    .result-item {
        flex-direction: row;
        align-items: center;
        gap: 5px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .result-label {
        width: 130px;
        text-align: right;
        margin-right: 8px;
        margin-bottom: 0;
        flex-shrink: 0;
        font-size: 14px;
    }

    .result-value {
        width: auto;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }

    .form-input, .submit-btn {
        height: 45px;
    }

    .hlong {
        font-size: 13px;
        gap: 8px;
    }

        .hlong img {
            max-height: 18px;
        }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0 15px;
    }

    .glass-card {
        margin: 15px auto;
        padding: 12px;
        width: 95%;
    }

    .title-block {
        font-size: 14px;
        height: 40px;
        line-height: 40px;
        padding: 0 15px;
        margin-left: 2.5%;
    }

    .form-input, .submit-btn {
        height: 40px;
        font-size: 14px;
    }

    .form-label {
        font-size: 14px;
    }

    .hlong {
        font-size: 12px;
        gap: 6px;
    }

        .hlong img {
            max-height: 16px;
        }
}

@media (max-width: 360px) {
    .hlong {
        font-size: 11px;
        gap: 4px;
    }

        .hlong img {
            max-height: 14px;
        }
}
