/* 从 view 内联 style 提取，保留 .v01576- 供 TipsyStaticProxy/DeFingerprint 做前缀替换 */

/* 首页 layout 1-4 容器与侧栏 */
.v01576-layout-1 .v01576-container,
.v01576-layout-4 .v01576-container {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.v01576-layout-1 .v01576-container .v01576-main-content,
.v01576-layout-4 .v01576-container .v01576-main-content {
    order: 2;
    flex: 1;
}
.v01576-layout-1 .v01576-container .v01576-sidebar,
.v01576-layout-4 .v01576-container .v01576-sidebar {
    order: 1;
    flex: 0 0 220px;
}
.v01576-layout-2 .v01576-container {
    display: flex;
    gap: 1.1rem;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.v01576-layout-2 .v01576-container .v01576-main-content {
    order: 1;
    flex: 1;
}
.v01576-layout-2 .v01576-container .v01576-sidebar {
    order: 2;
    flex: 0 0 220px;
}
.v01576-layout-3 .v01576-container {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}
.v01576-layout-3 .v01576-container .v01576-main-content {
    order: 1;
    flex: 1 1 100%;
}
.v01576-layout-3 .v01576-container .v01576-sidebar {
    order: 2;
    flex: 1 1 100%;
}

/* 详情页关键词激活区块 */
.v01576-keyword-activation {
    margin: 1rem 0;
    padding: 0 1rem;
}
.v01576-keyword-activation-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.v01576-keyword-activation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}
.v01576-keyword-activation-link {
    margin: 0;
    white-space: nowrap;
}

/* 客服浮层（从 scripts.php 提取，ID 不参与前缀替换） */
#tipsy-customer-service {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
#tipsy-customer-service a {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    transition: all 0.3s ease;
}
#tipsy-customer-service a:hover {
    background: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
#tipsy-customer-service a .bi {
    margin-right: 5px;
}
@media (max-width: 768px) {
    #tipsy-customer-service {
        bottom: 15px;
        right: 15px;
    }
    #tipsy-customer-service a {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* 面包屑（原 tipsy_breadcrumb_styles.php） */
.tipsy-breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light, #b0b0b0);
    margin-bottom: 20px;
}
.tipsy-breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}
.tipsy-breadcrumb a:hover {
    color: #93c5fd;
    text-decoration: underline;
}
.tipsy-breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-light, #b0b0b0);
}

/* 结构化内容（原 tipsy_structured_content.php） */
.tipsy-structured-content { line-height: 1.8; color: var(--text, #e0e0e0); }
.tipsy-structured-content p { margin-bottom: 16px; text-align: justify; }
.tipsy-structured-content p:last-child { margin-bottom: 0; }

/* FAQ 块（原 tipsy_faq_block.php） */
.tipsy-faq-block { margin: 30px 0; }
.tipsy-faq-item {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card, #2a2a2a);
    border-radius: 8px;
}
.tipsy-faq-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text, #e0e0e0);
}
.tipsy-faq-answer { color: var(--text-light, #b0b0b0); line-height: 1.6; }

/* 相关新闻块（原 tipsy_related_news_block.php） */
.tipsy-related-news-block { margin: 30px 0; }
.tipsy-news-list { list-style: none; padding: 0; }
.tipsy-news-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #333);
}
.tipsy-news-item:last-child { border-bottom: none; }
.tipsy-news-item a {
    color: var(--text, #e0e0e0);
    text-decoration: none;
    transition: color 0.2s;
}
.tipsy-news-item a:hover { color: #60a5fa; }
.tipsy-news-time {
    color: var(--text-light, #b0b0b0);
    font-size: 12px;
    margin-left: 10px;
}

/* 相关小说块（原 tipsy_related_novel_block.php） */
.tipsy-related-novel-block { margin: 30px 0; }
.tipsy-novel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.tipsy-novel-item {
    background: var(--bg-card, #2a2a2a);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.tipsy-novel-item:hover { transform: translateY(-2px); }
.tipsy-novel-link { display: block; text-decoration: none; color: inherit; }
.tipsy-novel-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.tipsy-novel-info { padding: 12px; }
.tipsy-novel-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text, #e0e0e0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tipsy-novel-author { font-size: 12px; color: var(--text-light, #b0b0b0); margin: 0; }

/* 实体标签页等小说网格（原 tipsy_entity_controller/tag.html 内联） */
.v01576-novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.v01576-novel-item {
    background: var(--bg-card, #2a2a2a);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.v01576-novel-item:hover {
    transform: translateY(-2px);
}
.v01576-novel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.v01576-novel-thumb {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-secondary, #1a1a1a);
}
.v01576-novel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v01576-novel-info {
    padding: 12px;
}
.v01576-novel-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text, #e0e0e0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v01576-novel-meta {
    font-size: 12px;
    color: var(--text-light, #b0b0b0);
}
.v01576-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light, #b0b0b0);
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--bg-card, #fff);
    color: var(--text, #333);
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0.5rem;
    top: 0.5rem;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
