/* 公共样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
}

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

.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);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.service-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.service-tab i {
    display: block;
    font-size: 22px;
    margin-bottom: 5px;
}

.service-tab.active {
    color: #E53935;
    background-color: rgba(229, 57, 53, 0.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: transparent;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

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

.modal-body {
    padding: 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: #f5f5f5;
    color: #666;
    margin-right: 10px;
}

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

.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;
    margin-bottom: 12px;
    font-size: 15px;
}

.modal-info-label {
    width: 85px;
    color: #666;
}

.modal-info-value {
    flex: 1;
    font-weight: 500;
}

.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;
}
