/* ===== CSS Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif; color: #333; background: #f5f6fa; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== Navbar ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.logo { display: flex; flex-direction: column; }
.logo-text { font-size: 26px; font-weight: 700; color: #1a3a6b; }
.logo-sub { font-size: 11px; color: #999; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; color: #333; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #1a3a6b; }
.nav-contact { display: flex; align-items: center; gap: 12px; }
.nav-contact span { font-size: 14px; color: #666; }
.btn-nav {
    background: #1a3a6b; color: #fff; padding: 8px 20px; border-radius: 6px;
    font-size: 14px; transition: background 0.3s;
}
.btn-nav:hover { background: #2a4a7b; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #1a3a6b 0%, #2a5a9b 50%, #1a3a6b 100%);
    color: #fff; padding: 80px 0;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px; background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero-content { text-align: center; position: relative; z-index: 1; }
.hero h1 { font-size: 48px; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 40px; }

.search-box {
    display: flex; max-width: 620px; margin: 0 auto 20px;
    background: #fff; border-radius: 50px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.search-box input {
    flex: 1; border: none; outline: none; padding: 18px 24px;
    font-size: 15px; color: #333;
}
.search-box button {
    background: #C9A84C; color: #fff; border: none;
    padding: 18px 36px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background 0.3s;
}
.search-box button:hover { background: #b8963f; }

.quick-tags { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.7); flex-wrap: wrap; }
.quick-tags a { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.15); padding: 4px 14px; border-radius: 20px; transition: background 0.3s; font-size: 13px; }
.quick-tags a:hover { background: rgba(255,255,255,0.3); }

.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 60px; }
.stat-item { text-align: center; }
.stat-item strong { font-size: 36px; font-weight: 700; color: #C9A84C; display: block; }
.stat-item span { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: #1a3a6b; margin-bottom: 10px; }
.section-header p { font-size: 16px; color: #888; }
.section-footer { text-align: center; margin-top: 40px; }

/* ===== Featured Lawyers ===== */
.featured-lawyers { padding: 80px 0; background: #fff; }
.lawyers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.lawyer-card {
    background: #fff; border: 1px solid #eee; border-radius: 16px;
    padding: 24px; transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.lawyer-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); border-color: #C9A84C; }

.lawyer-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; position: relative; }
.lawyer-avatar {
    width: 56px; height: 56px; border-radius: 50%; background: #1a3a6b;
    color: #fff; font-size: 22px; font-weight: 700; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.lawyer-info { flex: 1; }
.lawyer-info h3 { font-size: 18px; color: #1a3a6b; margin-bottom: 4px; }
.lawyer-title { font-size: 13px; color: #C9A84C; }
.lawyer-badge {
    position: absolute; top: 0; right: 0;
    background: #e74c3c; color: #fff; font-size: 11px; padding: 3px 8px;
    border-radius: 10px; font-weight: 600;
}
.lawyer-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { background: #f0f4ff; color: #1a3a6b; font-size: 12px; padding: 4px 12px; border-radius: 20px; }
.lawyer-intro { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 14px; }
.lawyer-cases { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; font-size: 13px; color: #888; }
.case-tag { background: #fff8e8; color: #C9A84C; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.lawyer-contact { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.lawyer-contact .phone { font-size: 14px; color: #1a3a6b; font-weight: 600; }
.btn-detail { background: #1a3a6b; color: #fff; padding: 8px 20px; border-radius: 8px; font-size: 13px; transition: background 0.3s; }
.btn-detail:hover { background: #2a4a7b; }

/* ===== Service Areas ===== */
.service-areas { padding: 80px 0; background: #f5f6fa; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-card {
    background: #fff; border-radius: 16px; padding: 30px;
    text-align: center; transition: all 0.3s; cursor: pointer;
    border: 2px solid transparent;
}
.area-card:hover { border-color: #C9A84C; transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.area-icon { font-size: 48px; margin-bottom: 16px; }
.area-card h3 { font-size: 18px; color: #1a3a6b; margin-bottom: 10px; }
.area-card p { font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 14px; }
.area-count { font-size: 13px; color: #C9A84C; font-weight: 600; }

/* ===== Why Us ===== */
.why-us { padding: 80px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-item { text-align: center; padding: 30px; border-radius: 12px; background: #f8f9fc; }
.why-num { font-size: 48px; font-weight: 700; color: #C9A84C; margin-bottom: 16px; }
.why-item h3 { font-size: 18px; color: #1a3a6b; margin-bottom: 10px; }
.why-item p { font-size: 14px; color: #888; line-height: 1.7; }

/* ===== Lawyer Join ===== */
.lawyer-join { background: linear-gradient(135deg, #1a3a6b, #2a4a7b); color: #fff; padding: 80px 0; }
.join-content { text-align: center; }
.join-content h2 { font-size: 36px; margin-bottom: 16px; }
.join-content p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.join-benefits { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.join-benefits span { background: rgba(255,255,255,0.15); padding: 10px 20px; border-radius: 30px; font-size: 15px; }
.join-actions { display: flex; justify-content: center; gap: 16px; }
.btn-primary { background: #C9A84C; color: #fff; padding: 14px 40px; border-radius: 8px; font-size: 16px; font-weight: 600; transition: background 0.3s; }
.btn-primary:hover { background: #b8963f; }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; padding: 14px 40px; border-radius: 8px; font-size: 16px; transition: background 0.3s; }
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* ===== Latest News ===== */
.latest-news { padding: 80px 0; background: #f5f6fa; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: 12px; padding: 24px; }
.news-date { font-size: 12px; color: #C9A84C; margin-bottom: 10px; }
.news-card h3 { font-size: 16px; color: #1a3a6b; margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 14px; }
.news-link { font-size: 13px; color: #1a3a6b; font-weight: 600; }

/* ===== Footer ===== */
.footer { background: #1a3a6b; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 16px; margin-bottom: 20px; color: #C9A84C; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-col ul li a:hover { color: #C9A84C; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== Buttons ===== */
.btn-more { display: inline-block; background: #1a3a6b; color: #fff; padding: 14px 40px; border-radius: 8px; font-size: 15px; transition: background 0.3s; }
.btn-more:hover { background: #2a4a7b; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .lawyers-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .join-benefits { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .areas-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}