:root {
    --wx-green: #16a34a;
    --wx-bg: #F7F7F7;
    --content-width: 900px; /* 统一限制宽度 */
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--wx-bg);
    color: #191919;
    -webkit-tap-highlight-color: transparent;
}

/* 核心容器：所有页面内容必须包裹在这里面 */
.main-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* 统一导航栏：固定在顶部且居中对齐 */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0.5px solid #E5E5E5;
    z-index: 1000;
}

.nav-content {
    max-width: var(--content-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
}

.nav-center-title {
    font-size: 18px;
    font-weight: 700;
}

/* 基础组件样式 */
.btn-top-green {
    background: var(--wx-green);
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-ghost {
    background: none;
    border: none;
    color: #576B95;
    font-size: 15px;
    cursor: pointer;
    padding: 8px;
}

.btn-ghost.dark { color: #191919; }

/* 卡片通用样式 */
.card {
    background: #FFF;
    border-radius: 12px;
    margin: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-box {
    background: #FFF;
    width: 85%;
    max-width: 320px;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.modal-msg { color: #888; font-size: 15px; margin-bottom: 24px; line-height: 1.4; }
.modal-btns { display: flex; gap: 12px; }
.modal-btn { flex: 1; padding: 12px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.modal-btn.cancel { background: #F2F2F2; color: #191919; }
.modal-btn.destructive { background: #F2F2F2; color: #FA5151; }
