:root {
--ink: #1a1209;
--ink-light: #5a4a2e;
--paper: #faf6ee;
--paper-warm: #f2ead8;
--paper-mid: #e8dfc8;
--red: #c0392b;
--red-light: #fadbd8;
--gold: #d4a017;
--gold-light: #fef9e7;
--teal: #1a7a6e;
--teal-light: #d1f0eb;
--sage: #5d7a5f;
--sage-light: #e8f0e8;
--lavender: #6e5a8a;
--lavender-light: #ede8f5;
--slate: #4a5568;
--border: #d5c9b0;
--radius: 12px;
--shadow: 0 2px 12px rgba(26,18,9,0.08);
--grey-pinyin: #7f8c8d;
--hsk-color: #9b59b6;
--financial-color: #2c3e50;
--procurement-color: #27ae60;
--clean-energy-color: #3498db;
--priority1: #e74c3c;
--priority2: #f39c12;
--priority3: #f1c40f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'DM Sans', 'Noto Sans Myanmar', 'Noto Sans Thai', 'Noto Sans Vietnamese', sans-serif;
background: var(--paper);
color: var(--ink);
min-height: 100vh;
font-size: 15px;
line-height: 1.6;
}
.header {
background: var(--ink);
color: var(--paper);
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: center;
padding: 12px 24px;
}
.header-logo {
display: flex;
align-items: center;
gap: 12px;
position: absolute;
left: 24px;
}
.header-logo h1 {
font-family: 'DM Sans', sans-serif;
font-size: 20px;
font-weight: 700;
color: var(--gold);
letter-spacing: -0.01em;
}
.logo-img {
height: 28px;
width: auto;
object-fit: contain;
}
.header-nav {
display: flex;
gap: 0;
overflow-x: auto;
align-items: center;
}
.header-actions {
display: flex;
align-items: center;
gap: 12px;
position: absolute;
right: 24px;
}
.hamburger-btn {
display: none;
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
padding: 4px;
line-height: 1;
}
.header-language {
display: flex;
align-items: center;
gap: 6px;
padding: 0;
border-left: none;
margin-right: 0;
position: static;
}
.header-language label {
font-size: 12px;
color: rgba(255,255,255,0.65);
white-space: nowrap;
}
.header-language select {
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.15);
color: white;
padding: 6px 8px;
border-radius: 6px;
font-size: 12px;
cursor: pointer;
outline: none;
}
.header-language select:hover {
background: rgba(255,255,255,0.12);
border-color: rgba(255,255,255,0.25);
}
.header-language select option {
background: var(--ink);
color: white;
}
.nav-btn-header {
padding: 8px 12px;
background: none;
border: none;
color: rgba(255,255,255,0.65);
font-family: 'Helvetica', sans-serif;
font-size: 13px;
cursor: pointer;
border-radius: 16px;
transition: all 0.15s;
white-space: nowrap;
}
.nav-btn-header:hover { color: white; }
.nav-btn-header.active { color: var(--gold); }
.main {
width: 100%;
max-width: 100% !important;
margin: 0 auto;
padding: 32px 24px;
box-sizing: border-box;
}
.page {
display: none;
width: 100%;
max-width: 100% !important;
box-sizing: border-box;
}
.page.active { display: block; }
.page-title {
font-family: 'Fraunces', serif;
font-size: 32px;
font-weight: 600;
color: var(--ink);
margin-bottom: 6px;
}
.page-sub {
font-size: 14px;
color: var(--ink-light);
margin-bottom: 28px;
}
.vocab-sync-status {
margin: -8px 0 16px;
padding: 9px 12px;
border: 1px solid rgba(26, 122, 110, 0.22);
border-radius: 8px;
background: rgba(26, 122, 110, 0.07);
color: var(--teal);
font-size: 12px;
}
.info-tooltip-container {
position: relative;
display: inline-flex;
align-items: center;
cursor: pointer;
}
.info-icon {
font-size: 12px;
opacity: 0.6;
transition: opacity 0.2s, transform 0.2s;
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--paper-warm);
border: 1px solid var(--border);
}
.info-tooltip-container:hover .info-icon {
opacity: 1;
transform: scale(1.1);
background: var(--paper);
}
.info-tooltip-content {
display: none;
position: absolute;
top: 24px;
left: 0;
z-index: 100;
width: 320px;
background: var(--paper-warm);
border: 1.5px solid var(--border);
border-radius: 12px;
padding: 14px 18px;
box-shadow: 0 8px 30px rgba(0,0,0,0.12);
text-align: left;
line-height: 1.6;
color: var(--ink-light);
font-weight: normal;
pointer-events: none;
}
.info-tooltip-container:hover .info-tooltip-content {
display: block;
}
.overall-stats {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
margin-bottom: 32px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 24px;
}
.stat-item {
text-align: center;
padding: 16px;
background: var(--paper-warm);
border-radius: var(--radius);
}
.stat-value {
font-size: 36px;
font-weight: 600;
color: var(--ink);
line-height: 1;
margin-bottom: 8px;
}
.stat-label {
font-size: 13px;
color: var(--ink-light);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.chart-section {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
margin-bottom: 32px;
}
.chart-title {
font-size: 18px;
font-weight: 600;
color: var(--ink);
margin-bottom: 20px;
}
.chart-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
gap: 24px;
}
.chart-container {
background: transparent;
padding: 0;
overflow: visible;
box-sizing: border-box;
}
.chart-container-full {
grid-column: 1 / -1;
}
.chart-label {
font-size: 14px;
font-weight: 600;
color: var(--ink);
margin-bottom: 12px;
}
.progress-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
margin-bottom: 32px;
}
.progress-card {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 18px 20px;
cursor: pointer;
transition: all 0.15s;
}
.progress-card:hover { border-color: var(--ink-light); box-shadow: var(--shadow); }
.progress-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 12px;
}
.framework-badge {
font-family: 'DM Sans', sans-serif;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.06em;
padding: 4px 10px;
border-radius: 12px;
display: flex;
align-items: center;
gap: 6px;
}
.framework-badge-hsk { background: #ebdef0; color: #8e44ad; }
.framework-badge-financial { background: #ecf0f1; color: #2c3e50; }
.framework-badge-procurement { background: #d5f4e6; color: #27ae60; }
.framework-badge-clean-energy { background: #d6eaf8; color: #2980b9; }
.progress-pct { font-size: 24px; font-weight: 600; color: var(--ink); }
.progress-label { font-size: 12px; color: var(--ink-light); margin-top: 2px; }
.progress-bar-track {
height: 8px;
background: var(--paper-mid);
border-radius: 4px;
overflow: hidden;
margin-bottom: 12px;
}
.progress-bar-fill {
height: 100%;
border-radius: 4px;
transition: width 0.6s ease;
}
.framework-hsk .progress-bar-fill { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.framework-financial .progress-bar-fill { background: linear-gradient(90deg, #2c3e50, #34495e); }
.framework-procurement .progress-bar-fill { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.framework-clean-energy .progress-bar-fill { background: linear-gradient(90deg, #3498db, #2980b9); }
.progress-stats {
display: flex;
gap: 16px;
font-size: 11px;
flex-wrap: wrap;
}
.stat-dot {
display: flex;
align-items: center;
gap: 6px;
color: var(--ink-light);
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.dot.remember { background: var(--teal); }
.dot.forget { background: var(--red); }
.dot.similar { background: var(--gold); }
.dot.unseen { background: var(--border); }
.settings-bar {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
background: var(--paper-warm);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 16px;
margin-bottom: 24px;
}
.toggle-group {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--ink-light);
}
.toggle {
position: relative;
width: 36px;
height: 20px;
cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
position: absolute;
inset: 0;
background: var(--border);
border-radius: 10px;
transition: background 0.2s;
}
.toggle input:checked + .toggle-track { background: var(--teal); }
.toggle-thumb {
position: absolute;
top: 3px;
left: 3px;
width: 14px;
height: 14px;
background: white;
border-radius: 50%;
transition: transform 0.2s;
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(16px); }
.sep { width: 1px; height: 20px; background: var(--border); }
.select-styled {
padding: 6px 12px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 13px;
background: white;
color: var(--ink);
cursor: pointer;
}
.framework-tabs {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 16px;
}
.framework-tab {
padding: 10px 18px;
border-radius: 20px;
border: 1px solid var(--border);
background: white;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
color: var(--ink-light);
display: flex;
align-items: center;
gap: 6px;
}
.framework-tab:hover { border-color: var(--ink-light); color: var(--ink); }
.framework-tab.active { background: var(--ink); color: white; border-color: var(--ink); }
.framework-tab.framework-hsk-tab.active { background: var(--hsk-color); border-color: var(--hsk-color); }
.framework-tab.framework-financial-tab.active { background: var(--financial-color); border-color: var(--financial-color); }
.framework-tab.framework-procurement-tab.active { background: var(--procurement-color); border-color: var(--procurement-color); }
.framework-tab.framework-clean-energy-tab.active { background: var(--clean-energy-color); border-color: var(--clean-energy-color); }
.subcategory-multiselect {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 16px;
padding: 16px;
background: var(--paper-warm);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.subcategory-checkbox {
}
.subcategory-checkbox:hover {
}
.subcategory-checkbox.checked {
}
.subcategory-checkbox.pinned {
box-shadow: 0 3px 12px rgba(212,160,23,0.25) !important;
}
.subcategory-item {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.fc-pinned-container {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 16px;
}
.fc-pinned-btn {
padding: 6px 14px;
border-radius: 20px;
font-size: 13px;
border: 1.5px solid #d4a017;
background: #fef9e7;
color: #8a6d00;
cursor: pointer;
transition: all 0.15s;
user-select: none;
}
.fc-pinned-btn.checked {
background: #d4a017;
color: white;
}
.fc-pinned-btn.saved-vocab-btn {
border-color: #f59e0b;
color: #92400e;
background: #fef3c7;
}
.fc-pinned-btn.saved-vocab-btn.checked {
background: #f59e0b;
color: white;
border-color: #d97706;
}
.fc-add-row {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 12px;
}
.fc-select {
flex: 1;
padding: 8px 12px;
border: 1.5px solid var(--border);
border-radius: var(--radius);
font-size: 14px;
background: white;
color: var(--ink);
}
.fc-add-btn {
padding: 8px 16px;
border-radius: var(--radius);
border: none;
background: var(--teal);
color: white;
font-weight: 600;
font-size: 14px;
cursor: pointer;
white-space: nowrap;
}
.fc-add-btn:hover { opacity: 0.85; }
.fc-chips {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 16px;
min-height: 30px;
}
.fc-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 20px;
font-size: 13px;
background: var(--paper-warm);
border: 1px solid var(--border);
}
.fc-chip-remove {
cursor: pointer;
font-weight: 700;
color: #999;
font-size: 15px;
line-height: 1;
}
.fc-chip-remove:hover { color: #e74c3c; }
.priority-tabs {
display: flex;
gap: 4px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.priority-tab {
padding: 6px 12px;
border-radius: 16px;
border: 1px solid var(--border);
background: white;
font-size: 12px;
cursor: pointer;
transition: all 0.12s;
color: var(--ink-light);
display: flex;
align-items: center;
gap: 4px;
}
.priority-tab:hover { border-color: var(--ink-light); color: var(--ink); }
.priority-tab.active { background: var(--ink); color: white; border-color: var(--ink); }
.status-multiselect {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.status-checkbox {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border: 1px solid var(--border);
border-radius: 16px;
background: white;
cursor: pointer;
font-size: 12px;
transition: all 0.12s;
user-select: none;
}
.status-checkbox:hover { border-color: var(--ink-light); }
.status-checkbox.checked { border-color: var(--teal); background: var(--teal-light); color: var(--teal); font-weight: 500; }
.status-checkbox input { display: none; }
.vocab-pagination {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 6px;
margin-top: 24px;
padding-bottom: 16px;
}
.vocab-pagination .pg-btn {
min-width: 36px;
height: 36px;
padding: 0 10px;
border: 1.5px solid var(--border);
border-radius: 8px;
background: white;
color: var(--ink);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
display: flex;
align-items: center;
justify-content: center;
}
.vocab-pagination .pg-btn:hover { border-color: var(--teal); color: var(--teal); }
.vocab-pagination .pg-btn.active { background: var(--teal); border-color: var(--teal); color: white; font-weight: 700; }
.vocab-pagination .pg-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.vocab-pagination .pg-info {
font-size: 12px;
color: var(--ink-light);
padding: 0 8px;
}
.vocab-pagination input[type=number] {
width: 52px;
height: 34px;
border: 1.5px solid var(--border);
border-radius: 8px;
text-align: center;
font-size: 13px;
color: var(--ink);
}
.vocab-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}
.word-card {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
cursor: pointer;
transition: all 0.15s;
position: relative;
overflow: hidden;
min-height: 120px;
display: flex;
flex-direction: column;
}
.word-card:hover { border-color: var(--ink-light); box-shadow: var(--shadow); transform: translateY(-1px); }
.word-card.status-remember { border-left: 4px solid var(--teal); }
.word-card.status-forget { border-left: 4px solid var(--red); }
.word-card.status-similar { border-left: 4px solid var(--gold); }
.word-card.status-unseen { border-left: 4px solid var(--border); }
.bookmark-btn {
position: absolute;
top: 8px;
right: 8px;
background: none;
border: none;
font-size: 16px;
cursor: pointer;
opacity: 0.25;
transition: opacity 0.2s, transform 0.15s;
line-height: 1;
padding: 3px 5px;
border-radius: 6px;
z-index: 2;
color: #d4a017;
}
.bookmark-btn:hover {
opacity: 0.85;
transform: scale(1.2);
background: var(--gold-light);
}
.bookmark-btn.active {
opacity: 1;
filter: drop-shadow(0 0 3px rgba(212, 160, 23, 0.6));
}
.word-card.expanded {
grid-column: 1 / -1;
cursor: default;
min-height: auto;
}
.word-framework-indicator {
position: absolute;
top: 8px;
left: 8px;
font-size: 10px;
font-weight: 700;
padding: 3px 8px;
border-radius: 8px;
}
.word-framework-indicator.hsk { background: #ebdef0; color: #8e44ad; }
.word-framework-indicator.financial { background: #ecf0f1; color: #2c3e50; }
.word-framework-indicator.procurement { background: #d5f4e6; color: #27ae60; }
.word-framework-indicator.clean-energy { background: #d6eaf8; color: #2980b9; }
.word-framework-indicator.hr { background: #fdebd0; color: #d35400; }
.word-hsk-level {
position: absolute;
top: 8px;
right: 38px;
font-size: 10px;
font-weight: 700;
padding: 3px 8px;
border-radius: 8px;
background: #f39c12;
color: white;
}
.word-priority-indicator {
position: absolute;
top: 8px;
left: 8px;
font-size: 9px;
font-weight: 700;
padding: 2px 6px;
border-radius: 6px;
background: var(--paper-mid);
color: var(--ink-light);
}
.word-chinese {
font-family: 'Noto Serif SC', serif;
font-size: 32px;
font-weight: 700;
color: var(--ink);
line-height: 1.2;
margin: 20px 0 8px 0;
text-align: center;
}
.word-details {
flex: 1;
display: none;
flex-direction: column;
gap: 8px;
}
.word-pos {
font-size: 12px;
color: var(--slate);
font-style: italic;
}
.word-pinyin {
font-size: 13px;
color: var(--grey-pinyin);
font-style: italic;
}
.word-translation {
font-size: 13px;
color: var(--ink-light);
}
.word-thai {
font-size: 12px;
color: var(--lavender);
font-style: italic;
}
.word-vietnamese {
font-size: 12px;
color: var(--sage);
font-style: italic;
}
.word-category {
font-size: 11px;
color: var(--slate);
background: var(--paper-mid);
padding: 3px 8px;
border-radius: 8px;
display: inline-block;
}
.word-example-section {
background: var(--paper-warm);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px;
margin: 12px 0;
}
.word-example-chinese {
font-family: 'Noto Serif SC', serif;
font-size: 16px;
font-weight: 700;
color: var(--ink);
margin-bottom: 6px;
}
.word-example-pinyin {
font-size: 13px;
color: var(--grey-pinyin);
font-style: italic;
margin-bottom: 4px;
}
.word-example-translation {
font-size: 12px;
color: var(--ink-light);
}
.word-status-bar {
display: flex;
gap: 4px;
margin-top: 12px;
}
.status-btn {
flex: 1;
padding: 6px 4px;
border: 1px solid var(--border);
border-radius: 6px;
background: white;
font-size: 10px;
cursor: pointer;
transition: all 0.12s;
text-align: center;
color: var(--ink-light);
}
.status-btn:hover { opacity: 0.8; }
.status-btn.active-remember { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }
.status-btn.active-forget { background: var(--red-light); border-color: var(--red); color: var(--red); }
.status-btn.active-similar { background: var(--gold-light); border-color: var(--gold); color: #a07010; }
.expand-hint {
position: absolute;
bottom: 8px;
right: 8px;
font-size: 10px;
color: var(--border);
opacity: 0;
transition: opacity 0.15s;
}
.word-card:hover .expand-hint { opacity: 1; }
.pronounce-btn {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: var(--teal);
color: white;
border: none;
border-radius: 6px;
font-size: 11px;
cursor: pointer;
margin-top: 4px;
transition: all 0.15s;
}
.pronounce-btn:hover { background: #158f82; }
.flashcard-settings {
max-width: 700px;
margin: 0 auto;
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
}
.flashcard-settings.hidden {
display: none;
}
.checkbox-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-bottom: 20px;
}
.framework-check {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border: 1px solid var(--border);
border-radius: 10px;
background: white;
cursor: pointer;
font-size: 14px;
transition: all 0.12s;
user-select: none;
}
.framework-check:hover { border-color: var(--ink-light); }
.framework-check.checked { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }
.framework-check input { display: none; }
.primary-btn {
padding: 12px 28px;
background: var(--ink);
color: white;
border: none;
border-radius: 10px;
font-family: 'DM Sans', sans-serif;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.primary-btn:hover { background: #2d2418; }
.secondary-btn {
padding: 12px 22px;
background: white;
color: var(--ink);
border: 1px solid var(--border);
border-radius: 10px;
font-family: 'DM Sans', sans-serif;
font-size: 14px;
cursor: pointer;
transition: all 0.15s;
}
.secondary-btn:hover { border-color: var(--ink-light); }
.flashcard-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}
.flashcard-info {
display: flex;
gap: 12px;
align-items: center;
font-size: 13px;
color: var(--ink-light);
flex-wrap: wrap;
}
.flashcard-wrap {
perspective: 1200px;
width: 100%;
max-width: 480px;
height: 380px;
cursor: pointer;
}
.flashcard {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.flashcard.flipped { transform: rotateY(180deg); }
.card-face {
position: absolute;
inset: 0;
backface-visibility: hidden;
border-radius: 18px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px;
border: 1px solid var(--border);
}
.card-front {
background: white;
}
.card-back {
background: var(--ink);
transform: rotateY(180deg);
color: white;
}
.card-chinese {
font-family: 'Noto Serif SC', serif;
font-size: 52px;
font-weight: 700;
line-height: 1;
margin-bottom: 8px;
text-align: center;
}
.card-front .card-chinese { color: var(--ink); font-size: 72px; }
.card-back .card-chinese { color: var(--gold); }
.card-pos {
font-size: 14px;
color: var(--slate);
margin-bottom: 8px;
text-align: center;
font-style: italic;
}
.card-back .card-pos {
color: rgba(255,255,255,0.6);
}
.card-pinyin {
font-size: 18px;
font-style: italic;
margin-bottom: 8px;
text-align: center;
}
.card-front .card-pinyin { color: var(--grey-pinyin); opacity: 0; transition: opacity 0.2s; }
.card-front:hover .card-pinyin { opacity: 1; }
.card-back .card-pinyin { color: rgba(255,255,255,0.6); font-size: 14px; }
.card-translation {
font-size: 16px;
text-align: center;
margin-bottom: 4px;
}
.card-front .card-translation { color: var(--ink-light); }
.card-back .card-translation { color: rgba(255,255,255,0.85); }
.card-example {
background: rgba(255,255,255,0.1);
border-radius: 8px;
padding: 12px;
margin-top: 16px;
text-align: center;
}
.card-example-label {
font-size: 11px;
font-weight: 600;
color: rgba(255,255,255,0.5);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 6px;
}
.card-example-chinese {
font-family: 'Noto Serif SC', serif;
font-size: 14px;
font-weight: 700;
margin-bottom: 4px;
}
.card-example-pinyin {
font-size: 12px;
font-style: italic;
opacity: 0.8;
margin-bottom: 4px;
}
.card-example-translation {
font-size: 12px;
opacity: 0.8;
}
.card-framework {
font-size: 12px;
color: rgba(255,255,255,0.6);
background: rgba(255,255,255,0.1);
padding: 4px 10px;
border-radius: 12px;
margin-top: 4px;
}
.card-subcategory {
font-size: 11px;
color: rgba(255,255,255,0.4);
background: rgba(255,255,255,0.05);
padding: 3px 8px;
border-radius: 8px;
margin-top: 4px;
}
.card-hint {
font-size: 12px;
opacity: 0.4;
position: absolute;
bottom: 16px;
}
.flashcard-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}
.fc-btn {
padding: 12px 24px;
border-radius: 10px;
border: 1px solid var(--border);
background: white;
font-family: 'DM Sans', sans-serif;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
display: flex;
align-items: center;
gap: 6px;
}
.fc-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.fc-btn.remember { border-color: var(--teal); color: var(--teal); }
.fc-btn.remember:hover { background: var(--teal-light); }
.fc-btn.forget { border-color: var(--red); color: var(--red); }
.fc-btn.forget:hover { background: var(--red-light); }
.fc-btn.similar { border-color: var(--gold); color: #a07010; }
.fc-btn.similar:hover { background: var(--gold-light); }
.fc-btn.skip { color: var(--ink-light); }
.fc-btn.bookmark { border-color: #d4a017; color: #a07010; }
.fc-btn.bookmark:hover { background: var(--gold-light); }
.fc-btn.bookmark.active { background: #d4a017; color: white; border-color: #d4a017; }
.fc-nav {
display: flex;
gap: 10px;
align-items: center;
}
.fc-nav-btn {
width: 40px;
height: 40px;
border-radius: 50%;
border: 1px solid var(--border);
background: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
transition: all 0.15s;
color: var(--ink-light);
}
.fc-nav-btn:hover { border-color: var(--ink); color: var(--ink); }
.fc-counter { font-size: 14px; color: var(--ink-light); min-width: 80px; text-align: center; font-weight: 500; }
.quiz-wrap { max-width: 600px; margin: 0 auto; }
.quiz-top-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.quiz-counter-badge {
font-size: 13px;
font-weight: 600;
color: white;
background: var(--ink);
padding: 4px 12px;
border-radius: 16px;
}
.quiz-score-mini {
font-size: 13px;
color: var(--ink-light);
font-weight: 500;
}
.quiz-progress {
height: 4px;
background: var(--paper-mid);
border-radius: 2px;
overflow: hidden;
margin-bottom: 24px;
}
.quiz-progress-fill {
height: 100%;
background: var(--teal);
border-radius: 2px;
transition: width 0.4s ease;
}
.quiz-question {
background: var(--ink);
border: 1px solid var(--border);
border-radius: 18px;
padding: 48px 32px;
text-align: center;
margin-bottom: 20px;
color: white;
}
.quiz-q-label {
font-size: 11px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: rgba(255,255,255,0.5);
margin-bottom: 20px;
}
.quiz-q-word {
font-family: 'Noto Serif SC', serif;
font-size: 64px;
font-weight: 700;
color: var(--gold);
line-height: 1;
margin-bottom: 8px;
}
.quiz-q-pinyin {
font-size: 14px;
font-style: italic;
color: rgba(255,255,255,0.5);
min-height: 20px;
margin-bottom: 4px;
opacity: 0;
transition: opacity 0.2s;
}
.quiz-question:hover .quiz-q-pinyin { opacity: 1; }
.quiz-options {
display: flex;
flex-direction: column;
gap: 10px;
}
.quiz-option {
padding: 16px 20px;
border: 1.5px solid var(--border);
border-radius: 12px;
background: white;
font-size: 16px;
cursor: pointer;
transition: all 0.15s;
text-align: center;
font-family: 'DM Sans', sans-serif;
color: var(--ink);
}
.quiz-option:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.quiz-option.correct { background: var(--teal-light); border-color: var(--teal); color: var(--teal); font-weight: 600; }
.quiz-option.wrong { background: var(--red-light); border-color: var(--red); color: var(--red); font-weight: 600; }
.quiz-option:disabled { cursor: default; }
.quiz-result-bar {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--paper-warm);
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px 16px;
font-size: 14px;
color: var(--ink-light);
min-height: 48px;
}
.quiz-score-card {
text-align: center;
padding: 40px 32px;
background: white;
border: 1px solid var(--border);
border-radius: 18px;
max-width: 500px;
width: 100%;
}
.score-number {
font-family: 'Fraunces', serif;
font-size: 64px;
font-weight: 600;
color: var(--teal);
line-height: 1;
margin-bottom: 8px;
}
.score-label { font-size: 14px; color: var(--ink-light); margin-bottom: 24px; }
.quiz-score-breakdown {
display: flex;
gap: 12px;
justify-content: center;
margin-bottom: 20px;
}
.quiz-breakdown-item {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border-radius: 12px;
font-size: 14px;
font-weight: 500;
}
.quiz-breakdown-item.correct {
background: var(--teal-light);
color: var(--teal);
}
.quiz-breakdown-item.wrong {
background: var(--red-light);
color: var(--red);
}
.quiz-breakdown-icon { font-size: 16px; font-weight: 700; }
.quiz-breakdown-count { font-size: 18px; font-weight: 700; }
.quiz-wrong-list {
text-align: left;
margin-bottom: 20px;
max-height: 300px;
overflow-y: auto;
}
.quiz-wrong-list-title {
font-size: 13px;
font-weight: 600;
color: var(--ink);
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.quiz-wrong-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
background: var(--paper-warm);
border-radius: 8px;
margin-bottom: 6px;
font-size: 13px;
}
.quiz-wrong-item-chinese {
font-family: 'Noto Serif SC', serif;
font-weight: 700;
font-size: 16px;
color: var(--ink);
min-width: 60px;
}
.quiz-wrong-item-correct {
color: var(--teal);
font-weight: 500;
}
.quiz-wrong-item-arrow {
color: var(--ink-light);
font-size: 12px;
}
.search-input-wrap {
position: relative;
margin-bottom: 20px;
}
.search-input {
width: 100%;
padding: 14px 48px 14px 18px;
border: 1.5px solid var(--border);
border-radius: 10px;
font-family: 'DM Sans', sans-serif;
font-size: 16px;
background: white;
color: var(--ink);
outline: none;
transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--teal); }
.search-input::placeholder { color: var(--border); }
.search-icon {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
font-size: 20px;
color: var(--ink-light);
pointer-events: none;
}
#search-results {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
margin-top: 20px;
}
.search-result {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
cursor: pointer;
transition: all 0.15s;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 140px;
box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.search-result:hover {
border-color: var(--ink-light);
box-shadow: var(--shadow);
transform: translateY(-1px);
}
.search-result-main {
display: flex;
gap: 12px;
align-items: flex-start;
}
.search-big-word {
font-size: 24px;
font-weight: 700;
color: var(--ink);
line-height: 1.2;
min-width: 60px;
}
.search-word-info {
display: flex;
flex-direction: column;
gap: 4px;
flex: 1;
}
.search-pinyin {
font-size: 13px;
color: var(--grey-pinyin);
font-weight: 500;
}
.search-translation {
font-size: 14px;
font-weight: 600;
color: var(--ink);
margin-bottom: 4px;
}
.search-meta {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 4px;
}
.search-framework {
font-size: 9px;
font-weight: 700;
padding: 2px 6px;
border-radius: 6px;
text-transform: uppercase;
}
.search-framework.hsk { background: #ebdef0; color: #8e44ad; }
.search-framework.financial { background: #ecf0f1; color: #2c3e50; }
.search-framework.procurement { background: #d5f4e6; color: #27ae60; }
.search-framework.clean-energy { background: #d6eaf8; color: #2980b9; }
.search-framework.hr { background: #fdebd0; color: #d35400; }
.search-subcategory {
font-size: 9px;
font-weight: 500;
padding: 2px 6px;
border-radius: 6px;
background: var(--paper-warm);
color: var(--ink-light);
}
.search-priority {
font-size: 9px;
font-weight: 700;
padding: 2px 6px;
border-radius: 6px;
background: #fadbd8;
color: #c0392b;
}
.search-status-bar {
display: flex;
gap: 8px;
margin-top: 12px;
border-top: 1px solid var(--paper-warm);
padding-top: 12px;
}
.search-status-bar .status-btn {
flex: 1;
padding: 6px 12px;
font-size: 11px;
font-weight: 600;
border-radius: var(--radius);
border: 1px solid var(--border);
background: white;
cursor: pointer;
transition: all 0.15s;
display: flex;
align-items: center;
justify-content: center;
}
.search-empty {
text-align: center;
padding: 40px;
color: var(--ink-light);
font-size: 14px;
}
.profile-btn {
height: 36px;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-weight: 700;
flex-shrink: 0;
transition: all 0.15s;
position: static;
font-family: 'DM Sans', sans-serif;
}
.profile-btn.user {
width: 36px;
border-radius: 50%;
background: var(--gold);
color: white;
}
.profile-btn.user:hover { box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }
.profile-btn.guest {
background: transparent;
color: var(--gold);
border: 1.5px solid var(--gold);
border-radius: 18px;
padding: 0 12px;
font-size: 13px;
font-weight: 500;
gap: 6px;
}
.profile-btn.guest:hover {
background: rgba(212, 160, 23, 0.1);
box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}
.profile-dropdown {
position: fixed;
top: 56px;
right: 16px;
background: white;
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 8px 40px rgba(26,18,9,0.18);
z-index: 1000;
min-width: 220px;
overflow: hidden;
}
.profile-dropdown.hidden { display: none !important; }
.profile-dropdown-header {
padding: 16px 20px 12px;
text-align: center;
border-bottom: 1px solid var(--border);
background: var(--paper);
}
.profile-dropdown-avatar {
width: 48px; height: 48px; border-radius: 50%;
background: var(--gold); color: white;
display: flex; align-items: center; justify-content: center;
font-size: 20px; font-weight: 700; margin: 0 auto 8px;
}
.profile-dropdown-avatar:not(.guest) {
cursor: pointer;
position: relative;
transition: transform 0.2s, box-shadow 0.2s;
overflow: hidden;
}
.profile-dropdown-avatar:not(.guest):hover {
transform: scale(1.05);
box-shadow: 0 0 0 3px rgba(26,122,110,0.3);
}
.profile-dropdown-avatar:not(.guest)::after {
content: "📷";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.4);
color: white;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.15s;
border-radius: 50%;
}
.profile-dropdown-avatar:not(.guest):hover::after {
opacity: 1;
}
.profile-dropdown-avatar.guest {
background: var(--border); color: var(--ink-light);
cursor: default;
}
.profile-dropdown-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.profile-dropdown-status { font-size: 12px; color: var(--ink-light); margin-top: 2px; }
.profile-dropdown-item {
display: flex; align-items: center; gap: 10px;
padding: 12px 20px; cursor: pointer;
font-size: 14px; color: var(--ink);
transition: background 0.12s;
}
.profile-dropdown-item:hover { background: var(--paper-warm); }
.profile-dropdown-item.danger { color: var(--red); }
.profile-dropdown-item.danger:hover { background: var(--red-light); }
.profile-dropdown-divider { height: 1px; background: var(--border); margin: 0; }
.auth-modal-backdrop {
position: fixed; inset: 0; background: rgba(26,18,9,0.5);
z-index: 9999; display: flex; align-items: center; justify-content: center;
backdrop-filter: blur(4px);
}
.auth-modal-backdrop.hidden { display: none !important; }
.auth-modal-card {
background: white; border-radius: 24px; padding: 36px 32px;
max-width: 360px; width: 90%; box-shadow: 0 16px 64px rgba(26,18,9,0.3);
text-align: center; animation: authSlideIn 0.25s ease;
}
@keyframes authSlideIn {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.auth-icon { font-size: 40px; margin-bottom: 8px; }
.auth-title { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--ink-light); margin-bottom: 24px; }
.auth-field { margin-bottom: 14px; text-align: left; }
.auth-field label {
display: block; font-size: 12px; font-weight: 500;
color: var(--ink-light); margin-bottom: 5px;
}
.auth-input {
width: 100%; padding: 11px 13px; border: 1.5px solid var(--border);
border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 15px;
background: var(--paper); color: var(--ink); outline: none;
box-sizing: border-box; transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--teal); }
.auth-error { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 10px; }
.auth-toggle {
font-size: 13px; color: var(--teal); cursor: pointer;
margin-top: 14px; display: inline-block; user-select: none;
}
.auth-toggle:hover { text-decoration: underline; }
.auth-close {
position: absolute; top: 12px; right: 16px; font-size: 22px;
color: var(--ink-light); cursor: pointer; line-height: 1;
background: none; border: none; padding: 4px;
}
.auth-close:hover { color: var(--ink); }
.hidden { display: none !important; }
.section-label {
font-size: 11px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--ink-light);
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
}
.inline-flex { display: flex; align-items: center; gap: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.loading {
text-align: center;
padding: 60px 20px;
color: var(--ink-light);
}
.loading-spinner {
font-size: 32px;
margin-bottom: 16px;
}
.contribution-calendar {
background: transparent;
padding: 0;
border: none;
overflow: hidden;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
.github-heatmap {
margin-top: 16px;
}
.heatmap-container {
display: flex;
gap: 8px;
align-items: flex-start;
justify-content: center;
width: 100%;
overflow: visible;
box-sizing: border-box;
}
.heatmap-day-labels {
display: flex;
flex-direction: column;
gap: 3px;
padding-top: 24px;
}
.heatmap-day-label {
height: 11px;
font-size: 10px;
color: var(--ink-light);
line-height: 11px;
text-align: right;
font-weight: 500;
}
.heatmap-grid {
display: grid;
grid-template-columns: repeat(52, 11px);
grid-template-rows: 16px repeat(7, 11px);
gap: 3px;
grid-auto-flow: column;
}
.heatmap-grid-month {
flex: 1;
display: grid;
grid-template-columns: repeat(6, 11px);
grid-template-rows: 16px repeat(7, 11px);
gap: 3px;
align-items: start;
}
.heatmap-container-vertical {
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
overflow: visible;
box-sizing: border-box;
}
.heatmap-day-header {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 3px;
margin-left: 50px;
}
.heatmap-day-header-label {
font-size: 11px;
color: var(--ink-light);
font-weight: 500;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.heatmap-grid-vertical {
flex: 1;
display: grid;
grid-template-columns: 50px repeat(7, 1fr);
gap: 3px;
align-items: start;
}
.heatmap-month-labels-vertical {
grid-column: 1;
grid-row: 1 / -1;
display: flex;
flex-direction: column;
gap: 3px;
}
.heatmap-month-label-vertical {
font-size: 10px;
color: var(--ink-light);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
text-align: right;
padding-right: 8px;
line-height: 11px;
height: 11px;
display: flex;
align-items: center;
justify-content: flex-end;
}
.heatmap-months {
grid-row: 1;
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(53, 11px);
gap: 3px;
}
.heatmap-months-month {
grid-row: 1;
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(6, 11px);
gap: 3px;
}
.heatmap-month {
width: 11px;
height: 16px;
font-size: 11px;
color: var(--ink-light);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
line-height: 16px;
overflow: visible;
white-space: nowrap;
}
.heatmap-cell {
width: 11px;
height: 11px;
border-radius: 2px;
background: #ebedf0;
position: relative;
cursor: pointer;
transition: all 0.15s ease;
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.heatmap-cell:hover {
outline: 2px solid rgba(0,0,0,0.2);
transform: scale(1.3);
z-index: 100;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.heatmap-cell.today {
outline: 2px solid rgba(0,0,0,0.3);
outline-offset: 0;
}
.heatmap-cell.level-1 { background: #FFF585; }
.heatmap-cell.level-2 { background: #FFEB38; }
.heatmap-cell.level-3 { background: #FDD835; }
.heatmap-cell.level-4 { background: #FBC02D; }
.heatmap-tooltip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: rgba(26,18,9,0.95);
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 12px;
white-space: nowrap;
z-index: 1000;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
margin-bottom: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
font-family: 'DM Sans', sans-serif;
}
.heatmap-tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 5px solid transparent;
border-top-color: rgba(26,18,9,0.95);
}
.heatmap-cell:hover .heatmap-tooltip {
opacity: 1;
}
.heatmap-legend {
display: flex;
align-items: center;
gap: 8px;
margin-top: 12px;
padding: 0;
background: transparent;
justify-content: center;
flex-wrap: wrap;
overflow: visible;
}
.heatmap-legend-label {
font-size: 12px;
color: var(--ink-light);
font-weight: 500;
}
.heatmap-legend-colors {
display: flex;
gap: 4px;
}
.heatmap-legend-color {
width: 11px;
height: 11px;
border-radius: 2px;
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
background: #ebedf0;
position: relative;
cursor: pointer;
transition: all 0.15s ease;
}
.heatmap-legend-color:hover {
transform: scale(1.2);
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.heatmap-legend-color.level-1 {
background: #FFF585;
}
.heatmap-legend-color.level-2 {
background: #FFEB38;
}
.heatmap-legend-color.level-3 {
background: #FDD835;
}
.heatmap-legend-color.level-4 {
background: #FBC02D;
}
.heatmap-legend-tooltip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: rgba(26,18,9,0.95);
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 11px;
white-space: nowrap;
z-index: 1000;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
margin-bottom: 6px;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
font-family: 'DM Sans', sans-serif;
font-weight: 500;
}
.heatmap-legend-tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 4px solid transparent;
border-top-color: rgba(26,18,9,0.95);
}
.heatmap-legend-color:hover .heatmap-legend-tooltip {
opacity: 1;
}
@media (max-width: 768px) {
.chart-grid {
grid-template-columns: minmax(0, 1fr) !important;
}
.chart-container {
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
overflow: hidden !important;
padding: 10px !important;
}
.contribution-calendar {
padding: 0 !important;
background: transparent !important;
border: none !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important;
width: 100%;
box-sizing: border-box;
}
.heatmap-container {
display: flex !important;
gap: 8px !important;
align-items: flex-start !important;
justify-content: flex-start !important;
width: max-content !important;
min-width: 730px !important;
padding-bottom: 8px !important;
}
.heatmap-day-labels {
display: flex !important;
flex-direction: column !important;
gap: 3px !important;
padding-top: 24px !important;
flex-shrink: 0 !important;
width: 28px !important;
min-width: 28px !important;
}
.heatmap-day-label {
font-size: 10px !important;
height: 11px !important;
line-height: 11px !important;
width: 28px !important;
text-align: right !important;
}
.heatmap-grid {
display: grid !important;
grid-template-columns: repeat(52, 11px) !important;
grid-template-rows: 16px repeat(7, 11px) !important;
gap: 3px !important;
grid-auto-flow: column !important;
overflow: visible !important;
flex-shrink: 0 !important;
max-width: none !important;
}
.heatmap-grid-month {
display: none !important;
}
.heatmap-months {
display: none !important;
}
.heatmap-months-month {
display: none !important;
}
.heatmap-month {
font-size: 11px !important;
line-height: 16px !important;
overflow: visible !important;
text-overflow: clip !important;
white-space: nowrap !important;
width: 11px !important;
height: 16px !important;
}
.heatmap-cell {
width: 11px !important;
height: 11px !important;
aspect-ratio: auto !important;
border-radius: 2px !important;
min-width: unset !important;
}
.heatmap-cell:hover {
transform: scale(1.1);
}
.heatmap-tooltip {
font-size: 10px;
padding: 4px 8px;
margin-bottom: 4px;
z-index: 1000;
}
.heatmap-container-vertical {
gap: 3px;
overflow: hidden;
max-width: 100%;
}
.heatmap-day-header {
margin-left: 30px;
gap: 1.5px;
}
.heatmap-day-header-label {
font-size: 8px;
}
.heatmap-grid-vertical {
grid-template-columns: 30px repeat(7, minmax(0, 1fr));
gap: 1.5px;
overflow: hidden;
}
.heatmap-month-label-vertical {
font-size: 7px;
padding-right: 4px;
line-height: 9px;
height: 9px;
}
.heatmap-legend {
flex-wrap: wrap !important;
gap: 6px !important;
justify-content: center !important;
min-width: 730px !important;
width: max-content !important;
box-sizing: border-box !important;
background: transparent !important;
padding: 0 !important;
}
}
@media (max-width: 768px) {
.main { padding: 12px 8px !important; }
.page-title { font-size: 22px !important; margin-bottom: 4px !important; }
.quiz-options { grid-template-columns: 1fr; }
.checkbox-grid { grid-template-columns: 1fr; }
.overall-stats {
grid-template-columns: 1fr;
padding: 12px !important;
margin-bottom: 16px !important;
gap: 12px !important;
}
.stat-item {
padding: 10px 12px !important;
}
.chart-grid {
grid-template-columns: minmax(0, 1fr) !important;
gap: 16px !important;
}
}
@media (min-width: 769px) and (max-width: 1024px) {
.header-logo h1 {
font-size: 18px;
}
.header-logo p {
display: none;
}
.nav-btn-header {
padding: 8px 16px;
font-size: 13px;
}
.contribution-calendar {
padding: 16px;
overflow: visible;
}
.heatmap-container {
gap: 6px;
}
.heatmap-day-label {
font-size: 9px;
height: 10px;
line-height: 10px;
}
.heatmap-grid {
grid-template-columns: repeat(53, 1fr);
grid-template-rows: 15px repeat(7, 1fr);
gap: 2px;
}
.heatmap-grid-month {
grid-template-columns: repeat(6, 1fr);
grid-template-rows: 15px repeat(7, 1fr);
gap: 2px;
}
.heatmap-months {
grid-template-columns: repeat(53, 1fr);
}
.heatmap-months-month {
grid-template-columns: repeat(6, 1fr);
}
.heatmap-month {
font-size: 10px;
line-height: 15px;
}
.heatmap-cell {
width: 100%;
height: 10px;
}
}
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(26, 18, 9, 0.6);
backdrop-filter: blur(4px);
z-index: 2000;
justify-content: center;
align-items: center;
padding: 20px;
animation: fadeIn 0.2s ease;
}
.modal-overlay.active {
display: flex;
}
.word-modal {
background: white;
border-radius: 16px;
max-width: 500px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 8px 32px rgba(26, 18, 9, 0.2);
animation: slideUp 0.3s ease;
position: relative;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.modal-close-btn {
position: absolute;
top: 16px;
right: 16px;
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: var(--paper-mid);
color: var(--ink-light);
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
z-index: 10;
}
.modal-close-btn:hover {
background: var(--border);
color: var(--ink);
transform: scale(1.1);
}
.modal-header {
padding: 24px 24px 16px 24px;
text-align: center;
border-bottom: 1px solid var(--border);
}
.modal-chinese {
font-family: 'Noto Serif SC', serif;
font-size: 48px;
font-weight: 700;
color: var(--ink);
line-height: 1.2;
margin-bottom: 8px;
}
.modal-pinyin {
font-size: 16px;
color: var(--grey-pinyin);
font-style: italic;
margin-bottom: 4px;
}
.modal-pos {
font-size: 13px;
color: var(--slate);
font-style: italic;
}
.modal-body {
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.modal-section-title {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ink-light);
margin-bottom: 8px;
}
.modal-translation {
font-size: 16px;
color: var(--ink);
line-height: 1.5;
}
.modal-example-section {
background: var(--paper-warm);
border: 1px solid var(--border);
border-radius: 10px;
padding: 16px;
}
.modal-example-chinese {
font-family: 'Noto Serif SC', serif;
font-size: 15px;
color: var(--ink);
line-height: 1.6;
margin-bottom: 6px;
}
.modal-example-pinyin {
font-size: 13px;
color: var(--grey-pinyin);
font-style: italic;
margin-bottom: 4px;
}
.modal-example-translation {
font-size: 13px;
color: var(--ink-light);
line-height: 1.5;
}
.modal-meta {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.modal-badge {
font-size: 11px;
padding: 4px 10px;
border-radius: 12px;
font-weight: 500;
}
.modal-badge.framework {
background: var(--paper-mid);
color: var(--ink-light);
}
.modal-badge.priority {
background: #fff3cd;
color: #856404;
}
.modal-footer {
padding: 16px 24px 24px 24px;
display: flex;
gap: 12px;
border-top: 1px solid var(--border);
}
.modal-btn {
flex: 1;
padding: 12px 16px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.modal-btn.pronounce {
background: var(--gold-light);
color: var(--gold);
border: 1px solid var(--gold);
}
.modal-btn.pronounce:hover {
background: var(--gold);
color: white;
}
.modal-status-buttons {
display: flex;
gap: 8px;
}
.modal-status-btn {
width: 44px;
height: 44px;
border: 2px solid var(--border);
border-radius: 8px;
background: white;
font-size: 18px;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.modal-status-btn:hover {
border-color: var(--gold);
transform: scale(1.05);
}
.modal-status-btn.active-remember {
background: var(--sage);
border-color: var(--sage);
color: white;
}
.modal-status-btn.active-similar {
background: var(--gold);
border-color: var(--gold);
color: white;
}
.modal-status-btn.active-forget {
background: var(--red);
border-color: var(--red);
color: white;
}
@media (max-width: 768px) {
.header {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: space-between !important;
padding: 12px 16px !important;
height: 56px !important;
position: sticky;
top: 0;
z-index: 1000;
}
.header-logo {
position: static !important;
display: flex !important;
align-items: center !important;
gap: 8px !important;
}
.header-logo h1 {
font-size: 18px !important;
}
.logo-img {
height: 24px !important;
}
.header-actions {
position: static !important;
display: flex !important;
align-items: center !important;
gap: 12px !important;
}
.header-language {
position: static !important;
border: none !important;
margin: 0 !important;
padding: 0 !important;
}
.profile-btn {
position: static !important;
height: 32px !important;
margin: 0 !important;
}
.profile-btn.user {
width: 32px !important;
border-radius: 50% !important;
}
.profile-btn.guest {
width: auto !important;
padding: 0 10px !important;
font-size: 12px !important;
border-radius: 16px !important;
}
.hamburger-btn {
display: block !important;
}
.header-nav {
display: none !important;
flex-direction: column !important;
position: absolute !important;
top: 56px !important;
left: 0 !important;
right: 0 !important;
background: var(--ink) !important;
padding: 12px 16px !important;
gap: 8px !important;
box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
z-index: 999 !important;
width: 100% !important;
height: auto !important;
overflow: visible !important;
border-bottom: 2px solid var(--gold) !important;
}
.header-nav.mobile-open {
display: flex !important;
}
.nav-btn-header {
width: 100% !important;
justify-content: flex-start !important;
padding: 12px 16px !important;
border-radius: 8px !important;
height: 40px !important;
font-size: 14px !important;
display: flex !important;
}
body {
padding-bottom: 0 !important;
}
.flashcard-wrap {
height: 320px !important;
}
.card-chinese {
font-size: 40px !important;
}
.card-front .card-chinese {
font-size: 56px !important;
}
.card-face {
padding: 20px !important;
}
}
.auth-logo-container {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 12px;
width: 100%;
}
.auth-logo-img {
height: 48px;
width: auto;
object-fit: contain;
}
body {
display: flex;
flex-direction: column;
}
.main {
flex: 1 0 auto;
}
.app-footer {
flex-shrink: 0;
background: var(--paper-warm);
border-top: 1px solid var(--border);
padding: 20px 16px;
width: 100%;
}
.footer-content {
max-width: 100%;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
font-size: 13px;
color: var(--ink-light);
}
.footer-links {
display: flex;
align-items: center;
gap: 8px;
}
.footer-links a {
color: var(--ink-light);
text-decoration: none;
font-weight: 500;
transition: color 0.15s;
}
.footer-links a:hover {
color: var(--gold);
}
.footer-dot {
color: var(--border);
font-size: 10px;
}
@media (max-width: 768px) {
.app-footer {
padding: 16px 12px;
}
.footer-content {
flex-direction: column-reverse;
text-align: center;
gap: 8px;
}
}
.page-header-wrap {
width: 100%;
max-width: 100%;
margin: 0 auto 16px auto;
box-sizing: border-box;
}
.flashcard-settings, .quiz-wrap {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: clamp(16px, 3.5vw, 32px) !important;
margin: 0 auto;
}
.checkbox-grid {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
gap: clamp(8px, 1.5vw, 12px) !important;
width: 100%;
}
.flashcard-container {
width: 100%;
max-width: 100%;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: clamp(16px, 3vh, 24px);
box-sizing: border-box;
}
.flashcard-wrap {
width: 95% !important;
max-width: 680px !important;
height: clamp(300px, 45vh, 420px) !important;
margin: 0 auto;
}
.quiz-options {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
gap: clamp(10px, 2vw, 16px) !important;
width: 100%;
}
.quiz-question {
width: 100%;
box-sizing: border-box;
padding: clamp(32px, 5vh, 48px) clamp(16px, 3vw, 32px) !important;
}
.quiz-score-card {
width: 100%;
max-width: 550px !important;
box-sizing: border-box;
padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 32px) !important;
}
@media (max-width: 768px) {
.flashcard-wrap {
height: 320px !important;
}
}
.quiz-correct-list {
text-align: left;
margin-bottom: 20px;
max-height: 300px;
overflow-y: auto;
}
.quiz-word-status-btns {
margin-left: auto;
display: flex;
gap: 4px;
}
.quiz-word-status-btns .status-btn {
background: none;
border: 1.5px solid var(--border);
color: var(--ink-light);
width: 28px;
height: 28px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 600;
transition: all 0.15s;
}
.quiz-word-status-btns .status-btn.active-remember {
background: var(--teal-light);
border-color: var(--teal);
color: var(--teal);
}
.quiz-word-status-btns .status-btn.active-forget {
background: var(--red-light);
border-color: var(--red);
color: var(--red);
}
.quiz-word-status-btns .status-btn.active-similar {
background: var(--gold-light);
border-color: var(--gold);
color: #a07010;
}
.quiz-word-status-btns .status-btn:hover {
opacity: 0.8;
}
.star-rating {
display: flex;
gap: 8px;
margin-top: 8px;
font-size: 28px;
cursor: pointer;
user-select: none;
}
.star-rating .star-item {
color: var(--border);
transition: transform 0.15s ease, color 0.15s ease;
}
.star-rating .star-item.selected {
color: #f1c40f;
}
.star-rating .star-item:hover {
transform: scale(1.2);
}