/* 头部样式 */
.a{
 text-decoration: none;
}
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    z-index: 100;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #333;
    transform: translateX(-2px);
}

.back-icon {
    margin-right: 8px;
    font-size: 18px;
}

.country-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* 内容区域 */
.content-area {
    margin-top: 65px;
    padding: 15px;
}

/* 运营商卡片 */
.operator-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.operator-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.operator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.operator-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.operator-name {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.operator-tag {
    font-size: 12px;
    color: #666;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 12px;
}

.operator-logo img {
    height: 40px;
    width: auto;
}

/* 服务列表 */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.service-item:active {
    transform: scale(0.98);
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.service-code {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* 响应式布局 */
@media screen and (max-width: 800px) {
    .header {
        width: 100%;
        border-radius: 0;
    }

    .content-area {
        padding: 10px;
    }

    .operator-card {
        padding: 15px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
}

/* 点击复制效果 */
.service-item.copied {
    background: #e8f5e9;
}

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

.operator-card {
    animation: fadeIn 0.3s ease;
}

/* 运营商操作区域 */
.operator-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
}

.website-link {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.website-link:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-1px);
}

.website-icon {
    margin-right: 6px;
    font-size: 16px;
}

.website-text {
    font-weight: 500;
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .operator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .operator-actions {
        width: 100%;
    }
    
    .website-link {
        width: 100%;
        justify-content: center;
    }
}

/* 折叠相关样式 */
.operator-header {
    cursor: pointer;
    user-select: none;
}

.toggle-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.operator-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.operator-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.operator-content.collapsed {
    max-height: 0;
}

/* 优化运营商头部样式 */
.operator-header:hover {
    background: #f9f9f9;
}

.operator-card {
    transition: all 0.3s ease;
}

.operator-card.expanded {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.arrow-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.operator-card:hover .arrow-icon {
    transform: translateX(5px);
}

.operator-desc {
    font-size: 14px;
    color: #999;
}

/* 快速导航样式 */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    margin-top: 65px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-nav::-webkit-scrollbar {
    display: none;
}

.nav-card {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-icon {
    font-size: 24px;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.nav-content {
    flex: 1;
}

.nav-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.nav-desc {
    font-size: 12px;
    color: #999;
}

/* 运营商列表标题 */
.section-title {
    padding: 0 20px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 14px;
    color: #999;
}

/* 调整内容区域的上边距 */
.content-area {
    margin-top: 0;
    padding: 0 20px 20px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .quick-nav {
        padding: 15px;
    }

    .nav-card {
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media screen and (max-width: 480px) {
    .nav-card {
        min-width: 100%;
        max-width: 100%;
    }
}

/* 添加触摸反馈 */
@media (hover: none) {
    .nav-card:active {
        transform: scale(0.98);
        background: #f9f9f9;
    }
}

/* 响应式布局 - 只在屏幕非常窄时调整 */
@media screen and (max-width: 360px) {
    .nav-card {
        width: 160px;
        padding: 12px;
    }
}
