/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    /* 使用大气的蓝色科技感背景图（CDN直连，无需本地下载） */
    background: url("https://pic1.zhimg.com/v2-8e277899c36648218999806899768888_r.jpg?source=1940ef5c") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 20px 0;
    /* 背景叠加半透明遮罩，保证文字清晰 */
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 82, 217, 0.91); /* 修复rgba写法兼容性问题 */
    z-index: -1;
}

/* 页面标题 */
.page-title-wrap {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sub-title {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* 表单容器 */
.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 表单头部 */
.form-header {
    background: linear-gradient(90deg, #0055bb, #0077dd);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.form-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
}

.form-header-text {
    font-size: 18px;
    font-weight: 600;
    margin-left: 10px;
}

.form-header-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #0077dd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 表单主体 */
.form-body {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 15px 12px 35px;
    border: 1px solid #d0e0f0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fff;
}

.form-input:focus, .form-select:focus {
    border-color: #0088ee;
    box-shadow: 0 0 0 3px rgba(0, 136, 238, 0.1);
}

.form-input::placeholder, .form-select::placeholder {
    color: #999;
}

/* 输入框左侧图标（修复垂直居中） */
.form-icon {
    position: absolute;
    left: 10px;
    top: 35%; /* 原35%导致图标错位，改为50%+translate垂直居中 */
    transform: translateY(-50%);
    color: #6699cc;
    font-size: 16px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #0088ee, #0066cc);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #0077dd, #0055bb);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* 隐私提示 */
.privacy-tip {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.privacy-link {
    color: #0066cc;
    text-decoration: none;
}

/* 友情提示 */
.tips-wrap {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 0 20px;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tips-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tips-list {
    font-size: 14px;
    line-height: 1.8;
    list-style-type: disc;
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 5px;
}

.tips-link {
    color: #ffff00;
    text-decoration: none;
}

/* 新增：版权与备案信息样式 */
.footer-wrap {
    width: 100%;
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    font-size: 12px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.copyright {
    margin-bottom: 8px;
}

.record-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.record-link {
    color: #fff;
    text-decoration: none;
}

.record-link:hover {
    text-decoration: underline;
}

.record-separator {
    margin: 0 4px;
}

/* 移动端适配（核心修复超宽问题） */
@media (max-width: 768px) {
    .main-title {
        font-size: 26px;
    }

    .sub-title {
        font-size: 16px;
    }

    .form-container {
        margin: 0 10px; /* 缩小左右margin，避免容器过窄 */
        width: calc(100% - 20px); /* 强制容器宽度=屏幕宽-左右margin，避免超宽 */
    }

    .form-body {
        padding: 15px 20px; /* 缩小内边距，给小屏幕更多空间 */
    }

    .form-input {
        padding: 12px 12px 12px 32px; /* 缩小输入框内边距，适配小屏幕 */
        font-size: 13px; /* 缩小字体，避免文字溢出 */
    }

    .tips-wrap {
        margin-top: 20px;
    }

    .footer-wrap {
        margin-top: 30px;
        padding: 15px 0;
    }

    .record-info {
        flex-direction: column;
        gap: 4px;
    }

    .record-separator {
        display: none;
    }
}