/* 首页专用样式 */



.search-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    padding: 5px 20px;
    text-align: center;
}

.search-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.search-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.search-content {
    padding: 20px;
}

.search-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-input-group input:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.search-btn:disabled:hover {
    background: #ccc;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* 联系信息样式 */
.contact-info {
    margin: 20px 0;
    text-align: center; 
    /* background: rgba(255, 255, 255, 0.6); */
    border-radius: 10px;
    backdrop-filter: blur(8px);
    /* border: 1px solid rgba(0, 123, 255, 0.1); */
}

.contact-email {
    text-decoration: none;
    display: inline-flex;
    gap: 4px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.contact-email:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-1px);
}

.contact-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 2px;
}

.email-address {
    font-size: 16px;
    color: #007bff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-email:hover .email-address {
    color: #0056b3;
    text-decoration-color: rgba(118, 75, 162, 0.5);
}

/* 导航链接 */
.nav-links {
    /* margin-top: 24px; */
    /* padding: 20px; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    /* padding: 8px 16px; */
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.nav-link:hover {
    color: #0056b3;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-separator {
    margin: 0 8px;
    color: #ddd;
    font-size: 16px;
    font-weight: 300;
    user-select: none;
    display: flex;
    align-items: center;
    height: 40px; /* 确保与nav-link的高度一致 */
}

/* 响应式 */
@media (max-width: 375px) {
    .search-content {
        padding: 16px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    .search-header {
        padding:5px 16px;
    }
    
    .contact-info {
        margin: 16px 0;
    }
    
    .contact-label {
        font-size: 13px;
    }
    
    .email-address {
        font-size: 15px;
    }
    
    .nav-links {
        /* margin-top: 20px; */
        /* padding: 16px; */
    }
    
    .nav-link {
        font-size: 11px;
        /* padding: 6px 12px; */
    }
    
    .nav-separator {
        margin: 0 12px;
        height: 36px; /* 小屏幕下调整高度与nav-link保持一致 */
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.nav-links {
    animation: slideIn 0.6s ease-out 0.3s both;
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

/* 禁用状态的导航链接 */
.nav-link.disabled {
    color: #ccc !important;
    cursor: not-allowed;
    pointer-events: auto; /* 保持可点击以显示提示 */
    text-decoration: none;
    position: relative;
}

.nav-link.disabled:hover {
    color: #ccc !important;
    text-decoration: none;
}

.nav-link.disabled::before {
    display: none; /* 禁用动画效果 */
}

/* 禁用状态的提示效果 */
.nav-link.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(204, 204, 204, 0.1) 2px,
        rgba(204, 204, 204, 0.1) 4px
    );
    pointer-events: none;
}

/* 首页图片样式 */
.home-image {
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.home-image img {
    max-width: 160px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    object-fit: cover;
}

.home-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ICCID帮助文本样式 */
.iccid-help-text {
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.iccid-help-text:hover {
    background: rgba(0, 123, 255, 0.1);
}

.iccid-help-text span {
    color: #007bff;
    font-size: 14px;
    text-decoration: underline;
    font-weight: 500;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 弹出层样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideInUp 0.3s ease-out;
    position: relative;
}

.modal-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 弹出层动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式优化 */
@media (max-width: 768px) {
    .home-image img {
        max-width: 150px;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .home-image img {
        max-width: 150px;
        border-radius: 50%;
    }
    
    .home-image {
        padding: 10px 12px;
    }
}

@media (max-width: 375px) {
    .modal-content {
        padding: 16px;
        margin: 20px;
    }
    
    .iccid-help-text span {
        font-size: 13px;
    }
    
    .home-image {
        padding: 8px 12px;
    }
    
    .home-image img {
        max-width: 150px;
        border-radius: 10px;
        border-radius: 50%;
    }
} 

/* Logo图片容器样式 */
.logo-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.logo-item img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.8;
    flex: 1;
    max-width: 60px;
}

.logo-item img:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* 联系客服 */

.contact-card {
    border-radius: 12px;
    text-align: center;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.contact-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-info {
text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.contact-item:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}



/* 响应式 */
@media (max-width: 768px) {
    .logo-container {
        gap: 12px;
        padding: 16px 12px;
    }
    
    .logo-item {
        gap: 10px;
    }
    
    .logo-item img {
        width: 50px;
        height: 35px;
        padding: 3px;
        max-width: 50px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 10px;
        padding: 12px 8px;
    }
    
    .logo-item {
        gap: 8px;
    }
    
    .logo-item img {
        width: 50px;
        height: 35px;
        padding: 2px;
        border-radius: 4px;
        max-width: 50px;
    }
}

@media (max-width: 375px) {
    .logo-container {
        gap: 8px;
        padding: 10px 6px;
    }
    
    .logo-item {
        gap: 6px;
    }
    
    .logo-item img {
        width: 45px;
        height: 30px;
        padding: 2px;
        border-radius: 3px;
        max-width: 45px;
    }
    
    .category-tabs {
        padding: 4px;
    }
    
    .category-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .faq-question {
        padding: 16px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .faq-answer-content {
        padding: 0 16px 16px;
        font-size: 13px;
    }
    

    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-item {
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
}