﻿/* === Inline Style Block === */

@media (max-width:768px){
  .modal-overlay{background:rgba(5,5,15,0.88)!important;backdrop-filter:blur(4px)!important}
  .modal-card{background:var(--bg-alt)!important;border-color:rgba(255,255,255,.15)!important;border-radius:20px 20px 0 0!important}
}



/* === Inline Style Block === */

.mob-translate-btn{display:inline-flex!important;align-items:center;justify-content:center;width:auto;min-width:38px;height:34px;padding:0 12px;border-radius:9999px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:var(--text)!important;text-decoration:none!important;box-shadow:0 2px 8px rgba(16,185,129,0.4);margin-left:18px!important;font-size:15px;line-height:1;white-space:nowrap;flex-shrink:0;box-sizing:border-box;}
.mob-translate-btn:active{transform:scale(0.92);}
.mob-translate-icon{font-size:15px;line-height:1;display:inline-block;}
.mob-translate-text{font-size:12px;font-weight:600;margin-left:4px;}
@media(max-width:860px){
  .mob-translate-btn{width:auto!important;min-width:36px;height:32px;padding:0 10px;}
}
@media(max-width:380px){
  .mob-translate-text{display:none;}
  .mob-translate-btn{width:34px!important;height:34px;padding:0;}
}



/* === Inline Style Block === */

/* Quick experience word chips */
.quick-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px 8px;
}
.quick-word-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-family: inherit;
}
.quick-word-chip:hover, .quick-word-chip:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.quick-chip-zh {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.quick-chip-py {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
/* Quick learn card */
.quick-result {
  display: none;
  margin: 16px auto 0;
  max-width: 420px;
  animation: fadeInUp .3s ease;
}
.quick-learn-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  text-align: center;
}
.quick-learn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(128,128,128,0.12);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.quick-learn-close:hover {
  background: rgba(128,128,128,0.22);
  color: var(--text);
}
.quick-learn-header {
  margin-bottom: 18px;
}
.quick-learn-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(37,99,235,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.quick-learn-zh {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.quick-learn-py {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 6px;
}
.quick-learn-body {
  margin: 18px 0 22px;
}
.quick-learn-ho {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.quick-learn-label {
  color: var(--text-muted);
  font-weight: 500;
}
.quick-learn-meaning {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.quick-learn-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quick-learn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, opacity .12s;
}
.quick-learn-btn:active {
  transform: scale(0.96);
}
.quick-learn-btn.listen {
  background: var(--primary);
  color: var(--text);
}
.quick-learn-btn.save {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}
.quick-learn-btn.save.saved {
  background: var(--primary-subtle);
  color: var(--accent-dark);
  border-color: var(--accent-light);
}
.quick-learn-btn.evaluate {
  background: var(--accent);
  color: var(--text);
}
.quick-learn-btn.write {
  background: var(--primary);
  color: var(--text);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}



/* === Inline Style Block === */

@keyframes floatPulse{0%,100%{transform:scale(1);}50%{transform:scale(1.05);}}@media(min-width:769px){#floatInstall{display:none!important;}}@media(display-mode:standalone){#floatInstall{display:none!important;}}


