/* 油卡服务页面样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
}

.service-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 0px;
    margin-bottom: 20px;
    overflow: hidden;
}

.service-content {
    padding: 20px;
}

.service-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.service-title i {
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #E53935;
    outline: none;
}

.operator-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.operator-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.operator-option:hover {
    border-color: #E53935;
    background-color: #fff5f5;
}

.operator-option.active {
    border-color: #E53935;
    background-color: #fff5f5;
}

.operator-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.operator-name {
    font-size: 14px;
    color: #333;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.amount-option {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-option:hover {
    border-color: #E53935;
    background-color: #fff5f5;
}

.amount-option.active {
    border-color: #E53935;
    background-color: #fff5f5;
}

.amount-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.amount-label {
    font-size: 12px;
    color: #666;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.modal-header i {
    font-size: 20px;
    color: #E53935;
}

.modal-header span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.modal-body {

}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
}

.modal-btn-full {
    width: 100%;
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
}

.modal-loading {
    text-align: center;
    padding: 20px;
}

.modal-loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(229, 57, 53, 0.3);
    border-radius: 50%;
    border-top-color: #E53935;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.modal-loading-text {
    color: #666;
    font-size: 14px;
}

/* 地址列表样式 */
.address-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0;
}

.address-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.address-item:hover {
    background-color: #f5f5f5;
}

.address-item.active {
    background-color: #fff5f5;
    border-left: 3px solid #E53935;
}

.address-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.address-phone {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.address-detail {
    color: #666;
    font-size: 14px;
}

/* 成功弹窗样式 */
.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 48px;
    color: #4CAF50;
}

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

.success-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

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

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .service-content {
        padding: 15px;
    }
    
    .operator-options,
    .amount-options {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
    }
}

/* 油卡页面分栏字体和下划线放大 30% */
.service-tab {
    font-size: 16px;
}
.service-tab.active::after {
    left: 17.5%;
    width: 65%;
}

/* 默认地址高亮样式 */
.address-item.default {
    background: #fffbe6;
    border-left: 3px solid #FF9800;
}
.address-default-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #FF9800;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    vertical-align: middle;
}

.address-modal-header {
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px 12px 0 0;
}
.address-modal-header i {
    color: #fff;
    font-size: 20px;
    margin-right: 10px;
}
.address-modal-header span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.address-refresh-btn {
    color: #fff;
    font-size: 18px;
    margin-right: 0;
    transition: transform 0.3s;
}
.address-refresh-btn:hover {
    color: #FFEB3B;
    transform: rotate(180deg);
}

.buy-notice-header {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px 12px 0 0;
}
.buy-notice-header i {
    color: #fff;
    font-size: 20px;
    margin-right: 10px;
}
.buy-notice-header span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}
.buy-notice-btn {
    background: linear-gradient(135deg, #FF9800, #FF5722) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    width: 100%;
    padding: 12px 0;
    margin: 0 auto;
    display: block;
}
.buy-notice-btn:hover {
    background: linear-gradient(135deg, #FFA726, #FF7043) !important;
}

#oil-address-display {
    white-space: normal !important;
    word-break: break-all;
    overflow: visible;
    min-height: 44px;
    line-height: 1.6;
    padding: 6px 0;
}

/* 针对油卡页面的二次确认弹窗样式覆盖 */
#confirm-modal .modal-header {
    background: #E53935; /* 保持红色背景 */
}

#confirm-modal .modal-header span {
    color: white; /* 头部文字改为白色 */
}

#confirm-modal .modal-header i {
    color: white; /* 头部图标改为白色 */
}

#confirm-modal .modal-info-row {
    border-bottom: none; /* 移除内容区的横线 */
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 16px; /* 增大字体 */
}

/* 地址显示优化 */
#oil-address-display.address-selected {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    white-space: normal;
    padding: 8px 15px;
    height: auto;
    min-height: 60px;
}

.address-line-1 {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.address-line-2 {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
} 