* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

img {
    display: block;
    width: 100%;
}

.page { padding-top: 44px; padding-bottom: 100px; }

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #d41414;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 100;
}

.back-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
}

.back-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-40%, -50%) rotate(45deg);
}

.header .title {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-image {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #fff;
}

.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.banner-left {
    display: flex;
    flex-direction: column;
}

.banner-left .discount-tag {
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 5px;
}

.banner-left .price-main {
    display: flex;
    align-items: baseline;
}

.banner-left .currency {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.banner-left .amount {
    font-size: 48px;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
}

.banner-left .unit {
    font-size: 16px;
    color: #fff;
    margin-left: 4px;
}

.banner-right {
    text-align: right;
}

.banner-right .brew-text {
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 4px;
}

.banner-right .brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.price-bar {
    background: #d41414;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #fff;
}

.price-bar .price-left {
    flex: 1;
}

.price-bar .exchange-price {
    display: flex;
    align-items: baseline;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.price-bar .points {
    color: #ffd700;
}

.price-bar .plus {
    margin: 0 4px;
}

.price-bar .cash {
    color: #fff;
}

.price-bar .exchange-count {
    font-size: 14px;
    opacity: 0.8;
}

.price-bar .price-right {
    font-size: 16px;
    opacity: 0.8;
    text-decoration: line-through;
}

.desc-card {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
}

.desc-card p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 600;
}

.desc-card p:last-of-type {
    margin-bottom: 15px;
}

.desc-card .tags {
    display: flex;
    gap: 10px;
}

.desc-card .tag.chun {
    background: #fff0f0;
    color: #d41414;
    border: 1px solid #ffc0c0;
}

.desc-card .tag.brand {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.desc-card .tag.hot {
    background: #fff0f0;
    color: #d41414;
    border: 1px solid #ffc0c0;
}

.service-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    margin: 10px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    border: 1px solid #ffe5e5;
    box-shadow: 0 2px 8px rgba(212, 20, 20, 0.06);
}

.service-card .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.service-card .service-item:active {
    transform: scale(0.95);
}

.service-card .icon-wrapper {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #d41414 0%, #ff6b6b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(212, 20, 20, 0.2);
}

.service-card .icon-wrapper::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.service-card .check {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.service-card .text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.countdown-card {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
}

.countdown-card .countdown-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.countdown-card .countdown-label {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.countdown-card .highlight {
    color: #d41414;
    font-weight: 700;
    font-size: 16px;
}

.countdown-card .countdown-time {
    display: inline-flex;
    align-items: center;
    background: #d41414;
    color: #fff;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    margin: 4px 0;
}

.countdown-card .time-part {
    font-size: 18px;
    font-family: 'Courier New', monospace;
}

.countdown-card .time-part.ms-part {
    font-size: 14px;
    opacity: 0.9;
}

.countdown-card .time-separator {
    font-size: 18px;
    margin: 0 2px;
}

.countdown-card .ms-separator {
    font-size: 14px;
}

.countdown-card .countdown-tip {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.exchange-list {
    background: #fff;
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.list-header span:first-child span {
    color: #d41414;
    font-weight: 600;
}

.tag-limited {
    background: #d41414;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.scroll-container {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: scroll 15s linear infinite;
}

.scroll-content:hover {
    animation-play-state: paused;
}

.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .info {
    flex: 1;
    padding-right: 10px;
}

.list-item .name {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.list-item .time {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.btn-go {
    background: #d41414;
    color: #fff;
    font-size: 12px;
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.detail-section {
    background: #fff;
    margin: 5px;
    padding: 3px;
    border-radius: 8px;
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.detail-section img {
    width: 100%;
    margin-bottom: 0px;
    border-radius: 1px;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    box-shadow: none;
    z-index: 100;
}

.btn-original {
    flex: 1;
    height: 48px;
    border: 2px solid #d41414;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #d41414;
    background: #fff;
    cursor: pointer;
}

.btn-exchange {
    flex: 1.5;
    height: 48px;
    background: #d41414;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
}

.modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    background: #d41414;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.delivery-tag {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 15px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 20px;
}

.form-item {
    margin-bottom: 15px;
}

.form-item label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-item label.required::after {
    content: '*';
    color: #d41414;
    margin-left: 4px;
}

.form-item input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.form-item input::placeholder {
    color: #999;
}

.package-box {
    padding: 12px;
    border: 1px solid #d41414;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.area-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.area-input:focus {
    border-color: #d41414;
}

.price-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #ffe5e5;
    border-radius: 8px;
    padding: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

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

.price-row .label {
    font-size: 13px;
    color: #666;
}

.price-row .value {
    font-size: 14px;
    color: #333;
}

.price-row.discount-row .value {
    color: #d41414;
}

.price-row.final-row {
    padding-top: 12px;
}

.price-row.final-row .label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.price-row.final-row .value {
    font-size: 18px;
    font-weight: 700;
    color: #d41414;
}

.payment-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #d41414;
    border-radius: 6px;
    font-size: 14px;
    color: #d41414;
    font-weight: 500;
    width: fit-content;
}

.payment-icon {
    width: 20px;
    height: 20px;
    background: #d41414;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.payment-text {
    font-weight: 600;
}

.form-item textarea {
    width: 100%;
    height: 80px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    resize: none;
    font-family: inherit;
}

.form-item textarea:focus {
    border-color: #d41414;
}

.form-item textarea::placeholder {
    color: #999;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
    position: sticky;
    bottom: 0;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background: #d41414;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.area-picker-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
}

.area-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 301;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.picker-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.picker-close {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.picker-body {
    padding: 15px;
}

.picker-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 8px;
}

.picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.picker-item {
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.picker-item:active {
    background: #d41414;
    color: #fff;
}

.picker-back {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #d41414;
    cursor: pointer;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 400;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d41414;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.custom-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.custom-alert-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.custom-alert-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 0 25px;
    min-width: 260px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.custom-alert-message {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 22px;
}

.custom-alert-btn {
    width: 100%;
    height: 42px;
    background: #d41414;
    border: none;
    border-radius: 21px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}
