:root {
    --semi-blue-5: 59, 130, 246;
    --semi-cyan-5: 16, 185, 129;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #333; line-height: 1.6; }

/* 宽屏设计 */
.header-section { 
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%), url('/images/home_head_bg_optm_250416_5.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.navbar { 
    background: transparent; 
    padding: 0 40px; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
}
.nav-links { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    height: 60px; 
}
.logo-section { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.logo { 
    width: 40px; 
    height: 40px; 
    background: #fff; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    color: #1e3a8a; 
    font-size: 18px;
}
.brand-text { 
    color: #fff; 
}
.brand-text h2 { 
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 2px; 
}
.brand-text p { 
    font-size: 12px; 
    opacity: 0.8; 
}
.nav-links a { 
    text-decoration: none; 
    color: #fff; 
    font-weight: 500; 
    transition: opacity 0.2s; 
    opacity: 0.9; 
}
.nav-links a:hover { opacity: 1; }
.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 24px; 
}
.nav-right a { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.main-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 20px 40px; 
    max-width: 1400px; 
    margin: 0 auto; 
    width: 100%; 
}
.main-title { 
    margin-bottom: 48px; 
}
.main-title h1 { 
    font-size: 48px; 
    color: #fff; 
    margin-bottom: 12px; 
    font-weight: 700; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.search-tabs { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 20px; 
    gap: 20px;
}
.tab-btn { 
    padding: 10px; 
    background: rgba(255,255,255,0.15); 
    border: 1px solid rgba(255,255,255,0.3); 
    cursor: pointer; 
    font-size: 16px; 
    color: #fff; 
    transition: all 0.3s; 
    backdrop-filter: blur(10px); 
    position: relative;
    font-weight: 500;
    border-radius: 3px;
}
.tab-btn.active { 
    background: #fff; 
    color: #1e3a8a; 
    border-color: #fff;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}
.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.25);
}

.search-box { 
    display: flex; 
    gap: 0; 
    margin-bottom: 20px; 
    max-width: 900px; 
    width: 100%; 
}
.search-input { 
    flex: 1; 
    padding: 16px 20px; 
    border: none; 
    border-radius: 5px 0 0 5px; 
    font-size: 14px; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
}
.search-input:focus { 
    outline: none; 
    background: #fff; 
}
.search-input::placeholder { 
    color: #999; 
}
.search-btn { 
    padding: 16px 24px; 
    background: #ff6b35; 
    color: #fff; 
    border: none; 
    border-radius: 0 8px 8px 0; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600; 
    transition: background 0.2s; 
}
.search-btn:hover { 
    background: #e55a2b; 
}

.content-section { 
    background: transparent; 
    padding: 60px 40px; 
    min-height: calc(100vh - 400px);
    position: relative;
    z-index: 1;
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

.speed-results { margin-top: 24px; }
.speed-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.speed-item:last-child { border-bottom: none; }
.site-name { font-weight: 500; }
.speed-value { color: #52c41a; font-weight: 500; }
.speed-value.slow { color: #ff4d4f; }
.speed-value.medium { color: #faad14; }

/* 镜像导航表格样式 */
.mirror-navigation { 
    margin-top: -110px; 
    z-index: 20;
    position: relative;
}

/* 底部样式 */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 20px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    width: 100%;
}

.footer-content p {
    color: #e2e8f0;
    margin: 0;
    font-size: 14px;
}

/* 标签容器样式 */
.tabs-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

/* 平台切换标签样式 - 仿图片样式 */
.platform-tabs { 
    display: flex; 
    align-items: center;
    gap: 0; 
    padding: 8px 10px 0px 8px; 
    background: #fff;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex: 1;
    margin: 0 8px;
}

.platform-tabs::-webkit-scrollbar {
    display: none;
}

.platform-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-arrow {
    color: #3b82f6;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}
.nav-arrow:hover {
    background-color: #f3f4f6;
    color: #1d4ed8;
}

.platform-tab { 
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px; 
    background: #fff; 
    border: none;
    border-bottom: 1px solid #F2F2F2;
    border-radius: 0; 
    cursor: pointer; 
    transition: all 0.2s ease;
    font-size: 16px;
    color: #6b7280;
    white-space: nowrap;
    height: 45px;
    margin-right: 0;
}

.platform-tab:hover { 
    background: #f9fafb;
    color: #374151;
}

.platform-tab.active { 
    background: #fff; 
    color: #8b5cf6; 
    border: 1px solid #F2F2F2;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
}

        

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 内容详情页样式 */
.content-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.detail-header {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.detail-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.detail-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.action-btn.secondary {
    background: rgba(var(--semi-cyan-5), .15);
    color: #047857;
}

.action-btn.secondary:hover {
    background: rgba(var(--semi-cyan-5), .25);
}

.mirror-table { background: #fff;  overflow: hidden; box-shadow: 0 2px 3px rgba(0,0,0,0.06); }
.table-header { 
    background: #fff; 
}
.table-header-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; 
    font-weight: 500; 
    color: #666;
    font-size: 14px;
    justify-content: space-between;
}
.table-row { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; 
    border-bottom: 1px solid #f5f5f5; 
    font-size: 14px;
    background: #ffffff;
}
.table-row[data-category-id] {
    cursor: pointer;
}
.table-row:last-child { border-bottom: none; }
.table-header-content > div, .table-row > div { padding: 10px 16px 10px 25px; display: flex; align-items: center; }

.nav-gallery-section {
    background: #F6F7FA;
    border-radius: 18px;
    padding: 0px 0px 20px 0px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.nav-gallery-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* 导航分类的表头样式 - 只显示tabs */
.table-header-content.nav-category-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 10px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

/* 当激活的是导航分类时，隐藏外层的表头列标题 */
.table-header > .table-header-content:not(.nav-category-header):not(.info-bar) {
    display: grid;
}

.table-header.hide-columns > .table-header-content:not(.nav-category-header):not(.info-bar) {
    display: none;
}

.nav-gallery-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-tab {
    border: none;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    background: #e2e8f0;
}

.nav-tab.active {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.nav-card-wrapper {
    margin-top: 2px;
}

.nav-card-list {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.nav-card-list.active {
    display: grid;
}

.nav-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #F5F5F5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4caf50, #2196f3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.nav-card:hover::before {
    transform: translateX(0);
}


.nav-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nav-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
    background: #fafafa;
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-card-icon {
    transform: scale(1.05);
}

.nav-card-header-info {
    flex: 1;
    min-width: 0;
    min-width: 0;
}

.nav-card-title {
    font-weight: 500;
    color: #333333;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-card-url {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-card-status {
    padding: 5px 8px;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 12px;
    font-size: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.nav-card-status .status-time {
    color: #66bb6a;
    font-weight: 400;
}

.nav-card-desc {
    color: #666666;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.nav-card-meta {
    font-size: 12px;
    color: #999999;
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-card-meta .meta-time {
    color: #bbb;
}

.nav-card-meta svg {
    opacity: 0.5;
}

.nav-card-visit {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 5px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 1;
    transform: translateX(0);
}

.nav-card-visit:hover {
    background: #4caf50;
    color: #fff;
}

.nav-card-visit svg {
    width: 13px;
    height: 13px;
}

.nav-card-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 30px 0;
}

.col-name { display: flex; align-items: center; gap: 8px; }
.col-resource-type { display: flex; align-items: center; justify-content: center; }
.col-subject { display: flex; align-items: center; justify-content: center; }
.col-action { display: flex; align-items: center; justify-content: flex-end; }
.mirror-name { color: #333; }

.status-badge { 
    padding: 2px 10px; 
    border-radius: 20px; 
    font-size: 12px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.available { 
    background: #52c41a; 
    color: #ffffff; 
    border: none; 
}
.status-badge.unavailable { 
    background: #ff4d4f; 
    color: #ffffff; 
    border: none; 
}

.speed-value { 
    font-weight: 600; 
    font-size: 13px; 
    padding: 4px 8px; 
    border-radius: 8px; 
    display: inline-block;
}
.speed-value.fast { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); 
    color: #065f46; 
}
.speed-value.medium { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
    color: #92400e; 
}
.speed-value.slow { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); 
    color: #991b1b; 
}

.tag { 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    margin-right: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.tag:hover::before {
    left: 100%;
}
.tag.academic { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #ffffff; 
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.tag.academic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.tag.paper { 
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); 
    color: #ffffff; 
    border: none;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}
.tag.paper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}
.tag.book { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 
    color: #ffffff; 
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.tag.book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.access-btn { 
    padding: 12px 24px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    border: none; 
    border-radius: 25px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.access-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 0.5s ease;
}
.access-btn:hover::before {
    left: 100%;
}
.access-btn:hover { 
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.access-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.access-btn.disabled { 
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); 
    color: #9ca3af; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.access-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px; 
    border-radius: 999px; 
    cursor: pointer; 
    font-size: 12px; 
    font-weight: 500;
    color: #1d4ed8;
    background: rgba(var(--semi-blue-5), .15);
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.action-btn:hover { 
    background: rgba(var(--semi-blue-5), .25); 
    transform: translateY(-1px);
}

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

/* 访问热度样式 */
.heat-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}
.heat-bar {
    width: 60px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.heat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.heat-fill.high {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
.heat-fill.medium {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.heat-fill.low {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
.heat-text {
    color: #6b7280;
    font-size: 11px;
    min-width: 20px;
}

/* 评分样式 */
.rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
}
.rating-stars {
    display: flex;
    gap: 1px;
}
.star {
    width: 12px;
    height: 12px;
    color: #d1d5db;
    transition: color 0.2s ease;
}
.star.filled {
    color: #fbbf24;
}
.rating-value {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-left: 2px;
}

/* 详细信息弹窗样式 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.modal-content a {
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
}

.modal-content a:hover {
    text-decoration: underline;
}

.modal-content button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 信息提示框样式 */
.info-tooltip {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 5px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 18px;
    z-index: 10000;
    min-width: 200px;
    max-width: 320px;
    display: none;
    font-size: 13px;
    line-height: 1.6;
    cursor: default;
    color: #0f172a;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: -9px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #e5e7eb;
}

/* 当悬浮层显示在上方时的箭头样式 */
.info-tooltip.top-position::before {
    top: auto;
    bottom: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: none;
    border-top: 8px solid #fff;
}

.info-tooltip.top-position::after {
    top: auto;
    bottom: -9px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: none;
    border-top: 9px solid #e5e7eb;
}

.tooltip-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 15px;
}

.tooltip-description {
    color: #475569;
    margin-bottom: 12px;
}

.tooltip-url {
    margin-bottom: 8px;
    font-size: 12px;
    color: #64748b;
}

.tooltip-url a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.tooltip-url a:hover {
    text-decoration: underline;
}

.tooltip-status {
    margin-bottom: 0;
    font-size: 12px;
    color: #64748b;
}

/* 平台内容区域 */
.platform-content {
    margin-top: 0px;
}

.platform-section {
    display: none;
}

.platform-section.active {
    display: block;
}

/* 不同级别栏目的样式 */
.table-row.level-2 {
    background: #f8fafc;
    grid-template-columns: 1fr;
}

.table-row.level-2 > div:not(.col-name) {
    display: none;
}


.table-row.level-ultimate {
    background: #fef3c7;
}

.level-indicator {
    color: #6b7280;
    font-size: 12px;
    margin-right: 8px;
    font-weight: bold;
}

/* 不同级别状态标签样式 */
.status-badge.available.level-2 {
    background: #3b82f6;
    color: #ffffff;
}

.status-badge.available.level-3 {
    background: #10b981;
    color: #ffffff;
}

.status-badge.available.level-ultimate {
    background: #f59e0b;
    color: #ffffff;
}

.status-badge.access-allow {
    background: rgba(var(--semi-blue-5), .15);
    color: #1d4ed8;
}

.status-badge.access-deny {
    background: rgba(var(--semi-cyan-5), .15);
    color: #047857;
}


.category-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    justify-content: flex-end;
    z-index: 11005;
    backdrop-filter: blur(2px);
}

.category-panel-overlay.show {
    display: flex;
}

.category-panel {
    width: 420px;
    max-width: 90%;
    background: #fff;
    height: 100%;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.2);
    animation: slideInRight 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 32px;
    position: relative;
}

.category-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #475569;
    transition: background 0.2s ease, transform 0.2s ease;
}

.category-panel-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.category-panel-header p {
    text-transform: uppercase;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.category-panel-header h4 {
    font-size: 16px;
    color: #0f172a;
    margin: 0;
}

.category-panel-section {
    margin-top: 28px;
}

.category-panel-section:first-of-type {
    margin-top: 12px;
}

.category-panel-section .section-label {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.category-panel-section .section-content {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
}

.category-group-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--semi-blue-5), .12);
    color: #1d4ed8;
    font-size: 12px;
    margin: 0 8px 8px 0;
}

.category-panel-empty {
    color: #94a3b8;
    font-size: 13px;
}

.category-buy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.category-buy-link:hover {
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.section-header {
    margin-bottom: 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.section-header p {
    color: #666;
    font-size: 14px;
}

/* 搜索标签样式 */
.search-tabs { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 20px; 
    gap: 20px;
}
.tab-btn { 
    padding: 10px; 
    background: rgba(255,255,255,0.15); 
    border: 1px solid rgba(255,255,255,0.3); 
    cursor: pointer; 
    font-size: 16px; 
    color: #fff; 
    transition: all 0.3s; 
    backdrop-filter: blur(10px); 
    position: relative;
    font-weight: 500;
    border-radius: 3px;
}
.tab-btn.active { 
    background: #fff; 
    color: #1e3a8a; 
    border-color: #fff;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}
.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.25);
}

/* 速度测试结果样式 */
.speed-results { margin-top: 24px; }
.speed-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.speed-item:last-child { border-bottom: none; }
.site-name { font-weight: 500; }
.speed-value { color: #52c41a; font-weight: 500; }
.speed-value.slow { color: #ff4d4f; }
.speed-value.medium { color: #faad14; }



/* 更新平台图标样式 */



/* 添加缺失的按钮样式 */
.access-btn { 
    padding: 12px 24px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    border: none; 
    border-radius: 25px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.access-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 0.5s ease;
}
.access-btn:hover::before {
    left: 100%;
}
.access-btn:hover { 
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.access-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.access-btn.disabled { 
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); 
    color: #9ca3af; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.access-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .header-section { height: 400px; }
    .main-title h1 { font-size: 28px; }
    .search-box { flex-direction: column; }
    .search-input, .search-btn { border-radius: 8px; }
    .table-header, .table-row { grid-template-columns: 1fr; gap: 8px; }
    .table-header > div, .table-row > div { padding: 8px 12px; }
    .col-name { flex-direction: column; align-items: flex-start; }
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
    .info-tooltip { max-width: 250px; }
}

/* 登录注册悬浮层样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    margin: 20px;
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 24px;
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}


.modal-logo h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-form {
    padding: 0 24px 24px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-group input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.forgot-password {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #2563eb;
}

.verification-group {
    display: flex;
    gap: 12px;
}

.verification-group input {
    flex: 1;
}

.captcha-img {
    width: 100px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    object-fit: cover;
}

.captcha-img:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: #2563eb;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .modal-container {
        margin: 10px;
        max-width: none;
    }
    
    .modal-header {
        padding: 20px 20px 0;
    }
    
    .modal-form {
        padding: 0 20px 20px;
    }
    
    .verification-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .captcha-img {
        width: 100%;
        height: 50px;
    }
}

/* 分类信息列表弹窗样式 */
.category-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.category-modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: #e0e0e0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
    border-radius: 8px;
}

.info-item:hover {
    background-color: #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.info-title:hover {
    color: #007bff;
    text-decoration: underline;
}

.info-meta {
    color: #666;
    font-size: 12px;
    margin-left: 15px;
    white-space: nowrap;
}

.no-info {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-meta {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* 会员中心弹出层样式 */
.member-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.member-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: all 0.2s ease;
}

.member-close-btn:hover {
    background: #e5e5e5;
    color: #333;
}

.member-content {
    display: flex;
    min-height: 500px;
}

.member-sidebar {
    width: 220px;
    background: transparent;
    border-right: 1px solid #f5f5f5;
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
}



.member-profile {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.member-nav {
    padding: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #334155;
}

.nav-item.active {
    background: #F5F5F5;
    color: #0369a1;
}

.nav-item.logout-btn {
    color: #dc2626;
    margin-top: 10px;
    border-top: 1px solid #f5f5f5;
    padding-top: 16px;
}

.nav-item.logout-btn:hover {
    background: #fef2f2;
    color: #b91c1c;
}


.member-main {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    max-width: 580px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-section h4,
.recharge-section h4,
.records-section h4,
.password-section h4 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.profile-info {
    background: transparent;
    border-radius: 8px;
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    border-radius: 8px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: #64748b;
    min-width: 100px;
}

.info-item span {
    color: #1e293b;
    font-weight: 500;
}

.recharge-form {
    background: transparent;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
}

.recharge-form .form-group {
    margin-bottom: 20px;
}

.recharge-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.recharge-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.recharge-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.recharge-form .submit-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.recharge-form .submit-btn:hover {
    background: #2563eb;
}

.records-list {
    background: transparent;
    border-radius: 8px;
    padding: 20px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.record-item:last-child {
    border-bottom: none;
}

.record-info {
    flex: 1;
}

.record-title {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.record-meta {
    font-size: 12px;
    color: #64748b;
}

.record-amount {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

.loading {
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}

.no-records {
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}

/* 会员中心按钮样式 */
.member-btn {
    color: white;
    border: solid 1px rgba(255,255,255,0.3);
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.member-btn:hover {
    background: #0369a1;
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .member-container {
        width: 95%;
        max-height: 90vh;
        max-width: 95%;
    }
    
    .member-content {
        flex-direction: column;
    }
    
    .member-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f5f5f5;
    }
    
    
    .member-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .nav-item {
        white-space: nowrap;
        margin: 0 8px 0 0;
    }
    
    .member-main {
        padding: 20px;
        max-width: none;
    }
}

/* 登录提示样式 */
.login-prompt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100%;
    width: 100%;
}

.login-prompt-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.login-prompt-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.login-prompt-image {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.login-mask-image {
    width: 100%;
    height: auto;
    display: block;

}

.login-prompt-overlay {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.login-prompt-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: none;
}

.login-prompt-btn:hover {
    background: #2563eb;
}

.login-prompt-btn:active {
    background: #1e40af;
}

/* 信息横条样式 */
.info-bar {
    background: #EAF5FF;
    padding: 15px 20px;
    text-align: left;

    animation: slideDown 0.3s ease-out;
}

.info-content {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.info-content p {
    margin: 0;
    padding: 0;
}

.info-content h1, .info-content h2, .info-content h3, .info-content h4, .info-content h5, .info-content h6 {
    margin: 0 0 10px 0;
    padding: 0;
    color: white;
}

.info-content ul, .info-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.info-content li {
    margin: 5px 0;
}

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

/* 权限提示悬浮层样式 */
.permission-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.permission-modal-overlay.show {
    display: flex;
}

.permission-modal-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.permission-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.permission-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #d97706;
}

.permission-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.permission-modal-message {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.permission-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.permission-modal-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.permission-modal-btn-primary {
    background: #3b82f6;
    color: white;
}

.permission-modal-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.permission-modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.permission-modal-btn-secondary:hover {
    background: #e5e7eb;
}

.permission-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.permission-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.phone-bind-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.phone-bind-status.can-bind {
    color: #f97316;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.phone-bind-status.can-bind:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3);
    border-radius: 2px;
}

.phone-bind-overlay {
    z-index: 11000;
}

.phone-bind-container {
    background: #fff;
    border-radius: 12px;
    width: 480px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    animation: slideUp 0.25s ease-out;
    position: relative;
}

.phone-bind-header h4 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 8px;
}

.phone-bind-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.phone-bind-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
}

.phone-bind-form label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.phone-bind-form input {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-bind-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.code-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

.phone-bind-form .form-group.code-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
}

.code-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.code-btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 130px;
    align-self: flex-end;
    white-space: nowrap;
}

.code-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.code-btn:not(:disabled):hover {
    background: #1d4ed8;
}

.phone-bind-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.phone-bind-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.phone-bind-actions .btn-secondary,
.phone-bind-actions .btn-primary {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.phone-bind-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.phone-bind-actions .btn-secondary:hover {
    background: #e5e7eb;
}

.phone-bind-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.phone-bind-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.phone-bind-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7280;
    transition: background 0.2s, transform 0.2s;
}

.phone-bind-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}
