/* css/m.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 14px -apple-system, sans-serif; background: #f5f5f5; color: #333; line-height: 1.4; }
.tg { display: flex; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 20px; }
.tg .c1 { color: #0088cc; margin-bottom: 20px; }
.tg .t { color: #666; margin: 10px 0 30px; }
.ld { display: inline-flex; gap: 8px; }
.ld div { width: 12px; height: 12px; background: #0088cc; border-radius: 50%; animation: b 1.4s ease-in-out infinite; }
.ld div:nth-child(2) { animation-delay: 0.2s; }
.ld div:nth-child(3) { animation-delay: 0.4s; }
@keyframes b { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }

.h { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.h-l, .h-r { display: flex; align-items: center; gap: 15px; }
.h h1 { font-size: 18px; font-weight: 600; }
.h i { font-size: 20px; cursor: pointer; color: #555; }

.s { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 1000; transition: left 0.3s; }
.s.show { left: 0; }
.s-h { padding: 30px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.s-p { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px; background: #fff; }
.s-p img { width: 100%; height: 100%; object-fit: cover; }
.s-h h3 { font-size: 18px; margin-bottom: 5px; }
.s-h p { opacity: 0.8; font-size: 14px; }
.s-m { padding: 20px 0; }
.s-a { display: flex; align-items: center; gap: 15px; padding: 15px 25px; color: #555; text-decoration: none; border-left: 4px solid transparent; transition: all 0.2s; }
.s-a:hover, .s-a.active { background: #f0f0f0; border-left-color: #667eea; color: #667eea; }
.s-a i { width: 20px; text-align: center; }

.c { padding: 20px; max-width: 800px; margin: 0 auto; }
.p { display: none; }
.p.active { display: block; animation: f 0.3s ease; }
@keyframes f { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.g { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 20px 0; }
.b { background: white; padding: 25px 15px; border-radius: 12px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.b:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.b i { color: #667eea; margin-bottom: 10px; }
.b h3 { font-size: 16px; margin-bottom: 5px; }
.b p { font-size: 12px; color: #888; }

.card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin: 20px 0; }
.card h3 { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }

.f { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.in, .ta, .sl { width: 100%; padding: 14px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 15px; margin-bottom: 20px; transition: border 0.2s; }
.in:focus, .ta:focus, .sl:focus { border-color: #667eea; outline: none; }
.ta { min-height: 150px; resize: vertical; }
.sr { position: relative; margin-bottom: 20px; }
.sr i { position: absolute; right: 15px; top: 15px; color: #999; }

.btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 10px; }
.btn:hover { opacity: 0.9; }
.btn.sec { background: #f0f0f0; color: #555; }
.btn.sm { padding: 10px 20px; font-size: 14px; }

.r { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; }

.qz { background: white; padding: 20px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); border-left: 4px solid #667eea; }
.qz-h { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; }
.qz-t { font-weight: 600; font-size: 16px; margin-bottom: 5px; }
.qz-m { color: #666; font-size: 13px; margin-bottom: 10px; }
.qz-b { display: flex; gap: 10px; flex-wrap: wrap; }

.opt { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.opt:hover { background: #e9ecef; }
.opt.sel { border-color: #667eea; background: #eef2ff; }
.opt.cor { border-color: #10b981; background: #d1fae5; }
.opt.wro { border-color: #ef4444; background: #fee2e2; }

@media (max-width: 768px) {
    .g { grid-template-columns: repeat(2, 1fr); }
    .r { grid-template-columns: 1fr; }
    .c { padding: 15px; }
    .f { padding: 20px; }
}