* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #0056b3;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card h4 {
    color: #1a73e8;
    margin-bottom: 1rem;
}

.price-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

button {
    background-color: #1a73e8;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.login-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 10px;
}

.login-button:hover {
    background-color: #004494;
    color: white;
    text-decoration: none;
}

footer {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: #1a73e8;
    margin-bottom: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
}

/* Hamburger Button Styles */
.hamburger-button {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem; /* Space from firm name */
}

.hamburger-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Styles for active hamburger (e.g., cross icon) */
.hamburger-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    header {
        padding: 0.3rem 0.5rem;
    }
    .nav-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .firm-name-container h1 {
        font-size: 1.1rem;
        line-height: 1.1;
    }
    .firm-name-container h2 {
        font-size: 0.8rem;
        text-align: center;
        line-height: 1.1;
    }
    .nav-links {
        display: none; /* Hide nav links by default on small screens */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #0056b3; /* Match header background */
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 99; /* Ensure it's below header but above content */
    }
    .nav-links.active {
        display: flex; /* Show links when active */
    }
    .nav-links a {
        width: 90%;
        text-align: center;
        padding: 0.8rem 0; /* Adjust padding for vertical menu */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Optional separator */
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links .login-button {
        margin-top: 0.5rem; /* Adjust margin for vertical menu */
        width: auto;
        padding: 0.5rem 1rem;
    }
    .nav-links .login-button + .login-button {
        margin-left: 0; /* Stack buttons vertically */
        margin-top: 0.5rem;
    }
    .nav-content {
        flex-direction: row; /* Keep row for firm name and hamburger */
        justify-content: space-between; /* Space out name and button */
        align-items: center;
        gap: 1rem;
        position: relative; /* Needed for absolute positioning of nav-links */
    }
    .firm-name-container {
       flex-grow: 1; /* Allow name to take available space if needed */
       text-align: center; /* Center text within its container */
    }
    .firm-name-container h1, .firm-name-container h2 {
        text-align: center; /* Ensure text is centered */
    }
    .hamburger-button {
        display: block; /* Show hamburger on small screens */
    }
}

.firm-name-container {
    text-align: left;
}

.firm-name-container h1,
.firm-name-container h2 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.firm-name-container h1 {
    font-size: 1.5rem;
}

.firm-name-container h2 {
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Page Header Styles */
.page-header {
    background-color: #2062af;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.page-header-container {
    margin-top: 80px; /* 给header留出足够空间 */
}

.page-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

.page-header p {
    margin: 10px 0 0;
    font-size: 18px;
}

/* 关于我们页面样式 */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.about-section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-section h3 {
    color: #0056b3;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.05rem;
}

.about-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.about-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 团队成员样式 */
.team-member {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
}

.lawyer-photo {
    width: 220px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.team-member h4 {
    color: #1a73e8;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.team-member h5 {
    color: #0056b3;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    border-left: 4px solid #0056b3;
    padding-left: 10px;
}

.team-member-info {
    display: flex;
    flex-direction: column;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .team-member {
        grid-template-columns: 250px 1fr;
        align-items: start;
    }
    
    .lawyer-photo {
        width: 220px;
        margin-bottom: 0;
    }
}