/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #1890ff;
    text-decoration: none;
}

a:hover {
    color: #40a9ff;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn:hover {
    background: #40a9ff;
    color: #fff;
}

.btn-primary {
    background: #1890ff;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
    color: #1890ff;
}

.nav a {
    margin-left: 20px;
    color: #333;
}

.nav a:hover {
    color: #1890ff;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 24px;
}

.banner .btn {
    background: #fff;
    color: #1890ff;
}

/* Section */
.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

/* Categories */
.categories {
    padding: 60px 0;
    background: #fff;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-item {
    text-align: center;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* Services */
.services {
    padding: 60px 0;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.service-item {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-item .category {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.service-item .desc {
    color: #666;
    margin-bottom: 16px;
}

.service-item .price {
    margin-bottom: 16px;
}

.service-item .price .amount {
    font-size: 24px;
    color: #f5222d;
    font-weight: bold;
}

.service-item .price .unit {
    color: #999;
    font-size: 14px;
}

/* Process */
.process {
    padding: 60px 0;
    background: #fff;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 150px;
}

.step-num {
    width: 50px;
    height: 50px;
    background: #1890ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    color: #666;
    font-size: 14px;
}

/* Page Header */
.page-header {
    background: #1890ff;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 28px;
}

/* Services Page */
.services-page {
    padding: 40px 0;
}

.service-filter {
    margin-bottom: 30px;
    text-align: center;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 8px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #333;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1890ff;
    color: #fff;
}

/* Booking */
.booking-page {
    padding: 40px 0;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
}

.service-detail h2 {
    margin-bottom: 16px;
}

.booking-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.booking-form h3 {
    margin-bottom: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1890ff;
    outline: none;
}

.required {
    color: #f5222d;
}

/* Login/Register */
.login-page,
.register-page {
    padding: 60px 0;
    min-height: calc(100vh - 60px - 200px);
    display: flex;
    align-items: center;
}

.login-box,
.register-box {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.login-box h2,
.register-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

.login-tip,
.register-tip {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* User Center */
.usercenter-page {
    padding: 40px 0;
}

.user-info,
.user-orders {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.user-info h2,
.user-orders h2 {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item .label {
    width: 120px;
    color: #666;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.order-no {
    font-weight: 500;
}

.order-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.status-0 { background: #fff7e6; color: #fa8c16; }
.status-1 { background: #e6f7ff; color: #1890ff; }
.status-2 { background: #f6ffed; color: #52c41a; }
.status-3 { background: #f5f5f5; color: #999; }
.status-4 { background: #fff1f0; color: #f5222d; }
.status-5 { background: #fff1f0; color: #f5222d; }

.order-body {
    padding: 20px;
}

.order-body p {
    margin-bottom: 8px;
}

.order-body .price {
    color: #f5222d;
    font-weight: bold;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.create-time {
    color: #999;
    font-size: 12px;
}

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

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: #f5222d;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

/* Empty */
.empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

/* Footer */
.footer {
    background: #001529;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.65);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header & Navigation */
    .header .container {
        height: 50px;
    }
    
    .logo a {
        font-size: 18px;
    }
    
    /* 显示汉堡菜单按钮 */
    .menu-toggle {
        display: flex;
    }
    
    /* 移动端导航样式 */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        flex-direction: column;
        padding: 70px 20px 20px;
        transition: right 0.3s ease;
        z-index: 105;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    /* 遮罩层 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Banner */
    .banner {
        padding: 40px 0;
    }
    
    .banner h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .banner p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Section Title */
    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    /* Categories */
    .categories {
        padding: 40px 0;
    }
    
    .category-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-item {
        padding: 20px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .category-item h3 {
        font-size: 18px;
    }
    
    /* Services */
    .services {
        padding: 40px 0;
    }
    
    .service-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-item {
        padding: 16px;
    }
    
    .service-item h3 {
        font-size: 16px;
    }
    
    .service-item .price .amount {
        font-size: 20px;
    }
    
    /* Process */
    .process {
        padding: 40px 0;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .step {
        min-width: auto;
        padding: 16px;
    }
    
    .step-num {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step h3 {
        font-size: 15px;
    }
    
    .step p {
        font-size: 13px;
    }
    
    /* Booking */
    .booking-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-detail,
    .booking-form {
        padding: 20px;
    }
    
    /* Page Header */
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    /* Login/Register */
    .login-page,
    .register-page {
        padding: 30px 0;
    }
    
    .login-box,
    .register-box {
        padding: 24px;
        margin: 0 15px;
    }
    
    /* User Center */
    .usercenter-page {
        padding: 20px 0;
    }
    
    .user-info,
    .user-orders {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-item .label {
        width: auto;
        margin-bottom: 4px;
    }
    
    .order-header {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-section h3 {
        font-size: 15px;
    }
    
    /* Services Page */
    .services-page {
        padding: 20px 0;
    }
    
    .filter-btn {
        padding: 6px 14px;
        margin: 4px;
        font-size: 13px;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .btn-block {
        width: 100%;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .banner h1 {
        font-size: 20px;
    }
    
    .banner p {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .category-item,
    .service-item {
        padding: 14px;
    }
}

/* 注册页面勾选框样式 */
.form-checkbox {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.5;
}

.checkbox-label a {
    color: #1890ff;
}

.checkbox-label a:hover {
    text-decoration: underline;
}
