/* 响应式样式 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* 新闻区域 - 平板两列布局 */
    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .news-card.featured {
        grid-column: span 2;
        grid-row: auto;
    }
    .news-card.featured .news-image {
        height: 260px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* 移动设备 (最大768px) */
@media (max-width: 768px) {
    /* 基础容器调整 */
    .container {
        padding: 0 1rem;
    }
    
    /* 导航栏移动端优化 */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-brand {
        padding: 0.3rem 0.8rem;
        gap: 0.8rem;
    }
    
    .nav-brand span {
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }
    
    .logo {
        height: 38px;
    }
    
    /* 导航栏移动端 - 增强玻璃态效果 */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.95) 0%, 
            rgba(30, 41, 59, 0.9) 50%, 
            rgba(6, 182, 212, 0.1) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
        transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
        border-right: 1px solid rgba(6, 182, 212, 0.2);
    }
    
    .nav-menu .nav-link {
        font-size: 1.2rem;
        margin: 0.6rem 0;
        padding: 1rem 2rem;
        border-radius: 30px;
        background: linear-gradient(135deg, 
            rgba(6, 182, 212, 0.15) 0%, 
            rgba(245, 158, 11, 0.1) 100%);
        border: 1px solid rgba(6, 182, 212, 0.3);
        min-width: 220px;
        text-align: center;
        transform: translateX(-60px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    /* 移动端链接发光效果 */
    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(6, 182, 212, 0.4), 
            transparent);
        transition: left 0.6s ease;
    }
    
    .nav-menu .nav-link:hover::before {
        left: 100%;
    }
    
    .nav-menu.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-menu .nav-link:hover {
        background: linear-gradient(135deg, 
            rgba(6, 182, 212, 0.3) 0%, 
            rgba(245, 158, 11, 0.2) 100%);
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(6, 182, 212, 0.2);
        border-radius: 12px;
        padding: 0.8rem;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(6, 182, 212, 0.15);
        border: 1px solid rgba(6, 182, 212, 0.4);
        transform: scale(1.05);
    }
    
    .nav-toggle.active {
        background: rgba(6, 182, 212, 0.2);
        border: 1px solid rgba(6, 182, 212, 0.5);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--accent-color);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: var(--accent-color);
    }
    
    /* 防止背景滚动 */
    body.menu-open {
        overflow: hidden;
    }
    
    /* 英雄区域移动端优化 */
    .hero {
        padding-top: 90px;
        min-height: 85vh;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding-left: 0;
    }
    
    .hero-subtitle::before {
        display: none;
    }
    
    .hero-visual {
        height: 280px;
        margin-top: 1rem;
    }
    
    .card {
        min-width: 90px;
        padding: 0.8rem;
    }
    
    .card i {
        font-size: 1.3rem;
    }
    
    .card span {
        font-size: 0.75rem;
    }
    
    /* 区域间距调整 */
    section {
        padding: 3.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .section-subtitle::before,
    .section-subtitle::after {
        width: 20px;
    }
    
    .section-description {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
        padding: 1rem 1.5rem;
        line-height: 1.6;
    }
    
    /* 关于我们区域移动端 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .image-placeholder {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .detail-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .detail-icon {
        width: 45px;
        height: 45px;
    }
    
    .detail-icon i {
        font-size: 1.2rem;
    }
    
    .detail-content h4 {
        font-size: 1.1rem;
    }
    
    .detail-content p {
        font-size: 0.9rem;
    }
    
    /* 网格布局优化 */
    .fintech-highlights,
    .tech-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .highlight-item,
    .tech-item,
    .feature-item {
        padding: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .highlight-number {
        font-size: 2.5rem;
    }
    
    .tech-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .tech-icon i {
        font-size: 1.8rem;
    }
    
    /* 新闻区域 - 手机单列布局 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 2rem;
    }
    .news-card.featured {
        grid-column: auto;
        grid-row: auto;
    }
    .news-image {
        height: 160px;
    }
    .news-card.featured .news-image {
        height: 180px;
    }
    .news-content {
        padding: 1.2rem;
    }
    .news-content h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    .news-card.featured .news-content h3 {
        font-size: 1.1rem;
    }

    /* 服务卡片移动端 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .service-card {
        padding: 1.8rem 1.5rem;
    }
    
    .service-icon-wrapper i {
        font-size: 2.5rem;
    }
    
    /* 联系区域移动端 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .contact-item {
        padding: 1.8rem 1.5rem;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }
    
    .contact-icon i {
        font-size: 1.8rem;
    }
    
    /* 统计区域移动端 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* 推荐语区域移动端 */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Mission & Vision 移动端 */
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
    }
    
    .mission, .vision {
        padding: 1.5rem;
    }
    
    /* 按钮移动端 */
    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* 小屏幕移动设备 (最大480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    /* 导航栏小屏优化 */
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-brand {
        padding: 0.2rem 0.6rem;
        gap: 0.6rem;
    }
    
    .nav-brand span {
        font-size: 0.85rem;
    }
    
    .logo {
        height: 35px;
    }
    
    /* 英雄区域小屏优化 */
    .hero {
        padding-top: 85px;
        min-height: 80vh;
    }
    
    .hero .container {
        padding: 1.5rem 0.8rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-visual {
        height: 240px;
    }
    
    /* 区域标题小屏优化 */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 2px;
        bottom: -6px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .section-description {
        font-size: 0.85rem;
        margin-bottom: 2rem;
        padding: 0.8rem 1rem;
        line-height: 1.5;
    }
    
    /* 卡片组件小屏优化 */
    .highlight-item,
    .tech-item,
    .feature-item,
    .service-card,
    .contact-item {
        padding: 1.2rem;
    }
    
    .highlight-number {
        font-size: 2rem;
    }
    
    .tech-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .tech-icon i,
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    .service-icon-wrapper i {
        font-size: 2.2rem;
    }
    
    /* 新闻区域 - 小屏优化 */
    .news-grid {
        gap: 1rem;
    }
    
    .news-image { 
        height: 140px; 
    }
    
    .news-card.featured .news-image { 
        height: 160px; 
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-content h3 { 
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .news-card.featured .news-content h3 { 
        font-size: 1rem; 
    }
    
    /* 统计区域小屏优化 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 推荐语区域小屏优化 */
    .testimonial-card {
        padding: 1.2rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    /* Mission & Vision 小屏优化 */
    .mission, .vision {
        padding: 1.2rem;
    }
    
    /* 关于我们区域小屏优化 */
    .image-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .detail-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    /* 触摸友好的按钮尺寸 */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* 导航菜单链接小屏优化 */
    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
        min-width: 200px;
        margin: 0.5rem 0;
    }
}

/* 超小屏幕 (最大320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-description {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .service-card,
    .contact-item,
    .highlight-item,
    .tech-item,
    .feature-item {
        padding: 1rem;
    }
    
    .news-content {
        padding: 0.8rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
}

/* 移动端浮动按钮优化 */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .fab-option {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Footer 移动端优化 */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
    }
    
    .contact-info p {
        justify-content: center;
        font-size: 0.85rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .nav-toggle {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
        min-height: auto;
        padding: 1rem 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}