/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== 顶部导航栏（通用基础样式，页面可在自己的 <style> 中覆盖细节） ===== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.nav-back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #333333;
    cursor: pointer;
    line-height: 1;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #333333;
}

/* ===== 通用内容区 ===== */
.content-area {
    padding-top: 44px;
}

/* ===== 步骤指示器（基础骨架，页面可覆盖细节） ===== */
.steps-container {
    background: #ffffff;
    padding: 12px 0;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

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

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 6px;
    position: relative;
}

.step-icon.active {
    background: #fff5d9;
    color: #e5a800;
}

.step-text {
    font-size: 12px;
    color: #333333;
    text-align: center;
}

.step-arrow {
    color: #cccccc;
    font-size: 14px;
}

/* ===== 搜索栏（基础骨架） ===== */
.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 10px 16px;
}

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

.search-icon {
    color: #999999;
    font-size: 16px;
    margin-right: 8px;
}

/* ===== 加载动画 ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #cccccc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 空状态（基础样式） ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
}

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

.empty-text {
    font-size: 14px;
}

/* ===== 通用工具类 ===== */
.hidden { display: none !important; }
