/* 通用样式 - 菜鸟帮AI论文系统官网 */

/* CSS变量定义 */
:root {
    /* 主题色彩 */
    --primary-color: #4f91e2;
    --primary-dark: #427fcc;
    --primary-light: #6ba4e8;
    --secondary-color: #91baed;
    --accent-color: #f093fb;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #4f91e2 0%, #91baed 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* 文字颜色 */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-white: #ffffff;
    --bg-gray-50: #f7fafc;
    --bg-gray-100: #edf2f7;
    --bg-gray-900: #1a202c;
    
    /* 新增背景色 */
    --bg-soft-blue: #f0f7ff;
    --bg-soft-purple: #f8f5ff;
    --bg-soft-gradient: linear-gradient(135deg, #f0f7ff 0%, #f8f5ff 100%);
    --bg-pattern-light: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    --bg-mesh-gradient: radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.03) 0px, transparent 0%), 
                        radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 0.03) 0px, transparent 50%), 
                        radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.03) 0px, transparent 50%), 
                        radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 0.03) 0px, transparent 50%), 
                        radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 0.03) 0px, transparent 50%), 
                        radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 0.03) 0px, transparent 50%), 
                        radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 0.03) 0px, transparent 50%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 圆角 */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 间距 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 移动端字体大小优化 */
body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-soft-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-mesh-gradient);
    z-index: -1;
    pointer-events: none;
}

/* 移动端字体大小调整 */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* 增强移动端容器适配 */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 移动端友好的按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px; /* 移动端推荐的最小触摸目标 */
    white-space: nowrap;
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        min-height: 48px; /* 移动端更大的触摸目标 */
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 52px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .btn-large {
        padding: 1.125rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.nav-logo:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.nav-logo:active {
    transform: scale(0.98);
}

.nav-logo i {
    font-size: 1.8rem;
    transition: transform var(--transition-normal);
}

.nav-logo:hover i {
    transform: rotate(5deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--text-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button::after {
    display: none;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 响应式导航 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem var(--space-md);
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--space-xl);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100vh);
        transition: transform var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
}

/* 响应式导航优化 */
@media (max-width: 1024px) {
    .nav-menu {
        gap: var(--space-lg);
    }
    
    .nav-logo span {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem var(--space-md);
    }
    
    .nav-logo {
        font-size: 1.25rem;
        min-height: 44px; /* 确保触摸目标足够大 */
        min-width: 44px;
    }
    
    .nav-logo span {
        font-size: 1.25rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--space-xl);
        gap: var(--space-xl);
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: var(--space-md) 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        border-radius: var(--radius-xl);
        margin-top: var(--space-lg);
        width: 80%;
        max-width: 240px;
        text-align: center;
    }
    
    /* 防止菜单打开时页面滚动 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem var(--space-sm);
    }
    
    .nav-logo {
        font-size: 1.1rem;
        min-height: 44px; /* 确保触摸目标足够大 */
        min-width: 44px;
    }
    
    .nav-logo span {
        font-size: 1.1rem;
        display: none; /* 在很小的屏幕上只显示图标 */
    }
    
    .nav-menu {
        padding: var(--space-lg);
        gap: var(--space-lg);
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: var(--space-sm) 0;
    }
    
    .cta-button {
        width: 90%;
        max-width: 280px;
    }
}

/* 部分标题 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    position: relative;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 增强移动端section标题适配 */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    .section-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        max-width: 95%;
    }
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 30%, 
        #f093fb 60%, 
        #4facfe 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 900;
    animation: gradient-shift 3s ease-in-out infinite;
}

/* 渐变动画 */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
    display: flex;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 滚动显示动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 通用工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Footer样式 */
.footer {
    background: var(--bg-gray-900);
    color: var(--text-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--space-lg);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-lg);
}

.footer-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: var(--text-light);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* Footer响应式设计 */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
}

/* Footer移动端优化 */
.footer {
    background: var(--bg-gray-900);
    color: var(--text-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--space-xl) 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
    }
}

/* 移动端设备特定样式 */
.touch-device .btn,
.touch-device .nav-link,
.touch-device .card {
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.touch-device .btn:active,
.touch-device .nav-link:active,
.touch-device .card:active {
    transform: scale(0.98);
}

.mobile-view .section-header {
    margin-bottom: var(--space-2xl);
}

.mobile-view .hero {
    padding: 5rem 0 3rem;
}

.tablet-device .container {
    padding: 0 var(--space-lg);
}

/* 移动端视口高度变量 */
:root {
    --vh: 1vh;
}

.mobile-fullheight {
    height: calc(var(--vh, 1vh) * 100);
}

/* 移动端滚动优化 */
.mobile-scroll-smooth {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 移动端文本选择优化 */
.mobile-view .btn,
.mobile-view .nav-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 移动端输入优化 */
.mobile-view input,
.mobile-view textarea {
    font-size: 16px; /* 防止iOS缩放 */
}

/* 移动端动画性能优化 */
.mobile-view * {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 移动端点击高亮禁用 */
.touch-device * {
    -webkit-tap-highlight-color: transparent;
}

/* 面包屑导航样式 */
.breadcrumb-container {
    background: var(--bg-gray-50);
    border-bottom: 1px solid var(--bg-gray-100);
    padding: 1rem 0;
    margin-top: 70px; /* 考虑固定导航栏高度 */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.breadcrumb-item:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 0.7rem;
}

/* 增强的导航栏活动状态指示 */
.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    width: 100%;
}

/* 添加导航栏位置指示器 */
.nav-link.active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 页面位置指示器 */
.page-indicator {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
}

.page-indicator.show {
    display: block;
}

.indicator-item {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    margin: 0.5rem 0;
    transition: all var(--transition-normal);
    position: relative;
}

.indicator-item.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator-item::after {
    content: attr(data-section);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-gray-900);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.indicator-item:hover::after {
    opacity: 1;
}

/* 移动端面包屑优化 */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0.75rem 0;
        margin-top: 60px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .breadcrumb-item {
        padding: 0.125rem 0.25rem;
    }
    
    .breadcrumb-item span {
        display: none;
    }
    
    .breadcrumb-item i {
        margin: 0;
    }
    
    .page-indicator {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .breadcrumb-container {
        padding: 0.5rem 0;
        margin-top: 55px;
    }
}

/* 移动端导航增强 */
@media (max-width: 768px) {
    /* 移动端导航栏活动状态增强 */
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: var(--text-white);
        border-radius: var(--radius-lg);
        padding: 0.75rem 1.5rem;
        margin: 0.25rem 0;
        position: relative;
        overflow: hidden;
    }
    
    .nav-menu .nav-link.active::before {
        display: none; /* 隐藏桌面端的点指示器 */
    }
    
    .nav-menu .nav-link.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
        );
        animation: shimmer 2s infinite;
    }
    
    /* 移动端导航项增强 */
    .nav-menu .nav-link {
        position: relative;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:not(.active):hover {
        background: rgba(102, 126, 234, 0.1);
        transform: translateX(10px);
    }
    
    /* 移动端面包屑简化 */
    .breadcrumb-item span {
        display: none;
    }
    
    .breadcrumb-item.active span {
        display: inline;
        margin-left: 0.25rem;
    }
    
    .breadcrumb-separator {
        display: none;
    }
    
    .breadcrumb-item.active::before {
        content: '当前位置: ';
        font-size: 0.7rem;
        opacity: 0.6;
    }
}

/* 移动端页面指示器替代方案 */
@media (max-width: 768px) {
    .mobile-page-indicator {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.8rem;
        z-index: 1000;
        display: none;
        backdrop-filter: blur(10px);
    }
    
    .mobile-page-indicator.show {
        display: block;
        animation: slideUp 0.3s ease;
    }
}

/* 动画效果 */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 导航栏滑动指示器 */
.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu.active::before {
        opacity: 1;
    }
}

/* 触摸友好的交互增强 */
@media (max-width: 768px) {
    .nav-link,
    .breadcrumb-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* 导航项之间的分隔线 */
    .nav-item:not(:last-child) .nav-link:not(.cta-button)::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 10%;
        right: 10%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-item .nav-link.active::after {
        display: none;
    }
}