@charset "utf-8";
/* 全局优化 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  margin-top: 96px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  line-height: 1.6;
}

/* 顶部导航优化 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background-color: #fff;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  will-change: transform;
}

/* 当前汉字 */
.current-character {
    max-width: 600px;
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    border-radius: 12px;
}

.character {
    font-size: 6rem;
    font-weight: bold;
    color: #1890ff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* 提示区域 - 两行两列布局 */
.hint-section {
    max-width: 600px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 40px;
}

.hint-box {
    background-color: #f8fbff;
    border: 1px solid #e8eBeF;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.hint-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.hint-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hint-content {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1890ff;
}

/* 输入区域 */
.input-section {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.input-label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 输入框优化 */
.code-input {
    width: 100%;
    height: 48px;
    padding: 12px 15px;
    border: 2px solid #1890ff;
    border-radius: 8px;
    font-size: 16px;
    background: #f8fbff;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    color: #333;
}

.code-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(24, 144, 255, 0.3);
}

/* 反馈信息 */
.feedback {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
}

.correct {
    color: #52c41a;
}

.incorrect {
    color: #ff4d4f;
}

/* 加载和错误提示 */
.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.loading {
    color: #1890ff;
}

.error {
    color: #ff4d4f;
    background: #fff2f0;
    border: 1px solid #ffccc7;
}



/* 移动端特定优化 */
.mobile-only { display: none; }
@media (max-width: 600px) {
  .mobile-only { display: inline; }
}

/* 针对非常小的屏幕进一步优化 */
@media (max-width: 768px) {
    .hint-section {
gap: 10px;
    }
    
    .hint-box {
padding: 12px 8px;
    }
    
    .hint-content {
font-size: 16px;
    }
    
    .character {
font-size: 3rem;
    }
}