/* 独生子女服务页面样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.my-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f5f5;
}

/* 顶部导航栏样式 */
.top-header {
    background: #f5f5f5;
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e5e7eb;
}

.h-t-l {
    display: flex;
    align-items: center;
}

.h-t-l .nm-line-v-s {
    width: 1px;
    height: 14px;
    background: #ccc;
    margin: 0 15px;
}

/* 统一所有链接的样式 */
.h-t-item, .h-t-l a, .h-t-r a {
    color: #666 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.h-t-item:hover, .h-t-l a:hover, .h-t-r a:hover {
    color: #333 !important;
}

/* 移除悬停时的主题色变化 */
.h-t-item:hover {
    color: #333;
}

.h-t-r ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.h-t-r li {
    margin-left: 20px;
}

.h-t-r li:first-child {
    margin-left: 0;
}

.h-t-r a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.h-t-r a:hover {
    color: #333;
}

/* 移除悬停时的主题色变化 */
.h-t-item:hover {
    color: #333;
}

.h-t-r img {
    height: 24px;
    vertical-align: middle;
}

/* 文字大小类 */
.h6 {
    font-size: 14px;
}

.h7 {
    font-size: 14px;
}

.color2 {
    color: #666;
}

/* 页面布局 */
.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* 统一文字大小规范 */
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.3rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.8rem; }
.text-large { font-size: 1.2rem; }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.8rem; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: #f8fafc;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
}

/* 头部区域的container特殊处理 */
.header .container {
    background: transparent;
}

/* 头部样式 - 高级美化效果 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0 100px;
    text-align: center;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* 头部装饰性背景元素 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

/* 动态波浪效果 */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cdefs%3E%3ClinearGradient id='wave-gradient' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23667eea' stop-opacity='0.1'/%3E%3Cstop offset='100%25' stop-color='%23764ba2' stop-opacity='0.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23wave-gradient)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* 头部内部的container保持居中 */
.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 主标题美化 */
.header h1 {
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
    letter-spacing: -1px;
    animation: fadeInDown 1s ease-out;
}

/* 标题图标样式 */
.header h1 i {
    margin-right: 20px;
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* 副标题美化 */
.header .subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
}

/* 添加发光效果 */
.header .subtitle::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 20px auto 0;
    animation: shine 2s ease-in-out infinite;
}

/* 动画定义 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* 移除重复的h1样式，已被.header h1覆盖 */

.subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    opacity: 0.9;
}

.content {
    padding: 50px;
}

/* 服务卡片样式 - 现代简洁设计 */
.service-card {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

/* 服务卡片通用样式 */
.service-card:hover {
    transform: translateY(-5px);
}

/* 统一标题样式 */
.service-card h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-weight: 600;
    line-height: 1.3;
}

.service-card h2 i {
    margin-right: 15px;
    font-size: 1.8rem;
    color: #667eea;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 25px 0 15px 0;
    font-weight: 600;
    line-height: 1.4;
}

.service-card h3 i {
    color: #667eea;
    margin-right: 10px;
    font-size: 1.2rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 10px;
    position: relative;
    color: #4a5568;
}

/* .service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
} */

.service-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

/* 表格样式 - 现代设计 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    line-height: 1.6;
    background: #ffffff;
}

table tr:last-child td {
    border-bottom: none;
}

/* 材料网格 */
.material-grid {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

.material-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.material-item h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.material-item h4 i {
    margin-right: 10px;
    color: #667eea;
    font-size: 1.2rem;
}

/* 统一所有h4标签样式，包括text-large类 */
h4, .text-large {
    font-size: 1.2rem !important;
    color: #2d3748 !important;
    font-weight: 600;
}

/* 流程图 */
.process-flow {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.process-flow h3 {
    font-size: 1.4rem;
    color: #1a202c;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.process-flow h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #f6ad55;
}

.step-number {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

.step h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
}

.step p {
    font-size: 0.95rem;
    color: #4a5568;
}

/* 联系信息 */
.contact-info {
    background: linear-gradient(45deg, #fa709a 0%, #fee140 100%);
    border-radius: 20px;
    padding: 35px;
    color: #2d3748;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #4a5568;
}

.contact-info .phone {
    font-size: 2.2rem;
    font-weight: bold;
    color: #e53e3e;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 返回按钮 */
.back-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    background: #5a67d8;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.back-button i {
    margin-right: 10px;
}

/* 右侧快捷导航菜单 */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 15px 10px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.side-nav-title {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.nav-item {
    display: block;
    padding: 8px 12px;
    margin-bottom: 8px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.nav-item:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-item.active {
    background: #667eea;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 提示框 */
.alert-box {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.alert-box:hover {
    background: #e0f2fe;
    transform: translateX(2px);
}

/* 问答卡片 */
.qa-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.qa-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.qa-item p {
    margin: 0;
}

.qa-item p:first-child {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.qa-item p:last-child {
    padding-left: 40px;
    position: relative;
}

.qa-item p:last-child::before {
    content: 'A';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 调整内容边距，避免被导航遮挡 */
.content {
    margin-right: 20px;
}

/* 页面布局调整 - 适配顶部导航 */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
    grid-row: 2;
    width: 100%;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links li {
    display: inline-flex;
    align-items: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f6ad55;
}

.nm-line-v-s {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.foot-cc {
    margin-top: 30px;
}

.foot-cc p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.foot-cc span {
    margin: 0 15px;
}

.foot-cc a {
    color: #f6ad55;
    text-decoration: none;
}

.foot-cc a:hover {
    color: #ffffff;
}

.foot-cc img {
    vertical-align: middle;
    margin-right: 5px;
}

/* 通用样式类 */
.text-gray-600 { color: #4a5568; }
.text-blue-600 { color: #5a67d8; }
.text-red-500 { color: #e53e3e; }
.text-orange-500 { color: #ed8936; }

.mb-4 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 30px; }
.mt-4 { margin-top: 20px; }

.py-5 { padding: 20px 0; }
.px-4 { padding: 0 15px; }
.p-4 { padding: 15px; }

.table-auto { width: 100%; }
.border-collapse { border-collapse: collapse; }
.overflow-x-auto { overflow-x: auto; }

.bg-gray-100 { background: #f8f9fa; }
.bg-blue-500 { background: #667eea; }
.text-white { color: white; }

.flex { display: flex; }
.text-center { text-align: center; }
.align-middle { vertical-align: middle; }

.table-striped tbody tr:nth-child(even) { background: #f7fafc; }

/* 图标样式 */
.icon-blue { color: #f6ad55; }
.icon-green { color: #48bb78; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .side-nav {
        right: 10px;
        padding: 10px 8px;
        width: 160px;
    }

    .nav-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .content {
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .step:not(:last-child)::after {
        content: '↓';
        right: 50%;
        bottom: -25px;
        top: auto;
        transform: translateX(50%);
    }

    .side-nav {
        display: none;
    }

    .content {
        margin-right: 0;
        padding: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .foot-cc span {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }

    .service-card li {
        padding-left: 40px;
    }

    .service-card li::before {
        left: -20px;
    }

    .step {
        min-width: 100%;
    }
}

/* Process Step Components - 新增流程步骤样式 */
.process-flow {
    padding: 20px;
    margin: 20px 0;
}

.process-step {
    margin-bottom: 25px;
    position: relative;
}

.step-content {
    width: 100%;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.step-description {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.step-description p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step-title {
        font-size: 1rem;
    }
}