/* ===== 公共基础 ===== */
:root {
    --van-primary-color: #7443B9;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 750px;
    margin: 0 auto;
}

/* ========================================
   index.html - 门店列表页
   ======================================== */

.page-store {
    min-height: 100vh;
    background: #FFFFFF;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ====== 列表标题 ====== */
/* font_2:0831: 22px/500, paint_2:001: #1A1C1C */
/* font_2:0837: 12px/400, paint_2:4256: #3C3346 */
/* font_2:7025: 12px/700 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px;
}
.list-header .list-title {
    font-size: 22px;
    font-weight: 500;
    color: #1A1C1C;
    line-height: 30.8px;
}
.list-header .list-count {
    font-size: 12px;
    color: #3C3346;
    line-height: 16.8px;
}
.list-header .list-count strong {
    font-size: 12px;
    font-weight: 700;
}

/* ====== 店铺列表 ====== */
.store-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ====== 店铺卡片 ====== */
/* fill: #FFFFFF, stroke: rgba(0,0,0,0.05) 1px inside */
/* shadow: 0px 1px 2px 0px rgba(0,0,0,0.05) */
/* border-radius: 12px, padding: 16px, internal gap: 8px */
.store-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
/* font_2:0878: 20px/500, paint_2:001: #1A1C1C */
.store-card .card-name {
    font-size: 20px;
    font-weight: 500;
    color: #1A1C1C;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
/* font_2:6479: 12px/500, paint_2:6472: #7443B9 */
.store-card .card-distance {
    font-size: 12px;
    color: #7443B9;
    font-weight: 500;
    line-height: 16.8px;
}
/* paint_2:6467: rgba(205,195,212,0.1) */
.store-card .card-divider {
    height: 0;
    border: none;
    border-top: 1px solid rgba(205, 195, 212, 0.1);
    margin: 8px 0;
}
/* font_2:0872: 14px/400, paint_2:4256: #3C3346 */
.store-card .card-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #3C3346;
    line-height: 19.6px;
}
.store-card .card-address svg { flex-shrink: 0; margin-top: 2px; }
/* font_2:065: 14px/400, paint_2:6496: #1E1A21 */
.store-card .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.store-card .card-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1E1A21;
    line-height: 19.6px;
}
.store-card .card-phone svg { flex-shrink: 0; }
/* fill: #7443B9, borderRadius: 9999px, 80x40px */
/* font_2:6479: 12px/500, paint_2:48: #FFFFFF */
.store-card .detail-btn {
    background: #7443B9;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    width: 80px;
    height: 40px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-card .detail-btn:active { background: #5e3696; }

/* ====== 空状态 ====== */
/* padding: 48px 16px, center column */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px;
}
.empty-state .empty-illustration {
    width: 200px;
    height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}
.empty-state .empty-icon {
    width: 200px;
    height: 160px;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}
/* font_2:0466: 22px/500, paint_2:001: #1A1C1C, center */
.empty-state .empty-title {
    font-size: 22px;
    font-weight: 500;
    color: #1A1C1C;
    line-height: 30.8px;
    text-align: center;
    margin-bottom: 8px;
}
/* font_2:0463: 14px/500, paint_2:4189: #3C3346 */
.empty-state .empty-desc {
    font-size: 14px;
    font-weight: 500;
    color: #3C3346;
    line-height: 19.6px;
    text-align: center;
    margin-bottom: 48px;
}
/* 按钮组 */
.empty-state .empty-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.empty-state .empty-btn {
    width: 120px;
    height: 44px;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state .empty-btn-primary {
    background: #7443B9;
    color: #FFFFFF;
    border: none;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
.empty-state .empty-btn-primary:active { background: #5e3696; }
.empty-state .empty-btn-outline {
    background: #FFFFFF;
    color: #7443B9;
    border: 1px solid #7443B9;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
.empty-state .empty-btn-outline:active { background: #F5F0FA; }

/* ====== 定位中状态 ====== */
/* font_66:1258: 14px/500, paint_2:4256: #3C3346 */
.locating-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 16px;
}
.locating-state .locating-text {
    font-size: 14px;
    font-weight: 500;
    color: #3C3346;
    line-height: 16px;
}

/* ====== 加载中状态 ====== */
/* font_66:0137: 12px/400, paint_66:1249: #3C3346 */
.loading-state {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 0;
}
.loading-state .loading-text {
    font-size: 12px;
    font-weight: 400;
    color: #3C3346;
    line-height: 16px;
}

/* ====== 定位失败状态 ====== */
.location-fail-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px;
}
.location-fail-state .location-fail-illustration {
    width: 200px;
    height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}
.location-fail-state .location-fail-icon {
    width: 200px;
    height: 160px;
    object-fit: contain;
}
.location-fail-state .location-fail-title {
    font-size: 22px;
    font-weight: 500;
    color: #1A1C1C;
    line-height: 30.8px;
    text-align: center;
    margin-bottom: 8px;
}
.location-fail-state .location-fail-desc {
    font-size: 14px;
    font-weight: 500;
    color: #3C3346;
    line-height: 19.6px;
    text-align: center;
    margin-bottom: 48px;
}
.location-fail-state .location-fail-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 32px;
}
.location-fail-state .fail-btn {
    width: 120px;
    height: 44px;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.location-fail-state .fail-btn-primary {
    background: #7443B9;
    color: #FFFFFF;
    border: none;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
.location-fail-state .fail-btn-primary:active { background: #5e3696; }
.location-fail-state .fail-btn-outline {
    background: #FFFFFF;
    color: #7443B9;
    border: 1px solid #7443B9;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
.location-fail-state .fail-btn-outline:active { background: #F5F0FA; }
/* 帮助卡片 */
.location-fail-state .location-fail-help {
    display: flex;
    flex-direction: row;
    gap: 12px;
    background: #FAF1FB;
    border: 1px solid rgba(205, 195, 212, 0.3);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}
.location-fail-state .location-fail-help .help-icon {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}
.location-fail-state .location-fail-help .help-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.location-fail-state .location-fail-help .help-title {
    font-size: 14px;
    font-weight: 500;
    color: #1E1A21;
    line-height: 20px;
}
.location-fail-state .location-fail-help .help-desc {
    font-size: 12px;
    font-weight: 400;
    color: #4B4452;
    line-height: 18px;
}

/* ====== 底部商家入口（固定底部） ====== */
.merchant-entry {
    position: fixed;
    bottom: 0px;
    padding-bottom: 36px;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    color: #666666;
    line-height: 28px;
    z-index: 20;
    pointer-events: none;
    background: #FFFFFF;
}
.merchant-entry a {
    color: #1A1C1C;
    text-decoration: underline;
    pointer-events: auto;
}

.loading-text {
    text-align: center;
    padding: 40px 0;
    color: #7C7483;
    font-size: 12px;
}

/* ========================================
   store.html - 店铺详情页
   ======================================== */

.store-detail {
    min-height: 100vh;
    background: #FFFFFF;
    padding-bottom: 20px;
}

/* ===== Hero Banner ===== */
.store-banner {
    margin: 12px 15px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
.store-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.store-info-wrapper {
    margin: 12px 15px 0;
    background: #F4F3F3;
    border-radius: 12px;
    overflow: hidden;
}

/* ===== Shop Information Card ===== */
.store-info-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #F9F4FF;
    box-shadow: none;
    margin: 0;
}

/* Shop Header */
.store-info-card .shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #F9F4FF;
}
/* font_2:99: 20px/700, paint_2:001: #1A1C1C */
.store-info-card .shop-name {
    font-size: 20px;
    font-weight: 700;
    color: #1A1C1C;
    line-height: 28px;
    flex: 1;
    word-break: break-all;
}
/* paint_10:3541: #FFFFFF, stroke: paint_10:3568: rgba(116,67,185,0.7) 1px */
/* effect_10:3562: box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2) */
.store-info-card .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid rgba(116, 67, 185, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}

/* Address Section */
.store-info-card .address-section {
    display: flex;
    align-items: flex-start;
    padding: 16px;
}
.store-info-card .address-section .addr-icon {
    flex-shrink: 0;
    margin-right: 16px;
    margin-top: 2px;
}
.store-info-card .address-section .addr-content {
    flex: 1;
}
/* font_2:109: 17px/400, paint_2:001: #1A1C1C */
.store-info-card .address-section .addr-text {
    font-size: 17px;
    font-weight: 400;
    color: #1A1C1C;
    line-height: 27px;
}
/* font_16:0338: 12px/500, paint_10:3237: #7443B9 */
.store-info-card .address-section .addr-distance {
    font-size: 12px;
    font-weight: 500;
    color: #7443B9;
    line-height: 17px;
    margin-top: 3px;
}

/* Phone Section */
/* stroke: paint_2:4772: #F9F4FF 1px top */
.store-info-card .phone-section {
    display: flex;
    align-items: center;
    padding: 16px;
    border-top: 1px solid #F9F4FF;
}
.store-info-card .phone-section .phone-icon {
    flex-shrink: 0;
    margin-right: 16px;
}
.store-info-card .phone-section .phone-number {
    flex: 1;
    font-size: 17px;
    font-weight: 400;
    color: #1A1C1C;
    line-height: 28px;
}
/* paint_2:6472: #7443B9, effect_10:781: box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2) */
.store-info-card .phone-section .call-btn {
    background: #7443B9;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}
.store-info-card .phone-section .call-btn:active {
    background: #5e3696;
}

/* ===== Features Grid ===== */
/* paint_10:3493: #F4F3F3 */
.features-grid {
    background: transparent;
    border-radius: 0;
    padding: 20px 16px 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.features-grid .feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
}
.features-grid .feature-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* font_10:3502: 10px/400, paint_10:2841: #7C7483 */
.features-grid .feature-text {
    font-size: 10px;
    font-weight: 400;
    color: #7C7483;
    line-height: 12px;
}

/* ===== Map Section ===== */
.store-map-wrapper {
    margin: 12px 15px 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
    z-index: 0;
}
.store-map-wrapper .map-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

/* ========================================
   login/index.html - 登录页
   ======================================== */

/* paint_2:48: #FFFFFF */
.login-page {
    min-height: 100vh;
    background: #FFFFFF;
}
.login-content {
    width: 100%;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== 顶部标题区域 ===== */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 35px;
    margin-bottom: 48px;
}
.login-header img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}
/* font_10:4151: 30px/700, paint_10:2662: #1A1C1C */
.login-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1A1C1C;
    margin: 0 0 5px;
    text-align: center;
}
/* font_10:1645: 14px/500, paint_10:2841: #7C7483 */
.login-header p {
    font-size: 14px;
    font-weight: 500;
    color: #7C7483;
    margin: 0;
    text-align: center;
}

/* ===== 表单区域 ===== */
.login-form {
    width: 100%;
    max-width: 345px;
}

/* 输入组 */
.form-group {
    margin-bottom: 16px;
}
/* font_10:0618: 16px/500, paint_10:2662: #1A1C1C */
.form-group .form-label {
    font-size: 16px;
    font-weight: 500;
    color: #1A1C1C;
    line-height: 24px;
    margin-bottom: 5px;
    padding-left: 8px;
}
/* paint_10:0638: #FFFFFF, stroke: paint_10:2464: #EEEEEE 1px inside */
.form-group .form-input-wrap {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    height: 56px;
    padding: 0 16px;
}
/* font_10:0658: 16px/400, paint_10:0660: rgba(75,68,82,0.4) */
.form-group .form-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 400;
    color: #1A1C1C;
    outline: none;
    height: 100%;
}
.form-group .form-input-wrap input::placeholder {
    color: rgba(75, 68, 82, 0.4);
}

/* 密码行 - 含忘记密码 */
.password-input-wrap {
    padding: 0 8px 0 16px !important;
}
.password-input-wrap input {
    flex: 1;
}
/* font_16:0889: 16px/400, paint_16:0842: #7C7483 */
.forgot-link {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 400;
    color: #7C7483;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 8px;
}

/* ===== 登录按钮 ===== */
/* paint_2:6472: #7443B9, effect_10:781: box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2) */
.login-btn {
    margin-top: 24px;
}
.login-btn button {
    width: 100%;
    height: 48px;
    background: #7443B9;
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}
.login-btn button:active {
    background: #5e3696;
}

/* ===== 协议区域 ===== */
/* font_10:2072: 12px/400, paint_10:0668: #4B4452 */
.agreement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}
.agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #969799;
    background: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}
.agreement input[type="checkbox"]:checked {
    background: #7443B9;
    border-color: #7443B9;
}
.agreement input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px; left: 4px;
    width: 5px;
    height: 8px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.agreement-text {
    font-size: 12px;
    color: #4B4452;
    line-height: 26px;
}
/* font_10:2086: 12px/500, paint_2:6472: #7443B9 */
.agreement-text a {
    color: #7443B9;
    text-decoration: none;
    font-weight: 500;
}

/* ===== 忘记密码弹窗 ===== */
.forgot-popup {
    padding-bottom: 32px;
}
.forgot-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 46px;
    border-bottom: 1px solid #EBEDF0;
}
.forgot-title {
    font-size: 16px;
    font-weight: 400;
    color: #323233;
}
.forgot-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #C8C9CC;
    cursor: pointer;
}
.forgot-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 0;
}
.forgot-question {
    font-size: 18px;
    font-weight: 700;
    color: #1E1A21;
    line-height: 30px;
    margin: 0 0 4px;
    text-align: center;
}
.forgot-hint {
    font-size: 14px;
    font-weight: 400;
    color: #969799;
    line-height: 22px;
    margin: 0;
    text-align: center;
}
.forgot-qrcode {
    margin: 20px auto 24px;
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #EEEEEE;
}
.forgot-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.forgot-contact-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 330px;
}
.forgot-contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    padding: 0 10px;
}
.forgot-contact-info {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
}
.forgot-contact-icon {
    font-size: 16px;
    color: #7C7483;
}
.forgot-contact-label {
    font-size: 14px;
    font-weight: 400;
    color: #1E1A21;
    line-height: 19.6px;
}
.forgot-contact-line {
    width: 1px;
    align-self: stretch;
    background: #EEEEEE;
    flex-shrink: 0;
}
.forgot-action-btn {
    width: 100%;
    max-width: 120px;
    height: 36px;
    border-radius: 18px;
    border: none;
    background: #7443B9;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0 16px;
}
.forgot-action-btn:active {
    opacity: 0.75;
}
