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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.5;
}

a {
    color: #1890ff;
    text-decoration: none;
}

a:hover {
    color: #40a9ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航 */
.top-nav {
    text-align: right;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.lang-switch a {
    margin-left: 15px;
    font-size: 14px;
}

.lang-switch a.active {
    color: #333;
    font-weight: 500;
}

/* 登录/注册容器 */
.auth-container {
    max-width: 1100px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.auth-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-logo img {
    height: 32px;
}

.auth-logo h1 {
    font-size: 18px;
    font-weight: 600;
}

.auth-body {
    display: flex;
    min-height: 400px;
}

.auth-left {
    width: 35%;
    padding: 40px;
    border-right: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-qr {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.auth-qr-text {
    font-size: 14px;
    color: #666;
}

.auth-right {
    width: 65%;
    padding: 40px 60px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group .form-control {
    flex: 1;
}

.captcha-img {
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
}

.captcha-refresh {
    font-size: 14px;
    color: #1890ff;
    cursor: pointer;
    align-self: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.btn-primary {
    width: 100%;
    height: 44px;
    background: #1890ff;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #40a9ff;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

/* 公告列表 */
.announcements {
    max-width: 1100px;
    margin: 20px auto;
}

.announcement-item {
    background: #e6f7ff;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #1890ff;
}

/* 底部版权 */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
}

/* 注册页特有 */
.code-group {
    display: flex;
    gap: 10px;
}

.code-group .form-control {
    flex: 1;
}

.btn-code {
    height: 40px;
    padding: 0 15px;
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-code:disabled {
    background: #fafafa;
    color: #999;
    cursor: not-allowed;
}

.currency-select {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.currency-btn {
    flex: 1;
    height: 36px;
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.currency-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.register-tip {
    background: #e6f7ff;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 13px;
    color: #1890ff;
}

/* 忘记密码页特有 */
.reset-container {
    max-width: 600px;
    margin: 100px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 40px;
}

.reset-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.reset-tip {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.back-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* 后台界面 */
.dashboard-header {
    background: #1890ff;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-user-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-user-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recharge-btn {
    background: #52c41a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.dashboard-body {
    display: flex;
    min-height: calc(100vh - 56px);
}

.dashboard-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    padding: 20px 0;
}

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

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: background 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #e6f7ff;
    color: #1890ff;
}

.dashboard-main {
    flex: 1;
    padding: 20px;
}

.search-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-bar .form-control {
    flex: 1;
}

.service-list {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.service-category {
    padding: 12px 20px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
}

.service-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-item:hover {
    background: #fafafa;
}

.service-price {
    color: #f5222d;
    font-weight: 500;
}