/*
 * 代理商中心样式 - 苹果设计风格
 * 简洁精致，细致排列
 */
@import url("//at.alicdn.com/t/c/font_5162829_l5urjmta9k.css");
 
 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
    font-size: 16px;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #1774d3 0%, #0e7ff1 100%);
    color: white;
    padding: 18px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(102,126,234,0.2);
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
}

.header-back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 登录/注册页面 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6aaff6 0%, #107ff0 100%);
    padding: 24px 20px;
}

.auth-box {
    background: white;
    padding: 44px 28px;
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 380px;
}

.auth-logo {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.auth-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.auth-subtitle {
    text-align: center;
    color: #8e8e93;
    font-size: 15px;
    margin-bottom: 32px;
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 5px rgba(102,126,234,0.12);
}

/* 按钮 */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #0b7bed 0%, #1774d3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.45);
}

.btn-success {
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52,199,89,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255,59,48,0.3);
}

.btn-secondary {
   background: #f78517;
    color: #8e8e93;
    color: #fff;
    width: 60%;
    margin: 0 auto;
    display: table;
    padding: 9px;
}

.btn-secondary:hover {
        background: #f78517;
    color: #fff;
    width: 60%;
    margin: 0 auto;
    display: table;
    padding: 9px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    width: auto;
    font-weight: 600;
}

/* 链接 */
.link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: #8e8e93;
    font-size: 14px;
}

/* 提示消息 */
.alert {
    padding: 15px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(52,199,89,0.1);
    color: #34c759;
    border: 1px solid rgba(52,199,89,0.2);
}

.alert-error {
    background: rgba(255,59,48,0.1);
    color: #ff3b30;
    border: 1px solid rgba(255,59,48,0.2);
}

.alert-warning {
    background: rgba(255,149,0,0.1);
    color: #ff9500;
    border: 1px solid rgba(255,149,0,0.2);
}

.alert-info {
    background: rgba(102,126,234,0.1);
    color: #667eea;
    border: 1px solid rgba(102,126,234,0.2);
}

/* 首页 */
.stats-header {
    background: linear-gradient(180deg, #0a4a8a 0%, #146bc0 30%, #2a87e8 60%, #6ab0f7 85%, #b8d8f9 100%);
    color: white;
    padding: 28px 16px 24px;
    box-shadow: 0 4px 20px rgba(102,126,234,0.2);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-right: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.user-status {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 6px;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 5px 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.25);
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

/* 功能菜单 */
.menu-section {
    padding: 20px 16px;
}

.menu-title {
    font-size: 15px;
    font-weight: 700;
    color: #8e8e93;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-left: 4px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.menu-item {
    background: white;
    border-radius: 18px;
    padding: 15px 12px;
    text-align: center;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.menu-item:active {
    transform: scale(0.96);
}

.menu-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.menu-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 24px;
}

.menu-icon i{    font-size: 34px;
    color: #1675d5;}



.menu-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
    z-index: 100;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8e8e93;
    font-size: 11px;
    padding: 4px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #007fff;
}

span.nav-icon.iconfont{
        font-size: 26px;
    line-height: 22px;
    font-weight: normal;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1d1d1f;
    letter-spacing: 0.2px;
}

/* 列表 */
.list {
    background: white;
    margin: 16px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 18px 16px;
    border-bottom: 1px solid #f2f2f7;
    text-decoration: none;
    color: #1d1d1f;
    transition: background 0.2s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background: #f8f9fa;
}

.list-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.list-subtitle {
    font-size: 13px;
    color: #8e8e93;
    margin-top: 5px;
    font-weight: 500;
}



.list-arrow {
    color: #c7c7cc;
    font-size: 20px;
    font-weight: 600;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-success {
    background: rgba(52,199,89,0.12);
    color: #34c759;
}

.badge-warning {
    background: rgba(255,149,0,0.12);
    color: #ff9500;
}

.badge-danger {
    background: rgba(255,59,48,0.12);
    color: #ff3b30;
}

.badge-info {
    background: rgba(102,126,234,0.12);
    color: #667eea;
}

/* 二维码页面 */
.qr-container {
    text-align: center;
    padding: 40px 20px;
}

.qr-box {
    background: white;
    display: inline-block;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.02);
}

.qr-image {
    width: 260px;
    height: 260px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
}

.qr-image img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.qr-tip {
    color: #8e8e93;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.promo-code {
 background: linear-gradient(135deg, #1774d3 0%, #0e7ff1 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.35);
}

.promo-link {
    background: #f8f9fa;
    padding: 14px;
    border-radius: 14px;
    font-size: 13px;
    color: #6e6e73;
    word-break: break-all;
    margin-bottom: 24px;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #8e8e93;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-text {
    font-size: 16px;
    font-weight: 500;
}

/* 间距 */
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
