/*--------------------------------------------------------------
# Special Pages Styles - 统一命名规范
# 命名规则:
# - solution-xxx: 法律方案/解决方案样式
# - process-xxx: 流程/步骤样式
# - law-xxx: 法律依据样式
# - step-icon/step-title: 图标和标题垂直居中对齐
--------------------------------------------------------------*/

/* ==================== 通用样式 ==================== */
.special-page {
    padding: 10px 0 10px;
}

.special-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 概述区域样式 ==================== */
.solution-intro {
    padding: 10px 0 20px;
}

.solution-intro .intro-content {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.solution-intro .intro-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.solution-intro .intro-content p:last-child {
    margin-bottom: 0;
}

/* ==================== Icon Box 通用样式 ==================== */
.icon-box {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 8px 0;
}

.icon-box::before {
    content: '';
    position: absolute;
    background: rgba(240, 60, 2, 0.03);
    right: -60px;
    bottom: -60px;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    transition: all 0.3s;
    z-index: 2;
}

.icon-box:hover::before {
    background: rgba(240, 60, 2, 0.1);
    right: -30px;
    bottom: -30px;
    width: 150px;
    height: 150px;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(240, 60, 2, 0.12);
}

.icon-box i {
    font-size: 2.5rem;
    color: #f03c02;
    margin-bottom: 15px;
    line-height: 1;
    transition: all 0.3s ease;
    display: block;
}

.icon-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.icon-box p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.icon-box:hover i {
    color: #c53030;
}

.icon-box:hover h4 {
    color: #f03c02;
}

/* ==================== Section 通用样式 ==================== */
.special-section {
    padding: 10px 0;
}

.special-section.section-bg {
    background: #f8f9fc;
}

.special-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.special-section .section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.special-section .section-title p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* ==================== 流程卡片样式 (process-*) ==================== */
.process-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f03c02 0%, #fd490f 100%);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(240, 60, 2, 0.12);
}

/* 流程卡片头部 - 图标和标题垂直居中 */
.process-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.process-card .process-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.process-card .process-icon i,
.process-card .process-icon::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

.process-card .process-icon-light {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.process-card .process-icon-light i,
.process-card .process-icon-light::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

.process-card .process-icon-dark {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.process-card .process-icon-dark i,
.process-card .process-icon-dark::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

/* 流程标题 - 与图标垂直居中 */
.process-card .process-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 流程编号 - 右上角 */
.process-card .process-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(240, 60, 2, 0.08);
    line-height: 1;
}

/* 流程描述 */
.process-card .process-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 流程详情列表 */
.process-card .process-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-card .process-details li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* ==================== 时间线样式 ==================== */
.timeline-section {
    padding: 10px 0;
    background: #f8f9fa;
}

.timeline-section .timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-section .timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #f03c02 0%, #fd490f 100%);
}

.timeline-section .timeline-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #f03c02;
}

.timeline-section .timeline-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.timeline-section .timeline-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 0;
}

.process-card .process-details li:last-child {
    margin-bottom: 0;
}

.process-card .process-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 2px;
    color: #f03c02;
    font-size: 1rem;
}

/* ==================== 方案卡片样式 (solution-*) ==================== */
.solution-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(240, 60, 2, 0.12);
}

/* 方案卡片头部 - 图标和标题垂直居中 */
.solution-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.solution-card .solution-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.solution-card .solution-icon i,
.solution-card .solution-icon::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

.solution-card .solution-icon-light {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.solution-card .solution-icon-light i,
.solution-card .solution-icon-light::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

.solution-card .solution-icon-dark {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.solution-card .solution-icon-dark i,
.solution-card .solution-icon-dark::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

/* 方案标题 - 与图标垂直居中 */
.solution-card .solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 方案描述 */
.solution-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.solution-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.solution-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.solution-card ul li:last-child {
    margin-bottom: 0;
}

.solution-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    color: #f03c02;
    font-weight: bold;
    font-size: 0.85rem;
}

/* 方案编号 */
.solution-card .solution-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(240, 60, 2, 0.08);
    line-height: 1;
}

/* ==================== 法律依据样式 (law-*) ==================== */
.law-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.law-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(240, 60, 2, 0.12);
}

/* 法律卡片头部 - 图标和标题垂直居中 */
.law-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.law-card .law-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.law-card .law-icon i,
.law-card .law-icon::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

.law-card .law-icon-light {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.law-card .law-icon-light i,
.law-card .law-icon-light::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

.law-card .law-icon-dark {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f03c02 0%, #fd490f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.law-card .law-icon-dark i,
.law-card .law-icon-dark::before {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

/* 法律标题 - 与图标垂直居中 */
.law-card .law-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.law-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.law-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.law-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.law-card ul li:last-child {
    margin-bottom: 0;
}

.law-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    color: #f03c02;
    font-weight: bold;
    font-size: 0.85rem;
}

/* 法律编号 */
.law-card .law-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(240, 60, 2, 0.08);
    line-height: 1;
}

/* ==================== 信息卡片样式 ==================== */
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.info-card:hover {
    box-shadow: 0 10px 30px rgba(240, 60, 2, 0.1);
}

.info-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f03c02;
    display: inline-block;
}

.info-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.info-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.info-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    color: #f03c02;
    font-weight: bold;
    font-size: 0.9rem;
}

.info-card strong {
    color: #f03c02;
}

/* ==================== 公式框样式 ==================== */
.formula-box {
    background: #fff5f2;
    border-left: 4px solid #f03c02;
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 20px 0;
}

.formula-box p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.formula-box p:last-child {
    margin-bottom: 0;
}

.formula-box code {
    background: rgba(240, 60, 2, 0.1);
    color: #f03c02;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* ==================== Hero Section 按钮样式 ==================== */
.hero-section {
    background: linear-gradient(135deg, #f03c02 0%, #c53030 100%);
    color: #fff;
    padding: 20px 0;
}

.hero-section h1 {
    color: #fff;
    font-weight: 700;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .hero-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.hero-section .hero-btn-primary {
    background: #fff;
    color: #f03c02;
    border: 2px solid #fff;
}

.hero-section .hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #c53030;
    border-color: #fff;
}

.hero-section .hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-section .hero-btn-outline:hover {
    background: #fff;
    color: #f03c02;
    border-color: #fff;
}

/* ==================== 联系横幅样式 ==================== */
.contact-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}

.contact-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-banner .phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-banner .phone-number:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.contact-banner a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.contact-banner a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.contact-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    color: #fff !important;
}

.service-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    margin-top: 1rem;
    background: #f03c02;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none !important;
    border: 2px solid #f03c02;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    background: #fff;
    color: #f03c02 !important;
    transform: translateY(-2px);
}

/* ==================== 婚姻服务流程样式 ==================== */
.services.style2 {
    background: #f8f9fc;
    padding: 20px 0;
}

.services.style2 .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.services.style2 .section-title h3 {
    font-size: 1.5rem;
    color: #f03c02;
    font-weight: 600;
    margin-bottom: 10px;
}

.services.style2 .section-title h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.services.style2 .section-title p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 时间线样式 */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f03c02, #fd490f);
    z-index: 0;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #f03c02;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #f03c02;
    margin-bottom: 15px;
    margin-top: 12px;
}

.timeline-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(240, 60, 2, 0.15);
}

.timeline-content .step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(240, 60, 2, 0.2);
    margin-bottom: 5px;
}

.timeline-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 流程步骤样式 */
.process_item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.process_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 60, 2, 0.15);
    border-color: #f03c02;
    color: #f03c02;
}

/* ==================== 响应式样式 ==================== */
@media (max-width: 991.98px) {
    .special-section {
        padding: 10px 0;
    }

    .special-section .section-title {
        margin-bottom: 25px;
    }

    .special-section .section-title h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 767.98px) {
    .special-page {
        padding: 10px 0 30px;
    }

    .special-section {
        padding: 10px 0;
    }

    .solution-intro {
        padding: 20px 0 15px;
    }

    .solution-intro .intro-content {
        padding: 15px;
    }

    .icon-box {
        padding: 18px 12px;
        margin: 6px 0;
    }

    .process-card,
    .solution-card,
    .law-card {
        padding: 20px 15px;
    }

    .process-card .process-icon,
    .solution-card .solution-icon,
    .law-card .law-icon,
    .process-card .process-icon-light,
    .solution-card .solution-icon-light,
    .law-card .law-icon-light,
    .solution-card .solution-icon-dark,
    .law-card .law-icon-dark {
        width: 40px;
        height: 40px;
    }

    .process-card .process-icon i,
    .process-card .process-icon::before,
    .solution-card .solution-icon i,
    .solution-card .solution-icon::before,
    .law-card .law-icon i,
    .law-card .law-icon::before,
    .process-card .process-icon-light i,
    .process-card .process-icon-light::before,
    .solution-card .solution-icon-light i,
    .solution-card .solution-icon-light::before,
    .law-card .law-icon-light i,
    .law-card .law-icon-light::before,
    .solution-card .solution-icon-dark i,
    .solution-card .solution-icon-dark::before,
    .law-card .law-icon-dark i,
    .law-card .law-icon-dark::before {
        font-size: 1rem;
    }

    .process-card .process-title,
    .solution-card .solution-title,
    .law-card .law-title {
        font-size: 1.1rem;
    }

    .process-card .process-number,
    .solution-card .solution-number,
    .law-card .law-number {
        font-size: 2rem;
        top: 5px;
        right: 10px;
    }

    .special-section .section-title h2 {
        font-size: 1.35rem;
    }

    .contact-banner {
        padding: 3rem 0;
    }

    .contact-banner h2 {
        font-size: 1.75rem;
    }

    .contact-banner p {
        font-size: 1rem;
    }

    .contact-banner .phone-number {
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }
}
