/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 主标题样式 */
.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-header h1 {
    color: #4a5568;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #718096;
    font-weight: 300;
}

/* 模块网格布局 */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 模块卡片样式 */
.module-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.module-card.coming-soon {
    opacity: 0.7;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.module-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-card h2 {
    color: #2d3748;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

.module-description {
    color: #4a5568;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* 功能标签 */
.module-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.coming-soon .feature-tag {
    background: #a0aec0;
}

/* 模块按钮 */
.btn-module {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-module.disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-module.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 页脚样式 */
.main-footer {
    text-align: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    color: #4a5568;
    font-size: 1.1em;
}

/* 表单样式（用于子页面） */
.form-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2d3748;
    font-size: 1.1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 预设名字选择器样式 */
.name-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.name-selector select {
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    min-width: 150px;
}

.name-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.name-separator {
    color: #718096;
    font-weight: 500;
    padding: 0 5px;
}

.name-selector input[type="text"] {
    flex: 1;
    min-width: 200px;
}

/* 数字范围选择器样式 */
.number-range-selector {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    margin-bottom: 25px;
}

.number-range-selector h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.range-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4a5568;
    font-size: 0.9em;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
}

.input-group input[type="number"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.range-note {
    font-size: 0.85em;
    color: #718096;
    font-style: italic;
    margin-top: 8px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

/* 返回按钮 */
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    color: #4a5568;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.2em;
    color: #718096;
}

/* 练习信息 */
.practice-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.practice-info span {
    background: #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: #4a5568;
}

/* 表单容器 */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* 表单组 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 类型描述 */
.type-description {
    margin-top: 8px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    color: #718096;
    font-size: 0.9em;
    min-height: 20px;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* 按钮样式 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 功能特色 */
.features {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.features h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a5568;
    font-size: 1.8em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: #f7fafc;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-item p {
    color: #718096;
    line-height: 1.5;
}

/* 题目容器 */
.questions-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.screen-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 题目项 */
.question-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.question-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.question-number {
    font-weight: bold;
    color: #667eea;
    margin-right: 10px;
    min-width: 30px;
}

.question-text {
    flex: 1;
    font-size: 1.1em;
    font-weight: 500;
    color: #4a5568;
    margin-right: 15px;
}

.answer-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-input {
    width: 80px !important;
    padding: 8px 12px !important;
    text-align: center;
    font-weight: bold;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

.answer-input.correct {
    border-color: #48bb78 !important;
    background: #f0fff4 !important;
}

.answer-input.incorrect {
    border-color: #f56565 !important;
    background: #fff5f5 !important;
}

.check-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.check-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

/* 填空式题目样式 */
.fill-blank-question {
    background: #f0f8ff !important;
    border-left-color: #4299e1 !important;
}

.fill-circle {
    display: inline-block;
    width: 35px;
    height: 35px;
    border: 3px solid #4299e1;
    border-radius: 50%;
    text-align: center;
    line-height: 29px;
    margin: 0 8px;
    background: white;
    font-weight: bold;
    font-size: 20px;
    vertical-align: middle;
}

.fill-blank-input {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border: 2px solid #4299e1 !important;
    background: white !important;
}

.fill-blank-instruction {
    font-size: 0.9em;
    color: #718096;
    font-style: italic;
    margin-left: 10px;
}

/* 打印样式中的填空题 */
.print-fill-circle {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 2px solid #333;
    border-radius: 50%;
    text-align: center;
    line-height: 21px;
    margin: 0 3px;
    background: white;
    font-weight: bold;
    font-size: 16px;
    vertical-align: middle;
}

.print-fill-instruction {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* 数字范围选择器样式 */
.range-selector {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.range-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.range-input-group label {
    font-size: 0.9em;
    color: #4a5568;
    white-space: nowrap;
}

.range-input-group input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    transition: border-color 0.3s ease;
}

.range-input-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.range-note {
    font-size: 0.85em;
    color: #718096;
    margin-top: 8px;
    font-style: italic;
}

.check-btn.correct {
    background: #48bb78;
}

.check-btn.incorrect {
    background: #f56565;
}

/* 操作按钮 */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 分数显示 */
.score-display {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
}

.score-display h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.score-info {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.score-percentage {
    color: #718096;
    font-size: 0.8em;
}

.score-message {
    font-size: 1.2em;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.score-message.excellent {
    background: #f0fff4;
    color: #38a169;
    border: 2px solid #48bb78;
}

.score-message.good {
    background: #fffbf0;
    color: #d69e2e;
    border: 2px solid #ed8936;
}

.score-message.needs-improvement {
    background: #fff5f5;
    color: #e53e3e;
    border: 2px solid #f56565;
}

/* 底部 */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

/* 练习提示样式 */
.practice-tips {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.practice-tips h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tip-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.tip-item h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.tip-item p {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.4;
}

/* 挑战信息样式 */
.challenge-info {
    margin-top: 30px;
    background: #e6fffa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #38b2ac;
}

.challenge-info h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.3em;
}

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

.challenge-example {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.challenge-example h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.example-question {
    text-align: center;
    font-size: 1.2em;
}

.example-question p {
    margin: 10px 0;
    font-weight: bold;
    color: #4a5568;
}

.example-answer {
    color: #38b2ac !important;
    font-size: 0.9em !important;
}

.challenge-rules {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.challenge-rules h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.challenge-rules ul {
    list-style: none;
    padding: 0;
}

.challenge-rules li {
    color: #4a5568;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.challenge-rules li:before {
    content: "✓";
    color: #38b2ac;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 导航栏样式 */
.navigation-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.navigation-bar .btn-back {
    margin-bottom: 0;
}

/* 练习信息样式 */
.practice-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.practice-info span {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 预设名字管理区域 */
.preset-names-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.preset-names-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preset-names-section h3::before {
    content: "👥";
    font-size: 1.2em;
}

.preset-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.preset-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.preset-input-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.preset-input-group .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preset-input-group .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.preset-names-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.preset-name-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preset-name-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.preset-name-tag .remove-btn {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.preset-name-tag .remove-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

.preset-names-empty {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.preset-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.preset-message.success {
    background: rgba(72, 187, 120, 0.2);
    color: #38a169;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.preset-message.error {
    background: rgba(229, 62, 62, 0.2);
    color: #e53e3e;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

/* 名字复选框样式 */
.name-checkboxes {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.checkbox-header span {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clear-btn:hover {
    background: #c82333;
}

.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.checkbox-item:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #007bff;
    font-weight: 600;
}

.checkbox-item span {
    -webkit-user-select: none;
    user-select: none;
    color: #495057;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .main-header h1 {
        font-size: 2.2em;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .module-card {
        padding: 25px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .range-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .features,
    .questions-container {
        padding: 25px;
    }
    
    .practice-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions,
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .screen-questions {
        grid-template-columns: 1fr;
    }
    
    .question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .answer-box {
        align-self: flex-end;
    }
    
    /* 田字格练字响应式 */
    .handwriting-container {
        margin: 10px;
        padding: 15px;
    }
    
    .handwriting-header h1 {
        font-size: 1.8em;
    }
    
    .student-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .grid-container {
        justify-content: center;
    }
    
    .grid-large .grid-cell {
        width: 60px;
        height: 60px;
    }
    
    .grid-medium .grid-cell {
        width: 45px;
        height: 45px;
    }
    
    .grid-small .grid-cell {
        width: 35px;
        height: 35px;
    }
    
    .example-char {
        font-size: 0.8em;
    }
    
    .checkbox-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .checkbox-item {
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* 田字格练字样式 */
.handwriting-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 满页田字格布局 */
.full-page-grid {
    display: grid;
    width: 100%;
    height: calc(100vh - 120px); /* 减去头部高度 */
    gap: 0; /* 移除间隔 */
    padding: 10px;
    box-sizing: border-box;
}

.full-page-grid.grid-large {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(10, 1fr);
}

.full-page-grid.grid-medium {
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(12, 1fr);
}

.full-page-grid.grid-small {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(15, 1fr);
}

.grid-cell-wrapper {
    width: 100%;
    height: 100%;
    display: block;
}

.grid-cell-wrapper .grid-cell {
    position: relative;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
}

/* 第一行添加顶边框 */
.grid-cell-wrapper:nth-child(-n+8) .grid-cell,
.full-page-grid.grid-medium .grid-cell-wrapper:nth-child(-n+10) .grid-cell,
.full-page-grid.grid-small .grid-cell-wrapper:nth-child(-n+12) .grid-cell {
    border-top: 1px solid #333;
}

/* 第一列添加左边框 */
.full-page-grid.grid-large .grid-cell-wrapper:nth-child(8n+1) .grid-cell,
.full-page-grid.grid-medium .grid-cell-wrapper:nth-child(10n+1) .grid-cell,
.full-page-grid.grid-small .grid-cell-wrapper:nth-child(12n+1) .grid-cell {
    border-left: 1px solid #333;
}

.full-page-grid .grid-large .grid-cell {
    font-size: 28px;
}

.full-page-grid .grid-medium .grid-cell {
    font-size: 24px;
}

.full-page-grid .grid-small .grid-cell {
    font-size: 20px;
}

/* 田字格内部线条 */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.horizontal-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    transform: translateY(-50%);
}

.vertical-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #ccc;
    transform: translateX(-50%);
}

/* 示例字符样式 */
.example-cell {
    background-color: #f8f9fa !important;
}

.example-char {
    font-weight: bold;
    color: #333;
    z-index: 10;
    position: relative;
}

/* 练习格子样式 */
.practice-cell {
    background-color: white !important;
}

/* 手写练习容器样式 */
.handwriting-container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.handwriting-content {
    width: 100%;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.handwriting-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.handwriting-header h1 {
    color: #2d3748;
    font-size: 2.2em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.student-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.student-info span {
    background: #f7fafc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.handwriting-content {
    margin: 30px 0;
}

.handwriting-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.line-number {
    background: #4299e1;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
    flex-shrink: 0;
    margin-top: 10px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.grid-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.grid-cell {
    position: relative;
    border: 2px solid #2d3748;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 不同大小的田字格 */
.grid-large .grid-cell {
    width: 80px;
    height: 80px;
}

.grid-medium .grid-cell {
    width: 60px;
    height: 60px;
}

.grid-small .grid-cell {
    width: 45px;
    height: 45px;
}

/* 田字格内部线条 */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.horizontal-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #a0aec0;
    transform: translateY(-50%);
}

.vertical-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #a0aec0;
    transform: translateX(-50%);
}

/* 示例字符样式 */
.example-cell {
    background: #f7fafc;
    border-color: #4299e1;
}

.example-char {
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3748;
    z-index: 1;
    position: relative;
}

/* 练习格子样式 */
.practice-cell {
    background: white;
    border-color: #2d3748;
}

.practice-cell:hover {
    background: #f7fafc;
    border-color: #4299e1;
}

.handwriting-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.handwriting-footer p {
    color: #718096;
    font-style: italic;
    margin: 0;
    font-size: 0.9em;
}

/* 复选框样式 */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95em;
    color: #4a5568;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4299e1;
    border-color: #4299e1;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 文本域样式 */
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.85em;
}

/* 小贴士列表样式 */
.tips-section {
    background: #f7fafc;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.tips-section h3 {
    color: #2d3748;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li strong {
    color: #2d3748;
    font-weight: 600;
}

/* ==================== 学生名字管理页面样式 ==================== */

/* 快速导航区域 */
.quick-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-text {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

.nav-desc {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 0;
}

/* 名字管理容器 */
.names-management-container {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* 添加名字区域 */
.add-name-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

.add-name-card {
    background: white;
    margin: 3px;
    border-radius: 17px;
    padding: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
}

.card-header h3 {
    color: #2d3748;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header p {
    color: #718096;
    margin: 0;
    font-size: 1em;
}

.add-name-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-add {
    padding: 15px 25px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.add-name-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tip-item {
    background: #f0f4f8;
    color: #4a5568;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

/* 名字列表区域 */
.names-list-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    min-height: 100px;
}

.name-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.name-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.name-text {
    font-size: 1.1em;
}

.remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.remove-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.7;
}

.empty-state h4 {
    color: #4a5568;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.empty-state p {
    margin: 0;
    font-size: 0.95em;
}

.names-stats {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.95em;
}

/* 功能特点区域 */
.features-section {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.features-section h3 {
    text-align: center;
    color: #2d3748;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-item h4 {
    color: #2d3748;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.feature-item p {
    color: #718096;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95em;
}

/* 使用指南区域 */
.guide-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.guide-section h3 {
    text-align: center;
    color: #2d3748;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 30px 0;
}

.guide-steps {
    display: grid;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2d3748;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.step-content p {
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* 快速操作区域 */
.quick-actions {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.quick-actions h3 {
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.btn-secondary, .btn-danger, .btn-info {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.btn-info {
    background: linear-gradient(135deg, #38b2ac, #319795);
}

.btn-secondary:hover, .btn-danger:hover, .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 1.1em;
}

/* 消息容器 */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #4299e1;
}

.message-success {
    border-left-color: #48bb78;
}

.message-error {
    border-left-color: #f56565;
}

.message-warning {
    border-left-color: #ed8936;
}

.message-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.message-text {
    color: #2d3748;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 导航栏样式 */
.navigation-bar {
    margin-bottom: 30px;
}

.btn-back {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .names-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .message-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ==================== 认字卡片模块样式 ==================== */

/* 认字卡片页面容器 */
.word-recognition-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.word-recognition-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 页面标题 */
.word-recognition-header {
    text-align: center;
    margin-bottom: 40px;
}

.word-recognition-header h1 {
    color: #2d3748;
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.word-recognition-header .subtitle {
    color: #718096;
    font-size: 1.1em;
    margin: 0;
}

/* 表单区域 */
.word-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.form-section {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.form-section h3 {
    color: #2d3748;
    font-size: 1.3em;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.2em;
}

/* 预设名字控制区域 */
.preset-name-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.preset-name-controls select {
    flex: 1;
}

.quick-names {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quick-names-label {
    color: #4a5568;
    font-size: 0.9em;
    font-weight: 500;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.8em;
    border-radius: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 名字输入组 */
.name-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-separator {
    text-align: center;
    color: #a0aec0;
    font-weight: 500;
    margin: 5px 0;
}

/* 文字内容区域 */
.content-input-area {
    margin-bottom: 20px;
}

.content-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.content-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.content-tips {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.content-tips h4 {
    color: #234e52;
    font-size: 0.9em;
    margin: 0 0 8px 0;
}

.content-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #2c7a7b;
    font-size: 0.85em;
}

/* 卡片设置区域 */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9em;
}

.setting-group select,
.setting-group input {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9em;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.checkbox-item label {
    color: #4a5568;
    font-size: 0.9em;
    cursor: pointer;
}

/* 预览区域 */
.preview-section {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.preview-section h3 {
    color: #2d3748;
    margin: 0 0 20px 0;
}

.preview-placeholder {
    color: #a0aec0;
    font-size: 1.1em;
    padding: 40px;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.preview-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-card-word {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.preview-card-pinyin {
    font-size: 0.8em;
    color: #718096;
}

/* 提交按钮区域 */
.submit-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    margin-top: 30px;
}

.submit-section .btn-primary {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 - 认字模块 */
@media (max-width: 768px) {
    .word-recognition-container {
        padding: 10px;
    }
    
    .word-recognition-content {
        padding: 20px;
    }
    
    .word-form-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .preset-name-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-names {
        justify-content: center;
    }
    
    .preview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-group {
        justify-content: center;
    }
}

/* 紧凑型表单区域样式 */
.compact-section {
    margin-bottom: 20px !important;
}

.compact-section .section-header {
    margin-bottom: 15px !important;
}

.compact-section .section-header h3 {
    margin-bottom: 5px !important;
}

/* 内联标题样式 */
.inline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    flex: 1;
    min-width: 200px;
}

.header-right {
    flex-shrink: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .inline-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-right {
        align-self: flex-start;
    }
}