* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 16px; color: #333; background: #f5f6fa; min-height: 100vh; }
#app { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom, 0); }

.container { max-width: 480px; margin: 0 auto; padding: 16px; min-height: 100vh; }

.header { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); color: #fff; padding: 20px 16px; margin: -16px -16px 20px -16px; }
.header h1 { font-size: 1.25rem; font-weight: 600; }
.header .sub { font-size: 0.8rem; opacity: 0.9; margin-top: 4px; }

.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 20px; margin-bottom: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; color: #555; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.form-group input:focus { outline: none; border-color: #1a73e8; }

.btn { display: inline-block; width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; text-align: center; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; }
.btn-primary:active { opacity: 0.9; }
.btn-secondary { background: #e8eaf6; color: #1a73e8; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-block { display: block; }

.page { display: none; }
.page.active { display: block; }

.login-page .card { margin-top: 40px; }
.login-page .btn { margin-top: 8px; }
.login-page .link { text-align: center; margin-top: 16px; font-size: 0.9rem; }
.login-page .link a { color: #1a73e8; }

.home-page .nav-actions { display: flex; gap: 12px; margin-bottom: 16px; }
.home-page .nav-actions .btn { flex: 1; }

.meeting-item { padding: 14px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.meeting-item:last-child { border-bottom: none; }
.meeting-item .title { font-weight: 500; color: #1a1a1a; }
.meeting-item .meta { font-size: 0.85rem; color: #666; margin-top: 4px; }
.meeting-item .count { background: #e3f2fd; color: #1a73e8; padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; }

.create-meeting .form-group:last-of-type { margin-bottom: 24px; }

.qrcode-box { text-align: center; padding: 24px 0; }
.qrcode-box img { max-width: 280px; width: 100%; height: auto; border: 1px solid #eee; border-radius: 8px; }
.qrcode-box .title { font-size: 1.1rem; margin-top: 16px; color: #333; }
.qrcode-box .hint { font-size: 0.85rem; color: #666; margin-top: 8px; }

.checkin-list .item { padding: 12px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.checkin-list .item:last-child { border-bottom: none; }
.checkin-list .name { font-weight: 500; }
.checkin-list .time { font-size: 0.8rem; color: #888; }

.checkin-page .card { margin-top: 20px; }
.checkin-page .success-msg { text-align: center; padding: 40px 20px; color: #2e7d32; }
.checkin-page .success-msg .icon { font-size: 3rem; margin-bottom: 12px; }
.checkin-page .success-msg h3 { font-size: 1.2rem; margin-bottom: 8px; }

.empty { text-align: center; padding: 40px 20px; color: #888; font-size: 0.95rem; }

.back-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #1a73e8; cursor: pointer; font-size: 0.95rem; }
.back-bar:hover { text-decoration: underline; }

.tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.tabs span { padding: 12px 16px; cursor: pointer; font-size: 0.95rem; color: #666; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs span.active { color: #1a73e8; font-weight: 500; border-bottom-color: #1a73e8; }

.error-msg { background: #ffebee; color: #c62828; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.hide { display: none !important; }
