* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    line-height: 1.5;
}
.container {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    letter-spacing: 0.5px;
}
.article-item, .lawyer-item {
    background: #ffffff;
    border-radius: 20px;
    margin: 16px 16px;
    padding: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #eef2f6;
}
.article-item:hover, .lawyer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #e0e7ff;
}
.article-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
}
.article-meta {
    color: #64748b;
    font-size: 0.75rem;
}
.lawyer-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}
.lawyer-title {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0.25rem 0;
}
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(59,130,246,0.2);
}
.btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(59,130,246,0.3);
}
.btn-outline {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(59,130,246,0.05);
    transform: translateY(-2px);
}
.form-group {
    margin-bottom: 1rem;
    padding: 0 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #ffffff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.error {
    color: #ef4444;
    margin: 0.5rem 1rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 16px;
    border-left: 4px solid #ef4444;
}
.success {
    color: #10b981;
    margin: 0.5rem 1rem;
    padding: 0.5rem;
    background: #ecfdf5;
    border-radius: 16px;
    border-left: 4px solid #10b981;
}
/* 固定底部导航 */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #eef2f6;
    z-index: 100;
}
.fixed-bottom .nav {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    margin: 0;
}
.fixed-bottom .nav a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    flex: 1;
    transition: color 0.2s;
}
.fixed-bottom .nav a.active {
    color: #3b82f6;
    font-weight: 600;
}
.fixed-bottom .copyright {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.7rem;
    color: #94a3b8;
    background: transparent;
    border-top: none;
}
.container {
    padding-bottom: 80px;
}
/* 热门分类卡片 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
    padding: 0 8px;
}
.category-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px 8px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.category-card i {
    font-size: 28px;
    color: #3b82f6;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.2s;
}
.category-card span {
    font-size: 0.85rem;
    font-weight: 500;
}
.category-card:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(59,130,246,0.3);
    border-color: transparent;
}
.category-card:hover i {
    color: white;
    transform: scale(1.05);
}
@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 12px 4px;
    }
    .category-card i {
        font-size: 22px;
    }
    .category-card span {
        font-size: 0.75rem;
    }
}
