* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --bg-gray: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-gray);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* 页面容器 */
.page-container {
    max-width: 430px;
    margin: 0 auto;
    background: var(--bg-gray);
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
}

/* 顶部导航 */
.top-bar {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.location-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23667eea"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /></svg>') no-repeat center;
    background-size: contain;
}

.location-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.weather-icon {
    font-size: 20px;
}

.language-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-gray);
    border-radius: 40px;
    padding: 4px;
    width: 120px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-option {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* 服务分类 */
.category-section {
    padding: 16px;
    background: var(--bg-white);
    margin-bottom: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-more {
    font-size: 12px;
    color: var(--text-light);
}

.category-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 24px;
}

.category-name {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 服务卡片滑动区 */
.service-slider-section {
    padding: 16px;
    background: var(--bg-white);
    margin-bottom: 12px;
}

.service-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 12px;
    scrollbar-width: none;
}

.service-slider::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.service-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.service-card-price {
    font-size: 24px;
    font-weight: bold;
}

.service-card-unit {
    font-size: 12px;
    font-weight: normal;
}

/* 表单区域 */
.form-section {
    background: var(--bg-white);
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.form-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

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

.form-label {
    width: 80px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.form-value-select {
    color: var(--text-primary);
}

.form-value-placeholder {
    color: var(--text-light);
}

.arrow-right {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(-45deg);
}

/* 目的地开关 */
.dest-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.dest-toggle-label {
    font-size: 14px;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.dest-address {
    padding: 16px;
    display: none;
}

.dest-address.show {
    display: block;
}

/* 按钮区域 */
.action-buttons {
    padding: 16px;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 70px;
    background: transparent;
}

.btn-customer-service {
    flex: 1;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-customer-service:active {
    background: var(--bg-gray);
}

.btn-next {
    flex: 2;
    background: var(--primary-color);
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-next:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

/* 最新动态 */
.news-section {
    background: var(--bg-white);
    margin-bottom: 12px;
    padding: 16px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
}

.news-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-time {
    font-size: 11px;
    color: var(--text-light);
}

/* 评价滚动区域 */
.review-section {
    background: var(--bg-white);
    padding: 16px;
}

.review-scroll {
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 12px;
    animation: slideUp 0.5s ease;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.review-info {
    flex: 1;
}

.review-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.review-stars {
    color: var(--secondary-color);
    font-size: 12px;
}

.review-content {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.review-service {
    font-size: 11px;
    color: var(--text-light);
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--bg-white);
    display: flex;
    justify-content: space-around;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    color: var(--text-light);
}

.nav-item.active {
    color: var(--primary-color);
}

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

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 11px;
}

/* 日期选择器弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 340px;
    overflow: hidden;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 16px;
}

.date-picker {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.modal-footer button {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
}

.btn-modal-cancel {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.btn-modal-confirm {
    background: var(--primary-color);
    color: white;
}

/* 地址选择弹窗 */
.address-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.address-item:active {
    background: var(--bg-gray);
}

.address-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.address-detail {
    font-size: 12px;
    color: var(--text-light);
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 2000;
    display: none;
    white-space: nowrap;
}

.toast.show {
    display: block;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}