﻿body {
    margin: 0;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
}
.payment-card {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.payment-card.selected.alipay {
    border: 2px solid #1677ff;
    background: rgba(22, 119, 255, 0.1);
}
.payment-card.selected.wechat {
    border: 2px solid #07c160;
    background: rgba(7, 193, 96, 0.1);
}
.payment-icon {
    width: 30px;
    height: 30px;
}
.payment-name {
    flex-grow: 1;
    margin-left: 15px;
}
.check-icon {
    color: #1677ff;
    font-size: 20px;
    display: none;
}
.selected .check-icon {
    display: block;
}
.selected.wechat .check-icon {
    color: #07c160;
}
.pay-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #ff6b6b;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-top: 7px;
    cursor: not-allowed;
    opacity: 0.6;
}
.pay-button.active {
    cursor: pointer;
    opacity: 1;
}
.payment-container {
    display: flex;
    gap: 15px;
    margin-bottom: 1px;
}
.tab-container {
    display: inline-flex;
    padding: 0 5px;
    gap: 10px;
    width: max-content;
}
.tab-item {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.tab-item.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}
.option-list {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: calc(50px * 5);
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}
.option-item {
    padding: 10px;
    height: 28px;
    line-height: 28px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.option-item:hover {
    background-color: #f5f5f5;
}
.option-item.active {
    background-color: #ff6b6b;
    color: white;
}
.item-price {
    color: #ff6b6b;
    font-weight: bold;
}
.intro-text {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 78px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.product-name {
    font-size: 18px;
    font-weight: bold;
}
.product-price {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: bold;
}

.tab-scroll-wrapper {
    position: relative;
    padding-right: 12px; /* 给右边留点空 */
    margin-bottom: 10px;
}

.tab-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}
.tab-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隐藏滚动条 */
}

.tab-container {
    display: inline-flex;
}

.tab-scroll-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    pointer-events: none;
}
  