*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --primary: #07c160; --bg: #f6f6f6; --card: #fff; --text: #333; --text-secondary: #999; --border: #eee; }
html { font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; background: var(--bg); color: var(--text); max-width: 480px; margin: 0 auto; min-height: 100vh; }

/* Nav bar */
.navbar { background: var(--primary); color: #fff; padding: 14px 16px; font-size: 17px; font-weight: 600; text-align: center; position: sticky; top: 0; z-index: 10; }

/* Tab bar */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 10; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 6px; font-size: 11px; color: var(--text-secondary); text-decoration: none; }
.tabbar a.active { color: var(--primary); }
.tabbar a .icon { font-size: 20px; display: block; }

/* Page content */
.page { padding: 12px 16px 70px; }

/* Cards */
.h5-card { background: var(--card); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.h5-card .title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.h5-card .sub { font-size: 13px; color: var(--text-secondary); }

/* List item */
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item .left { flex: 1; }
.list-item .left .name { font-size: 14px; font-weight: 500; }
.list-item .left .desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.list-item .right { font-size: 15px; font-weight: 600; color: var(--primary); }

/* Buttons */
.h5-btn { display: block; width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; }
.h5-btn-primary { background: var(--primary); color: #fff; }

/* Form */
.h5-input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; margin-bottom: 12px; outline: none; }
.h5-input:focus { border-color: var(--primary); }

/* Badge */
.h5-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.h5-badge-green { background: #e8f5e9; color: #2e7d32; }
.h5-badge-orange { background: #fff3e0; color: #e65100; }
.h5-badge-gray { background: #f5f5f5; color: #757575; }

/* Login page */
.login-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-wrap h1 { font-size: 24px; color: var(--primary); margin-bottom: 8px; }
.login-wrap p { color: var(--text-secondary); margin-bottom: 32px; }
.login-wrap .form { width: 100%; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row button { white-space: nowrap; padding: 0 16px; border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 8px; font-size: 14px; cursor: pointer; }

/* Empty */
.empty { text-align: center; padding: 40px 0; color: var(--text-secondary); font-size: 14px; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.filter-tab { padding: 6px 14px; border-radius: 16px; font-size: 13px; background: #fff; border: 1px solid var(--border); cursor: pointer; white-space: nowrap; }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
