* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    min-height: 100vh;
    color: #333;
}

.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.page.active {
    display: block;
}

/* 封面页样式 */
#welcome-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
}

.welcome-content {
    text-align: center;
    color: white;
}

.welcome-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.enter-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: white;
    color: #ff8c00;
}

/* 页面头部样式 */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.page-header h1 {
    color: white;
    font-size: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 分类页样式 */
.category-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: center;
}

.car-category-item {
    flex: 1 1 calc(50% - 0.75rem); /* PC端：一行2个，减去gap的一半 */
    min-width: 300px;
    box-sizing: border-box;
}

/* 确保PC端显示2列 */
@media (min-width: 769px) {
    .car-category-item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

.car-category {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%;
}

.car-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.car-category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.car-category h3 {
    font-size: 1.5rem;
    color: #333;
}

/* 详细页样式 */
.detail-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 100px; /* 为固定按钮留出空间 */
}

#car-details {
    margin-bottom: 2rem;
}

.car-spec {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.register-btn, .submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.register-btn:hover, .submit-btn:hover {
    opacity: 0.9;
}

/* 固定底部按钮样式 */
.fixed-register-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.register-btn-fixed {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.register-btn-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.register-btn-fixed:active {
    transform: translateY(0);
}

/* 报名页样式 */
.register-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    height: 80px;
    resize: vertical;
}

/* 提示页样式 */
.result-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.notice {
    line-height: 1.6;
}

.notice h3 {
    color: #ff8c00;
    margin: 1rem 0;
}

.notice ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.notice li {
    margin-bottom: 0.5rem;
}

.notice p {
    margin-bottom: 1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .page {
        padding: 15px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* 移动端分类页：一行一个 */
    .category-content {
        max-width: 400px;
        padding: 0;
    }

    .car-category-item {
        flex: 1 1 100%; /* 移动端：一行1个，占满整行 */
        min-width: auto;
    }

    .car-category img {
        height: 150px;
    }

    .detail-content,
    .register-content,
    .result-content {
        padding: 1.5rem;
        padding-bottom: 100px; /* 为固定按钮留出空间 */
    }

    /* 移动端固定按钮优化 */
    .fixed-register-btn {
        padding: 12px 15px;
    }

    .register-btn-fixed {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
    }

    .page {
        padding: 10px;
    }

    /* 小屏幕分类页优化 */
    .category-content {
        gap: 1rem;
    }

    .car-category {
        padding: 1rem;
    }

    .car-category img {
        height: 120px;
    }

    .detail-content,
    .register-content,
    .result-content {
        padding: 1rem;
        padding-bottom: 90px; /* 小屏幕为固定按钮留出空间 */
    }

    /* 小屏幕固定按钮优化 */
    .fixed-register-btn {
        padding: 10px 12px;
    }

    .register-btn-fixed {
        padding: 10px;
        font-size: 0.95rem;
    }
}
