/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 登录页面 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.logo-section h1 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group.checkbox {
    font-size: 13px;
    color: #666;
}

.form-group.checkbox a {
    color: #667eea;
    text-decoration: none;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 主布局 - 移除header后调整 */
.main-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

.sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item.has-submenu .submenu {
    display: none;
    background: rgba(0,0,0,0.2);
}

.nav-item.has-submenu:hover .submenu {
    display: block;
}

.submenu a {
    padding-left: 50px;
    font-size: 13px;
}

.content {
    margin-left: 260px;
    padding: 30px;
    flex: 1;
    width: calc(100% - 260px);
}

/* 移除main-header相关样式 */
/* .main-header 已删除 */

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-member {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-time {
    font-size: 12px;
    color: #999;
}

/* 表格 */
.data-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
}

.data-table tbody tr:hover {
    background: #f5f5f5;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

/* 会员套餐 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.plan-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card .price {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin: 15px 0;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Logo上传样式 */
.logo-upload-form {
    max-width: 600px;
}

.logo-preview-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.current-logo p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.logo-preview {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.no-logo {
    color: #999;
    font-style: italic;
    padding: 40px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.payment-config-form,
.logo-upload-form {
    margin-top: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group input[type="file"]:hover {
    border-color: #667eea;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* 重置密码页面样式 */
.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a,
.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.form-footer a:hover,
.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
}

.success-message {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

/* 修改密码页面样式 */
.password-change-container {
    max-width: 500px;
    margin: 0 auto;
}

.password-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

.password-form .form-group {
    margin-bottom: 20px;
}

.password-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.password-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 表单标签样式优化 */
.form-group label {
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* 店铺卡片样式 */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.shop-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.shop-card:hover {
    transform: translateY(-5px);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.shop-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.shop-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
}

.shop-info {
    margin-bottom: 15px;
}

.shop-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.shop-actions {
    display: flex;
    gap: 10px;
}

.shop-actions .btn {
    flex: 1;
}

/* 搜索框样式 */
.search-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 30px;
}

/* 表单行样式 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* 进度条 */
.progress-container {
    padding: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.product-placeholder p {
    margin-bottom: 10px;
    font-size: 16px;
}

.product-placeholder small {
    font-size: 12px;
}

/* 警告提示 */
.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-warning a {
    color: #667eea;
    font-weight: bold;
    text-decoration: none;
}

.alert-warning a:hover {
    text-decoration: underline;
}

/* 表格容器 */
.table-container {
    margin-top: 20px;
}

/* 侧边栏用户信息 */
.sidebar-user-info {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    margin: 0 10px 20px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.user-details {
    flex: 1;
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 11px;
}

.user-badge-normal {
    background: #6c757d;
}

/* 统一绿色按钮样式 */
.btn-success {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
}

.btn-success:hover {
    background: #218838 !important;
}

.btn-primary.green {
    background: #28a745 !important;
    border: none !important;
}

.btn-primary.green:hover {
    background: #218838 !important;
}

/* 绿色主题色 */
:root {
    --primary-green: #28a745;
    --primary-green-hover: #218838;
    --primary-green-light: #d4edda;
}

/* 搜索按钮 - 紫色渐变 */
.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 更新所有搜索相关按钮 */
button[type="submit"]:not(.btn-success):not(.btn-danger):not(.btn-confirm):not(.btn-cancel),
.search-form button,
.search-box button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* 紫色搜索按钮 */
.btn-search {
    background: #667eea !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s !important;
}

.btn-search:hover {
    background: #5568d3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

/* 侧边栏图标样式 */
.nav-item a i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    height: 24px;
    text-align: center;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-item a i::before {
    font-family: Arial, sans-serif;
}

/* 导航文本容器 */
.nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.nav-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* 调整导航项高度 */
.nav-item a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

/* 高级风格图标 - 使用Unicode字符 */
.icon-dashboard::before { content: "■"; font-size: 20px; }
.icon-temu::before { content: "⊞"; font-size: 20px; }
.icon-shein::before { content: "◈"; font-size: 20px; }
.icon-product::before { content: "▣"; font-size: 20px; }
.icon-auth::before { content: "⚿"; font-size: 20px; }
.icon-order::before { content: "☰"; font-size: 20px; }
.icon-warehouse::before { content: "⌂"; font-size: 20px; }
.icon-membership::before { content: "◆"; font-size: 20px; }
.icon-users::before { content: "⚉"; font-size: 20px; }
.icon-logs::before { content: "≡"; font-size: 20px; }
.icon-password::before { content: "⚿"; font-size: 20px; }
.icon-logout::before { content: "⇥"; font-size: 20px; }
.icon-arrow::before { 
    content: "▾"; 
    font-size: 14px;
    margin-left: auto;
}

/* 子菜单箭头动画 */
.nav-item.has-submenu:hover .icon-arrow::before {
    content: "▴";
}

/* 激活状态 */
.nav-item a.active {
    background: rgba(255,255,255,0.15);
    border-left: 4px solid #28a745;
}

/* 子菜单项图标 */
.submenu a::before {
    content: "•";
    margin-right: 10px;
    color: rgba(255,255,255,0.5);
}

.submenu a:hover::before {
    color: #28a745;
}
