/* ==================== 页面布局 ==================== */
.page-container {
    height: 100vh;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* App 根布局 */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
}

.app-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.app-no-nav {
    height: auto;
    overflow: auto;
}
.app-no-nav .app-content {
    flex: none;
    overflow: visible;
}

.footer-action {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 8px;
    z-index: 100;
    flex-shrink: 0;
}

/* ==================== 提示卡片 ==================== */
.tip-card {
    display: flex;
    align-items: flex-start;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
}

.tip-text {
    font-size: 13px;
    color: #1890ff;
    line-height: 1.5;
    flex: 1;
}

/* ==================== 卡片组 ==================== */
.card-group {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-group:last-child {
    margin-bottom: 0;
}

/* ==================== 必填标记 ==================== */
.required-mark {
    color: #ee0a24;
    margin-left: 2px;
}

/* ==================== 上传组件 ==================== */
.upload-tip {
    color: #999;
    font-size: 12px;
}

/* ==================== 状态卡片 ==================== */
.status-card {
    background: linear-gradient(135deg, #1989fa 0%, #3f7efc 100%);
    padding: 20px;
    color: white;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-info {
    flex: 1;
}

.status-title {
    font-size: 20px;
    font-weight: 600;
}

.status-desc {
    font-size: 14px;
    opacity: 0.9;
}

.status-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==================== 加载状态 ==================== */
.loading-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* ==================== H5 shared UI primitives ==================== */
.h5-page {
    min-height: 100vh;
    background: #f8f9fa;
}

.h5-section {
    padding: 12px;
}

.h5-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.h5-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h5-section .h5-card-list {
    padding: 0;
}

/* ==================== 申请列表卡片 (app-card) ==================== */
.app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.app-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.app-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #323233;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.app-card-body {
    padding: 4px 16px 0;
}

.app-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.app-card-label {
    color: #969799;
}

.app-card-value {
    color: #323233;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

.app-card-footer .card-btn {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    color: #323233;
}

.app-card-footer .card-btn:active {
    background-color: #f5f5f5;
}

.app-card-footer .card-btn + .card-btn {
    border-left: 1px solid #f0f0f0;
}

.app-card-footer .card-btn.is-disabled {
    color: #c8c9cc;
    pointer-events: none;
}

.app-card-footer .card-btn.danger-color {
    color: var(--van-danger-color, #ee0a24);
}

.app-card-footer .card-btn.primary-color {
    color: var(--van-primary-color, #1989fa);
}

.app-card-footer .card-btn.success-color {
    color: var(--van-success-color, #07c160);
}

.app-card-footer .card-btn.warning-color {
    color: var(--van-warning-color, #ff976a);
}

.h5-card {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
}

.h5-clickable-card {
    cursor: pointer;
}

.h5-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h5-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.h5-card-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 12px;
}

.h5-card-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #646566;
}

.h5-action-row {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.content-with-tabbar {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ==================== 青年卡模块 ==================== */
.youth-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.youth-section-title .title-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.youth-section-title .title-sub {
    font-size: 12px;
    color: #999;
}

.youth-section-title .title-bar {
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, #1989fa, #3f7efc);
    border-radius: 2px;
}

.youth-module-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.youth-module-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.15s;
}

.youth-module-card:active {
    transform: scale(0.97);
}

.youth-module-card .module-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.youth-module-card .module-icon.icon-blue {
    background: linear-gradient(135deg, #1989fa, #3f7efc);
}

.youth-module-card .module-icon.icon-orange {
    background: linear-gradient(135deg, #ff976a, #ff6034);
}

.youth-module-card .module-icon.icon-green {
    background: linear-gradient(135deg, #07c160, #06ad56);
}

.youth-module-card .module-icon.icon-pink {
    background: linear-gradient(135deg, #ff6034, #ee0a24);
}

.youth-module-card .module-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.youth-module-card .module-desc {
    font-size: 11px;
    color: #999;
}

.youth-coupon-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.youth-coupon-card .coupon-body {
    display: flex;
    align-items: stretch;
}

.youth-coupon-card .coupon-left {
    flex: 1;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.youth-coupon-card .coupon-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1989fa, #3f7efc);
    color: #fff;
    min-width: 80px;
    text-align: center;
    cursor: pointer;
}

.youth-coupon-card .coupon-right:active {
    opacity: 0.85;
}

.youth-coupon-card .coupon-right.claimed {
    background: #e5e5e5;
    color: #999;
}

.youth-coupon-card .coupon-bottom-actions {
    display: flex;
    gap: 0;
    padding: 0;
}

.youth-coupon-card .coupon-bottom-actions .van-button {
    flex: 1;
    border-radius: 0;
    border-top: 1px solid #f0f0f0;
    border-color: #f0f0f0;
    height: 44px;
    font-size: 14px;
    color: #666;
}

.youth-coupon-card .coupon-bottom-actions .van-button.van-button--primary {
    color: #fff;
}

.youth-coupon-card .coupon-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.youth-coupon-card .coupon-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.youth-coupon-card .coupon-meta {
    font-size: 11px;
    color: #bbb;
}

.youth-merchant-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.youth-merchant-card .merchant-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.youth-merchant-card .merchant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f3ff, #d4e8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1989fa;
    font-size: 20px;
    flex-shrink: 0;
}

.youth-merchant-card .merchant-info {
    flex: 1;
    min-width: 0;
}

.youth-merchant-card .merchant-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.youth-merchant-card .merchant-addr {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.youth-spot-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.youth-spot-card .spot-bottom-actions {
    display: flex;
    gap: 0;
    padding: 0;
}

.youth-spot-card .spot-bottom-actions .van-button {
    flex: 1;
    border-radius: 0;
    border-top: 1px solid #f0f0f0;
    border-color: #f0f0f0;
    height: 44px;
    font-size: 14px;
    color: #666;
}

.youth-spot-card .spot-bottom-actions .van-button.van-button--primary {
    color: #fff;
}

.youth-activity-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.youth-activity-card .activity-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.youth-activity-card .activity-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.youth-activity-card .activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.youth-activity-card .item-bottom-actions {
    display: flex;
    gap: 0;
    padding: 0;
}

.youth-activity-card .item-bottom-actions .van-button {
    flex: 1;
    border-radius: 0;
    border-top: 1px solid #f0f0f0;
    border-color: #f0f0f0;
    height: 44px;
    font-size: 14px;
    color: #666;
}

.youth-activity-card .item-bottom-actions .van-button.van-button--primary {
    color: #fff;
}

.youth-hope-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.youth-hope-card .hope-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.youth-hope-card .hope-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.youth-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f7ff;
    border-radius: 20px;
    font-size: 12px;
    color: #1989fa;
}

.youth-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.youth-status-dot.active {
    background: #07c160;
}

.youth-status-dot.pending {
    background: #ff976a;
}

.youth-status-dot.used {
    background: #c8c9cc;
}

.youth-expired {
    opacity: 0.5;
}

.youth-expired .activity-title,
.youth-expired .merchant-name,
.youth-expired .spot-name,
.youth-expired .coupon-title {
    color: #999;
    text-decoration: line-through;
}

.youth-coupon-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
}

.youth-coupon-type.once {
    background: #fff1f0;
    color: #ee0a24;
}

.youth-coupon-type.recurring {
    background: #f0f7ff;
    color: #1989fa;
}

.youth-coupon-remain {
    font-size: 13px;
    font-weight: 600;
    color: #ee0a24;
}

.youth-coupon-remain.unlimited {
    color: #07c160;
}

.youth-registered-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #f0fff0;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
    font-size: 11px;
    color: #52c41a;
    font-weight: 500;
}

.coupon-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
}

.coupon-action-btn {
    min-width: 60px;
}

.action-links {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.verify-popup-content {
    padding: 20px 16px;
}

.verify-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.verify-info-card {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}

.verify-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.verify-info-row {
    font-size: 13px;
    color: #666;
}

.verify-rule-card {
    background: #fffbe8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.verify-rule-title {
    font-size: 13px;
    font-weight: 500;
    color: #ed6a0c;
    margin-bottom: 6px;
}

.verify-rule-text {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}
