.type-wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 1rem; } .type-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; } .type-top h1 { font-size: 1.3rem; } .type-top a { color: var(--accent); text-decoration: none; font-size: 0.9rem; white-space: nowrap; } .type-card { background: var(--panel-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; } .mode-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1rem; } .mode-select button { min-height: 54px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 1rem; cursor: pointer; } .mode-select button.active { background: var(--accent); color: #fff; border-color: var(--accent); } .setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; } .setup-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--text-muted); } .setup-grid select { border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.6rem; background: var(--bg); color: var(--text); font-size: 0.9rem; outline: none; } .setup-grid select:focus { border-color: var(--accent); } #btn-start { width: 100%; min-height: 48px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 1rem; cursor: pointer; } #btn-start:hover { background: var(--accent-hover); } .type-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; } .type-toolbar span { font-size: 0.85rem; color: var(--text-muted); } .type-toolbar button { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 0.35rem 0.7rem; font-size: 0.8rem; cursor: pointer; color: var(--text-muted); } .progress-track { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; } .progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s ease; } #target-text { font-family: var(--font-mono); font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.6; min-height: 3.5rem; padding: 0.8rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 0.75rem; overflow-wrap: anywhere; } #target-text .done { color: var(--success); } #target-text .current { color: var(--accent); background: var(--highlight); border-radius: 3px; } #chinese-text { font-size: 1rem; color: var(--text); padding: 0.6rem 0.75rem; background: var(--highlight); border-radius: var(--radius); margin-bottom: 0.75rem; min-height: 2rem; } #typing-input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; font-size: 1.05rem; font-family: var(--font-mono); background: var(--bg); color: var(--text); outline: none; margin-bottom: 0.75rem; } #typing-input:focus { border-color: var(--accent); } #next-key { min-height: 1.6rem; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; } #next-key b { color: var(--accent); font-family: var(--font-mono); } #keyboard { display: grid; gap: 0.35rem; } .kb-row { display: flex; justify-content: center; gap: 0.35rem; } .kb-key { min-width: 34px; height: 40px; padding: 0 0.4rem; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-bg); color: var(--text); font-size: 0.9rem; font-family: var(--font-mono); cursor: pointer; } .kb-key.space { flex: 1; max-width: 220px; } .kb-key.hint { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; } .finish-box { text-align: center; padding: 2rem 0; } .finish-box h2 { margin-bottom: 0.75rem; } .finish-box p { color: var(--text-muted); margin-bottom: 1rem; } .finish-box button { background: var(--accent); color: #fff; border: none; border-radius: var(--radius); padding: 0.6rem 1.2rem; font-size: 0.95rem; cursor: pointer; } @media (max-width: 640px) { .kb-key { min-width: 28px; height: 38px; font-size: 0.8rem; padding: 0 0.25rem; } .kb-row { gap: 0.25rem; } }