/* 高仿微信支付样式 */
* {
    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: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* 移动端容器 */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    position: relative;
    overflow-x: hidden;
}

/* 登录页面 */
.login-page {
    background: linear-gradient(180deg, #07C160 0%, #07C160 30%, #f5f5f5 30%);
    min-height: 100vh;
    padding: 40px 24px;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.login-logo .logo-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #07C160;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.login-logo h1 {
    color: #fff;
    font-size: 24px;
    margin-top: 12px;
    font-weight: 500;
}

.login-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

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

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #07C160;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0958d9;
}

.btn-primary:active {
    background: #003eb3;
}

.btn-secondary {
    width: 100%;
    height: 48px;
    background: #fff;
    color: #07C160;
    border: 1px solid #07C160;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #E6F8ED;
}

.login-tips {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* 验证页面 */
.verify-page {
    background: #fff;
    min-height: 100vh;
    padding: 40px 24px;
}

.verify-header {
    text-align: center;
    margin-bottom: 40px;
}

.verify-header h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.verify-header p {
    color: #666;
    font-size: 14px;
}

.verify-step {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    align-items: center;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.step-item.active .step-number {
    background: #07C160;
    color: #fff;
}

.step-item.completed .step-number {
    background: #52c41a;
    color: #fff;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e8e8e8;
    margin: 0 8px;
}

.step-item.completed + .step-line {
    background: #52c41a;
}

/* 照片认证 */
.photo-upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 24px;
    transition: border-color 0.3s;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: #07C160;
}

.photo-upload-area.has-photo {
    border-style: solid;
    border-color: #07C160;
    padding: 10px;
}

.photo-upload-icon {
    font-size: 48px;
    color: #d9d9d9;
    margin-bottom: 12px;
}

.photo-upload-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.photo-upload-hint {
    color: #999;
    font-size: 12px;
}

.photo-preview {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.photo-input {
    display: none;
}

.photo-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.photo-buttons button {
    flex: 1;
    height: 44px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.photo-buttons button:hover {
    border-color: #07C160;
    color: #07C160;
}

/* 主界面 - 微信支付样式 */
.wechat-home {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* 顶部状态栏 */
.status-bar {
    background: #07C160;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
}

/* 顶部搜索栏 */
.app-header {
    background: #07C160;
    padding: 12px 16px 20px;
    color: #fff;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 16px;
    font-size: 20px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 功能区 */
.functions-section {
    background: #fff;
    margin: -12px 12px 12px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.function-item:active {
    transform: scale(0.95);
}

.function-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 6px;
}

.function-icon.scan { background: #07C160; color: #fff; }
.function-icon.pay { background: #07C160; color: #fff; }
.function-icon.card { background: #fa8c16; color: #fff; }
.function-icon.travel { background: #52c41a; color: #fff; }
.function-icon.earn { background: #ff4d4f; color: #fff; }
.function-icon.movie { background: #722ed1; color: #fff; }
.function-icon.food { background: #eb2f96; color: #fff; }
.function-icon.more { background: #f0f0f0; color: #666; }

.function-name {
    font-size: 12px;
    color: #333;
}

/* 赚钱入口特殊样式 */
.function-item.earn-entry .function-icon {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 77, 79, 0); }
}

/* 广告横幅 */
.banner-section {
    margin: 0 12px 12px;
    border-radius: 12px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, #ff9c6e, #ff7a45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* 内容区 */
.content-section {
    background: #fff;
    margin: 0 12px 12px;
    border-radius: 12px;
    padding: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-item.active {
    color: #07C160;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 10px;
}

/* 赚钱页面 */
.earn-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.earn-header {
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    padding: 40px 24px;
    color: #fff;
    text-align: center;
}

.earn-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.earn-header p {
    font-size: 14px;
    opacity: 0.9;
}

.earn-content {
    padding: 24px;
}

.earn-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.earn-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

/* 广告页面 */
.ad-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(180deg, #87d068 0%, #52c41a 100%);
    color: #fff;
    text-align: center;
    padding: 40px;
}

.ad-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.ad-slogan {
    font-size: 24px;
    margin-bottom: 40px;
}

.ad-product {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ad-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.ad-countdown {
    position: absolute;
    top: 40px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.ad-skip {
    position: absolute;
    bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 付款页面 */
.pay-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.pay-header {
    background: #07C160;
    padding: 40px 24px 60px;
    color: #fff;
    text-align: center;
}

.pay-header h2 {
    font-size: 20px;
    font-weight: 500;
}

.pay-amount {
    font-size: 48px;
    font-weight: 300;
    margin-top: 16px;
}

.pay-amount .currency {
    font-size: 24px;
}

.pay-content {
    margin-top: -30px;
    padding: 0 16px;
}

.pay-method-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pay-method-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

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

.pay-method-item:active {
    background: #f5f5f5;
}

.pay-method-item.selected {
    background: #E6F8ED;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

.method-icon.balance {
    background: #07C160;
    color: #fff;
}

.method-icon.bank {
    background: #fa8c16;
    color: #fff;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.method-desc {
    font-size: 12px;
    color: #999;
}

.method-check {
    width: 20px;
    height: 20px;
    border: 2px solid #d9d9d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-method-item.selected .method-check {
    border-color: #07C160;
    background: #07C160;
    color: #fff;
    font-size: 12px;
}

/* 支付密码输入 */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.password-box {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.password-title {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.password-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.password-dot {
    width: 48px;
    height: 48px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.password-dot.filled {
    border-color: #07C160;
}

.password-dot.filled::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
}

/* 条形码页面 */
.barcode-page {
    background: #fff;
    min-height: 100vh;
    padding: 40px 24px;
    text-align: center;
}

.barcode-header {
    margin-bottom: 40px;
}

.barcode-header h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.barcode-header p {
    color: #666;
    font-size: 14px;
}

.barcode-display {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 24px;
}

.barcode-lines {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 16px;
    height: 80px;
}

.bar-line {
    width: 2px;
    background: #000;
}

.bar-line.thin { width: 1px; }
.bar-line.thick { width: 3px; }

.barcode-number {
    font-size: 18px;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    color: #333;
}

.pay-method-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

/* 实名认证页面 */
.auth-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.auth-header {
    background: #fff;
    padding: 24px;
    margin-bottom: 12px;
}

.auth-header h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.auth-form {
    background: #fff;
    padding: 0 16px;
}

.auth-form .form-group {
    margin-bottom: 0;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.auth-form .form-group:last-child {
    border-bottom: none;
}

.auth-form label {
    display: inline-block;
    width: 80px;
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
}

.auth-form input {
    width: calc(100% - 80px);
    height: auto;
    padding: 0;
    border: none;
    font-size: 15px;
}

.auth-form input:focus {
    outline: none;
}

.auth-tips {
    padding: 16px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.auth-submit {
    padding: 24px 16px;
}

/* 管理员后台 */
.admin-login {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.admin-login-title {
    text-align: center;
    margin-bottom: 32px;
}

.admin-login-title h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.admin-login-title p {
    color: #999;
    font-size: 14px;
}

/* 后台管理界面 */
.admin-dashboard {
    background: #f5f5f5;
    min-height: 100vh;
}

.admin-header {
    background: #1f1f1f;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    font-size: 18px;
    font-weight: 500;
}

.admin-logout {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.admin-logout:hover {
    color: #fff;
}

.admin-content {
    padding: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #07C160;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.admin-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
}

.admin-table tr:hover td {
    background: #fafafa;
}

.user-photo-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}

/* 图片查看模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

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

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式 - 桌面端显示手机框架 */
@media (min-width: 768px) {
    .mobile-container {
        border-left: 1px solid #e8e8e8;
        border-right: 1px solid #e8e8e8;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }
}
