/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* 头部样式 */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #1abc9c;
}

.auth a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s;
}

.auth a:hover {
    background: white;
    color: #2c3e50;
}

/* 主要内容区 */
main {
    padding: 2rem;
}

.age-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.age-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.age-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.age-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.age-card p {
    color: #666;
}

/* 页脚样式 */
footer {
    background: #34495e;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.search button {
    padding: 0.5rem 1rem;
    background: #1abc9c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search button:hover {
    background: #16a085;
}

.contact a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s;
}

.contact a:hover {
    background: white;
    color: #34495e;
}

/* 20-30岁页面样式 */
.age-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.content-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.content-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.content-card li:last-child {
    border-bottom: none;
}

.explore-btn {
    background: #1abc9c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: background 0.3s;
}

.explore-btn:hover {
    background: #16a085;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        margin-bottom: 1rem;
    }
    
    .age-groups {
        grid-template-columns: 1fr;
    }
    
    footer {
        flex-direction: column;
        text-align: center;
    }
    
    .search {
        margin-bottom: 1rem;
    }
}
