/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 移动端优化 */
    overflow-x: hidden;
    position: relative;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #1E9FFF 0%, #1890ff 100%);
    color: white;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px; /* 为底部导航留空间 */
    min-height: calc(100vh - 60px);
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 页面头部 */
.page-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #1E9FFF;
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.login-tabs .tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.login-tabs .tab-btn.active {
    color: #1E9FFF;
    border-bottom-color: #1E9FFF;
    font-weight: 600;
}

.login-form {
    display: none;
}

.login-form.active {
    display: flex;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    /* 移动端优化 */
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: #1E9FFF;
}

.code-input-group {
    display: flex;
    gap: 8px;
}

.code-input-group input {
    flex: 1;
}

.login-tip {
    margin-top: 16px;
    padding: 12px;
    background: #f0f8ff;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
}

.login-tip p {
    margin: 4px 0;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

/* 按钮 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1E9FFF;
    color: white;
}

.btn-primary:hover {
    background: #1890ff;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-link {
    background: none;
    color: #1E9FFF;
    padding: 4px 8px;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 门店列表 */
.store-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.store-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.store-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1E9FFF;
}

.store-card p {
    color: #666;
    font-size: 14px;
}

/* 门店统计信息 */
.store-stats {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
}

.stat-item.available {
    color: #52c41a;
    background: #f6ffed;
}

.stat-item.borrowed {
    color: #ff4d4f;
    background: #fff2f0;
}

.stat-item i {
    font-style: normal;
}

/* 钥匙列表页面统计头部 */
.keys-stats-header {
    display: flex;
    gap: 12px;
    margin: 0 16px 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: #f5f5f5;
}

.stat-box.available {
    background: #f6ffed;
}

.stat-box.borrowed {
    background: #fff2f0;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.stat-box.available .stat-label {
    color: #52c41a;
}

.stat-box.borrowed .stat-label {
    color: #ff4d4f;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.stat-box.available .stat-value {
    color: #52c41a;
}

.stat-box.borrowed .stat-value {
    color: #ff4d4f;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #1E9FFF;
    color: white;
    border-color: #1E9FFF;
}

/* 钥匙列表 */
.key-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.key-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.key-card:hover {
    transform: translateX(4px);
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.key-header h3 {
    font-size: 16px;
    color: #333;
}

.key-type {
    font-size: 12px;
    color: #1E9FFF;
}

.key-info {
    margin-bottom: 12px;
}

.key-info p {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status.available {
    background: #e6f7ff;
    color: #1890ff;
}

.status.unavailable {
    background: #fff2e8;
    color: #fa8c16;
}

.status.pending {
    background: #fff7e6;
    color: #faad14;
}

.status.approved {
    background: #f6ffed;
    color: #52c41a;
}

.status.rejected {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 钥匙详情 */
.key-detail {
    max-width: 600px;
    margin: 0 auto;
}

.detail-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1E9FFF;
}

.detail-info {
    margin-bottom: 20px;
}

.detail-info p {
    margin: 12px 0;
    font-size: 14px;
}

.detail-info strong {
    color: #333;
    margin-right: 8px;
}

/* 我的页面 */
.mine-header {
    background: linear-gradient(135deg, #1E9FFF 0%, #1890ff 100%);
    padding: 32px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.user-details h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.user-details p {
    font-size: 14px;
    opacity: 0.9;
}

.mine-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1E9FFF;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.mine-menu {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item span:first-child {
    font-size: 20px;
    margin-right: 12px;
}

.menu-item span:nth-child(2) {
    flex: 1;
    font-size: 14px;
}

.menu-item span:last-child {
    color: #999;
}

/* 申请列表 */
.borrow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.borrow-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.borrow-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.borrow-card p {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 16px;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    cursor: pointer;
    transition: color 0.3s;
    color: #999;
}

.nav-item.active {
    color: #1E9FFF;
}

.nav-item span:first-child {
    font-size: 20px;
}

.nav-item span:last-child {
    font-size: 12px;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 基础布局 */
    .store-list {
        grid-template-columns: 1fr;
    }
    
    .mine-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .main-container {
        padding: 12px;
        padding-bottom: 70px; /* 移动端底部导航高度 */
    }

    /* 导航栏优化 */
    .nav-title {
        font-size: 16px;
    }

    .user-name {
        font-size: 12px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 登录页面优化 */
    .login-container {
        margin: 20px auto;
        padding: 24px 20px;
        border-radius: 8px;
    }

    .login-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 14px;
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    .code-input-group {
        flex-direction: column;
    }

    .code-input-group .btn {
        width: 100%;
        margin-top: 8px;
    }

    /* 页面头部优化 */
    .page-header {
        margin-bottom: 12px;
    }

    .page-header h2 {
        font-size: 18px;
    }

    /* 卡片优化 */
    .store-card,
    .key-card,
    .borrow-card {
        padding: 14px;
    }

    .store-card h3,
    .key-header h3 {
        font-size: 16px;
    }

    /* 搜索框优化 */
    .search-input {
        padding: 12px;
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    /* 我的页面优化 */
    .mine-header {
        padding: 24px 16px;
        margin-bottom: 12px;
    }

    .avatar {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .user-details h3 {
        font-size: 18px;
    }

    .stat-item {
        padding: 16px 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .menu-item {
        padding: 14px;
    }

    /* 底部导航优化 */
    .bottom-nav {
        padding: 6px 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    }

    .nav-item {
        padding: 6px 16px;
    }

    .nav-item span:first-child {
        font-size: 22px;
    }

    .nav-item span:last-child {
        font-size: 11px;
    }

    /* 按钮组优化 */
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    /* Toast 优化 */
    .toast {
        left: 20px;
        right: 20px;
        transform: translateY(-100px);
        max-width: calc(100% - 40px);
    }

    .toast.show {
        transform: translateY(0);
    }

    /* 详情页优化 */
    .detail-card {
        padding: 20px;
    }

    .detail-card h3 {
        font-size: 18px;
    }

    /* 筛选标签优化 */
    .filter-tabs {
        gap: 6px;
        margin-bottom: 12px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .nav-title {
        font-size: 14px;
    }

    .user-name {
        display: none; /* 超小屏幕隐藏用户名 */
    }

    .mine-stats {
        gap: 6px;
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 18px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移动端触摸设备 */
    .btn,
    .store-card,
    .key-card,
    .menu-item,
    .stat-item,
    .tab-btn {
        -webkit-tap-highlight-color: rgba(30, 159, 255, 0.1);
        touch-action: manipulation;
    }

    /* 优化点击区域 */
    .btn {
        min-height: 44px; /* iOS推荐的最小触摸目标 */
    }

    .nav-item {
        min-height: 50px;
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .login-container {
        margin: 10px auto;
        padding: 20px;
    }

    .navbar {
        padding: 8px 16px;
    }

    .main-container {
        padding: 12px;
    }
}

/* ==================== 录入钥匙页面 ==================== */
.add-key-container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.type-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.type-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.type-tabs {
    display: flex;
    gap: 12px;
}

.type-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.type-tab.active {
    border-color: #1E9FFF;
    background: #f0f9ff;
}

.type-tab .tab-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.type-tab .tab-text {
    font-size: 15px;
    color: #666;
}

.type-tab.active .tab-text {
    color: #1E9FFF;
    font-weight: 500;
}

/* 录入钥匙页面在登录容器中的样式调整 */
.login-container .type-tabs {
    margin-bottom: 0;
}

.login-container .type-tab {
    padding: 16px;
    background: white;
}

.login-container select.form-input {
    appearance: auto;
    padding: 12px;
}

/* OCR拍照识别卡片 */
.ocr-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.ocr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ocr-icon {
    font-size: 32px;
}

.ocr-content {
    flex: 1;
}

.ocr-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ocr-desc {
    font-size: 13px;
    opacity: 0.9;
}

.ocr-arrow {
    font-size: 20px;
    opacity: 0.8;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-section {
    margin-bottom: 20px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-section.half {
    flex: 1;
}

.section-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.section-label .required {
    color: #ff4d4f;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #1E9FFF;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select:focus {
    outline: none;
    border-color: #1E9FFF;
}

.input-tip {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.submit-area {
    padding: 20px 0 40px;
}

/* ==================== 认证申请页面 ==================== */
.verify-container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 已认证状态 */
.verified-section {
    padding: 20px 0;
}

.verified-card {
    background: white;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.verified-icon {
    width: 80px;
    height: 80px;
    background: #52c41a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.verified-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.verified-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.info-list {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* 未认证状态 - 步骤1 */
.company-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.company-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.company-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    user-select: none;
    -webkit-tap-highlight-color: rgba(30, 159, 255, 0.1);
}

.company-item:hover {
    border-color: #1E9FFF;
    background: #f5faff;
}

.company-item:active {
    transform: scale(0.98);
}

.company-item.active {
    border-color: #1E9FFF;
    background: #f0f9ff;
}

.company-name {
    font-size: 15px;
    color: #333;
}

.company-check {
    width: 24px;
    height: 24px;
    background: #1E9FFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.company-item.active .company-check {
    opacity: 1;
}

/* 未认证状态 - 步骤2 */
.unverified-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-back {
    color: #1E9FFF;
    cursor: pointer;
    font-size: 14px;
    margin-right: 12px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.guide-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.guide-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.guide-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: #1E9FFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content .step-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.step-content .step-desc {
    font-size: 13px;
    color: #999;
}

/* 上传区域 */
.upload-section {
    margin-top: 20px;
}

.upload-box {
    border: 2px dashed #d9d9d9;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #1E9FFF;
    background: #f0f9ff;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-text {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.upload-tip {
    display: block;
    font-size: 13px;
    color: #999;
}

.preview-box {
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 底部导航三栏布局 */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.3s;
    color: #999;
}

.bottom-nav .nav-item.active {
    color: #1E9FFF;
}

.bottom-nav .nav-item span:first-child {
    font-size: 22px;
}

.bottom-nav .nav-item span:last-child {
    font-size: 12px;
}
