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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #a78bfa 0%, #1a202c 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #1a202c;
}

/* 导航栏 */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1rem;
    color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    color: #4a5568;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background-color: #f7fafc;
    color: #7c3aed;
}

.btn-register {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: #f8fafc;
    color: #7c3aed;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 16px;
    color: #9ca3af;
}

.username {
    font-weight: 400;
}

.btn-logout {
    color: #6b7280;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* 主要内容区域 */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-rounded-container {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(80, 60, 160, 0.10);
    padding: 0 0 0 0;
    overflow: hidden;
    position: relative;
}

@media (max-width: 1200px) {
    .main-rounded-container {
        border-radius: 18px;
        margin: 20px;
    }
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(120deg,
        #f7cac9 0%,
        #f9e79f 20%,
        #b7e4c7 40%,
        #a5d8ff 60%,
        #d0bfff 80%,
        #f7cac9 100%
    );
    border-radius: 16px;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a202c;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #4a5568;
    max-width: 640px;
    margin: 1rem auto;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: white;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 2px solid #7c3aed;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
}

/* 特色功能区域 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* 新增区域样式 */
.therapy-section, .blog-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a202c;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 2;
}

.therapy-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.therapy-card, .blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.therapy-card:hover, .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.therapy-cover, .blog-cover {
    width: 100%;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.therapy-cover img, .blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    font-size: 48px;
    color: #9ca3af;
}

.therapy-content {
    padding: 24px;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-content {
    padding: 24px;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.therapy-card h3 {
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
}

.therapy-card p {
    font-weight: 300;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.blog-card h3 {
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
}

.blog-card p {
    font-weight: 300;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.therapy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.therapy-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.85rem;
    color: #6b7280;
    flex-shrink: 0;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.blog-date {
    font-weight: 200;
}

.blog-category {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* 页脚 */
.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 2.2rem 2rem 1.2rem 2rem;
    margin-top: 4rem;
    font-size: 0.8rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.footer-section {
    text-align: center;
    max-width: 240px;
    font-size: 0.9rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: normal;
}

.footer-section p,
.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    line-height: 2;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin: 1rem 0;
    border-top: 1px solid #2d3748;
    color: #8090a0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .therapy-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
