/* ========== 城市子页面样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    background: #F2F2F6;
    color: #333;
    padding: 16px;
    padding-bottom: 80px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 关注栏（与首页保持一致） ========== */
.follow-bar {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s;
}

.follow-bar:active {
    transform: scale(0.98);
}

.follow-bar-text {
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.follow-bar-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

.follow-bar-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

/* ========== 进群栏（与首页保持一致） ========== */
.group-bar {
    background: #FFF;
    border: 1px solid #E8ECF1;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.group-bar:active {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.group-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-bar-icon {
    width: 36px;
    height: 36px;
    background: #07C160;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.group-bar-text {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
}

.group-bar-text small {
    display: block;
    font-size: 12px;
    color: #8C8CA1;
    font-weight: 400;
}

.group-bar-arrow {
    color: #C4C4D4;
    font-size: 14px;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* ========== 标题 ========== */
.page-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
}

.page-subtitle {
    text-align: center;
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 18px;
}

/* ========== 表单 ========== */
.form-card {
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.form-row {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid #E5E5EA;
}

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

.form-row-top {
    align-items: flex-start;
}

.form-label {
    width: 80px;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.form-input-bg {
    background: #F9F9FB;
    border-radius: 8px;
    padding: 10px;
}

.form-textarea {
    flex: 1;
    height: 108px;
    resize: none;
    border: none;
    font-size: 14px;
    background: #F9F9FB;
    border-radius: 8px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    color: #333;
    outline: none;
    line-height: 1.6;
}

.select-wrap {
    flex: 1;
    position: relative;
}

.form-select {
    width: 100%;
    border: none;
    font-size: 14px;
    background: transparent;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    padding-right: 20px;
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #C7C7CC;
    font-size: 11px;
    pointer-events: none;
}

/* ========== 提交按钮 ========== */
.submit-btn {
    width: 100%;
    background: var(--theme, #FF3B30);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    margin-bottom: 18px;
}

.submit-btn:active {
    opacity: 0.85;
    transform: scale(0.99);
}

/* ========== 公众号提示 ========== */
.gzh-prompt {
    background: #FFF5F5;
    border: 1px dashed var(--theme, #FF3B30);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    color: #333;
    margin-bottom: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gzh-prompt:active {
    transform: scale(0.98);
}

.gzh-prompt span {
    color: var(--theme, #FF3B30);
    font-weight: bold;
    margin-left: 4px;
}

/* ========== 查询结果 ========== */
.summary-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.total-card {
    background: linear-gradient(135deg, var(--theme, #FF3B30), color-mix(in srgb, var(--theme, #FF3B30) 70%, #FFF));
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.total-value {
    font-size: 38px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.ticket-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    margin-bottom: 13px;
    overflow: hidden;
}

.ticket-header {
    padding: 13px 16px;
    border-bottom: 1px dashed #E5E5EA;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
}

.ticket-title {
    font-weight: bold;
    color: var(--theme, #FF3B30);
    font-size: 14px;
}

.ticket-body {
    padding: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: #8E8E93;
}

.info-val {
    font-size: 14px;
    font-weight: 500;
}

.invoice-box {
    background: #F9F9FB;
    border-radius: 7px;
    padding: 9px 13px;
    border: 1px solid #F0F0F5;
    margin-bottom: 12px;
}

.invoice-num {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: bold;
    color: var(--theme, #FF3B30);
    word-break: break-all;
    margin-top: 2px;
}

.prize-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #E5E5EA;
}

.prize-amt {
    font-size: 24px;
    font-weight: 800;
    color: #FF3B30;
}

/* ========== 空结果 ========== */
/* ========== 结果提示关注 ========== */
.result-gzh-prompt {
    background: #FFF5F5;
    border: 1px dashed var(--theme, #FF3B30);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.result-gzh-prompt:active {
    transform: scale(0.98);
}

.result-gzh-prompt span {
    color: var(--theme, #FF3B30);
    font-weight: bold;
}

/* ========== 平台标签 ========== */
.plat-tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.plat-alipay {
    background: #E5F3FF;
    color: #1677FF;
}

.plat-unionpay {
    background: #FFEAEA;
    color: #E63946;
}

.result-empty {
    text-align: center;
    color: #8E8E93;
    padding: 36px 0;
    font-size: 15px;
}

.result-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.result-empty-sub {
    font-size: 13px;
    color: #C7C7CC;
    margin-top: 6px;
}

/* ========== 温馨提示 ========== */
/* ========== 返回导航 ========== */
.back-home-btn {
    position: fixed;
    bottom: 38px;
    right: 16px;
    background: #FFF;
    color: #333;
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 999;
    border: 1px solid #E5E5EA;
    transition: transform 0.2s;
}

.back-home-btn:active {
    transform: scale(0.95);
}
