﻿@import "typora.css";

/* 原有样式完全保留（仅删除之前新增的缩放/继承样式） */
header {
    padding: 30px;
    text-align: left;
}

footer {
    text-align: center;
    padding: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    break-after: avoid-page;
    break-inside: avoid;
    orphans: 4;
}

p {
    orphans: 4;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

article {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

    nav ul li {
        display: inline;
        margin-right: 20px;
    }

        nav ul li a {
            color: white;
            text-decoration: none;
        }

.blog_readmore {
    display: inline-block;
    border: 1px solid green;
    padding: 6px;
    text-decoration: none;
    text-align: center;
}

/* 核心：强化underline-on-over样式优先级，适配按钮/图片链接 */
.underline-on-over {
    position: relative !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    /* 适配按钮/图片的内联块级显示，确保伪元素定位 */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* 移除默认padding，避免影响布局 */
    padding: 0 !important;
}

    /* 强制显示伪元素，优先级拉满 */
    .underline-on-over::after {
        content: '' !important;
        position: absolute !important;
        width: 0 !important;
        height: 3px !important;
        bottom: 2px !important; /* 下划线在元素底部2px，不遮挡内容 */
        left: 50% !important;
        background-color: #007BFF !important;
        transform: translateX(-50%) !important;
        transition: width 0.3s ease !important;
        /* 确保伪元素不被遮挡 */
        z-index: 1 !important;
    }

    /* hover时强制展开下划线+变蓝，优先级拉满 */
    .underline-on-over:hover {
        color: #007BFF !important;
        opacity: 0.9 !important; /* 保留按钮原有半透明效果 */
    }

        .underline-on-over:hover::after {
            width: 90% !important; /* 下划线宽度90%，适配所有子项尺寸 */
        }

.legal-claims {
    max-width: 1440px;
    margin: auto;
    display: flex;
    flex-direction: row;
}

.download {
    display: inline-flex;
    align-items: center;
}

.pre-like-span {
    white-space: pre;
    display: inline-block;
}

.quote-list {
    margin: 1em 0;
    padding: 0 0 0 1.5em;
    border-left: 2px solid #ddd;
    font-size: 16px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.quote-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 0.3em 0;
}

    .quote-link:hover {
        border-radius: 4px;
    }

.quote-item {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 0.5em;
}

.quote-marker {
    color: #666;
    flex: 0 0 1em;
    text-align: center;
    line-height: 1;
}

.quote-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.quote-icon {
    flex: 0 0 auto;
}

    .quote-icon img {
        vertical-align: middle;
        max-height: 32px;
    }

.quote-ref {
    flex: 0 0 auto;
    font-family: monospace;
    margin-left: 0.2em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: text-decoration-thickness 0.2s ease;
}

    .quote-ref:hover {
        text-decoration-thickness: 2px;
    }

.quote-item * {
    pointer-events: none;
}

/* 按钮原有样式（仅保留基础布局，无多余动画） */
.app-action-btn {
    width: 150px !important;
    height: 64px !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.action-label {
    width: 86px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.action-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .action-icon img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

/* zhally-sudoku-refs 仅保留基础布局，无任何动画 */
.zhally-sudoku-refs {
    display: inline-flex !important;
    align-items: center !important;
    column-gap: 10px !important;
}

    /* 图片链接适配：确保手型+图片不遮挡下划线 */
    .zhally-sudoku-refs a {
        cursor: pointer !important;
        line-height: 0 !important; /* 消除图片下方空白 */
    }

    .zhally-sudoku-refs img {
        position: relative !important;
        z-index: 0 !important; /* 图片在伪元素下方，不遮挡下划线 */
    }
