/* zy-ui.css 头部搜索 / 平台切换 / 下载三按钮（zzyrj.top，2026-11-16） */

/* ===== zy-search 搜索组件 v2 ===== */
.zy-search { position: relative; max-width: 780px; margin: 14px auto 12px; padding: 0 14px; }
.zy-search input {
    width: 100%; height: 44px; box-sizing: border-box;
    border: 2px solid #BFDBFE; border-radius: 10px;
    padding: 0 150px 0 16px; font-size: 16px; color: #1E293B;
    background: #fff; outline: none;
    box-shadow: 0 2px 10px rgba(37,99,235,.08);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.zy-search input:focus { border-color: #3B82F6; box-shadow: 0 4px 16px rgba(37,99,235,.16); }
.zy-search input::placeholder { color: #94A3B8; }
.zy-search-btn {
    position: absolute; right: 24px; top: 7px; height: 30px; padding: 0 18px;
    border: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(90deg, #3B82F6, #2563EB); color: #fff;
    font-size: 14px; font-weight: 600; font-family: inherit;
    transition: opacity .2s;
}
.zy-search-btn:hover { opacity: .88; }
.zy-search-clear {
    position: absolute; right: 106px; top: 12px; width: 22px; height: 22px;
    border: none; border-radius: 50%; cursor: pointer; display: none;
    background: #E2E8F0; color: #475569; font-size: 14px; line-height: 22px; padding: 0;
    font-family: inherit;
}
.zy-search-clear:hover { background: #CBD5E1; }
.zy-search-drop {
    position: absolute; top: 50px; left: 14px; right: 14px;
    background: rgba(255,255,255,.97);
    border: 1px solid #E2E8F0; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15,23,42,.16);
    max-height: 380px; overflow-y: auto; display: none; z-index: 999;
}
.zy-sg-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #F1F5F9; }
.zy-sg-item:last-child { border-bottom: none; }
.zy-sg-item:hover { background: #EFF6FF; }
.zy-sg-pan { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #2563EB; background: #DBEAFE; border-radius: 6px; padding: 2px 6px; }
.zy-sg-name { flex: 1; font-size: 14px; color: #1E293B; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zy-sg-name b { color: #2563EB; }
.zy-sg-sec { flex-shrink: 0; max-width: 130px; font-size: 11px; color: #94A3B8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zy-sg-empty, .zy-sg-more { padding: 18px 14px; text-align: center; color: #94A3B8; font-size: 13px; }
.zy-sg-loading { padding: 8px 14px; text-align: center; color: #94A3B8; font-size: 12px; background: #F8FAFC; border-radius: 0 0 12px 12px; }
.zy-hl { background: #FEF3C7 !important; outline: 2px solid #F59E0B; border-radius: 8px; }

/* ===== 平台切换 Windows / MAC / Android ===== */
.zy-platform {
    display: flex; justify-content: center; align-items: center;
    gap: 10px; flex-wrap: wrap;
    margin: 0 auto 18px; padding: 0 14px;
}
.zy-plat {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 22px;
    border-radius: 999px; border: 1px solid #E2E8F0;
    background: rgba(255,255,255,.94);
    color: #475569; font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    box-shadow: 0 2px 10px rgba(37,99,235,.06);
    transition: transform .2s, border-color .2s, color .2s, box-shadow .2s, background .2s;
}
.zy-plat:hover {
    transform: translateY(-1px);
    border-color: #C7D2FE; color: #4338CA;
    box-shadow: 0 6px 16px rgba(37,99,235,.14);
    text-decoration: none;
}
.zy-plat.on {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    border-color: transparent; color: #fff;
    box-shadow: 0 6px 18px rgba(37,99,235,.3);
}
.zy-plat-dot { width: 8px; height: 8px; border-radius: 50%; background: #0078D4; flex-shrink: 0; }
.zy-plat[data-platform="mac"] .zy-plat-dot { background: #64748B; }
.zy-plat[data-platform="android"] .zy-plat-dot { background: #3DDC84; }
.zy-plat[data-platform="tutorial"] .zy-plat-dot { background: #F59E0B; }
.zy-plat.on .zy-plat-dot { background: #fff; opacity: .92; }

/* ===== 下载教程页 ===== */
.zy-tut { width: 100%; max-width: 920px; margin: 0 auto; }
.zy-tut-title { margin: 0 0 16px; font-size: 28px; color: #1E293B; text-align: center; }
.zy-tut-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.zy-tut-tab {
    height: 42px; padding: 0 24px; border-radius: 999px;
    border: 1px solid #E2E8F0; background: #fff;
    color: #475569; font-size: 15px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.zy-tut-tab:hover { border-color: #C7D2FE; color: #4338CA; }
.zy-tut-tab.on {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    border-color: transparent; color: #fff;
    box-shadow: 0 6px 18px rgba(37,99,235,.3);
}
.zy-tut-panel {
    background: #F8FAFC; border: 1px solid #E8EEF7;
    border-radius: 14px; padding: 18px 20px;
}
.zy-tut-panel p { margin: 12px 0 8px; font-size: 13.5px; color: #475569; line-height: 1.75; }
.zy-tut-panel p:first-child { margin-top: 0; }
.zy-tut-panel img {
    display: block; width: 100%; max-width: 680px; height: auto;
    margin: 0 auto 10px; border-radius: 10px;
    border: 1px solid #E2E8F0; background: #fff;
}
@media (max-width: 760px) {
    .zy-tut-title { font-size: 22px; }
    .zy-tut-tab { height: 38px; padding: 0 16px; font-size: 13px; }
    .zy-tut-panel { padding: 14px; }
}

/* ===== 下载三按钮：立即下载 / 备用1 / 备用2 ===== */
.dlink .zy-link-enh {
    width: 100%; max-width: 560px;
    height: auto; min-height: 62px;
    margin: 8px; padding: 6px 8px;
    box-sizing: border-box;
    /* 裁掉扫光，避免白色扫光超出按钮圆角 */
    overflow: hidden;
}
.dlink .zy-link-enh > img { flex: 0 0 25px; }
.zy-dl-main {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    gap: 6px; margin: 0 4px 0 8px;
}
.dlink .zy-link-enh .zy-dl-name {
    display: block; width: auto; margin: 0;
    font-size: 14px; font-weight: 600; line-height: 1.35;
    color: #2c3e50; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .2s;
}
.dlink .zy-link-enh:hover .zy-dl-name { color: #4F46E5; font-weight: 600; }
.zy-dl-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.dlink .zy-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; height: 26px; margin: 0; padding: 0 11px;
    border-radius: 7px; border: 1px solid transparent;
    font-size: 12px; font-weight: 600; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.dlink .zy-btn-primary {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,.24);
}
.dlink .zy-btn-primary:hover, .dlink .zy-link-enh:hover .zy-btn-primary {
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,99,235,.34);
}
.dlink .zy-btn-ghost {
    background: #fff; color: #4B5563; border-color: #D8DEE9;
}
.dlink .zy-btn-ghost:hover, .dlink .zy-link-enh:hover .zy-btn-ghost {
    color: #4F46E5; border-color: #A5B4FC; background: #F5F3FF;
    transform: translateY(-1px);
}
.dlink .zy-btn-ghost.is-empty {
    color: #9CA3AF; border-style: dashed; border-color: #D1D5DB; background: #FAFAFB;
}
.dlink .zy-btn-ghost.is-empty:hover, .dlink .zy-link-enh:hover .zy-btn-ghost.is-empty {
    color: #9CA3AF; border-color: #D1D5DB; background: #FAFAFB;
    transform: none; cursor: not-allowed;
}

/* ===== 轻提示 ===== */
.zy-toast {
    position: fixed; left: 50%; bottom: 46px;
    transform: translateX(-50%) translateY(12px);
    max-width: 82vw; padding: 10px 20px;
    background: rgba(17,24,39,.92); color: #fff;
    font-size: 14px; line-height: 1.4;
    border-radius: 10px; z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.zy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 平台专区页（mac.html / android.html） ===== */
.plat-list { width: 100%; min-width: 0; }
.plat-mulu { justify-content: space-between; }
.plat-h1 { margin: 0 0 6px; font-size: 24px; color: #312e81; font-weight: 700; }
.plat-sub { margin: 0 0 20px; font-size: 14px; color: #64748B; }
.plat-group { margin-bottom: 0; }
/* 与 Windows 首页 .sw-title 保持一致的尺寸/宽度 */
.plat-group-title {
    display: flex; align-items: center; gap: 10px;
    width: 100%; height: 60px; box-sizing: border-box;
    margin-bottom: 20px; padding: 15px 20px;
    font-size: 20px; font-weight: 600; color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,.1) 0%, rgba(118,75,162,.1) 100%);
    border-left: 4px solid #667eea; border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    /* 只过渡颜色，避免位移/缩放导致悬停抖动与旁边按钮爆闪 */
    transition: background-color .25s ease, color .25s ease;
}
.plat-group-title:hover {
    background: linear-gradient(135deg, rgba(102,126,234,.2) 0%, rgba(118,75,162,.2) 100%);
    box-shadow: none;
}
/* 侧边栏按钮：去掉白色光晕/白色扫光；悬停不再位移缩放，避免 hover 反复触发 */
.plat-mulu {
    box-shadow: none;
    transform: none;
    transition: background-color .25s ease, color .25s ease;
}
.plat-mulu:hover, .plat-mulu:active {
    box-shadow: none;
    transform: none;
}
.plat-mulu::before { display: none; }
.plat-badge {
    font-size: 11px; font-weight: 700; color: #fff;
    padding: 2px 9px; border-radius: 999px;
    background: linear-gradient(90deg, #3B82F6, #2563EB);
}
.plat-group-title em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: #94A3B8; }
.plat-items { display: flex; flex-wrap: wrap; }
.plat-loading, .plat-empty { padding: 46px 10px; text-align: center; color: #94A3B8; font-size: 14px; }
.plat-empty a { color: #2563EB; text-decoration: none; }
.plat-empty a:hover { text-decoration: underline; }
.plat-more { padding: 6px 2px 18px; font-size: 13px; color: #94A3B8; text-align: center; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .zy-search { padding: 0 8px; margin: 10px auto 8px; }
    .zy-search input { padding-right: 110px; }
    .zy-search-btn { right: 16px; padding: 0 12px; }
    .zy-search-clear { right: 82px; }
    .zy-sg-sec { display: none; }
    .zy-platform { gap: 8px; margin-bottom: 14px; }
    .zy-plat { height: 36px; padding: 0 14px; font-size: 13px; }
    .dlink .zy-link-enh { min-height: 58px; padding: 5px 6px; }
    .dlink .zy-link-enh .zy-dl-name { font-size: 13px; }
    .dlink .zy-btn { height: 24px; padding: 0 9px; font-size: 11px; }
    .plat-h1 { font-size: 20px; }
}
