* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #1f2937; }
.topbar { background: #1e293b; color: #fff; }
.topbar .wrap { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #cbd5e1; text-decoration: none; margin-left: 16px; }
.topbar a.brand { color: #fff; font-size: 18px; font-weight: 700; margin: 0; }
.topbar .user-info { color: #94a3b8; font-size: 14px; margin-right: 12px; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { font-size: 32px; margin: 0 0 8px; }
.hero .sub { color: #64748b; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.entry-card { display: block; background: #fff; border-radius: 14px; padding: 28px 22px; text-decoration: none; color: #1f2937; box-shadow: 0 2px 12px rgba(15,23,42,.06); transition: all .2s; }
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.entry-icon { font-size: 32px; margin-bottom: 10px; }
.entry-card h3 { margin: 6px 0 8px; }
.entry-card p { color: #64748b; font-size: 14px; margin: 0; }
.card { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 2px 12px rgba(15,23,42,.06); max-width: 720px; margin: 24px auto; }
.card.wide { max-width: none; }
h2 { margin-top: 0; }
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=password], input[type=number], input[type=tel], select { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; outline: none; }
input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
button, .btn { display: inline-block; background: #2563eb; color: #fff; border: none; padding: 11px 22px; border-radius: 8px; font-size: 15px; cursor: pointer; text-decoration: none; margin-top: 16px; }
button:hover, .btn:hover { background: #1d4ed8; }
button.danger { background: #dc2626; padding: 6px 12px; font-size: 13px; margin: 0; }
button.danger:hover { background: #b91c1c; }
button.small { padding: 6px 12px; font-size: 13px; margin: 0; }
.flash { padding: 11px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash-error { background: #fee2e2; color: #b91c1c; }
.flash-success { background: #dcfce7; color: #15803d; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
table th, table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
table th { background: #f8fafc; font-size: 14px; color: #475569; }
table tr:hover { background: #f8fafc; }
.rank-1 { color: #d97706; font-weight: 700; }
.rank-2 { color: #64748b; font-weight: 700; }
.rank-3 { color: #b45309; font-weight: 700; }
.team-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.team-row .name { flex: 1; font-weight: 600; }
.team-row input[type=number] { width: 120px; }
.hint { color: #64748b; font-size: 13px; margin-top: 4px; }
.section-title { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.section-title h3 { margin: 0; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-form input { width: auto; }
