/* 移动端搜索框样式 */
.mobile-search {
    display: none;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* 移动端导航栏优化 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
        gap: 0.3rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .logo span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .btn-call {
        font-size: 0.85rem;
        display: none; /* 移动端隐藏电话显示 */
    }
    
    .btn-consult {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

.mobile-search .search-box {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-search .search-box i {
    color: var(--text-light);
    font-size: 1.2rem;
}

.mobile-search .search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.mobile-search .search-box input::placeholder {
    color: var(--text-light);
}

/* 区域横幅样式 */
.region-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.region-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.region-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.region-banner-phone {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.phone-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}

.phone-number:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* 区域横幅心跳动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }
}

/* 知识分类卡片样式 */
.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.15);
}

.category-title {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.category-card:hover .category-title {
    color: white;
}

/* 分类文章列表样式 */
.category-articles {
    margin-top: 3rem;
    animation: fadeIn 0.5s ease;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.articles-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.btn-back {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.article-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.article-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 移动端电商风格优化 */
@media (max-width: 768px) {
    /* 显示移动端搜索框 */
    .mobile-search {
        display: block;
    }
    
    /* Hero区域优化 - 一屏半显示 */
    .hero {
        min-height: 60vh;
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-feature {
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* 快捷服务网格 - 电商风格 */
    .quick-services {
        padding: 2rem 0;
    }
    
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .quick-service-item {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .quick-service-item h3 {
        font-size: 1rem;
    }
    
    .quick-service-item p {
        font-size: 0.85rem;
    }
    
    /* 区域横幅移动端优化 */
    .region-banner {
        display: block !important; /* 移动端也显示横幅 */
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .region-banner-title {
        font-size: 1.8rem;
    }
    
    .region-banner-phone {
        font-size: 1rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
        display: block;
        margin-top: 0.5rem;
    }
    
    /* 知识分类卡片移动端 */
    .knowledge-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        border-radius: 12px;
    }
    
    .category-image {
        height: 120px;
    }
    
    .category-title {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* 文章列表移动端 */
    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .articles-header h3 {
        font-size: 1.3rem;
    }
    
    .btn-back {
        width: 100%;
        text-align: center;
    }
    
    .article-item {
        padding: 1.25rem;
    }
    
    .article-item h4 {
        font-size: 1.05rem;
    }
    
    /* 统计数据移动端 */
    .stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* 导航菜单电商风格 */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        gap: 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
    }
    
    /* 移动端底部导航栏（类似淘宝/京东） */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        display: none;
    }
    
    .mobile-bottom-nav-content {
        display: flex;
        justify-content: space-around;
        padding: 0.5rem 0;
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        flex: 1;
        text-decoration: none;
        color: var(--text-light);
        transition: color 0.3s ease;
    }
    
    .mobile-nav-item.active {
        color: var(--primary-color);
    }
    
    .mobile-nav-item i {
        font-size: 1.5rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.75rem;
    }
    
    /* 在移动端显示底部导航 */
    @media (max-width: 768px) {
        .mobile-bottom-nav {
            display: block;
        }
        
        /* 为底部导航预留空间 */
        body {
            padding-bottom: 60px;
        }
    }
    
    /* 隐藏桌面端的在线客服，移动端改用底部导航 */
    .customer-service {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 移动端服务弹窗 */
.mobile-services-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.mobile-services-modal.active {
    display: block;
}

.mobile-services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.mobile-services-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.mobile-services-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

.mobile-services-header .close-btn {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-services-header .close-btn:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.mobile-services-list {
    padding: 1rem;
}

.mobile-service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-service-item:active {
    transform: scale(0.98);
    background: #f9fafb;
}

.service-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-item-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-item-info {
    flex: 1;
}

.service-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.service-item-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.mobile-service-item > .fa-chevron-right {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 税务风险监测横幅 */
.tax-risk-banner {
    background: #f8f9fa;
    padding: 4rem 0;
    position: relative;
}

.tax-risk-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
    position: relative;
    z-index: 1;
    animation: heartbeat 2s ease-in-out infinite;
}

/* 心跳动画 */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 50px rgba(255, 107, 107, 0.5);
    }
}

.tax-risk-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

.tax-risk-icon i {
    font-size: 3rem;
    color: white;
}

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

.tax-risk-info {
    flex: 1;
}

.tax-risk-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tax-risk-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.tax-risk-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-tag i {
    font-size: 1rem;
}

.tax-risk-action {
    text-align: center;
    flex-shrink: 0;
}

.btn-tax-risk {
    background: white;
    color: #ff6b6b;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-tax-risk:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.btn-tax-risk i {
    font-size: 1.2rem;
}

.tax-risk-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 移动端税务风险横幅优化 */
@media (max-width: 768px) {
    .tax-risk-banner {
        padding: 2rem 0;
    }
    
    .tax-risk-content {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .tax-risk-icon {
        width: 80px;
        height: 80px;
    }
    
    .tax-risk-icon i {
        font-size: 2.5rem;
    }
    
    .tax-risk-title {
        font-size: 1.5rem;
    }
    
    .tax-risk-subtitle {
        font-size: 0.95rem;
    }
    
    .tax-risk-features {
        justify-content: center;
    }
    
    .feature-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-tax-risk {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}
