/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0A1A3D;
    --primary-blue: #1A3A8F;
    --primary-accent: #3A5FCD;
    --light-blue: #E8F1FF;
    --gray-dark: #2C3E50;
    --gray-medium: #6c757d;
    --white: #FFFFFF;
    --transition: 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 通用按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-height: 44px;
    padding-top: 0px;
    padding-right: 24px;
    padding-bottom: 0px;
    padding-left: 24px;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 相关资源 */
/* 相关计算器区域样式 */
.family-law-calculators {
    margin-bottom: 0.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a6ee0;
}

.family-law-calculators h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.calculator-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

/* 移动端：单列 */
@media (max-width: 768px) {
    .calculator-list {
        grid-template-columns: 1fr;
    }
}

/* 平板端：2列 */
@media (min-width: 769px) and (max-width: 1024px) {
    .calculator-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC端：3列 */
@media (min-width: 1025px) {
    .calculator-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calculator-link {
    display: block;
    padding: 1rem;
    color: #4a6ee0;
    text-decoration: none;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    height: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-link:hover {
    background: #4a6ee0;
    color: white;
    border-color: #4a6ee0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 110, 224, 0.2);
}

.calculator-link.current {
    background: #4a6ee0;
    color: white;
    border-color: #4a6ee0;
    box-shadow: 0 2px 8px rgba(74, 110, 224, 0.3);
}

/* 推荐内容区域样式 */
.rec-container {
    margin-top: 0rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.rec-section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.rec-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rec-card-link {
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.rec-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #4a6ee0;
}

.rec-card-title {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #4a6ee0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.rec-card-content {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere; 
    hyphens: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .family-law-calculators,
    .rec-container {
        padding: 1.2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .family-law-calculators h2,
    .rec-section-title {
        font-size: 1.3rem;
    }
    
    .calculator-link {
        padding: 0.9rem;
        font-size: 0.95rem;
        min-height: 55px;
    }
    
    .rec-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .rec-card-link {
        padding: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rec-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rec-card-link:nth-child(3) {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }
}

@media (min-width: 1025px) {
    .rec-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 打印样式 */
@media print {
    .family-law-calculators,
    .rec-container {
        display: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .family-law-calculators {
        background: #1e2a3a;
        border-left-color: #5a7df4;
    }
    
    .calculator-link {
        background: #2d3848;
        color: #8ba3ff;
        border-color: #3a4556;
    }
    
    .calculator-link:hover,
    .calculator-link.current {
        background: #5a7df4;
        color: #1e2a3a;
    }
    
    .rec-container {
        background: linear-gradient(135deg, #1e2a3a 0%, #2d3848 100%);
    }
    
    .rec-section-title {
        color: #e2e8f0;
    }
    
    .rec-card-link {
        background: #2d3848;
        color: #cbd5e0;
        border-color: #3a4556;
    }
    
    .rec-card-title {
        color: #8ba3ff;
    }
    
    .rec-card-content {
        color: #a0aec0;
    }
}

/* 减少运动偏好 */
@media (prefers-reduced-motion: reduce) {
    .calculator-link,
    .rec-card-link {
        transition: none;
    }
    
    .calculator-link:hover {
        transform: none;
    }
    
    .rec-card-link:hover {
        transform: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .calculator-link {
        border-width: 2px;
    }
    
    .rec-card-link {
        border-width: 2px;
        border-color: currentColor;
    }
}

/* 相关计算器区域样式 */
.related-calculators {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%);
    border-radius: 12px;
}

.related-calculators br {
    margin-bottom: 15px;
}

.related-calculators h2.section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.related-calculators h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #4a6ee0, #8ba3ff);
    border-radius: 2px;
}

.related-calculators ul {
    list-style: none;
    margin: 0;
    display: grid;
    gap: 1rem;
    padding-bottom: 20px;
}

/* PC端样式 (≥1024px) */
@media (min-width: 1024px) {
    .related-calculators ul {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-calculators {
        padding: 0rem;
    }
    
    .related-calculators h2.section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
}

/* 平板端样式 (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .related-calculators ul {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-calculators {
        padding: 1.75rem;
    }
}

/* 移动端样式 (<768px) */
@media (max-width: 767px) {
    .related-calculators ul {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .related-calculators {
        padding: 1.25rem;
        margin: 1.5rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .related-calculators h2.section-title {
        font-size: 1.4rem;
        padding-bottom: 0.5rem;
    }
}

/* 通用链接样式 */
.related-calculators ul li {
    margin: 0;
}

.related-calculators ul li a {
    display: block;
    padding: 0.5rem 0rem;
    color: #4a6ee0;
    text-decoration: none;
    background: white;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.related-calculators ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4a6ee0, #8ba3ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.related-calculators ul li a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 10px rgba(74, 110, 224, 0.25);
    border-color: #4a6ee0;
}

.related-calculators ul li a:hover::before {
    opacity: 1;
}

.related-calculators ul li a.current {
    background: linear-gradient(135deg, #4a6ee0, #8ba3ff);
    color: white;
    border-color: #4a6ee0;
    box-shadow: 0 4px 15px rgba(74, 110, 224, 0.3);
}

.related-calculators ul li a.current:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 110, 224, 0.35);
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .related-calculators {
        background: linear-gradient(135deg, #1a2536 0%, #2d3748 100%);
        border-color: #4a5568;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .related-calculators h2.section-title {
        color: #e2e8f0;
    }
    
    .related-calculators ul li a {
        background: #2d3748;
        color: #8ba3ff;
        border-color: #4a5568;
    }
    
    .related-calculators ul li a::before {
        background: linear-gradient(135deg, #5a7df4, #9bb5ff);
    }
    
    .related-calculators ul li a:hover {
        border-color: #5a7df4;
        box-shadow: 0 8px 20px rgba(91, 125, 244, 0.2);
    }
    
    .related-calculators ul li a.current {
        background: linear-gradient(135deg, #5a7df4, #9bb5ff);
        color: #1a2536;
        border-color: #5a7df4;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .related-calculators ul li a {
        transition: none;
    }
    
    .related-calculators ul li a:hover {
        transform: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .related-calculators ul li a {
        border-width: 3px;
    }
    
    .related-calculators ul li a.current {
        border-width: 3px;
    }
}

/* 悬停设备检测 */
@media (hover: hover) and (pointer: fine) {
    .related-calculators ul li a:hover {
        transform: translateY(-3px);
    }
    
    .related-calculators ul li a.current:hover {
        transform: translateY(-2px);
    }
}

@media (hover: none) {
    .related-calculators ul li a:active {
        transform: scale(0.98);
    }
    
    .related-calculators ul li a.current:active {
        transform: scale(0.98);
    }
}

/* 计算器提示卡片样式 */
.calculator-callout {
    margin: 2rem 0;
}

.calculator-callout p {
    margin: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4a6ee0 0%, #6b8cff 100%);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(74, 110, 224, 0.2);
}

/* 当 p 标签为空时隐藏 */
.calculator-callout p:empty {
    display: none;
}

/* 标题样式 */
.calculator-callout p strong {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0rem;
    color: white;
}

/* 正文样式 */
.calculator-callout p {
    margin-bottom: 1rem;
}

/* 按钮样式 */
.calculator-callout p a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: white;
    color: #4a6ee0 !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 按钮悬停效果 */
.calculator-callout p a:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .calculator-callout {
        margin: 1.5rem -1rem;
    }
    
    .calculator-callout p {
        border-radius: 0;
        padding: 1.25rem;
    }
    
    .calculator-callout p a {
        display: block;
        text-align: center;
        margin-top: 1rem;
        padding: 0.85rem;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .calculator-callout p {
        padding: 1.75rem;
    }
}

/* PC端优化 */
@media (min-width: 1025px) {
    .calculator-callout p {
        padding: 2rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .calculator-callout {
        display: flex;
        justify-content: center;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .calculator-callout p {
        background: linear-gradient(135deg, #3a5bc7 0%, #4a6ee0 100%);
    }
    
    .calculator-callout p a {
        background: white;
        color: #3a5bc7 !important;
    }
    
    .calculator-callout p a:hover {
        background: #f0f2f5;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .calculator-callout p a {
        transition: none;
    }
    
    .calculator-callout p a:hover {
        transform: none;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .calculator-callout p a:active {
        background: #f8f9fa;
    }
}

.usage-introduction {
    margin: 1rem auto;
    padding: 1rem;
    background-color: #fafafa;
    border-left: 4px solid #2c5282;
    border-right: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.usage-introduction p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    text-align: justify;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.01em;
}

.usage-introduction p::before {
    content: "※ ";
    color: #2c5282;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .usage-introduction {
        margin: 10px;
        padding: 1rem;
        border-left-width: 3px;
    }
    
    .usage-introduction p {
        font-size: 1.2rem;
        line-height: 1.55;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .usage-introduction {
        margin: 5px;
        padding: 0.5rem;
        border-left-width: 2px;
    }
    
    .usage-introduction p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* SEO文章 */
p.dce-container {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    p.dce-container {
        padding: 15px;
    }
    p.dce-h2 {
        font-size: 1.5rem;
    }
    p.dce-h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    p.dce-container {
        padding: 10px;
    }
}

/* 标题样式：全部改为P标签，语义+样式兼顾 */
p.dce-h2 {
    display: block;
    font-size: 1.8rem;
    color: #34495e;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
    font-weight: bold;
}

p.dce-h3 {
    display: block;
    font-size: 1.4rem;
    color: #2980b9;
    margin: 20px 0 10px;
    font-weight: bold;
}

/* 文本样式：纯P标签，无嵌套 */
p.dce-p {
    display: block;
    margin-bottom: 15px;
    font-size: 1rem;
}

span.dce-strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 列表样式：适配P标签容器 */
p.dce-ul {
    display: block;
    margin: 15px 0 15px 30px;
    list-style-type: disc;
    list-style-position: inside;
}

p.dce-ol {
    display: block;
    margin: 15px 0 15px 30px;
    list-style-type: decimal;
    list-style-position: inside;
}

p.dce-li {
    display: list-item;
    margin-bottom: 8px;
    padding-left: 10px;
}

/* 案例样式：纯P标签，无嵌套 */
p.dce-case {
    display: block;
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.6;
}

/* 工具入口提示：纯P标签 */
p.dce-tool-callout {
    display: block;
    background-color: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

a.dce-tool-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.3s;
}

a.dce-tool-btn:hover {
    background-color: #2980b9;
}

/* 免责声明样式：纯P标签，无嵌套 */
p.dce-disclaimer {
    display: block;
    margin-top: 40px;
    padding: 20px;
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.6;
}

p.dce-disclaimer-title {
    display: block;
    font-size: 1.2rem;
    color: #e74c3c;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 警告提示 */
span.dce-warning {
    color: #e74c3c;
    font-weight: 600;
}

/* 行间距调整：替代嵌套P标签 */
.dce-mt-10 {
    margin-top: 10px;
    display: block;
}

/* 极简工具 —— 只作用在 .simple50 内部，绝不污染外部 */
.simple50 {
    display: block;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 100%;
    background: transparent;
    color: #1e2b3c;
}

.simple50-wrap {
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    width: 100%;
}

/* 头部 —— 小，干净 */
.simple50-header {
    margin-bottom: 0.75rem;
}

.simple50-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.1rem 0;
    color: #1f3a5f;
    letter-spacing: -0.3px;
}

/* 网格：移动优先，每行3个，让点击区域够大 */
.simple50-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 0.8rem 0 0.5rem;
}

/* 卡片超级简单：白底微圆，柔和阴影 */
.simple50-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.7rem 0.2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,10,30,0.04);
    border: 1px solid #e4ecf5;
    transition: 0.1s ease;
}

.simple50-card:active {
    background: #f2f8ff;
    border-color: #b6cde0;
    transform: scale(0.97);
}

.simple50-card:hover {
    border-color: #BBD3E3;
    transform: scale(0.97);
    background-color: #F4F9FF;
}

/* 州名链接：占满卡片，更容易点 */
.simple50-card a {
    display: block;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    color: #1d3b5c;
    padding: 0.15rem 0;
    line-height: 1.3;
    word-break: break-word;
    outline: none;
}

/* 小屏适配：稍小字体，但依然好按 */
@media screen and (max-width: 420px) {
    .simple50-grid {
        gap: 0.4rem;
    }
    .simple50-card a {
        font-size: 0.9rem;
    }
}

/* 极窄屏(<=360) 就变成2列，保证可读 */
@media screen and (max-width: 360px) {
    .simple50-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 基础 & 导航增强特效 ===== */
.containero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ---------- 导航 (原样式 + 特效: 微光渐变 + 活跃指示器滑动) ---------- */
.navbar {
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid #eef2f6;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    padding-top: 5px;
    padding-right: 0;
    padding-bottom: 5px;
    padding-left: 0;

}

.navbar .containero {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo span {
    color: #4F52C4;  
    font-weight: 600;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-logo {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.9;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.02);
    }
}

/* 导航链接新特效：微光渐变 + 滑动下划线 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 40px;
    transition: all 0.25s ease;
    position: relative;
    background: linear-gradient(145deg, #334155, #1e293b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.2s, background 0.3s, box-shadow 0.2s;
    padding-top: 8px;
    padding-right: 10px;
    padding-bottom: 8px;
    padding-left: 10px;
}

/* 悬停微光加深 + 轻微上浮 */
.nav-link:hover {
    background: linear-gradient(145deg, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(37,99,235,0.15);
}

/* 优雅下划线 (滑动进入) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px 3px 0 0;
    transition: transform 0.2s ease-out;
    transform-origin: center;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* 活跃链接: 渐变更强 + 下划线常亮 */
.nav-link.active {
    background: linear-gradient(145deg, #2563eb, #5b21b6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, #2563eb, #a855f7);
    width: 28px;
    height: 4px;
    bottom: -1px;
    box-shadow: 0 0 8px #2563eb88;
}

/* ===== PC端导航搜索框样式强化 ===== */
.nav-tool-search {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 6px 12px 6px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    margin-left: 8px;
    width: 240px;
    position: relative;
    overflow: hidden;
}

.nav-tool-search .search-icon {
    color: #64748b;
    font-size: 0.9rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

/* PC端搜索输入框强化 - 使用ID选择器提高权重 */
.nav-tool-search input#navSearchInput {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #334155;
    margin: 0;
    padding: 6px 0;
    line-height: normal;
}

.nav-tool-search input#navSearchInput:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.nav-tool-search input#navSearchInput::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* 防止自动填充样式 */
.nav-tool-search input#navSearchInput:-webkit-autofill,
.nav-tool-search input#navSearchInput:-webkit-autofill:hover,
.nav-tool-search input#navSearchInput:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #f1f5f9 inset !important;
    -webkit-text-fill-color: #334155 !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: background-color 5000s ease-in-out 0s;
}

.nav-tool-search button {
    background: #2563eb;
    border: none;
    color: white;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.15s;
    flex-shrink: 0;
}

.nav-tool-search button:hover {
    background: #1d4ed8;
}

.dropdown-container {
    position: relative;
}

/* 移动端按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background: #0f172a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    display: block;
}

/* 移动链接同样加渐变特效 */
.mobile-link {
    display: block;
    padding: 14px 0;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #eef2f6;
    position: relative;
    transition: 0.2s;
    background: linear-gradient(145deg, #334155, #1e293b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-link:hover {
    background: linear-gradient(145deg, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
}

.mobile-link.active {
    background: linear-gradient(145deg, #2563eb, #5b21b6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
}

/* ===== 移动端搜索框样式强化 ===== */
.mobile-search {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 10px 16px;
    margin-top: 16px;
    gap: 10px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    box-sizing: border-box;
}

.mobile-search .search-icon {
    color: #64748b;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
}

/* 移动端搜索输入框强化 - 使用ID选择器 */
#mobileNavSearchInput,
.mobile-search input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
    color: #334155;
    
    margin: 0 !important;
    padding: 8px 0 !important;
    min-width: 0;
    width: 100%;
    
    line-height: normal;
    text-indent: 0;
    -webkit-text-fill-color: #334155;
}

/* 移除焦点时的所有默认样式 */
#mobileNavSearchInput:focus,
.mobile-search input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* 移除焦点可见轮廓 */
#mobileNavSearchInput:focus-visible,
.mobile-search input:focus-visible {
    outline: none !important;
}

/* placeholder 样式 */
#mobileNavSearchInput::placeholder,
.mobile-search input::placeholder {
    color: #94a3b8;
    opacity: 1;
    font-size: 1rem;
}

/* 防止自动填充样式 */
#mobileNavSearchInput:-webkit-autofill,
#mobileNavSearchInput:-webkit-autofill:hover,
#mobileNavSearchInput:-webkit-autofill:focus,
.mobile-search input:-webkit-autofill,
.mobile-search input:-webkit-autofill:hover,
.mobile-search input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #f1f5f9 inset !important;
    -webkit-text-fill-color: #334155 !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #334155 !important;
}

/* 移动端点击移除高亮 */
.mobile-search * {
    -webkit-tap-highlight-color: transparent;
}

/* ===== 移动端专用覆盖样式 ===== */
@media (max-width: 768px) {
    /* 隐藏默认的导航链接，显示移动端菜单按钮 */
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    /* 确保移动端搜索框容器正确 */
    .mobile-search {
        padding: 8px 16px !important;
        gap: 8px !important;
        background: #f1f5f9;
    }
    
    /* 确保图标和输入框垂直居中 */
    .mobile-search .search-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }
}

/* 极窄屏额外优化 */
@media (max-width: 360px) {
    .mobile-search {
        padding: 8px 12px !important;
        gap: 6px !important;
    }
    
    #mobileNavSearchInput,
    .mobile-search input {
        font-size: 0.95rem !important;
    }
}

/* ===== 底部样式 ===== */
    .footer {
	background:white;
	border-top:1px solid #e2e8f0;
	margin-top:35px;
	padding-top: 0px;
	padding-right: 0;
	padding-bottom: 24px;
	padding-left: 0;
        }
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            text-align: center;
        }
        .logo-a { 
            margin-bottom:0px;
            font-weight:600;
        }
        .logo-a span {
            color: #2563eb;
        }
        .footer-description {
            color: #64748b;
            font-size:0.9rem;
            max-width: 1150px;
            margin: 0 auto 24px;
            line-height:1.6;
        }
        
        /* ✅ 英文免责声明样式 */
        .legal-disclaimer {
            background: #f8fafc;
            border-left: 4px solid #64748b;
            border-right: 4px solid #64748b;
            padding: 16px 24px;
            margin: 0 auto 32px;
            font-size: 0.85rem;
            color: #475569;
            line-height: 1.6;
            max-width: 1150px;
            border-radius: 8px;
        }
        .legal-disclaimer strong {
            color: #334155;
            font-weight: 600;
        }
        
        /* ✅ 版权区 - 只有4个链接 */
        .copyright { 
            border-top:1px solid #e2e8f0; 
            padding-top:24px; 
            display:flex;
            justify-content:center;
            align-items:center;
            gap:16px;
            flex-wrap:wrap;
            color:#64748b; 
            font-size:0.85rem;
        }
        .copyright a {
            color:#64748b;
            text-decoration:none;
            padding:0 4px;
        }
        .copyright a:hover {
            color:#2563eb;
            text-decoration:underline;
        }
        .dot {
            color:#cbd5e1;
        }
.footer-links a {
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.15s;
}

.footer-links a:hover {
    color: #2563eb;
}

.copyright {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

 /* 响应式调整 (与原文件一致) */
     @media (max-width: 1024px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .footer-grid {
                grid-template-columns:  1fr 1fr;
            }
        }
		
.demo-placeholder {
    text-align: center;
    padding: 60px 24px;
    background: #f0f7ff;
    margin: 20px 0;
    border-radius: 24px;
    color: #1e40af;
    font-weight: 500;
}

/* 下拉菜单样式 */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.2);
    border: 1px solid #eef2f6;
    z-index: 200;
    margin-top: 6px;
    overflow: hidden;
}

.search-dropdown.show {
    display: block;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafd;
    border-bottom: 1px solid #e9eef3;
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
}

.tool-item {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    border-bottom: 1px solid #f0f4fa;
    color: #0f172a;
    transition: 0.15s;
}

.tool-item:hover {
    background: #f0f7ff;
}

.no-result {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

/* ===== 全局输入框样式重置 ===== */
input {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

input:focus {
    outline: none;
}

/* 移除所有输入框的自动填充背景 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset;
    -webkit-text-fill-color: #333;
    transition: background-color 5000s ease-in-out 0s;
}