/* ============================================================
   首页样式 · home.css
   仅作用于首页，不改动 style.css 与其他页面
   ============================================================ */

/* ---------- 专业领域标题可点击 ---------- */
.section-title h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.section-title h2 a:hover { color: #DAA520; }

/* ---------- 专业领域面板「了解详细服务」按钮 ---------- */
.panel-desc .panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 26px;
    background: #1A365D;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border: 1px solid #1A365D;
}
.panel-desc .panel-link:hover {
    background: #DAA520;
    color: #0F2744 !important;
    border-color: #DAA520;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218,165,32,0.30);
}
.panel-desc .panel-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}
.panel-desc .panel-link:hover i { transform: translateX(5px); }

/* ============================================================
   法律工具 / 常用文书
   ============================================================ */
.home-svc-section {
    padding: 64px 0;
    background: #fff;
    border-bottom: 1px solid #CBD5E1;
}
.home-svc-section .section-title h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.home-svc-section .section-title h2 a:hover { color: #DAA520; }

.home-svc-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 36px;
    border-bottom: 2px solid #CBD5E1;
    max-width: 560px;
}
.home-svc-tab {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #4A5568;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-family: inherit;
    margin-bottom: -2px;
}
.home-svc-tab i { margin-right: 8px; color: #1A365D; }
.home-svc-tab:hover { color: #0F2744; }
.home-svc-tab.active {
    color: #1A365D;
    border-bottom-color: #DAA520;
}
.home-svc-tab.active i { color: #DAA520; }

.home-svc-panels { position: relative; }
.home-svc-panel { display: none; }
.home-svc-panel.active { display: block; animation: svcFadeIn 0.4s ease; }
@keyframes svcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.home-svc-card {
    display: block;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 22px 20px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26,54,93,0.08);
    position: relative;
    overflow: hidden;
}
.home-svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #1A365D, #DAA520);
    opacity: 0.7;
    border-radius: 6px 6px 0 0;
}
.home-svc-card:hover {
    transform: translateY(-5px);
    border-color: #DAA520;
    box-shadow: 0 12px 36px rgba(26,54,93,0.15);
}
.home-svc-card:hover::before { opacity: 1; }

.home-svc-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #1A365D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    border: 1px solid #CBD5E1;
    transition: all 0.3s ease;
}
.home-svc-card:hover .home-svc-icon {
    background: #1A365D;
    color: #F0E68C;
    border-color: #1A365D;
}
.home-svc-card h3 {
    font-size: 17px;
    color: #0F2744;
    margin: 0 0 8px;
    letter-spacing: 0.3px;
    font-family: 'Times New Roman', 'SimSun', serif;
    line-height: 1.4;
}
.home-svc-card p {
    font-size: 14px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}
.home-svc-more { text-align: center; margin-top: 36px; }

@media (max-width: 992px) {
    .home-svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .home-svc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .home-svc-card { padding: 16px 14px 16px; }
    .home-svc-card h3 { font-size: 15px; }
    .home-svc-card p { font-size: 13px; }
    .home-svc-icon { width: 40px; height: 40px; font-size: 17px; }
    .home-svc-tab { padding: 12px 14px; font-size: 14px; }
    .home-svc-section { padding: 48px 0; }
}
@media (max-width: 480px) {
    .home-svc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   法律资讯 4 个栏目跳转入口
   ============================================================ */
.home-news-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 36px;
}
.home-news-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: #1A365D;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(26,54,93,0.06);
    position: relative;
    overflow: hidden;
}
.home-news-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #1A365D, #DAA520);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.home-news-link i {
    color: #1A365D;
    font-size: 18px;
    transition: color 0.3s ease;
}
.home-news-link span {
    margin-left: auto;
    color: #DAA520;
    font-size: 16px;
    transition: transform 0.3s ease;
}
.home-news-link:hover {
    border-color: #DAA520;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,54,93,0.12);
    color: #0F2744;
}
.home-news-link:hover::before { opacity: 1; }
.home-news-link:hover i { color: #DAA520; }
.home-news-link:hover span { transform: translateX(4px); }

@media (max-width: 992px) {
    .home-news-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .home-news-links { grid-template-columns: 1fr; gap: 10px; }
    .home-news-link { padding: 12px 16px; font-size: 14px; }
}



/* ============================================================
 * 页脚 Footer（SEO 优化版）
 * 覆盖/补充原有 .footer-grid 布局
 * ============================================================ */

/* --- 顶部：品牌 + 简介 + 联系方式 --- */
footer .footer-top {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-brand h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}

footer .footer-desc {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    max-width: 760px;
}

footer .footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    font-size: 14px;
}

footer .footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

footer .footer-contact i {
    color: #DAA520;
    font-size: 14px;
}

footer .footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-contact a:hover {
    color: #DAA520;
}

/* --- 主体：四栏网格 --- */
footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 30px;
    margin-bottom: 30px;
}

footer .footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
}

footer .footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #DAA520;
    border-radius: 2px;
}

footer .footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    line-height: 1.7;
    transition: color 0.2s, padding-left 0.2s;
}

footer .footer-col a:hover {
    color: #DAA520;
    padding-left: 4px;
}

/* --- 底部：版权 + 备案 --- */
footer .footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-bottom a:hover {
    color: #DAA520;
}

footer .footer-bottom .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* --- 响应式 --- */
@media (max-width: 992px) {
    footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }
}

@media (max-width: 576px) {
    footer .footer-top {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    footer .footer-desc {
        font-size: 13px;
    }

    footer .footer-contact {
        flex-direction: column;
        gap: 8px;
    }

    footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    footer .footer-col h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    footer .footer-col a {
        font-size: 13px;
        padding: 4px 0;
    }

    footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}


//* ============================================================
 * 页脚 Footer（正常字号 · 两列链接布局）
 * ============================================================ */

footer#contact {
    padding: 40px 0 20px;
}

/* 顶部：品牌 + 简介 + 联系方式 */
footer .footer-top {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-brand h4 {
    font-size: 20px;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 700;
}

footer .footer-desc {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.75);
}

footer .footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-size: 15px;
}

footer .footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

footer .footer-contact i {
    color: #DAA520;
    font-size: 15px;
}

footer .footer-contact a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-contact a:hover {
    color: #DAA520;
}

/* 主体：四栏 */
footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 32px;
    margin-bottom: 20px;
}

footer .footer-col h4 {
    font-size: 16px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    position: relative;
    color: #fff;
    font-weight: 700;
}

footer .footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 2px;
    background: #DAA520;
    border-radius: 2px;
}

/* 每栏链接两列并排 */
footer .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 6px;
}

footer .footer-links a {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

footer .footer-links a:hover {
    color: #DAA520;
}

/* 底部版权 */
footer .footer-bottom {
    padding-top: 16px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
}

footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-bottom a:hover {
    color: #DAA520;
}

footer .footer-bottom .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.35);
}

/* 响应式 */
@media (max-width: 992px) {
    footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 24px;
    }
}

@media (max-width: 576px) {
    footer#contact { padding: 32px 0 16px; }
    footer .footer-brand h4 { font-size: 18px; }
    footer .footer-desc { font-size: 14px; line-height: 1.7; }
    footer .footer-contact { flex-direction: column; gap: 6px; font-size: 14px; }
    footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    footer .footer-col h4 { font-size: 15px; margin-bottom: 10px; }
    footer .footer-links { grid-template-columns: 1fr; row-gap: 4px; }
    footer .footer-links a { font-size: 13px; padding: 2px 0; }
    footer .footer-bottom { flex-direction: column; text-align: center; font-size: 12px; }
}



/* ============================================================
 * 律师团队 · 强制手机端 2 列（覆盖模板内联样式）
 * 用更高权重 body #team .team-grid 压制模板里的 #team .team-grid
 * ============================================================ */

@media (max-width: 900px) {
    body #team .team-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        align-items: start !important;
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    body #team .team-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
    }
    body #team .team-photo {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
    }
    body #team .team-info h4 {
        font-size: 14px !important;
    }
    body #team .team-info .position,
    body #team .team-info .fields {
        font-size: 12px !important;
    }
}



/* 服务流程区块增强可读性 */
.service-integrated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,30,55,0.88), rgba(26,54,93,0.85));
    z-index: 0;
    pointer-events: none;
}
.service-integrated .container {
    position: relative;
    z-index: 1;
}
.service-integrated .adv-item,
.service-integrated .step-item {
    background: rgba(0,0,0,0.35) !important;
    border: 1px solid rgba(218,165,32,0.25) !important;
    backdrop-filter: blur(10px);
}
.service-integrated .adv-item:hover,
.service-integrated .step-item:hover {
    background: rgba(0,0,0,0.45) !important;
    border-color: rgba(218,165,32,0.5) !important;
}