* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', Arial, sans-serif; background: #f5f6fa; min-height: 100vh; }
.container { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar { width: 220px; background: #1e1e2d; color: #fff; padding: 20px 0; flex-shrink: 0; }
.logo { padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo h2 { font-size: 20px; color: #fff; }
.nav-menu ul { list-style: none; margin-top: 10px; }
.nav-menu li { padding: 0; cursor: pointer; }
.nav-menu li a { color: #a2a3b7; text-decoration: none; display: block; padding: 10px 20px; font-size: 14px; transition: all 0.2s; }
.nav-menu .sub-menu li a:hover { background: rgba(255,255,255,0.12); padding-left: 38px; }
.nav-menu .sub-menu li a { transition: all 0.2s; }
.nav-menu li:hover > a, .nav-menu li.active > a { background: rgba(255,255,255,0.08); color: #fff; border-left: 3px solid #3699ff; }
.nav-menu .has-sub > a::after { content: ' ▸'; float: right; }
.nav-menu .has-sub.active > a::after { content: ' ▾'; }
.nav-menu .sub-menu { display: none; background: rgba(0,0,0,0.2); }
.nav-menu .has-sub.active .sub-menu { display: block; }
.nav-menu .sub-menu li a { padding-left: 35px; font-size: 13px; }

/* 主内容 */
.main-content { flex: 1; padding: 20px; overflow-x: hidden; }
.top-bar { background: #fff; padding: 15px 20px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.country-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.country-tag { padding: 6px 14px; background: #f0f0f0; border-radius: 4px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.country-tag.active, .country-tag:hover { background: #3699ff; color: #fff; }
.search-bar { display: flex; gap: 8px; }
.search-bar input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; width: 220px; }
.search-bar button { padding: 8px 18px; background: #3699ff; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.user-info { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.user-info button { padding: 6px 14px; background: #f64e60; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
#balance-display { cursor: pointer; color: #3699ff; font-weight: bold; }

/* 内容区 */
.content-area { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.notice { background: #fff8e1; border-left: 4px solid #ffc107; padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.notice h3 { color: #f57c00; margin-bottom: 8px; }
.notice p { color: #666; margin: 4px 0; font-size: 13px; }

/* 表格 */
.product-table { overflow-x: auto; }
.product-table table { width: 100%; border-collapse: collapse; min-width: 800px; }
.product-table th { background: #1e1e2d; color: #fff; padding: 10px 12px; text-align: left; font-size: 14px; }
.product-table td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.product-table tr:hover { background: #f8f9fa; }
.get-number-btn { padding: 6px 16px; background: #3699ff; color: #fff; border: none; border-radius: 4px; cursor: pointer; }

/* 弹窗 */
.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: #fff; margin: 10% auto; padding: 30px; border-radius: 10px; width: 400px; position: relative; }
.close { position: absolute; right: 15px; top: 10px; font-size: 24px; cursor: pointer; }
.recharge-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.recharge-btn { padding: 12px; background: #3699ff; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; }
.custom-recharge { display: flex; gap: 10px; margin-top: 15px; }
.custom-recharge input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.custom-recharge button { padding: 10px 20px; background: #f64e60; color: #fff; border: none; border-radius: 4px; cursor: pointer; }

/* 登录页 */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #1e1e2d; }
.auth-box { background: #fff; padding: 40px; border-radius: 10px; width: 400px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.auth-box h2 { text-align: center; margin-bottom: 25px; color: #333; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; color: #666; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; }
.auth-btn { width: 100%; padding: 12px; background: #3699ff; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; margin-top: 10px; }
.auth-link { text-align: center; margin-top: 18px; }
.auth-link a { color: #3699ff; text-decoration: none; }

@media (max-width: 768px) { .container { flex-direction: column; } .sidebar { width: 100%; } }