/* 网址详情页重构专用样式 - 高级感设计 */

/* ===== 强制整个页面白色背景 ===== */
body,
html,
.page-container,
.page-container .main-content,
.main-content,
.main-content.page {
    background: #fff !important;
    background-color: #fff !important;
}

.site-content-container {
    max-width: 1200px;
    background: #fff !important;
}

/* 移除 hero 区域的模糊背景效果 */
.hero-bg-blur {
    display: none !important;
}

/* Hero 区域 - 白色背景带细微阴影 */
.site-detail-hero {
    position: relative;
    border-radius: 16px;
    background: #f8f9fa;
    border: 1px solid #eee;
    z-index: 10;
}

.hero-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    opacity: 0.15;
    z-index: 0;
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
}

/* Logo 容器 */
.site-logo-container {
    background: #fff;
    padding: 15px;
    border-radius: 24px;
    display: inline-block;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.site-logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 文字内容 */
.site-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.site-description p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
}

.badge-custom {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-color-rgb, 64, 185, 241), 0.1);
    color: var(--primary-color, #40b9f1);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.badge-custom:hover {
    background: var(--primary-color, #40b9f1);
    color: #fff;
    text-decoration: none;
}

/* 按钮样式 */
.btn-premium-go,
.btn-premium-qr {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium-go {
    background: linear-gradient(135deg, #40b9f1, #2196f3);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-premium-go:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-premium-qr {
    background: #f5f6f7;
    color: #444 !important;
    border: 1px solid #e1e4e8;
}

.btn-premium-qr:hover {
    background: #ebedef;
    transform: translateY(-3px);
}

/* 修复 Tooltip 二维码样式 - 顶级显示 */
body .tooltip {
    z-index: 999999 !important;
}

body .tooltip-inner {
    background-color: #fff !important;
    color: #333 !important;
    padding: 12px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
    border-radius: 15px !important;
    max-width: none !important;
    border: 1px solid #eee !important;
}

body .tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow::before,
body .tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #fff !important;
}

/* 主内容区域 - 白色背景 */
.site-main-body {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

/* 侧边栏相关导航区域 */
.sidebar-widget.related-sites-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* 内容卡片 */
.content-card {
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: none;
}

.content-body {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.content-body p {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #333;
}

/* 强制双列网格布局相关样式 */
.related-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* 强制两列 */
    gap: 8px !important;
    width: 100% !important;
}

.related-grid-item {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #eef1f6 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    min-width: 0 !important;
    /* 确保文字截断生效 */
}

.related-grid-item:hover {
    border-color: #40b9f1 !important;
    box-shadow: 0 4px 12px rgba(64, 185, 241, 0.06) !important;
    transform: translateY(-2px) !important;
}

.related-grid-item img {
    border-radius: 50% !important;
    border: 1px solid #f0f0f0 !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
}

.grid-info {
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.grid-name {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0 !important;
}

.grid-desc {
    font-size: 0.7rem !important;
    color: #999 !important;
    margin-top: -2px !important;
}

@media (max-width: 992px) {
    .site-detail-hero {
        border-radius: 0;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-logo-container {
        width: 130px;
        height: 130px;
    }
}