/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部信息栏 */
.top-info-bar {
    background: #f8f9fa;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.top-info-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1488px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-info-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    color: #666;
}

.top-info-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-info-bar .contact-item i {
    color: #1e3c72;
    font-size: 14px;
}

/* 主导航栏 */
.main-nav {
    background: rgba(30, 60, 114, 0.95);
    padding: 12px 0;
    position: relative;
    z-index: 999;
}

.main-nav .container {
    max-width: 1488px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .logo {
    display: flex;
    align-items: center;
}

.main-nav .logo img {
    height: 50px;
    width: auto;
    margin-right: 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 横幅区域 */
.banner {
    position: relative;
    height: 619px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 60, 114, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    line-height: 1.6;
}

.banner-content h2 {
    font-size: 48px;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 24px;
    margin: 0 0 20px 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-content .sub-title {
    font-size: 20px;
    margin: 0 0 30px 0;
    opacity: 0.9;
    letter-spacing: 2px;
    line-height: 1.4;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 107, 107, 0.9);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: rgba(255, 82, 82, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 82, 82, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.banner-slide.active {
    opacity: 1;
}

/* 轮播图控制按钮 */
.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

.prev-slide,
.next-slide {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.banner-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 通用section样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1e3c72;
}

.section-header p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 15px auto 0;
}

/* 关于我们 */
.about-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.about-section .container {
    max-width: 1488px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.lawyer-info {
    flex: 0 0 300px;
    text-align: center;
}

.lawyer-info img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lawyer-info h3 {
    font-size: 24px;
    color: #1e3c72;
    margin-bottom: 10px;
}

.lawyer-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.about-text {
    flex: 1;
    padding: 30px;
}

.about-text img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.intro-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.1);
    padding: 30px;
    position: relative;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.intro-card .card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(30, 60, 114, 0.1);
}

.intro-card .card-header h3 {
    color: #1e3c72;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.intro-card .card-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    padding: 0 10px;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px 15px 0 0;
}

/* 业务范围 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item i {
    font-size: 40px;
    color: #1e3c72;
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
}

/* 经典案例 */
.cases {
    background: #f8f9fa;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.case-item h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

/* 联系我们 */
.contact {
    background: #fff;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.info-item {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item i {
    font-size: 30px;
    color: #1e3c72;
    margin-bottom: 15px;
}

.info-item h3 {
    margin-bottom: 10px;
}

/* 页脚 */
footer {
    background: #1e3c72;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 1488px) {
    .banner {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-info-bar {
        padding: 4px 0;
    }

    .top-info-bar .contact-info {
        font-size: 12px;
        gap: 15px;
    }

    .top-info-bar .contact-item i {
        font-size: 12px;
    }

    .main-nav .container {
        flex-direction: column;
        align-items: center;
    }

    .main-nav .logo {
        margin-bottom: 15px;
    }

    .main-nav .logo img {
        height: 40px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-nav a {
        padding: 8px 20px;
        width: 100%;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .lawyer-info {
        flex: none;
        width: 100%;
        margin-bottom: 30px;
    }

    .lawyer-info img {
        width: 180px;
        height: 180px;
    }

    .lawyer-info h3 {
        font-size: 20px;
    }

    .lawyer-info p {
        font-size: 14px;
    }

    .about-text {
        padding: 20px;
    }

    .intro-card {
        padding: 20px;
    }

    .intro-card .card-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .intro-card .card-header h3 {
        font-size: 18px;
    }

    .intro-card .card-content {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 5px;
    }
}

.ai-assistant-tip {
    position: fixed;
    right: 10px;
    bottom: 250px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #333;
    z-index: 999;
    border: 1px solid #e0e0e0;
    animation: tipFloat 2s ease-in-out infinite;
    white-space: nowrap;
}

.ai-assistant-tip::after {
    content: '';
    position: absolute;
    right: 25px;
    bottom: -8px;
    transform: rotate(90deg);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.ai-assistant-tip::before {
    content: '';
    position: absolute;
    right: 25px;
    bottom: -9px;
    transform: rotate(90deg);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #e0e0e0;
    z-index: -1;
}

@keyframes tipFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-assistant-tip {
        right: 16px;
        bottom: 260px;
        font-size: 12px;
        padding: 5px 8px;
    }
}

.lawyer-profile {
    text-align: center;
    padding: 40px 0;
}

.lawyer-profile .avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lawyer-profile .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lawyer-profile .name {
    font-size: 24px;
    color: #1e3c72;
    margin-bottom: 10px;
    font-weight: bold;
}

.lawyer-profile .info {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lawyer-profile .avatar {
        width: 150px;
        height: 150px;
    }

    .lawyer-profile .name {
        font-size: 20px;
    }

    .lawyer-profile .info {
        font-size: 14px;
    }
} 