/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a52;
    --secondary-color: #c9a961;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* 导航栏 */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero 区域 */
.hero {
    position: relative;
    min-height: 600px;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.85) 0%, rgba(45, 90, 123, 0.75) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.feature-item span {
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b89851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 章节通用样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* 服务预览 */
.services-preview {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* 为什么选择我们 */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
}

.why-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 客户评价 */
.testimonials {
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 联系表单区域 */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* 表单样式 */
.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.contact-list li {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-list i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 服务页面特定样式 */
.service-detail {
    padding: 40px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.service-detail h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-detail h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.service-detail ul {
    list-style-position: inside;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 20px;
}

.service-detail p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 关于页面 */
.about-intro {
    padding: 80px 0;
}

.attorney-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.attorney-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.attorney-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.attorney-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.credentials {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.credentials h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.credentials ul {
    list-style-position: inside;
    color: var(--text-light);
    line-height: 2;
}

/* 博客页面 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

@media (max-width: 768px) {
    .attorney-profile {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* 律师照片样式 */
.attorney-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

.intro-image {
    max-width: 500px;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a7b 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About页面布局 */
.attorney-intro {
    padding: 80px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.intro-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.intro-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.intro-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-image {
        max-width: 100%;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
    }
}
