﻿/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    font-weight: 500;
}

.mobile-toggle {
    display: none;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('banner.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background: #1a5dbb;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #144ca0;
}

/* 服务区域 */
.services {
    padding: 80px 0;
    background: #f9f9f9;
}

.services h2,
.team h2,
.cases h2,
.about h2,
.contact h2,
.daytitle h2{
    text-align: center;
    margin-bottom: 50px;
    color: #1a5dbb;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: #1a5dbb;
    margin-bottom: 15px;
}

/* 团队样式 */
.team {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.lawyer-card {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lawyer-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
	object-position:top;
}

.social-links a {
    color: #1a5dbb;
    margin: 0 8px;
    font-size: 1.2rem;
}

/* 案例区域 */
.cases {
    padding: 80px 0;
    background: #f9f9f9;
}

.case-list {
    max-width: 800px;
    margin: 0 auto;
}

.case-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.case-item .tag {
    background: #e3f2fd;
    color: #1a5dbb;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a5dbb;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #f9f9f9;
}

.contact-info {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}

.contact-info p {
    margin: 10px 0;
    color: #555;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 120px;
}

/* 底部 */
.footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .service-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}





       .service-card {
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }
        .indicator-line {
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background-color: #3b82f6;
            transition: all 0.3s ease;
            border-radius: 2px;
        }
        .service-card.active .indicator-line {
            width: 80%;
        }
        .service-card:hover {
            transform: translateY(-2px);
        }