/* 服务页面公共样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
    padding-top: 0; /* 移除顶部内边距 */
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
}

.nav-container {
    margin-bottom: 20px;
}

/* 服务导航栏样式 */
.service-tabs {
    display: flex;
    background-color: white;
    border-bottom: 1px solid #eee;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%;
}

.service-tab {
    padding: 15px 0;
    font-size: 16px;
    color: #666;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    min-width: 0;
}

.service-tab:hover {
    color: #E53935;
    background-color: rgba(229, 57, 53, 0.05);
}

.service-tab.active {
    color: #E53935;
    font-weight: 600;
}

.service-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%; 
    width: 50%;
    height: 3px;
    background-color: #E53935;
    border-radius: 3px 3px 0 0;
    transform-origin: center;
    animation: navIndicatorIn 0.3s ease-out forwards;
}

@keyframes navIndicatorIn {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.service-panel {
    display: none;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-panel.active {
    display: block;
}

.service-content {
    padding: 20px;
}

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

.service-title i {
    margin-right: 10px;
    color: #E53935;
    font-size: 22px;
}

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

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

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background-color: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: #E53935;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
    outline: none;
    background-color: #fff;
}

.form-input::placeholder {
    color: #aaa;
}

.submit-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #D32F2F, #FF1744);
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    width: 100%;
    max-width: 360px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s;
}

.modal-header {
    padding: 15px;
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.modal-header i {
    margin-right: 10px;
    font-size: 18px;
    color: white;
}

.modal-body {
    padding: 10px 20px;
}

.modal-footer {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.modal-btn {
    flex: 1;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn-cancel {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.modal-btn-cancel:hover {
    background-color: #e0e0e0;
}

.modal-btn-confirm {
    background: #E53935;
    color: white;
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.modal-btn-full {
    flex: 1;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-info-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

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

.modal-info-label {
    flex-basis: 90px;
    flex-shrink: 0;
    color: #888;
    margin-right: 10px;
}

.modal-info-value {
    flex-grow: 1;
    color: #333;
    text-align: left;
    word-break: break-all;
}

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

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

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

.modal-success-icon {
    text-align: center;
    margin-bottom: 20px;
}

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

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

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 地址列表样式 */
.list-item {
    padding: 15px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
    margin-bottom: 5px;
}

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

.list-item.active {
    background-color: rgba(229, 57, 53, 0.1);
    border-left: 3px solid #E53935;
}

.scrollable-list {
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.scrollable-list::-webkit-scrollbar {
    width: 4px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 2px;
}

/* 服务页面通用样式 */
body {
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}

.container {
    padding: 15px;
    padding-bottom: 60px;
}

.page-header {
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
}

/* 服务面板样式 */
.service-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 15px;
    overflow: hidden;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.service-panel.active {
    display: block;
}

.service-content {
    padding: 20px;
}

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

.service-title i {
    margin-right: 10px;
    font-size: 20px;
}

/* 表单元素 */
.region-selector {
    position: relative;
}

.region-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

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

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

.amount-option:hover {
    border-color: #E53935;
    transform: translateY(-2px);
}

.amount-option.active {
    border-color: #E53935;
    background-color: rgba(229, 57, 53, 0.05);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
}

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

.amount-desc {
    font-size: 12px;
    color: #E53935;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background-color: white;
    width: 85%;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modal-header i {
    margin-right: 10px;
    color: white;
}

.modal-body {
    padding: 10px 20px;
}

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

.modal-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

.modal-btn-cancel:hover {
    background-color: #e5e5e5;
}

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

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

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

/* 加载中 */
.modal-loading {
    text-align: center;
    padding: 20px 0;
}

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

.modal-loading-text {
    color: #666;
}

/* 成功页面 */
.success-icon {
    text-align: center;
    font-size: 60px;
    color: #52c41a;
    margin: 20px 0;
}

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

.success-info {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    flex: 0 0 80px;
    color: #666;
}

.info-value {
    flex: 1;
    color: #333;
}

/* 地区选择弹窗 */
.region-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-end;
}

.region-modal-container {
    background-color: white;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.region-modal-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

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

.region-modal-close {
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.region-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.location-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    cursor: pointer;
}

.location-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(229, 57, 53, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #E53935;
    font-size: 18px;
}

.location-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.location-desc {
    font-size: 12px;
    color: #999;
}

.province-item, .city-item {
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.province-item:not(:last-child), .city-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.province-item:hover, .city-item:hover {
    color: #E53935;
}

.province-item.active, .city-item.active {
    color: #E53935;
    font-weight: 500;
}

.scrollable-list {
    height: 200px;
    overflow-y: auto;
}

/* Toast提示样式 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.toast {
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    margin: 10px 0;
    max-width: 80%;
    text-align: center;
    animation: toastIn 0.3s ease-out;
}

.toast.success {
    background-color: rgba(82, 196, 26, 0.9);
}

.toast.warning {
    background-color: rgba(250, 173, 20, 0.9);
}

.toast.error {
    background-color: rgba(229, 57, 53, 0.9);
}

.toast-icon {
    margin-right: 8px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

@keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .modal-container {
        width: 90%;
    }
    
    .modal-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
} 