/* 重置和基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #2c3e50;
    padding: 20px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 添加头部容器样式 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Logo样式 */
.logo-container {
    flex-shrink: 0;
}

.logo {
    max-width: 120px;
    height: auto;
    margin: 0;
}

/* 标题样式 */
h1 {
    text-align: center;
    color: #2c3e50;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    flex-grow: 1;
    padding-right: 120px; /* 为了视觉上的居中，补偿logo的宽度 */
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

/* 标签样式 */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 16px;
}

/* 输入框和选择框通用样式 */
input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* 选择框特殊样式 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234a5568' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

/* 提交按钮样式 */
button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

button[type="submit"]:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

/* 语言切换按钮样式 */
.language-switch {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.language-switch button {
    padding: 10px 25px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.3);
}

.language-switch button:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

/* 必填字段标记 */
.required::after {
    content: '*';
    color: #e53e3e;
    margin-left: 4px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        margin: 20px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .language-switch {
        top: 20px;
        right: 20px;
    }
}

/* 语言显示控制 */
html[lang="zh"] .en {
    display: none;
}

html[lang="en"] .zh {
    display: none;
}

/* 添加分组标题 */
.form-section {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.form-section-title {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 添加帮助图标样式 */
.help-icon {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
}

.question-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #4299e1;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

/* 工具提示样式 */
.tooltip {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.tooltip iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.close-tooltip {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
} 

/* 添加帮助图标样式 */
.help-icon {
} 

/* 帮助链接样式 */
.help-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    text-decoration: none;
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #4299e1;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.help-link:hover .help-icon {
    background-color: #3182ce;
    transform: scale(1.1);
} 