/* 旧浏览器回退：IE7+ / 360 兼容模式 / 不支持 CSS 变量的内核 */

[hidden] { display: none !important; }

html.is-legacy body,
html.is-legacy .frontend-body {
    background: #f4f6fb;
    color: #333333;
    font-family: "Microsoft YaHei", "PingFang SC", SimSun, Arial, sans-serif;
}

html.is-legacy a { color: #10b981; }
html.is-legacy a:hover { color: #059669; }

html.is-legacy .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    zoom: 1;
}

html.is-legacy .site-header {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #ebeef5;
    zoom: 1;
}

html.is-legacy .header-inner,
html.is-legacy .site-logo,
html.is-legacy .site-nav,
html.is-legacy .nav-pills,
html.is-legacy .site-actions,
html.is-legacy .header-search {
    display: block;
    zoom: 1;
}

html.is-legacy .header-inner { height: auto; padding: 10px 0; }
html.is-legacy .site-logo { float: left; color: #333333 !important; }
html.is-legacy .logo-icon,
html.is-legacy .logo-img {
    float: left;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    background: #10b981;
    color: #fff;
}
html.is-legacy .logo-text { font-weight: bold; font-size: 16px; }
html.is-legacy .logo-tagline { display: none; }
html.is-legacy .site-nav { float: left; margin-left: 20px; padding-top: 8px; }
html.is-legacy .nav-pills { background: none; border: 0; }
html.is-legacy .nav-link {
    display: inline;
    margin-right: 14px;
    color: #333333 !important;
    background: none;
}
html.is-legacy .site-actions { float: right; padding-top: 6px; }
html.is-legacy .header-search { display: inline; }
html.is-legacy .header-search-input {
    width: 160px;
    height: 28px;
    line-height: 28px;
    border: 1px solid #dcdfe6;
    padding: 0 8px;
}
html.is-legacy .header-search-kbd,
html.is-legacy .nav-toggle { display: none; }

html.is-legacy .home-hero,
html.is-legacy .page-home {
    background: #059669;
    color: #fff;
    padding: 30px 0;
}
html.is-legacy .home-hero { margin-top: 0; min-height: 0; }
html.is-legacy .home-hero-bg { display: none; }

html.is-legacy .tool-card,
html.is-legacy .news-board-item,
html.is-legacy .news-board-widget,
html.is-legacy .install-card,
html.is-legacy .admin-topbar {
    background: #ffffff;
    border: 1px solid #ebeef5;
    color: #333333;
}

html.is-legacy .tool-card {
    display: inline;
    float: left;
    width: 30%;
    margin: 0 1.5% 16px;
    padding: 12px;
    zoom: 1;
}

html.is-legacy .news-board-layout,
html.is-legacy .footer-grid,
html.is-legacy .header-inner {
    zoom: 1;
}
html.is-legacy .news-board-layout { display: block; }
html.is-legacy .news-board-list { float: left; width: 68%; }
html.is-legacy .news-board-aside { float: right; width: 28%; }
html.is-legacy .news-board-item {
    display: block;
    margin-bottom: 12px;
    padding: 12px;
}
html.is-legacy .news-board-thumb {
    float: left;
    width: 120px;
    height: 80px;
    margin-right: 12px;
    background: #1f2937;
}
html.is-legacy .news-board-title { font-weight: bold; color: #333333; }

html.is-legacy .site-footer {
    background: #1f2937;
    color: #e5e7eb;
    padding: 24px 0;
    clear: both;
}
html.is-legacy .footer-grid { zoom: 1; }
html.is-legacy .footer-brand,
html.is-legacy .footer-col {
    float: left;
    width: 22%;
    margin-right: 3%;
    display: block;
}
html.is-legacy .footer-logo { color: #ffffff !important; }
html.is-legacy .footer-bottom {
    clear: both;
    padding-top: 16px;
    border-top: 1px solid #374151;
}
html.is-legacy .footer-copy,
html.is-legacy .footer-powered { color: #9ca3af; }

html.is-legacy .admin-layout { display: block; zoom: 1; }
html.is-legacy .admin-sidebar {
    float: left;
    width: 200px;
    background: #304156;
    color: #fff;
    min-height: 600px;
}
html.is-legacy .admin-main {
    margin-left: 200px;
    background: #f4f6fb;
    display: block;
}
html.is-legacy .admin-topbar {
    height: auto;
    padding: 10px 16px;
}
html.is-legacy .admin-menu li a { color: #d0d4db; }
html.is-legacy .admin-menu li a.active,
html.is-legacy .admin-menu li a:hover {
    background: #3e4d67;
    color: #fff;
    border-left: 3px solid #10b981;
}

html.is-legacy .install-wrap { max-width: 800px; margin: 20px auto; }
html.is-legacy .install-header { background: #10b981; color: #fff; padding: 24px; }
html.is-legacy .form-control,
html.is-legacy input,
html.is-legacy textarea,
html.is-legacy select {
    border: 1px solid #dcdfe6;
    padding: 6px 8px;
    font-family: "Microsoft YaHei", SimSun, Arial, sans-serif;
}
html.is-legacy .btn,
html.is-legacy .btn-primary {
    display: inline-block;
    padding: 8px 16px;
    background: #10b981;
    color: #fff;
    border: 0;
    cursor: pointer;
}
html.is-legacy .btn-default { background: #909399; }

html.is-legacy .theme-toggle { display: none; }
html.is-legacy .back-top { display: none; }

html.is-legacy .clearfix,
html.is-legacy .header-inner:after,
html.is-legacy .footer-grid:after,
html.is-legacy .news-board-layout:after,
html.is-legacy .news-board-item:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* IE7 不支持 :after，用 zoom 清浮动 */
html.is-legacy .header-inner,
html.is-legacy .footer-grid,
html.is-legacy .news-board-layout,
html.is-legacy .news-board-item,
html.is-legacy .admin-layout {
    *zoom: 1;
}
