/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 无障碍访问 - 跳转链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-logo i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.8rem;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #3498db;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 20px;
    margin-top: 70px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image i {
    font-size: 15rem;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #666;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 10px;
}

/* 静态数字样式 - 确保不被动画影响 */
.static-number {
    display: block;
    font-weight: bold;
    transition: none !important;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image i {
    font-size: 12rem;
    color: #3498db;
    opacity: 0.1;
}

/* 服务领域 */
.services {
    padding: 100px 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* 律师团队 */
.team {
    padding: 100px 0;
    background: #f8f9fa;
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.lawyer-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.lawyer-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lawyer-image i {
    font-size: 3rem;
    color: white;
}

.lawyer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.lawyer-card .title {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
}

.lawyer-card .experience {
    color: #666;
    margin-bottom: 20px;
}

.lawyer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
}

.lawyer-contact i {
    color: #3498db;
}

/* 成功案例 */
.cases {
    padding: 100px 0;
}

.cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.case-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.case-type {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.case-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-result {
    text-align: right;
}

.result-tag {
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
}

.contact-image {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    overflow: hidden;
}

.contact-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    max-height: 300px;
    max-width: 100%;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏优化 */
    .navbar {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 35px;
        margin-right: 8px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        z-index: 999;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 20px;
        display: block;
        border-radius: 25px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: #3498db;
        color: white;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* 首页横幅优化 */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 60px;
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 25px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 35px;
        opacity: 0.95;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 80%;
        max-width: 280px;
        padding: 18px 25px;
        font-size: 1.1rem;
    }
    
    .hero-image {
        margin-top: 50px;
        order: -1;
    }
    
    .hero-image i {
        font-size: 6rem;
        opacity: 0.15;
    }
    
    /* 各部分间距大幅缩小 */
    .about, .services, .team, .cases, .contact {
        padding: 30px 0;
    }
    
    .about h2, .services h2, .team h2, .cases h2, .contact h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    /* 进一步压缩相邻部分间距 */
    .services {
        padding: 25px 0;
    }
    
    .team {
        padding: 25px 0;
    }
    
    .cases {
        padding: 25px 0;
    }
    
    /* 关于我们优化 */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 30px;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    /* 服务卡片优化 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .service-card i {
        font-size: 2.5rem;
    }
    
    /* 团队卡片优化 */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lawyer-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .lawyer-image {
        width: 100px;
        height: 100px;
    }
    
    .lawyer-image i {
        font-size: 2.5rem;
    }
    
    /* 案例卡片优化 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .case-card {
        padding: 20px 20px;
        margin: 0 10px;
    }
    
    /* 联系我们优化 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-image {
        order: -1;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-item i {
        font-size: 2rem;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* 容器优化 */
    .container {
        padding: 0 15px;
    }
    
    /* 各部分间距大幅压缩 */
    .about, .services, .team, .cases, .contact {
        padding: 20px 0;
    }
    
    /* 极致压缩相邻部分间距 */
    .about {
        padding-bottom: 15px;
    }
    
    .services {
        padding: 15px 0;
    }
    
    .team {
        padding: 15px 0;
    }
    
    .cases {
        padding: 15px 0;
    }
    
    .contact {
        padding-top: 15px;
        padding-bottom: 30px;
    }
    
    /* 导航栏小屏优化 */
    .nav-container {
        height: 55px;
        padding: 0 5px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 30px;
        margin-right: 6px;
    }
    
    .nav-menu {
        top: 55px;
        padding: 25px 0;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    /* 首页横幅小屏优化 */
    .hero {
        padding: 70px 15px 50px;
        min-height: 85vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        width: 90%;
        max-width: 250px;
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .hero-image i {
        font-size: 4rem;
    }
    
    /* 各部分标题优化 */
    .about h2,
    .services h2,
    .team h2,
    .cases h2,
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    /* 统计数据优化 */
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .stat-item h4 {
        font-size: 1.8rem;
    }
    
    /* 卡片内边距优化 */
    .service-card,
    .lawyer-card,
    .case-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    /* 卡片间距进一步压缩 */
    .services-grid,
    .team-grid,
    .cases-grid {
        gap: 10px;
    }
    
    .service-card i {
        font-size: 2.2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* 律师卡片优化 */
    .lawyer-image {
        width: 80px;
        height: 80px;
    }
    
    .lawyer-image i {
        font-size: 2rem;
    }
    
    .lawyer-card h3 {
        font-size: 1.3rem;
    }
    
    /* 联系图片优化 */
    .contact-image {
        padding: 15px;
    }
    
    .contact-img {
        max-height: 200px;
        max-width: 100%;
        border-radius: 8px;
        object-fit: contain;
    }
    
    /* 联系信息优化 */
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 触摸友好的按钮 */
    .btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* 防止双击缩放 */
    * {
        touch-action: manipulation;
    }
    
    /* 优化滚动性能 */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 返回顶部按钮移动端优化 */
    .back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    /* 移动端导航菜单动画优化 */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 20px 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}