/* 移动端H5优先设计 - 蓝色主题 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
}

/* 头部样式 - 移动端优化 */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #4a90e2;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 20px;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    display: block;
    padding: 8px 0;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #4a90e2;
    padding: 5px;
}

/* 英雄区域 - 移动端优化 */
.hero {
    text-align: center;
    padding: 50px 15px 40px;
    color: white;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.5;
}

/* 主要内容区域 - 移动端优化 */
.main-content {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 25px 20px;
    margin: -30px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 200px);
}

.main-content h2 {
    text-align: center;
    color: #4a90e2;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
}

/* 预约区域 - 移动端优化 */
.booking-section {
    width: 100%;
}

.intro-content {
    margin-bottom: 30px;
}

.intro-text {
    margin-bottom: 25px;
}

.intro-text h3 {
    color: #4a90e2;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.intro-text p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 15px;
}

.service-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.service-list p {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-list ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.service-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 14px;
}

.booking-tip {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 8px;
    color: #1976d2;
    font-size: 14px;
    margin-top: 20px;
}

.intro-images {
    margin-top: 20px;
    text-align: center;
}

.intro-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.qr-code-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf4 100%);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.qr-code-section h3 {
    color: #4a90e2;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 10px;
    object-fit: contain;
}

.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    border: 2px dashed #4a90e2;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.qr-code-placeholder p {
    color: #999;
    font-size: 13px;
    text-align: center;
    margin: 5px 0;
}

.qr-hint {
    font-size: 11px !important;
    color: #bbb !important;
}

.qr-tip {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

/* 服务特色 - 移动端优化 */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf4 100%);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: #4a90e2;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 页脚 - 移动端优化 */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 15px;
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

footer p {
    margin: 8px 0;
}

.icp-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #999;
}

.icp-info a {
    color: #4a90e2;
    text-decoration: none;
}

.icp-info a:hover {
    text-decoration: underline;
}

/* 成功提示 */
.success-message {
    display: none;
    background: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平板设备适配 */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 20px;
    }

    .hero {
        padding: 60px 20px 50px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .main-content {
        border-radius: 20px;
        padding: 35px 30px;
        margin: -40px auto 40px;
        max-width: 600px;
    }

    .main-content h2 {
        font-size: 28px;
    }

    .intro-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .intro-text {
        margin-bottom: 0;
    }

    .intro-text h3 {
        font-size: 22px;
    }

    .intro-images {
        margin-top: 0;
    }

    .intro-image {
        max-width: 100%;
    }

    .qr-code-section {
        padding: 30px;
    }

    .qr-code-section h3 {
        font-size: 22px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .nav-links li {
        padding: 0;
        border-bottom: none;
    }

    .nav-links a {
        padding: 0;
    }

    .menu-toggle {
        display: none;
    }

    .logo {
        font-size: 24px;
    }
}

/* 桌面设备适配 */
@media (min-width: 1024px) {
    .container {
        max-width: 800px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .container {
        max-width: 900px;
    }

    .main-content {
        max-width: 900px;
    }

    .intro-content {
        gap: 40px;
    }

    .intro-text h3 {
        font-size: 24px;
    }

    .intro-text p {
        font-size: 16px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .feature-card:hover {
        transform: translateY(-3px);
    }
}
