[v-cloak] { display: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #2d3748; background: #e2e8f0; height: 100vh; }
.logo { position: fixed; top: 12px; left: 12px; height: 32px; }
#app { display: flex; height: 100vh; flex-direction: column; }
.stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px 20px; }

.card-wrap { perspective: 1200px; }
.card { width: 640px; height: 380px; position: relative; transform-style: preserve-3d; transition: transform .6s ease; cursor: pointer; }
.card.flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.face-front { background: linear-gradient(180deg, #ffffff, #edf2f7); }
.face-back { background: linear-gradient(180deg, #2b6cb0, #2c5282); transform: rotateY(180deg); }
.text-en { font-size: 80px; font-weight: 800; color: #1a202c; letter-spacing: 2px; }
.text-zh { font-size: 54px; font-weight: 700; color: #f7fafc; letter-spacing: 1px; }

.controls-floating { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 12px; padding: 12px 16px; transition: bottom .25s ease; }
.btn { padding: 10px 16px; border-radius: 8px; border: 1px solid #cbd5e0; background: #fff; color: #2d3748; cursor: pointer; font-size: 16px; }
.btn.danger { color: #e53e3e; border-color: #fc8181; }

.settings-bar { position: fixed; left: 0; right: 0; bottom: 0; border-top: 1px solid #cbd5e0; background: #fff; transform: translateY(100%); transition: transform .25s ease; max-height: 45vh; min-height: 160px; overflow-y: auto; }
.settings-bar.open { transform: translateY(0); }
.settings-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
@media (max-width: 720px) { .settings-inner { grid-template-columns: 1fr; } }
.row { display: flex; align-items: flex-start; gap: 12px; }
.label { width: 68px; font-size: 14px; color: #4a5568; padding-top: 6px; }
.import-block textarea { width: 100%; min-height: 120px; padding: 10px; border: 1px solid #cbd5e0; border-radius: 8px; resize: vertical; font-size: 14px; }
.import-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.auto-block { display: flex; gap: 16px; align-items: center; }
.auto-block .small { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #4a5568; }
.auto-block .number { width: 90px; padding: 8px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 14px; }
.info-block { display: flex; gap: 16px; align-items: center; color: #4a5568; }

/* 控制条位置由脚本动态计算，贴近设置面板顶边 */
