/* ============================================
   [B2CHILD] 2026-07-06 网址导航 — Top 排行 Banner
   ============================================ */
.diy-links-banner {
    width: 100%; height: 450px; overflow: hidden; position: relative;
    border-radius: var(--b2radius); margin-bottom: 20px;
    border: var(--diy-border);
    box-shadow: var(--diy-shadow);
    background-position: center; background-size: cover; background-repeat: no-repeat;
}
.diy-banner-badge {
    position: absolute; top: 16px; right: 20px; z-index: 3;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600;
    padding: 4px 14px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 1px; pointer-events: none;
    display: inline-flex; align-items: center; gap: 5px;
}
.diy-flame-icon {
    display: inline-block; font-style: normal; font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255,100,0,0.4));
    animation: diyFlameFlicker 2s ease-in-out infinite alternate;
}
@keyframes diyFlameFlicker {
    0%   { transform: scale(1); }
    20%  { transform: scaleY(1.08) scaleX(0.95); }
    40%  { transform: scaleY(0.94) scaleX(1.04); }
    60%  { transform: scaleY(1.05); }
    80%  { transform: scaleY(0.97) scaleX(1.02); }
    100% { transform: scaleY(1.06) scaleX(0.96); }
}
.diy-links-banner::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: inherit; pointer-events: none;
}
.diy-roles { position: relative; height: 100%; z-index: 2; }
.diy-roles-top { position: relative; height: 340px; }
.diy-roles-scrolling {
    position: absolute; left: -5%; top: 15px; width: 110%; height: 100%;
    background-size: 3142px auto; background-repeat: repeat-x; background-position: 0 0;
    transform: rotate(353deg);
    animation: diyRolesBgLoop 120s linear infinite;
    z-index: 0; pointer-events: none;
}
@keyframes diyRolesBgLoop {
    0%   { background-position: 0 0; }
    100% { background-position: -3142px 0; }
}
.diy-roles-con {
    position: absolute; left: 50%; top: 0; width: 100%;
    max-width: 1250px; transform: translateX(-50%);
    z-index: 1;
}
.diy-role-wrap {
    position: absolute; left: 0; top: 0; width: 100%;
    display: none; padding: 40px 0 0 0;
}
.diy-role-active { display: flex; align-items: stretch; justify-content: center; }
.diy-big-role {
    width: 380px; flex-shrink: 0; position: relative;
}
.diy-big-role img { width: 100%; display: block; }
/* 右侧列：与动物图等高，信息在上 + 排名图标在下 */
.diy-role-right-col {
    margin-left: 24px; display: flex; flex-direction: column; justify-content: space-around;
    width: 420px; flex-shrink: 0; align-self: stretch;
}
.diy-big-role-profile {
    padding: 0;
    text-align: left; width: 100%; color: #fff;
}
.diy-big-role-profile .diy-link-header,
.diy-big-role-profile .diy-link-meta {
    justify-content: flex-start;
}
.diy-big-role-profile .diy-link-visit-btn {
    align-self: flex-start;
}
.diy-link-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.diy-link-icon {
    width: 36px; height: 36px; min-width: 36px; min-height: 36px;
    border-radius: 50%; object-fit: cover;
    background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    flex-shrink: 0; box-sizing: border-box; display: block;
    border: 2px solid #fff;
}
.diy-link-name {
    font-size: 22px; font-weight: 800; color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3); line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0;
}
.diy-link-desc {
    font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical !important;
    overflow: hidden; margin: 0 0 10px; word-break: break-all;
}
.diy-link-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.diy-link-cat-tag {
    font-size: 11px; padding: 2px 10px; border-radius: 12px;
    background: rgba(255,255,255,0.2); color: #fff; font-weight: 500;
    backdrop-filter: blur(4px);
}
.diy-link-stats { font-size: 12px; color: rgba(255,255,255,0.85); }
.diy-link-visit-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 22px; border-radius: 25px; border: none;
    background: linear-gradient(135deg, var(--diy-color, #009966), #007a52);
    color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
    text-decoration: none; transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.diy-link-visit-btn:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff; opacity: 0.95;
}

/* 排名图标选择器：位于信息区下方，居中，单行 */
.diy-roles-option-panel {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: auto;
    align-items: center; justify-content: center; gap: 10px;
    padding: 8px 0;
    width: max-content; max-width: 100%;
}
.diy-avatar-wrap {
    position: relative; width: 56px; height: 56px; cursor: pointer;
    transition: transform 0.3s ease;
}
.diy-avatar-wrap:hover { transform: translateY(-3px); }
.diy-avatar-icon {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.4); transition: all 0.3s ease;
    box-sizing: border-box;
}
.diy-avatar-wrap.active .diy-avatar-icon {
    border-color: #fff; box-shadow: 0 0 16px rgba(255,255,255,0.5);
}
.diy-avatar-bg1 {
    position: absolute; top: -12%; left: -12%; width: 124%; height: 124%;
    background-image: url('imgs/avatars-normal.png');
    background-size: contain; background-position: top; background-repeat: no-repeat;
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.diy-avatar-bg2 {
    position: absolute; top: -20%; left: -20%; width: 140%; height: 140%;
    background-image: url('imgs/avatars-selected.png');
    background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.diy-avatar-wrap:hover .diy-avatar-bg1 { opacity: 0; }
.diy-avatar-wrap.active .diy-avatar-bg2 { opacity: 1; }
.diy-avatar-rank {
    position: absolute; top: -6px; right: -4px; font-size: 16px;
    pointer-events: none; z-index: 3;
}

/* ============================================
   [B2CHILD] 2026-07-06 网址导航 — 分类标题区
   ============================================ */
.diy-links-cat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 0 12px;
}
.diy-links-cat-header .diy-links-cat-title {
    font-size: 16px; font-weight: 700; color: #1a1a2e;
    display: flex; align-items: center; gap: 6px;
}
.diy-links-cat-header .diy-links-cat-count {
    font-size: 12px; color: #9ca3af; font-weight: 400; margin-left: 4px;
}
.diy-links-cat-more {
    font-size: 13px; color: var(--diy-color); text-decoration: none;
    transition: opacity 0.2s ease;
}
.diy-links-cat-more:hover { opacity: 0.7; }

/* ============================================
   [B2CHILD] 2026-07-06 网址导航 — 排序栏 + 搜索
   ============================================ */
.diy-links-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
    background: #fff; border-radius: var(--b2radius); padding: 10px 14px;
    box-shadow: var(--diy-shadow); border: var(--diy-border);
}
/* 排序栏：单行导轨样式 */
.diy-links-sort {
    display: flex; align-items: center; gap: 6px;
    background: #f5f7f9; border-radius: 30px; padding: 6px;
    box-shadow: var(--diy-inset-shadow);
    position: relative;
}
.diy-links-sort-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 14px; height: 28px; border: none; border-radius: 20px;
    font-size: 13px; font-weight: 500; line-height: 1;
    color: #666; background: transparent; cursor: pointer;
    white-space: nowrap; position: relative; z-index: 1;
    outline: none; user-select: none; -webkit-user-select: none;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.diy-links-sort-btn:hover {
    background: rgba(0, 153, 102, 0.08); color: #333;
}
.diy-links-sort-btn.picked {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* 滑动指示器 */
.diy-links-sort .diy-slider-indicator {
    position: absolute; top: 6px; bottom: 6px; left: 6px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00c288, #009966);
    box-shadow: 0 2px 6px rgba(0, 153, 102, 0.25);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0; pointer-events: none;
}
.diy-links-search {
    display: flex; align-items: center; gap: 6px;
    background: #f5f7f9; border-radius: 8px; padding: 5px 12px;
    box-shadow: var(--diy-inset-shadow);
}
.diy-links-search input {
    border: none; background: transparent; outline: none;
    font-size: 13px; color: #374151; width: 180px;
}
.diy-links-search input::placeholder { color: #9ca3af; }
.diy-links-search .diy-search-icon { color: #9ca3af; font-size: 14px; }

/* 工具栏右侧：入驻按钮 + 搜索 */
.diy-links-toolbar-right { display: flex; align-items: center; gap: 10px; }
.diy-link-join a {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; padding: 6px 14px; white-space: nowrap; line-height: 1.4;
    background: #fff; border-radius: 8px; color: var(--diy-color);
    border: 1.5px solid var(--diy-color); text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease; font-weight: 600;
}
.diy-link-join a:hover {
    background: var(--diy-color); color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* 页面标题区 */
.diy-links-page-header { margin-bottom: 16px; }
.diy-links-page-header h1 {
    font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px;
}
.diy-links-page-header .link-total {
    font-size: 13px; color: #9ca3af; margin: 0;
}

/* ============================================
   [B2CHILD] 2026-07-06 网址导航 — 链接卡片
   ============================================ */
/* 列表项：CSS Grid 固定 4 列，同行自动等高 */
.diy-link-box .link-list { margin: 0 !important; }
.diy-link-box .link-list ul {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 6px !important;
}
.diy-link-box .link-list li {
    width: auto !important; min-width: 0 !important;
    padding: 0 !important; margin: 0 !important;
}

.diy-link-card-header {
    display: flex; align-items: center; gap: 10px;
}
.diy-link-card-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: 10px;
    flex-shrink: 0; object-fit: cover;
    background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    box-sizing: border-box;
}
.diy-link-card-info { flex: 1; min-width: 0; overflow: hidden; }
.diy-link-card-name {
    font-size: 14px; font-weight: 700; color: #1a1a2e;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.3; margin: 0 0 4px;
    text-decoration: none; display: block; max-width: 100%;
}
.diy-link-card-name:hover { color: var(--diy-color); }
.diy-link-card-tags {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.diy-link-card-cat {
    font-size: 10px; padding: 1px 8px; border-radius: 10px;
    background: #ecfdf5; color: #059669; font-weight: 500; white-space: nowrap;
}
.diy-link-card-clicks {
    font-size: 11px; color: #9ca3af; white-space: nowrap;
}
.diy-link-card-latency {
    font-size: 10px; color: #b0b7c3; white-space: nowrap;
    background: #f0f2f5; padding: 1px 6px; border-radius: 4px;
}
.diy-link-card-new-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 8px; border-radius: 4px; white-space: nowrap;
}

/* 描述：固定 2 行高度（13px × 1.6 × 2 ≈ 42px） */
.diy-link-card-desc {
    font-size: 13px; line-height: 1.6; color: #6b7280;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 8px 0; word-break: break-all;
    min-height: 42px;
}

/* 分隔线 */
.diy-link-card-divider {
    height: 1px; margin: 4px 0 0;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

/* 操作栏：均分宽度，始终贴底 */
.diy-link-card-actions {
    display: flex; gap: 5px; align-items: center;
    background: #f8f9fb; border-radius: 10px; padding: 6px 6px;
    margin: auto 0 12px 0; flex-shrink: 0;
}
.diy-link-action-btn {
    flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center;
    gap: 3px; padding: 6px 4px; border: none; border-radius: 7px;
    font-size: 11px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; background: transparent; color: #6b7280;
    white-space: nowrap; line-height: 1.3; text-decoration: none;
    overflow: hidden;
}
.diy-link-action-btn:hover { background: #e8ebf0; color: #374151; }
.diy-link-action-btn.diy-btn-like { color: #e74c3c; }
.diy-link-action-btn.diy-btn-like:hover { background: #fee2e2; }
.diy-link-action-btn.diy-btn-visit {
    background: linear-gradient(135deg, var(--diy-color), #007a52);
    color: #fff; font-weight: 600;
}
.diy-link-action-btn.diy-btn-visit:hover {
    background: linear-gradient(135deg, #00a86b, #006644);
    color: #fff; opacity: 1;
}

/* 卡片主体：固定最小高度，不受评论影响 */
.diy-link-card-in {
    background: #fff; border-radius: var(--b2radius); overflow: hidden;
    border: var(--diy-border); box-shadow: var(--diy-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; display: flex; flex-direction: column;
    margin: 0; width: 100%; height: 100%; min-width: 0;
}
.diy-link-card-in:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.diy-link-card-body {
    padding: 14px 14px 0;
    display: flex; flex-direction: column;
    flex-shrink: 0;
}
/* 评论预览区：flex:1 填满卡片剩余高度，背景撑满 */
.diy-link-comments-preview {
    background: #fafbfc; border-top: 1px solid #f0f0f0;
    border-radius: 0 0 var(--b2radius) var(--b2radius);
    padding: 10px 14px; font-size: 12px; margin-top: 0;
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.diy-link-comment-row {
    display: flex; align-items: center; gap: 4px;
    padding: 3px 0; color: #4b5563; line-height: 1.5;
    overflow: hidden; min-width: 0;
}
.diy-cmt-avatar {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    object-fit: cover;
}
.diy-link-comment-row .diy-cmt-author {
    font-weight: 600; color: #1a1a2e; flex-shrink: 0;
    font-size: 12px; white-space: nowrap;
}
.diy-link-comment-row .diy-cmt-text {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
    font-size: 12px; min-width: 0;
}
.diy-link-comment-row .diy-cmt-time {
    font-size: 10px; color: #9ca3af; flex-shrink: 0;
    background: #eef0f3; padding: 1px 6px; border-radius: 8px;
    white-space: nowrap;
}
.diy-link-comments-more {
    text-align: center; padding: 6px 0 0; font-size: 12px;
    color: var(--diy-color); cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: auto;
    display: none;
}
.diy-link-comments-more.diy-visible { display: block; }
.diy-link-comments-more:hover { opacity: 0.7; }
.diy-link-comments-empty {
    text-align: center; color: #c4c8cc; padding: 6px 0; font-size: 12px;
}
.diy-link-comments-full {
    text-align: center; color: #f59e0b; padding: 8px 0; font-size: 12px;
    font-weight: 500;
}

/* ============================================
   [B2CHILD] 2026-07-06 通用弹窗（详情 / 评论 / 全部评论）
   ============================================ */
.diy-modal-overlay {
    position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,0.45); display: flex; align-items: center;
    justify-content: center; opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.diy-modal-overlay.diy-visible { opacity: 1; visibility: visible; }
.diy-modal-box {
    position: relative; background: #fff; border-radius: 16px;
    width: 90%; max-width: 480px; max-height: 80vh;
    overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: scale(0.95); opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: flex; flex-direction: column;
}
.diy-modal-overlay.diy-visible .diy-modal-box {
    transform: scale(1); opacity: 1;
}
.diy-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: rgba(0,0,0,0.05); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #6b7280; transition: all 0.2s ease;
}
.diy-modal-close:hover { background: rgba(0,0,0,0.1); color: #1a1a2e; }
.diy-modal-header {
    padding: 24px 24px 0; display: flex; align-items: center; gap: 10px;
}
.diy-modal-header .diy-link-icon { width: 36px; height: 36px; border-radius: 8px; }
.diy-modal-header h3 {
    font-size: 17px; font-weight: 700; color: #1a1a2e; margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.diy-modal-body { padding: 16px 24px; }
.diy-modal-body p {
    font-size: 14px; line-height: 1.7; color: #4b5563; margin: 0;
    word-break: break-all;
}
.diy-modal-meta {
    display: flex; align-items: center; gap: 8px; padding: 0 24px 16px;
}
.diy-modal-footer { padding: 0 24px 20px; }

/* 评论表单 */
.diy-comment-form { padding: 16px 24px; }
.diy-comment-input {
    width: 100%; padding: 10px 14px; border: 1px solid #e5e7eb;
    border-radius: 10px; font-size: 14px; resize: vertical; min-height: 80px;
    outline: none; transition: border-color 0.2s ease;
    box-sizing: border-box; font-family: inherit; color: #374151;
}
.diy-comment-input:focus { border-color: var(--diy-color); }
.diy-comment-count {
    text-align: right; font-size: 11px; color: #9ca3af; margin-top: 4px;
}
.diy-comment-submit {
    margin-top: 8px; width: 100%; padding: 10px; border: none;
    border-radius: 10px; background: linear-gradient(135deg, var(--diy-color), #007a52);
    color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s ease;
}
.diy-comment-submit:hover { opacity: 0.9; }
.diy-comment-submit:disabled { opacity: 0.6; cursor: default; }

/* 全部评论列表 */
.diy-comments-list { padding: 0 24px 16px; max-height: 50vh; overflow-y: auto; }
.diy-comments-item {
    display: flex; gap: 10px; padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.diy-comments-item:last-child { border-bottom: none; }
.diy-comments-avatar {
    width: 32px; height: 32px; min-width: 32px; min-height: 32px;
    border-radius: 50%; flex-shrink: 0;
    object-fit: cover; background: #f0f0f0;
    display: block; box-sizing: border-box;
}
.diy-comments-body { flex: 1; min-width: 0; }
.diy-comments-author {
    font-size: 13px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px;
}
.diy-comments-text {
    font-size: 13px; line-height: 1.5; color: #4b5563; word-break: break-all;
}
.diy-cmt-time-inline {
    font-weight: 400; color: #9ca3af; font-size: 11px; margin-left: 6px;
}
.diy-comments-loadmore {
    text-align: center; padding: 12px 24px 16px;
}
.diy-comments-loadmore-btn {
    padding: 8px 24px; border: 1px solid #e5e7eb; border-radius: 8px;
    background: #fff; color: #6b7280; font-size: 13px; cursor: pointer;
    transition: all 0.2s ease;
}
.diy-comments-loadmore-btn:hover { border-color: var(--diy-color); color: var(--diy-color); }
.diy-comments-empty {
    padding: 24px; text-align: center; color: #9ca3af; font-size: 13px;
}

/* ============================================
   [B2CHILD] 2026-07-06 网址导航 — 骨架屏
   ============================================ */
.diy-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: diyShimmer 1.4s ease infinite;
    border-radius: 4px;
}
@keyframes diyShimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.diy-skeleton-banner { height: 340px; border-radius: var(--b2radius); margin-bottom: 20px; }

/* ============================================
   [B2CHILD] 2026-07-06 入驻页面 — 替代 TinyMCE 的 textarea
   ============================================ */
.diy-register-textarea {
    width: 100%; height: 150px; padding: 14px 16px; border: 1px solid #e5e7eb;
    border-radius: 8px; font-size: 14px; line-height: 1.7; color: #374151;
    resize: vertical; outline: none;
    background: #fafbfc; transition: border-color 0.2s ease;
    font-family: inherit; box-sizing: border-box;
}
.diy-register-textarea:focus { border-color: var(--diy-color); background: #fff; }
.diy-register-count-wrapper {
    text-align: right; margin-top: 6px; font-size: 12px; color: #9ca3af;
}

/* [B2CHILD] 入驻页面隐藏 TinyMCE 工具栏 */
.links-register .mce-top-part,
.links-register .mce-statusbar { display: none !important; }
.links-register .wp-editor-tabs { display: none !important; }
.links-register .mce-edit-area { border-radius: 8px; }

/* ============================================
   [B2CHILD] 2026-07-06 网址导航 — 空状态
   ============================================ */
.diy-empty-links {
    text-align: center; padding: 40px 20px;
    color: #9ca3af; font-size: 14px;
}
.diy-empty-links .diy-empty-icon { font-size: 40px; margin-bottom: 10px; display: block; }
.diy-empty-links .diy-empty-text { margin: 0 0 8px; }
.diy-empty-links .diy-empty-action {
    color: var(--diy-color); font-size: 13px; text-decoration: none;
}

/* ============================================
   [B2CHILD] 2026-07-06 网址导航 — 响应式
   ============================================ */
@media (max-width: 1024px) {
    .diy-links-banner { height: 380px; }
    .diy-roles-top { height: 270px; }
    .diy-big-role { width: 240px; }
    .diy-role-right-col { width: 340px; margin-left: 16px; }
    .diy-link-name { font-size: 18px; }
    .diy-avatar-wrap { width: 48px; height: 48px; }
    .diy-roles-option-panel { gap: 8px; }
}
@media (max-width: 768px) {
    .diy-links-banner { display: none !important; }
    .diy-links-toolbar { flex-wrap: wrap; gap: 8px 10px; }
    .diy-links-toolbar-right { display: contents; }
    .diy-links-sort { order: 1; flex: 1; }
    .diy-link-join { order: 2; }
    .diy-links-toolbar-btn { font-size: 12px; padding: 5px 10px; }
    .diy-links-search { order: 3; width: 100%; }
    .diy-links-search input { width: 100%; box-sizing: border-box; }
    .diy-links-search input { width: 140px; }
    .diy-link-card-actions { flex-wrap: wrap; gap: 4px; }
    .diy-link-action-btn { flex: 0 0 auto; padding: 5px 8px; font-size: 11px; }
    /* 卡片列表：移动端单列 */
    .diy-link-box .link-list ul {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px !important;
    }
}
@media (max-width: 480px) {
    .diy-modal-box { width: 95%; max-height: 85vh; }
    .diy-link-card-icon { width: 36px; height: 36px; }
    .diy-link-card-name { font-size: 14px; }
}

/* ============================================
   [B2CHILD] 2026-07-11 友链信息弹窗
   ============================================ */
/* 按钮 — 工具栏右侧统一样式（友链信息 + 申请入驻） */
.diy-links-toolbar-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; padding: 6px 14px; white-space: nowrap;
    line-height: 1; height: 34px;
    background: #fff; border-radius: 8px; color: var(--diy-color);
    border: 1.5px solid var(--diy-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06); cursor: pointer;
    transition: all 0.2s ease; font-weight: 600;
    font-family: inherit; box-sizing: border-box;
    vertical-align: middle;
}
.diy-links-toolbar-btn svg {
    width: 16px; height: 16px; flex-shrink: 0;
}
.diy-links-toolbar-btn:hover {
    background: var(--diy-color); color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
/* 弹窗内部样式 */
.diy-link-info-modal {
    max-width: 500px;
}
.diy-link-info-modal .diy-modal-header {
    padding: 28px 28px 0;
}
.diy-link-info-modal .diy-modal-header h3 {
    font-size: 18px; font-weight: 700; color: #1a1a2e;
    display: flex; align-items: center; gap: 6px;
}
.diy-link-info-modal .diy-modal-body {
    padding: 20px 28px 8px;
}
.diy-link-info-modal .diy-modal-footer {
    padding: 12px 28px 28px;
}
/* 信息行 */
.diy-info-rows {
    display: flex; flex-direction: column; gap: 2px;
}
.diy-info-row {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-radius: 10px;
    background: #f9fafb; transition: background 0.2s ease;
}
.diy-info-row:hover {
    background: #f0fdf4;
}
.diy-info-label {
    flex-shrink: 0; width: 42px;
    font-size: 13px; font-weight: 600; color: #6b7280;
    text-align: right;
}
.diy-info-value {
    flex: 1; min-width: 0;
    font-size: 14px; color: #1a1a2e; font-weight: 500;
    word-break: break-all; line-height: 1.5;
}
/* 单行复制按钮 */
.diy-info-copy-btn {
    flex-shrink: 0;
    padding: 4px 12px; font-size: 12px; font-weight: 500;
    background: #fff; color: var(--diy-color);
    border: 1px solid rgba(0,153,102,0.3); border-radius: 6px;
    cursor: pointer; line-height: 1.5;
    transition: all 0.2s ease;
}
.diy-info-copy-btn:hover {
    background: var(--diy-color); color: #fff;
    border-color: var(--diy-color);
}
.diy-info-copy-btn.copied {
    background: #10b981; color: #fff; border-color: #10b981;
    pointer-events: none;
}
/* 一键复制按钮 */
.diy-info-copy-all {
    width: 100%; padding: 12px 20px;
    font-size: 15px; font-weight: 600; color: #fff;
    background: var(--diy-color);
    border: none; border-radius: 10px;
    cursor: pointer; line-height: 1.5;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,153,102,0.2);
}
.diy-info-copy-all:hover {
    background: #008055;
    box-shadow: 0 6px 16px rgba(0,153,102,0.3);
    transform: translateY(-1px);
}
.diy-info-copy-all.copied {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
    pointer-events: none;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .diy-link-info-modal { max-width: 95%; }
    .diy-link-info-modal .diy-modal-header { padding: 22px 18px 0; }
    .diy-link-info-modal .diy-modal-body { padding: 16px 18px 6px; }
    .diy-link-info-modal .diy-modal-footer { padding: 10px 18px 22px; }
    .diy-info-row { padding: 10px 12px; gap: 6px; }
    .diy-info-label { width: 36px; font-size: 12px; }
    .diy-info-value { font-size: 13px; }
    .diy-info-copy-btn { padding: 3px 10px; font-size: 11px; }
    .diy-info-copy-all { padding: 10px 16px; font-size: 14px; }
    .diy-link-info-btn button { font-size: 12px; padding: 5px 10px; }
}
/* ============================================
   [B2CHILD] 2026-07-07 卡片定位闪烁边框（scroll_to / #comment- 跳转后视觉反馈）
   ============================================ */
.diy-link-card-in.diy-link-card-flash {
    animation: diyCardFlash 0.6s ease-in-out 3;
}
@keyframes diyCardFlash {
    0%, 100% {
        outline: 3px solid transparent;
        outline-offset: -3px;
    }
    50% {
        outline: 3px solid var(--b2color, #009966);
        outline-offset: -3px;
    }
}
