/* 全局重置与字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', sans-serif;
    background: #f9f7f5;
    color: #2c2b28;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 12px;
}

.app-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 95vh;
}

/* 头部 */
header {
    margin-bottom: 28px;
    text-align: left;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1e1c1a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subtitle {
    font-size: 0.95rem;
    color: #6b625a;
    margin-top: 4px;
    font-weight: 400;
}

/* 搜索框 */
.search-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 16px 48px 16px 20px;
    font-size: 1.1rem;
    border: 1.5px solid #e2dbd2;
    border-radius: 48px;
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    -webkit-appearance: none;
}

.search-input:focus {
    border-color: #a77b55;
    box-shadow: 0 8px 20px rgba(167, 123, 85, 0.08);
}

.search-input::placeholder {
    color: #a49b92;
    font-weight: 300;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b7e71;
    pointer-events: none;
}

/* 结果区域 */
.result-area {
    flex: 1;
    margin-bottom: 20px;
}

/* 单词卡片 */
.word-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee9e2;
    transition: transform 0.1s;
}

.word-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #ddd6ce;
    padding-bottom: 12px;
}

.word-title {
    font-size: 2rem;
    font-weight: 650;
    color: #1f1c19;
    line-height: 1.2;
}

.word-phonetic {
    font-size: 1.1rem;
    color: #7a6e63;
    font-weight: 400;
    font-family: 'Courier New', monospace;
}

/* 信息行 */
.info-row {
    margin-bottom: 14px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8e7b6a;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-content {
    font-size: 1.05rem;
    color: #2e2a26;
    padding-left: 4px;
}

.info-content.italic-note {
    font-style: italic;
    color: #5a524a;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #9a9085;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state p {
    font-size: 1rem;
}

/* 状态栏 */
.status-bar {
    font-size: 0.8rem;
    color: #948a7e;
    padding: 12px 4px;
    border-top: 1px solid #e7e0d8;
    display: flex;
    justify-content: space-between;
}

/* 底部 */
footer {
    text-align: center;
    margin-top: 8px;
    color: #a49a90;
    font-size: 0.8rem;
}

footer p {
    padding: 8px 0;
}

/* 响应式微调 */
@media (max-width: 480px) {
    body {
        padding: 12px 8px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .word-title {
        font-size: 1.8rem;
    }
    .search-input {
        padding: 14px 44px 14px 18px;
        font-size: 1rem;
    }
}