/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
/* .header {
    background-color: #0066cc;
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} */

/* .header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 300px;
    height: 60px;
    background-color: #0066cc;
    transform: skewX(-30deg);
} */

.header h1 {
    font-size: 24px;
    font-weight: normal;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #0052a3;
}

/* 查询框 */
.search-box {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 150px;
    padding: 8px 12px;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.search-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #0052a3;
}

/* 表单容器 */
.form-container {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 表单头部 */
.form-header {
    background-color: #0066cc;
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

.form-header::before,
.form-header::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.form-header::before {
    left: 20px;
}

.form-header::after {
    right: 20px;
}

.form-header h2 {
    font-size: 18px;
    font-weight: normal;
}

/* 表单样式 */
.mail-form {
    padding: 30px;
}

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

.form-group label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
    vertical-align: top;
    margin-top: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: calc(100% - 110px);
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.password-hint {
    display: block;
    margin-left: 100px;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 单选按钮组 */
.radio-group {
    display: inline-block;
    vertical-align: middle;
    margin-top: 8px;
}

.radio-group label {
    display: inline-block;
    width: auto;
    font-weight: normal;
    margin-right: 15px;
    cursor: pointer;
    margin-top: 0;
}

.radio-group input[type="radio"] {
    margin-right: 4px;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;

}

.department {
    width: 49%;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group.half input {
    width: calc(100% - 100px);
}

/* 内容区域 */
.content-wrapper {
    display: inline-block;
    width: calc(100% - 110px);
    border: 1px solid #ddd;
    border-radius: 4px;
    vertical-align: top;
    transition: border-color 0.3s ease;
}

.content-wrapper:focus-within {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.user-type {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.user-type label {
    display: inline-block;
    width: auto;
    font-weight: normal;
    margin-right: 15px;
    cursor: pointer;
    margin-top: 0;
}

.user-type input[type="radio"] {
    margin-right: 4px;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: none;
    resize: vertical;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
}

/* 验证码区域 */
.captcha {
    margin-top: 30px;
    text-align: center;
}

.captcha label {
    width: auto;
    margin-right: 10px;

}

.captcha-input {
    width: 100px !important;
    margin-right: 10px;
}

.captcha-code {
display: inline-block;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  margin-right: 10px;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  border-radius: 4px;
  line-height: initial;
}
.captcha-code img {
    vertical-align: middle;
}
.submit-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: #0052a3;
}

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

/* 留言须知样式 */
        .notice-box {
            background-color: #fff8e1;
            border-left: 4px solid #ffc107;
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 4px;
        }
        
        .notice-box h3 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 18px;
            color: #f57c00;
            font-weight: 600;
        }
        
        .notice-box p {
            margin: 10px 0;
            line-height: 1.8;
            color: #666;
            font-size: 14px;
        }
        
        .notice-box .notice-thanks {
            margin-top: 15px;
            font-weight: 500;
            color: #f57c00;
        }

/* 附件上传样式 */
        .upload-container {
            margin-left: 100px;
        }
        
        .upload-area {
            border: 2px dashed #ddd;
            border-radius: 8px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .upload-area:hover {
            border-color: #0066cc;
            background-color: #f8f9fa;
        }
        
        .upload-area input[type="file"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }
        
        .upload-icon {
            font-size: 48px;
            color: #ddd;
            margin-bottom: 10px;
            transition: color 0.3s ease;
        }
        
        .upload-area:hover .upload-icon {
            color: #0066cc;
        }
        
        .upload-text {
            font-size: 16px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .upload-hint {
            font-size: 12px;
            color: #999;
        }
        
        .file-list {
            margin-top: 20px;
        }
        
        .file-item {
            display: flex;
            align-items: center;
            padding: 10px;
            background-color: #f8f9fa;
            border-radius: 4px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
        }
        
        .file-item:hover {
            background-color: #e9ecef;
        }
        
        .file-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #e3f2fd;
            border-radius: 4px;
            margin-right: 10px;
            font-size: 20px;
            color: #0066cc;
        }
        
        .file-info {
            flex: 1;
            overflow: hidden;
        }
        
        .file-name {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .file-size {
            font-size: 12px;
            color: #999;
        }
        
        .file-progress {
            width: 100%;
            height: 4px;
            background-color: #e9ecef;
            border-radius: 2px;
            margin-top: 5px;
            overflow: hidden;
        }
        
        .file-progress-bar {
            height: 100%;
            background-color: #0066cc;
            border-radius: 2px;
            transition: width 0.3s ease;
        }
        
        .file-actions {
            margin-left: 10px;
        }
        
        .file-remove {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            font-size: 16px;
            padding: 0 5px;
            transition: color 0.3s ease;
        }
        
        .file-remove:hover {
            color: #c82333;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .upload-container {
                margin-left: 0;
            }
            
            .upload-area {
                padding: 30px 15px;
            }
            
            .upload-icon {
                font-size: 36px;
            }
            
            .upload-text {
                font-size: 14px;
            }
        }



/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .search-box {
        padding: 15px;
    }
    
    .search-input {
        width: 120px;
        margin: 5px 0;
        display: block;
    }
    
    .search-btn {
        margin-top: 10px;
        width: 100%;
        padding: 10px;
    }
    
    .mail-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        margin-top: 0;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"] {
        width: 100%;
    }
    
    .password-hint {
        margin-left: 0;
    }
    
    .radio-group {
        display: block;
        margin-top: 5px;
    }
    
    .radio-group label {
        display: block;
        margin-bottom: 8px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .department {
        width: 100%;
    }
    
    .form-group.half input {
        width: 100%;
    }
    
    .content-wrapper {
        width: 100%;
        margin-top: 5px;
    }
    
    .user-type {
        padding: 8px;
    }
    
    .user-type label {
        display: block;
        margin-bottom: 8px;
    }
    
    textarea {
        min-height: 120px;
    }
    
    .captcha {
        margin-top: 20px;
    }
    
    .captcha label {
        display: block;
        margin-bottom: 10px;
    }
    
    .captcha-input {
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .captcha-code {
        display: block;
        margin: 0 auto 10px;
        text-align: center;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* 额外的美化效果 */
.form-container {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* 输入框和按钮的焦点效果 */
input:focus,
textarea:focus {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}