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

body {
    font-family: 'Nunito', 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff8e1;
    background-image: 
        radial-gradient(#ffd54f 10%, transparent 10%),
        radial-gradient(#ffd54f 10%, transparent 10%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

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

/* 导航栏样式 */
header {
    background-color: #ff8a80;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 0px #ff5252;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links a:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
}

.nav-links a.active {
    background-color: #ff5252;
}

.nav-actions .btn {
    background-color: #fff;
    color: #ff8a80;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: #90caf9;
    border-radius: 50%;
    opacity: 0.5;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background-color: #a5d6a7;
    border-radius: 50%;
    opacity: 0.5;
    z-index: -1;
}

.hero h2 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #ffd54f;
}

.hero p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #9c27b0;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #9c27b0;
    border: 3px solid #9c27b0;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #9c27b0;
    color: white;
    transform: translateY(-5px);
}

/* 表单样式 */
.journey-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.card {
    background-color: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 2rem;
    color: #9c27b0;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid #f0f0f0;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8a80;
    box-shadow: 0 0 0 5px rgba(255, 138, 128, 0.1);
}

.form-group input[type="file"] {
    border: none;
    padding: 10px 0;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.small-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.journey-tips {
    background-color: #e1f5fe;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.journey-tips h3 {
    font-size: 1.8rem;
    color: #0288d1;
    margin-bottom: 25px;
}

.journey-tips ul {
    list-style: none;
}

.journey-tips li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.journey-tips li i {
    color: #0288d1;
    font-size: 1.3rem;
    margin-top: 3px;
}

/* 旅程展示样式 */
.journey-categories {
    margin-bottom: 40px;
}

.category-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    background-color: white;
    color: #333;
    border: 3px solid #f0f0f0;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #9c27b0;
    color: white;
    border-color: #9c27b0;
    transform: translateY(-3px);
}

.journeys-section {
    padding: 40px 0;
}

.journeys-section h3 {
    font-size: 2.5rem;
    color: #9c27b0;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 2px 2px 0px #e1bee7;
}

.journeys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.journey-card {
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.journey-image {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.journey-card.programming .journey-image {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.journey-card.language .journey-image {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
}

.journey-card.music .journey-image {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.journey-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.category-badge.programming {
    background-color: #e8f5e9;
    color: #4caf50;
}

.category-badge.language {
    background-color: #e3f2fd;
    color: #2196f3;
}

.category-badge.music {
    background-color: #fff3e0;
    color: #ff9800;
}

.journey-content h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.journey-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #666;
}

.journey-meta i {
    margin-right: 5px;
}

.journey-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.journey-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #999;
}

.journey-stats i {
    margin-right: 5px;
}

.view-details {
    background-color: #9c27b0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.view-details:hover {
    background-color: #7b1fa2;
    transform: translateY(-3px);
}

/* 认证页面样式 */
.auth-section {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    background-color: white;
    border-radius: 25px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    background-color: transparent;
    border: none;
    padding: 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.tab-btn.active {
    background-color: #9c27b0;
    color: white;
}

.auth-form {
    background-color: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.forgot-password {
    color: #9c27b0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #7b1fa2;
    text-decoration: underline;
}

.divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.divider span {
    background-color: white;
    padding: 0 20px;
    color: #999;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f0f0f0;
}

.social-login {
    display: flex;
    gap: 20px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 3px solid #f0f0f0;
    border-radius: 25px;
    background-color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn.google {
    color: #db4437;
    border-color: #db4437;
}

.social-btn.facebook {
    color: #4267b2;
    border-color: #4267b2;
}

.social-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .journey-form {
        grid-template-columns: 1fr;
    }
    
    .journey-tips {
        order: -1;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background-color: #ff8a80;
        padding: 20px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        gap: 15px;
    }
    
    .nav-actions {
        display: none;
        position: absolute;
        top: 220px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #ff8a80;
        padding: 20px;
        border-radius: 25px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .social-login {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    .journeys-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* 特色区域样式 */
.features {
    padding: 80px 0;
}

.features h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    text-shadow: 2px 2px 0px #ffd54f;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid #e1bee7;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #ce93d8;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #9c27b0;
}

.feature-card h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    font-size: 1.1rem;
    color: #666;
}

/* 学习历程展示 */
.journeys {
    padding: 80px 0;
    background-color: white;
    border-top: 5px dashed #ffd54f;
    border-bottom: 5px dashed #ffd54f;
}

.journeys h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    text-shadow: 2px 2px 0px #ffd54f;
}

.journeys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.journey-card {
    background-color: #fce4ec;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid #f8bbd0;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.journey-image {
    height: 200px;
    background-color: #e1bee7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #9c27b0;
}

.journey-content {
    padding: 25px;
}

.journey-card h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #333;
}

.journey-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.journey-card p {
    color: #666;
    margin-bottom: 20px;
}

.view-details {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details:hover {
    background-color: #f50057;
    transform: translateY(-3px);
}

/* 注册表单样式 */
.register-section {
    padding: 80px 0;
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid #bbdefb;
}

.register-header h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #333;
}

.register-header p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.form-check {
    margin: 25px 0;
}

.form-check input {
    margin-right: 10px;
}

.btn-block {
    width: 100%;
}

/* 历程详情页样式 */
.journey-detail {
    padding: 60px 0;
}

.journey-detail-header {
    background-color: #e3f2fd;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 3px solid #bbdefb;
}

.journey-detail-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1565c0;
}

.journey-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.journey-detail-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 3px solid #e0e0e0;
}

.timeline {
    margin: 40px 0;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: #4caf50;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 25px;
    width: 2px;
    height: calc(100% + 10px);
    background-color: #4caf50;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2e7d32;
}

.highlight-box {
    background-color: #fff3e0;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid #ff9800;
}

.highlight-box p {
    margin: 0;
    font-weight: 600;
    color: #e65100;
}

/* 页脚样式 */
footer {
    background-color: #81d4fa;
    padding: 40px 0;
    text-align: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    margin-top: 60px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #0288d1;
}

.footer-logo p {
    color: #e1f5fe;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links li {
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #01579b;
}

.footer-bottom {
    color: #e1f5fe;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .features-grid,
    .journeys-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .register-container,
    .journey-detail-content {
        padding: 25px;
    }
}