* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f4f5f7;
    color: #333;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    background-color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.top-bar {
  height: 30px;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end; /* 全部靠右 */
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  color: #666;
  gap: 15px; /* 控制文字之间的间距 */
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-logo-img {
    height: 90px;
    width: auto;
    max-width: min(460px, 55vw);
    display: block;
    object-fit: contain;
}

.user-actions {
    display: flex;
    gap: 20px;
}

.action-link i {
    margin-right: 5px;
}

.main-container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 240px;
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.sidebar-buttons {
    padding: 16px;
    display: flex;
    gap: 10px;
}

.btn-recharge, .btn-payment {
    flex: 1;
    padding: 9px 0;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}

.btn-recharge { background-color: #1e89f7; }
.btn-payment { background-color: #1e89f7; }

.user-card {
    background-color: #1e89f7;
    color: #fff;
    margin: 0 15px 15px;
    padding: 18px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
}

.user-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.user-card-row span:first-child {
    width: 30px;     /* 统一左边宽度 */
    white-space: nowrap;
    flex-shrink: 0;
}

.user-card-row span:last-child {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.user-card-row:last-child { margin-bottom: 0; }

.user-card .balance {
    font-size: 15px;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 35px;
    color: #444;
    transition: background 0.2s;
}

.nav-item:hover {
    background-color: #f0f4f8;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    color: #1e89f7;
    text-align: center;
}

.content-area {
    flex: 1;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.main-menubar {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 12px 20px;
    background-color: #fff;
}

.main-menubar-logo {
    flex-shrink: 0;
}

.main-menubar-center {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
}

.main-menubar-center .tab-group {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.main-menubar-search {
    margin-left: auto;
    flex: 0 1 420px;
    min-width: 200px;
}

a.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.search-bar {
    display: flex;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f4f5f7;
}

.search-bar.compact {
    border-radius: 8px;
    align-items: stretch;
    min-height: 48px;
    background-color: #fff;
}

.search-bar.compact .search-label {
    padding: 0 16px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    background-color: #f4f5f7;
}

.search-bar.compact .search-input {
  padding: 0 14px;       /* 左右内边距：调宽一点就改 16px / 20px */
  font-size: 15px;
  line-height: 1.4;
  min-height: 40px;      /* 高度：改这里，比如 40px / 44px / 50px */
  width: 220px;          /* 宽度：固定宽度，想宽就改大 */
  box-sizing: border-box;
  /*border: 1px solid #ddd;*/
  /*border-radius: 6px;  */
}

.search-bar.compact .btn-search {
    padding: 0 15px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.search-label {
    padding: 10px 15px;
    background-color: #f4f5f7;
    font-weight: bold;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 15px;
    outline: none;
}

.btn-search {
    background-color: #1e89f7;
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: bold;
    cursor: pointer;
}

.tab-group {
    display: flex;
    gap: 24px;
}

.tab-btn {
    padding: 12px 26px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.tab-btn.active {
    background-color: #1e89f7;
    color: #fff;
    border-color: #1e89f7;
}

.footer {
    padding: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

