/* ========================================
   水票购买页面样式
   ======================================== */

/* 水票账户卡片 */
.ticket-account-card {
    margin: 12px;
}

.account-bg {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    color: white;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.account-total strong {
    font-size: 1.4rem;
}

.account-types {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.account-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.type-icon {
    font-size: 1.8rem;
}

.type-name {
    font-size: 0.75rem;
    opacity: 0.9;
}

.type-count {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-view-account {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* 套餐区域 */
.ticket-packages {
    margin: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 1rem;
}

.section-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.package-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.package-header {
    display: flex;
    align-items: center;
    padding: 16px;
    color: white;
    gap: 12px;
}

.package-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.package-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.package-info p {
    font-size: 0.85rem;
    opacity: 0.95;
}

.package-body {
    padding: 16px;
}

.package-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-current {
    font-size: 1.6rem;
    color: var(--error);
    font-weight: bold;
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.package-save {
    background: #fff2f0;
    color: var(--error);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.package-detail {
    margin-bottom: 16px;
}

.package-detail p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.btn-buy-package {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
}

/* 单张购买 */
.single-ticket {
    margin: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px;
}

.single-list {
    margin-top: 12px;
}

.single-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.single-item:last-child {
    border-bottom: none;
}

.single-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.single-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.single-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.single-price {
    font-size: 0.85rem;
    color: var(--error);
    font-weight: 500;
}

.single-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-minus, .btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-plus {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.single-qty {
    font-size: 1rem;
    color: var(--text-primary);
    min-width: 24px;
    text-align: center;
}

/* 使用说明 */
.ticket-notice {
    margin: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 100px;
}

.ticket-notice h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.ticket-notice ul {
    list-style: none;
    padding-left: 0;
}

.ticket-notice li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 16px;
    position: relative;
}

.ticket-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 底部结算 */
.bottom-bar {
    position: fixed;
    bottom: calc(60px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 99;
}

.bar-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bar-price {
    font-size: 1.5rem;
    color: var(--error);
    font-weight: bold;
}

.btn-submit {
    padding: 12px 40px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
}
