/* Lazygroup 文档检索（已作用域化 .pyq-docs） */

.pyq-docs * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

.pyq-docs {
    font-family: "HarmonyOS Sans SC", "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

}

.pyq-docs .gate-page,
.pyq-docs .search-page {
    background: linear-gradient(135deg, #5b7cfa 0%, #9d4edd 100%);

}

.pyq-docs .search-page.theme-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
}

.pyq-docs .search-page.theme-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}

.pyq-docs .search-page.theme-dark { background: linear-gradient(135deg, #232526 0%, #414345 100%); 
}

.pyq-docs .search-page.theme-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
}

.pyq-docs .search-page.theme-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); 
}

.pyq-docs .gate-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

}

.pyq-docs .gate-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 360px;
    max-width: 100%;

}

.pyq-docs .gate-box h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: #333;

}

.pyq-docs .gate-box p {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;

}

.pyq-docs .gate-tip {
    margin-top: 16px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;

}

.pyq-docs .gate-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    margin-bottom: 16px;

}

.pyq-docs .gate-box input:focus {
    border-color: #7b68ee;

}

.pyq-docs .gate-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b7cfa 0%, #9d4edd 100%);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;

}

.pyq-docs .gate-box button:hover {
    opacity: 0.9;

}

.pyq-docs .error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 10px;
    min-height: 18px;

}

.pyq-docs .search-page {
    padding: 60px 20px 40px;

}

.pyq-docs .container {
    max-width: 1000px;
    margin: 0 auto;

}

.pyq-docs .search-header {
    text-align: center;
    margin-bottom: 30px;

}

.pyq-docs .title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;

}

.pyq-docs .search-header h1 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1.5px;

}

.pyq-docs .role-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(91, 124, 250, 0.12);
    border: 1px solid rgba(91, 124, 250, 0.35);
    color: #5b7cfa;
    font-size: 12px;
    letter-spacing: 1px;
    vertical-align: middle;

}

.pyq-docs .search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

}

.pyq-docs .search-bar input {
    flex: 1;
    min-width: 240px;
    max-width: 480px;
    padding: 14px 22px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    letter-spacing: 0.3px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;

}

.pyq-docs .search-bar input:focus {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);

}

.pyq-docs .search-bar input::placeholder {
    color: #aaa;
    letter-spacing: 0.5px;

}

.pyq-docs .random-btn,
.pyq-docs .add-btn {
    padding: 13px 22px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;

}

.pyq-docs .random-btn {
    background: #fff;
    color: #5b7cfa;

}

.pyq-docs .random-btn:hover {
    background: #eef1ff;

}

.pyq-docs .add-btn {
    background: #fff;
    color: #7b68ee;

}

.pyq-docs .add-btn:hover {
    opacity: 0.85;

}

.pyq-docs .theme-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 90;
    transition: transform 0.2s;

}

.pyq-docs .theme-float:hover {
    transform: scale(1.08);

}

.pyq-docs .theme-panel {
    position: fixed;
    right: 24px;
    bottom: 84px;
    width: 200px;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 91;

}

.pyq-docs .theme-panel h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;

}

.pyq-docs .theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

}

.pyq-docs .theme-option {
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;

}

.pyq-docs .theme-option:hover {
    transform: scale(1.05);

}

.pyq-docs .theme-option.active {
    border-color: #333;

}

.pyq-docs .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 24px;

}

.pyq-docs .category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    background: #fff;
    color: #1a1a1a;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;

}

.pyq-docs .category-card:hover {
    transform: translateY(-3px);
    background: #f7f8ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

}

.pyq-docs .category-card.active {
    background: #fff;
    color: #5b4bbd;
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

}

.pyq-docs .category-card.active .cat-card-count {
    background: rgba(91, 124, 250, 0.12);
    color: #5b7cfa;

}

.pyq-docs .cat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);

}

.pyq-docs .cat-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;

}

.pyq-docs .cat-card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.pyq-docs .cat-card-desc {
    font-size: 12px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.pyq-docs .cat-card-count {
    align-self: flex-start;
    margin-top: 3px;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    font-size: 11.5px;
    letter-spacing: 0.5px;

}

.pyq-docs .results-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);

}

.pyq-docs .table-header {
    display: flex;
    background: rgba(123, 104, 238, 0.15);
    padding: 16px 26px;
    font-weight: 600;
    color: #555;
    font-size: 15px;
    letter-spacing: 3px;
    border-bottom: 1px solid #eee;

}

.pyq-docs .col-title {
    flex: 1;

}

.pyq-docs .col-category {
    width: auto;
    min-width: 80px;
    text-align: center;

}

.pyq-docs .col-link {
    width: 220px;
    text-align: center;

}

.pyq-docs .table-body {
    list-style: none;

}

.pyq-docs .table-body li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 26px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    animation: fadeInUp 0.35s ease both;

}


@keyframes fadeInUp 
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.pyq-docs .table-body li:last-child {
    border-bottom: none;

}

.pyq-docs .table-body li:hover {
    background: #f9f9ff;

}

.pyq-docs .row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;

}

.pyq-docs .doc-title {
    flex: 1;
    color: #2c2c2c;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.3px;
    word-break: break-all;
    min-width: 0;

}

.pyq-docs .doc-category {
    display: inline-block;
    width: auto;
    min-width: 68px;
    padding: 5px 16px;
    background: #f3f1ff;
    color: #7b68ee;
    border-radius: 999px;
    font-size: 13.5px;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;

}

.pyq-docs .row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;

}

.pyq-docs .doc-link {
    width: 240px;
    text-align: center;

}

.pyq-docs .doc-link a {
    color: #5b7cfa;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.2px;
    word-break: break-all;
    line-height: 1.65;

}

.pyq-docs .doc-link a:hover {
    text-decoration: underline;

}

.pyq-docs .table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 26px;
    border-top: 1px solid #f0f0f0;
    background: #fbfbff;
    color: #999;
    font-size: 14px;
    letter-spacing: 0.5px;

}

.pyq-docs .logout-btn {
    padding: 6px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    color: #888;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s;

}

.pyq-docs .logout-btn:hover {
    color: #e74c3c;
    border-color: #ffccc7;
    background: #fff1f0;

}

.pyq-docs .delete-btn {
    padding: 6px 14px;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    background: #fff1f0;
    color: #ff4d4f;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;

}

.pyq-docs .delete-btn:hover {
    background: #ffccc7;
    color: #a8071a;

}

.pyq-docs .empty-tip {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1.8;

}

.pyq-docs .modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;

}

.pyq-docs .modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px;
    width: 420px;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

}

.pyq-docs .modal-box h2 {
    font-size: 19px;
    color: #333;
    margin-bottom: 18px;

}

.pyq-docs .modal-box label {
    display: block;
    font-size: 13px;
    color: #666;
    margin: 12px 0 6px;

}

.pyq-docs .modal-box input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;

}

.pyq-docs .modal-box input:focus {
    border-color: #7b68ee;

}

.pyq-docs .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-top: 14px;
    cursor: pointer;

}

.pyq-docs .checkbox-label input {
    width: auto;
    margin: 0;

}

.pyq-docs .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;

}

.pyq-docs .btn-plain {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;

}

.pyq-docs .btn-primary {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b7cfa 0%, #9d4edd 100%);
    color: #fff;
    font-size: 14px;
    cursor: pointer;

}

.pyq-docs .btn-primary:hover {
    opacity: 0.9;

}

.pyq-docs .preview-box {
    background: #fff;
    border-radius: 14px;
    width: 90vw;
    max-width: 960px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

}

.pyq-docs .preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;

}

.pyq-docs .preview-header h3 {
    font-size: 16px;
    color: #333;

}

.pyq-docs .preview-box iframe {
    flex: 1;
    width: 100%;
    border: none;

}

.pyq-docs .preview-btn {
    padding: 6px 14px;
    border: 1px solid #d6e4ff;
    border-radius: 6px;
    background: #f0f5ff;
    color: #2f54eb;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;

}

.pyq-docs .preview-btn:hover {
    background: #d6e4ff;

}
@media (max-width: 900px){
.pyq-docs .search-page {
        padding: 40px 24px 32px;
    
}

.pyq-docs .search-header h1 {
        font-size: 26px;
    
}

.pyq-docs .col-link,
.pyq-docs .doc-link {
        width: 190px;
    
}

}@media (max-width: 640px){
.pyq-docs .search-page {
        padding: 28px 12px 24px;
    
}

.pyq-docs .search-header h1 {
        font-size: 20px;
    
}

.pyq-docs .search-bar {
        flex-direction: column;
        gap: 10px;
    
}

.pyq-docs .search-bar input {
        width: 100%;
        max-width: none;
        padding: 13px 18px;
    
}

.pyq-docs .random-btn,
.pyq-docs .add-btn {
        width: 100%;
        padding: 12px;
    
}

.pyq-docs .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 18px;
    
}

.pyq-docs .category-card {
        padding: 12px 12px;
        gap: 10px;
        border-radius: 13px;
    
}

.pyq-docs .cat-card-icon {
        width: 46px;
        height: 46px;
        border-radius: 11px;
        font-size: 21px;
    
}

.pyq-docs .cat-card-title {
        font-size: 14.5px;
    
}

.pyq-docs .cat-card-desc {
        font-size: 11px;
    
}

.pyq-docs .table-header {
        display: none;
    
}

.pyq-docs .table-body li {
        display: block;
        padding: 14px 16px;
    
}

.pyq-docs .row-main {
        display: block;
    
}

.pyq-docs .doc-title {
        display: block;
        width: 100%;
        font-weight: 600;
        margin-bottom: 10px;
    
}

.pyq-docs .doc-category {
        display: inline-block;
        margin-bottom: 10px;
    
}

.pyq-docs .row-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        width: 100%;
    
}

.pyq-docs .doc-link {
        flex: 1;
        min-width: 0;
        text-align: left;
    
}

.pyq-docs .doc-link::before {
        content: '下载地址：';
        font-size: 12px;
        color: #999;
    
}

.pyq-docs .doc-link a {
        word-break: break-all;
    
}

.pyq-docs .delete-btn {
        margin-left: auto;
    
}

.pyq-docs .modal-box {
        padding: 22px 20px;
    
}

.pyq-docs .theme-panel {
        right: 12px;
        bottom: 74px;
        width: 180px;
    
}

.pyq-docs .preview-box {
        width: 96vw;
        height: 86vh;
    
}

.pyq-docs .row-actions {
        gap: 8px;
    
}

.pyq-docs .preview-btn,
.pyq-docs .delete-btn {
        padding: 6px 10px;
        font-size: 12px;
    
}

}

/* ===== 主题化覆盖：浅色卡片风（与 Pengyouquan 三栏视觉统一） ===== */
.pyq-docs.gate-page,
.pyq-docs.search-page {
  background: #f4f5f7;
}
.pyq-docs.search-page.theme-blue,
.pyq-docs.search-page.theme-pink,
.pyq-docs.search-page.theme-dark,
.pyq-docs.search-page.theme-green,
.pyq-docs.search-page.theme-orange {
  /* 用户手动选择的背景主题仍然生效（渐变），文字转白 */
  color: #fff;
}
.pyq-docs.search-page.theme-blue .search-header h1,
.pyq-docs.search-page.theme-pink .search-header h1,
.pyq-docs.search-page.theme-dark .search-header h1,
.pyq-docs.search-page.theme-green .search-header h1,
.pyq-docs.search-page.theme-orange .search-header h1,
.pyq-docs.search-page.theme-blue .search-header .title-row h1 {
  color: #fff;
}
.pyq-docs h1, .pyq-docs h2, .pyq-docs h3 { color: #1a1a1a; }
.pyq-docs p, .pyq-docs label { color: #4a4a4a; }
.pyq-docs .gate-page,
.pyq-docs .search-page { min-height: 100vh; }

/* 门禁视图居中修复：视图包装层承担 flex 居中 */
.pyq-docs #docsGate {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* 检索视图：内容居中收窄 */
.pyq-docs #docsApp { width: 100%; }
.pyq-docs .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 48px;
}

/* 表格与分类卡贴合主题卡片观感 */
.pyq-docs .results-table,
.pyq-docs .category-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}
.pyq-docs .search-header h1 {
  color: #1a1a1a;
  text-shadow: none;
}

/* ===== 居中与配色双保险 ===== */
.pyq-docs.gate-page {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pyq-docs #docsGate {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}
.pyq-docs .gate-box { margin: 0 !important; }
