/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF9F1C;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e68a00;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CB9E7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #3ca7d1;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

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

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 城市选择样式 */
.city-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.city-btn {
    padding: 8px 16px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.city-btn:hover, .city-btn.active {
    background-color: #FF9F1C;
    color: white;
    border-color: #FF9F1C;
}

/* 喂养师卡片样式 */
.sitter-card {
    transition: all 0.3s;
}

.sitter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.sitter-card.selected {
    border-color: #FF9F1C;
    background-color: #fff8ed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .city-selector {
        justify-content: center;
    }
    
    .sitter-card {
        margin-bottom: 15px;
    }
}

/* 步骤指示器样式 */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.step.active .step-number {
    background-color: #FF9F1C;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #ddd;
    margin: 0 10px;
    margin-top: 15px;
}

.step.active .step-line {
    background-color: #FF9F1C;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FF9F1C;
}

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    padding: 5px 10px;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: #FF9F1C;
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #FF9F1C;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FF9F1C;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

/* 错误消息样式 */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF9F1C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 图片样式 */
.img-responsive {
    width: 100%;
    height: auto;
}

.img-circle {
    border-radius: 50%;
}

/* 文本样式 */
.text-center {
    text-align: center;
}

.text-primary {
    color: #FF9F1C;
}

.text-secondary {
    color: #4CB9E7;
}

.text-success {
    color: #4CAF50;
}

.text-danger {
    color: #e74c3c;
}

/* 间距样式 */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

/* 隐藏类 */
.hidden {
    display: none;
}

/* 显示类 */
.show {
    display: block;
}

/* 模态框样式 */
.modal {
    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.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    transform: translateY(-50px);
    transition: transform 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

/* 评分星星样式 */
.star-rating {
    color: #FFD700;
}

.star-rating .far {
    color: #ddd;
}

/* 服务卡片样式 */
.service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: #FF9F1C;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-card.selected {
    border-color: #FF9F1C;
    background-color: #fff8ed;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-card-title {
    font-size: 18px;
    font-weight: bold;
}

.service-card-price {
    font-size: 20px;
    font-weight: bold;
    color: #FF9F1C;
}

.service-card-features {
    margin-bottom: 15px;
}

.service-card-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.service-card-feature i {
    color: #4CAF50;
    margin-right: 10px;
}

.service-card-select {
    text-align: center;
}

.service-card-select input[type="radio"] {
    display: none;
}

.service-card-select label {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-card-select input[type="radio"]:checked + label {
    background-color: #FF9F1C;
    color: white;
    border-color: #FF9F1C;
}

/* 宠物信息表单样式 */
.pet-info-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.pet-info-form .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .pet-info-form .form-row {
        flex-direction: column;
    }
}

/* 确认订单样式 */
.order-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-summary-section {
    margin-bottom: 20px;
}

.order-summary-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-summary-label {
    color: #666;
}

.order-summary-value {
    font-weight: 500;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.order-summary-total-label {
    font-size: 18px;
    font-weight: bold;
}

.order-summary-total-value {
    font-size: 24px;
    font-weight: bold;
    color: #FF9F1C;
}

/* 支付方式样式 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    min-width: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #FF9F1C;
}

.payment-method.selected {
    border-color: #FF9F1C;
    background-color: #fff8ed;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.payment-method-name {
    font-size: 16px;
    font-weight: 500;
}

/* 条款同意样式 */
.terms-agreement {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.terms-agreement input[type="checkbox"] {
    margin-right: 10px;
}

.terms-agreement a {
    color: #FF9F1C;
    text-decoration: underline;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.button-group .btn {
    padding: 12px 30px;
    font-size: 16px;
}

.button-group .btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.button-group .btn-secondary:hover {
    background-color: #e5e5e5;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

/* 通知消息样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    border-left: 4px solid #FF9F1C;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4CAF50;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-warning {
    border-left-color: #FF9F1C;
}

.notification-info {
    border-left-color: #2196F3;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: bold;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.notification-close:hover {
    color: #333;
}

.notification-body {
    font-size: 14px;
    color: #666;
}

/* 加载状态样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

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

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #cc7a00;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background-color: #2a8bb9;
        border: 2px solid #000;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* 打印样式 */
@media print {
    .navbar, .footer, .button-group, .modal {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}