@charset "utf-8";

blockquote,
body,
button,
caption,
dd,
div,
dl,
dt,
fieldset,
figure,
form,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
input,
legend,
li,
menu,
ol,
p,
pre,
table,
td,
textarea,
th,
ul {
    margin: 0;
    padding: 0;
}

address,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
    display: block;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 8px;
    text-align: left;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption,
th {
    text-align: left;
    font-weight: 400;
}

abbr,
body,
fieldset,
html,
iframe,
img {
    border: 0;
}

address,
cite,
dfn,
em,
i,
var {
    font-style: normal;
}

[hidefocus],
summary {
    outline: 0;
}

li {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
small {
    font-size: 100%;
    word-break: break-all;
}

sub,
sup {
    font-size: 83%;
}

code,
kbd,
pre,
samp {
    font-family: inherit;
}

q:after,
q:before {
    content: none;
}

textarea {
    overflow: auto;
    resize: none;
}

label,
summary {
    cursor: default;
}

a,
button {
    cursor: pointer;
}

b,
em,
h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-weight: 700;
}

a,
a:hover,
del,
ins,
s,
u {
    text-decoration: none;
}

body,
button,
input,
keygen,
legend,
select,
textarea {
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    rendering: optimizeLegibility;
}

body {
    background: #fff;
}

a,
a:hover {
    color: #242424;
    text-decoration: none;
}

.clear {
    clear: both;
}

.clearfix {
    zoom: 1;
}

.clearfix:after {
    clear: both;
    content: ".";
    visibility: hidden;
    overflow: hidden;
    height: 0;
    font-size: 0;
}

.clearfix:after,
.clearfix:before {
    display: table;
    content: "";
}

@font-face {
    font-family: iconfont;
    src: url(//at.alicdn.com/t/font_733003_2f7tomkm55j.woff2?t=1622342360780) format('woff2'),
         url(//at.alicdn.com/t/font_733003_2f7tomkm55j.woff?t=1622342360780) format('woff'),
         url(//at.alicdn.com/t/font_733003_2f7tomkm55j.ttf?t=1622342360780) format('truetype');
}

.iconfont {
    font-family: iconfont !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-navicon:before {
    content: "\e8ae";
}

.icon-search:before {
    content: "\e680";
}

.icon-20151209tubiaolianxizhuanhuan09:before {
    content: "\e60e";
}

.icon-weixin:before {
    content: "\e610";
}

.icon-qq:before {
    content: "\e623";
}

.icon-sousuo:before {
    content: "\e613";
}

.icon-huidingbu:before {
    content: "\e8f7";
}

h1 {
    margin: .67em 0;
}

h2 {
    font-size: 1.5em;
    margin: .83em 0;
}

h3 {
    font-size: 1.17em;
    margin: 1em 0;
}

h4 {
    font-size: 1em;
    margin: 1.33em 0;
}

h5 {
    font-size: .83em;
    margin: 1.67em 0;
}

h6 {
    font-size: .75em;
    margin: 2.33em 0;
}

blockquote,
dl,
ol,
p,
table,
ul {
    margin-top: 0;
    margin-bottom: .85em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================
   Header
========================= */
header {
    position: relative;
    z-index: 10000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    background: hsla(0, 0%, 100%, .96);
    overflow: visible !important;
}

.header {
    position: relative;
    min-height: 60px;
    overflow: visible !important;
}

.logo {
    height: 60px;
    float: left;
    position: relative;
    z-index: 2;
}

.logo a {
    display: block;
    line-height: 60px;
    font-size: 24px;
    color: #555;
}

.nav {
    display: block;
    float: right;
    position: relative;
    z-index: 10001;
    overflow: visible !important;
    padding-right: 130px;
}

.nav ul {
    list-style: none;
    margin-right: 0;
    line-height: 60px;
    margin-bottom: 0;
    overflow: visible !important;
}

.nav ul li {
    display: inline-block;
    margin-right: 15px;
    position: relative;
    overflow: visible !important;
}

.nav ul li a {
    display: inline-block;
    color: #888;
}

.nav ul li a:hover {
    color: #157efb;
}

/* Fix login link if not wrapped in li */
.nav ul > a {
    display: inline-block;
    line-height: 60px;
    margin-right: 20px;
    color: #888;
    vertical-align: top;
}

.nav ul > a:hover {
    color: #157efb;
}

.toggle-menu {
    position: absolute;
    top: 8px;
    right: 5px;
    display: none;
    cursor: pointer;
    z-index: 10030;
}

.toggle-menu i {
    font-size: 24px;
    color: #888;
    display: inline-block;
}

/* =========================
   Header actions stable fix
   Prevent translate icon flash-left on initial load
========================= */
.header-actions {
    position: absolute;
    top: 42%;
    right: 44px;
    transform: translateY(-42%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    z-index: 10020;
    min-width: 82px;
    margin: 0 !important;
    float: none !important;
}

.language-switcher {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    margin: 0 !important;
    list-style: none;
    z-index: 10021 !important;
}

.language-toggle,
.toggle-search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px;
    cursor: pointer;
    text-decoration: none !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.language-toggle img.language-icon,
.language-icon {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    object-fit: contain;
}

.toggle-search {
    float: none !important;
    gap: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
}

.toggle-search i {
    color: #333;
    font-size: 20px;
    line-height: 1;
}

/* =========================
   Top search
========================= */
.Up-search {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
    overflow: hidden;
    padding: 20px 0;
    display: none;
}

.Up-search i {
    padding: 0;
    font-size: 16px;
    cursor: pointer;
}

.search.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.search form {
    float: right;
    width: auto;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
}

.category-filter-group {
    width: auto;
    min-width: auto;
}

.category-select {
    width: auto;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.category-select:focus {
    border-color: #007bff;
}

.search-input-group {
    flex: 1;
    display: flex;
    min-width: 300px;
}

.search-input-group input,
.search form input {
    flex: 1;
    width: 268px;
    height: 45px;
    border: 1px solid #ddd !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px;
    padding: 12px 15px;
    padding-left: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.search-input-group input:focus {
    border-color: #007bff !important;
}

.search-input-group .submit,
.search form button {
    width: 65px;
    height: 45px;
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    box-sizing: border-box;
}

.search-input-group .submit:hover,
.search form button:hover {
    background: #0056b3;
}

/* =========================
   Navigation dropdown
========================= */
.header .nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header .nav > ul > li {
    position: relative !important;
    display: inline-block !important;
    overflow: visible !important;
}

.header .nav > ul > li > ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 180px !important;
    background: #fff !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    list-style: none !important;
}

.header .nav > ul > li:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header .nav ul ul li {
    display: block !important;
    margin: 0 !important;
}

.header .nav ul ul li a {
    display: block !important;
    padding: 8px 20px !important;
    color: #333 !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    line-height: 30px;
}

.header .nav ul ul li a:hover {
    background: #f5f5f5 !important;
    color: #157efb !important;
}

/* =========================
   Language dropdown
========================= */
.language-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 220px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important;
    padding: 8px 0 !important;
    z-index: 10050 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    display: block !important;
    margin: 0 !important;
}

.language-dropdown.show,
.language-switcher.active .language-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}


.language-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0 !important;
}

.language-dropdown li:last-child {
    border-bottom: none !important;
}

.language-dropdown li a,
.language-dropdown a {
    display: block !important;
    padding: 10px 14px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

.language-dropdown li a:hover,
.language-dropdown li a.active,
.language-dropdown a:hover,
.language-dropdown a.active {
    background: #f5f7fb !important;
    color: #4065f6 !important;
    font-weight: 700;
}

/* =========================
   Main layout
========================= */
.main-body {
    padding-top: 2em;
}

article {
    padding: 2em 0;
    overflow: hidden;
}

.article .title {
    font-size: 1.75em;
    margin: 0;
}

.article .title a {
    color: #333;
}

.article .title a:hover {
    color: #157efb;
}

.article .info {
    color: #999;
    display: block;
}

.article .info a {
    color: #999;
}

.article .content {
    display: block;
    padding-top: 1.25em;
}

.article .content p {
    word-wrap: break-word;
}

.article .content img {
    padding-bottom: 0;
}

.article .content hr {
    height: auto;
    background: 0 0;
    margin-top: 25px;
    margin-bottom: 20px;
    display: block;
    border: 0;
    text-align: center;
}

.pagebar {
    padding: 1em 0;
    display: block;
    text-align: center;
}

.pagebar a,
.pagebar span {
    padding: .5em 1em;
    display: inline-block;
    color: #888;
}

.pagebar span {
    color: #333;
}

a.l {
    text-align: left;
    float: left;
}

a.r {
    text-align: right;
    float: right;
}

/* =========================
   Comments base
========================= */
ul.msg {
    list-style-position: outside;
    table-layout: fixed;
    word-wrap: break-word;
}

li.msgname {
    margin: 0;
    font-weight: none;
    font-size: 1em;
    border-bottom: 1px dotted #eaeaea;
}

li.msgname .avatar {
    border-radius: 50%;
}

li.msgname .commentname a {
    color: #888;
}

li.msgname small {
    font-size: 14px;
    color: #888;
}

li.msgname small .revertcomment {
    display: inline-block;
    float: right;
}

li.msgurl {
    text-align: right;
    margin: 0;
    font-size: 1em;
}

li.msggravatar {
    display: block;
    float: left;
    margin-right: 5px;
}

li.msgarticle {
    list-style-position: outside;
    padding: 10px;
    margin: 0;
    line-height: 160%;
    background: #fff;
    padding-left: 55px;
}

li.msgtime {
    padding: 5px 0 0 0;
    font-weight: 400;
    font-size: .8em;
}

img.avatar {
    width: 40px;
    height: 40px;
    float: left;
    padding: 0 4px 4px 0;
    border: 0 solid #eaeaea;
}

ul.msg ul.msg {
    padding: 10px 0 0 0;
    margin: 20px 0 0 0;
    border-bottom: none;
}

ul.msg ul.msg li.msgarticle {
    padding-bottom: 0;
}

ul.msghead,
ul.mutuality,
ul.pagebar {
    border: none;
}

ul.msghead li.tbname,
ul.mutuality li.tbname {
    color: #3c6da7;
    padding: .5em 1em .5em 1em;
    border: 1px solid #eaeaea;
    background: #fbfbfb;
    font-size: 1.15em;
}

ul.mutuality li.msgarticle {
    padding-left: 0;
    border: none;
}

li.msgarticle div.quote {
    margin: 10px 0 0 0;
    padding: 10px;
    background: #fff;
    border: 1px #f4f4f4 solid;
}

li.msgarticle div.quote-title {
    margin: 0;
    padding: 0;
    font-size: 1em;
    color: red;
}

#divCommentPost {
    margin-bottom: 2em;
    display: block;
}

#divCommentPost p {
    margin-top: 10px;
}

#divCommentPost label {
    margin-top: 5px;
}

#divCommentPost p.posttop {
    color: #999;
}

#divCommentPost img {
    margin-bottom: 0;
}

#cancel-reply {
    float: right;
    margin-right: 2em;
}

div.reply-frm {
    background: #f0f0f0;
    box-shadow: 0 0 15px #333;
    margin: 1em 1% !important;
    padding: .3em .8em !important;
    min-width: 330px;
}

input.text {
    border: 1px solid #d7d7d7 !important;
    line-height: 20px;
    height: 24px;
    border-radius: 15px;
    padding: 2px 5px 2px 5px;
}

input.text:focus {
    outline: none;
    border-color: #d7d7d7 !important;
    border-radius: 15px;
}

#txaArticle {
    padding: .5em;
    width: 95%;
    height: 150px;
    border: 1px solid #d7d7d7 !important;
    border-radius: 15px !important;
}

#txaArticle:focus {
    outline: none;
    border-color: #d7d7d7 !important;
    border-radius: 15px;
}

input.button {
    color: #fff;
    font-size: 14px;
    width: 100px;
    height: 32px;
    background: #999;
    border: 0;
    cursor: pointer;
    border-radius: 5px !important;
}

span.page {
    color: #444;
    font-weight: 400;
    padding: 2px 5px 2px 5px;
    margin: 4px;
}

span.now-page {
    color: #444;
    font-weight: bolder;
    padding: 2px 5px 2px 5px;
    margin: 5px;
}

a:hover span.page {
    color: red;
}

ul.ul-subcates {
    padding: 8px 0 0 0;
    margin-bottom: -8px;
}

span.sh {
    border: 1px solid #ccc;
    padding: 0 3px;
    margin-right: 5px;
    font-size: .5em;
    font-family: monospace;
    cursor: pointer;
    color: #333;
}

.footer {
    padding: 1.5em 0;
    text-align: center;
    color: #555;
}

/* 修复文章内容中文本不换行的问题 */
.content span {
    text-wrap: wrap !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
}

.content p span {
    display: inline !important;
}

/* =========================
   News layout
========================= */
.main-body-with-sidebar {
    display: flex;
    gap: 30px;
    padding-top: 2em;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.news-article {
    padding: 2em 0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.news-article:last-child {
    border-bottom: none;
}

.news-article .title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.news-article .title a {
    color: #333;
    transition: color 0.3s ease;
}

.news-article .title a:hover {
    color: #157efb;
}

.news-single-article {
    padding: 2em 0;
}

.news-single-article .title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
}

.news-content {
    line-height: 1.8;
    font-size: 16px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #157efb;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #555;
}

.news-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-sidebar-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.news-sidebar-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-sidebar-link {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-sidebar-link:hover {
    color: #157efb;
    transform: translateX(5px);
    text-decoration: none;
}

.news-sidebar-title {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 500;
}

.news-sidebar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-sidebar-category {
    background: #f0f7ff;
    color: #157efb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.sticky-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-sidebar-item {
    margin-bottom: 12px;
}

.sticky-sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.sticky-sidebar-link:hover {
    color: #157efb;
    transform: translateY(-2px);
}

.sticky-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.sticky-icon .iconfont {
    color: #555;
    font-size: 16px;
}

.sticky-info {
    flex: 1;
    min-width: 0;
}

.sticky-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sticky-views {
    font-size: 12px;
    color: #999;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: #e3f2fd;
    color: #157efb;
    transform: translateY(-2px);
}

.category-icon {
    width: 32px;
    height: 32px;
    background: #157efb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.category-icon .iconfont {
    color: #fff;
    font-size: 14px;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.category-count {
    font-size: 11px;
    color: #999;
}

.no-content {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px 0;
}

/* Hot apps */
.popular-apps-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative !important;
    overflow: visible !important;
}

.card-hover-overlay {
    z-index: 20 !important;
}

.top-badge,
.update-badge,
.new-badge {
    position: absolute !important;
    z-index: 30 !important;
    pointer-events: auto !important;
    line-height: 1 !important;
}


.top-badge {
    top: 2px !important;
    right: 10px !important;
}

.update-badge,
.new-badge {
    top: 2px !important;
    left: 10px !important;
}

.top-badge i {
    color: #ff9800 !important;
    font-size: 14px !important;
}

.update-badge i {
    color: red !important;
    font-size: 14px !important;
}

.new-badge i {
    color: green !important;
    font-size: 14px !important;
}

.app-card:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #157efb;
}

.app-icon-news {
    width: 80px;
    height: 80px;
    border-radius: 80px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.app-icon-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #333;
}

.app-meta {
    display: grid;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.app-info-news {
    flex: 1;
    min-width: 0;
}

.app-title-news {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #333;
    text-align: left;
}

.app-meta-news {
    display: grid;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.app-version {
    background: #e3f2fd;
    color: #157efb;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.app-views {
    display: flex;
    align-items: center;
    color: #999;
}

.app-views .iconfont {
    font-size: 12px;
    margin-right: 3px;
}

.tags {
    margin-bottom: 20px;
    text-align: center;
}

.tags span {
    font-weight: bold;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    background-color: #f1f1f1;
    color: #333;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: #333;
    color: #fff;
}

/* =========================
   Comments enhanced
========================= */
.comments-section {
    margin-top: 40px;
    padding: 30px;
}

.comments-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

.comments-title {
    font-size: 1.5em;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: #157efb;
}

.comments-count {
    background: #157efb;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    margin-left: 8px;
}

.comment-form-wrapper {
    margin-bottom: 40px;
}

.comment-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-form-title {
    font-size: 1.3em;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-title i {
    color: #157efb;
}

.cancel-reply-btn {
    display: none;
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    background: #ff3742;
    color: white;
}

.cancel-reply-btn i {
    margin-right: 4px;
}

.comment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper,
.textarea-wrapper {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #157efb;
    box-shadow: 0 0 0 3px rgba(21, 126, 251, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.input-icon,
.textarea-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.textarea-icon {
    top: 20px;
    transform: none;
}

.verifycode {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
}

.form-submit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.submit-btn {
    background: linear-gradient(135deg, #157efb, #0d6efd);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 126, 251, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-tips {
    color: #6c757d;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-tips i {
    color: #157efb;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    animation: commentFadeIn 0.4s ease-out;
}

.comment-item:hover {
    background: #fafbfc;
    margin: 0 -10px;
    padding: 20px 10px;
    border-radius: 8px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-item:hover .comment-avatar .avatar {
    transform: scale(1.1);
    border-color: #157efb;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.author-name a {
    color: inherit;
    text-decoration: none;
}

.author-name a:hover {
    color: #157efb;
}

.author-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #fff;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6c757d;
    font-size: 0.9em;
}

.comment-time {
    color: #8e8e93;
}

.reply-btn {
    color: #157efb;
    text-decoration: none;
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(21, 126, 251, 0.1);
}

.reply-btn:hover {
    background: #157efb;
    color: white;
}

.reply-btn i {
    margin-right: 4px;
    font-size: 0.8em;
}

.comment-text {
    color: #444;
    line-height: 1.7;
    word-wrap: break-word;
}

.comment-text p {
    margin-bottom: 0.5em;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-children {
    margin-top: 20px;
    margin-left: 30px;
    padding-left: 25px;
    border-left: 3px solid #f0f0f0;
}

.comment-children .comment-item {
    padding: 15px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.comment-children .comment-item:last-child {
    border-bottom: none;
}

.comment-children .comment-avatar .avatar {
    width: 40px;
    height: 40px;
}

.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-comments-icon {
    font-size: 3em;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-comments h4 {
    color: #6c757d;
    margin-bottom: 10px;
}

.no-comments p {
    color: #8e8e93;
    margin: 0;
}

.comments-pagination {
    margin-top: 30px;
    text-align: center;
}

.commentpagebar .pagebar {
    display: inline-flex;
    gap: 5px;
}

.commentpagebar .pagebar a,
.commentpagebar .pagebar span {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.commentpagebar .pagebar a {
    color: #495057;
    background: white;
}

.commentpagebar .pagebar a:hover {
    background: #157efb;
    color: white;
    border-color: #157efb;
}

.commentpagebar .pagebar span {
    background: #157efb;
    color: white;
    border-color: #157efb;
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item:target {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin: 0 -10px;
    border: 2px solid #157efb;
}

/* =========================
   Responsive
========================= */
@media screen and (max-width: 1024px) {
    .main-body-with-sidebar {
        flex-direction: column;
        gap: 20px;
    }

    .news-sidebar {
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-apps-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 800px) {
    .Up-search,
    footer,
    header,
    section {
        padding: 0 10px;
    }

    .toggle-menu {
        display: block;
    }

    .header-actions {
        right: 44px;
        top: 42%;
        transform: translateY(-42%);
    }

    .nav {
        position: absolute;
        z-index: 10010;
        top: 60px;
        right: 0;
        width: 92%;
        margin-left: 20px;
        background: #fff;
        border-radius: 14px;
        text-align: left;
        padding-right: 0;
        float: none;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    /* 默认只隐藏主菜单，子菜单的显示由 active 控制 */
    .nav > ul {
        display: none;
        padding: 8px 10px;
        line-height: normal;
        margin: 0 !important;
    }

    .nav > ul > li {
        display: block;
        margin-right: 0;
        border-bottom: 1px solid #f2f2f2;
        padding: 2px 0;
    }

    .nav > ul > li:last-child {
        border-bottom: none;
    }

    .nav > ul > li > a {
        display: block;
        line-height: 40px;
        min-height: 40px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 14px;
        color: #333;
    }

    .nav > ul > li > a:hover,
    .nav > ul > li.active > a {
        background: #f5f8ff;
        color: #157efb;
    }

    .nav ul > a {
        display: block;
        line-height: 40px;
        margin-right: 0;
    }

    /* ===== 移动端二级菜单：去掉外层底框，直接三列紧凑排布 ===== */
    .header .nav > ul > li > ul {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 2px 0 6px 0 !important;
        padding: 15px 8px 4px 8px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;

        display: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .header .nav ul li.submenu-open > ul {
            display: grid !important;
        }


    .header .nav ul ul li {
        display: block !important;
        margin: 0 !important;
        min-width: 0;
    }

    .header .nav ul ul li a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 7px 4px !important;
        line-height: 1.25 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;

        background: #f7f7f7 !important;
        border: 1px solid #ececec !important;
        border-radius: 8px !important;
        color: #555 !important;
        font-size: 12px !important;
        transition: all 0.2s ease !important;
    }

    .header .nav ul ul li a:hover,
    .header .nav ul ul li a:active {
        background: #eef5ff !important;
        border-color: #d6e6ff !important;
        color: #157efb !important;
    }

    /* 如果脚本里自动加了箭头，这里顺便优化一下 */
    .nav li.has-sub > a {
        position: relative;
        padding-right: 28px;
    }

    .nav li.has-sub > a .submenu-arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        width: 7px;
        height: 7px;
        margin-top: -5px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: all 0.2s ease;
    }

    .nav li.submenu-open > a .submenu-arrow {
            transform: rotate(225deg);
            margin-top: -1px;
            border-color: #157efb;
        }


    .language-switcher {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .language-toggle {
        width: 34px !important;
        height: 34px !important;
    }

    .language-dropdown {
        right: 0 !important;
        left: auto !important;
        width: 220px !important;
    }

    .language-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .search-row {
        gap: 10px;
    }

    .search-input-group,
    .category-filter-group {
        min-width: 100px;
    }

    .search.container {
        padding: 12px 15px;
    }

    .search form {
        width: 100%;
        margin-bottom: 10px;
    }

    .search form input {
        width: 75%;
    }

    .search form button {
        width: 25%;
    }

    .Up-search {
        margin-top: 1em;
    }

    .main-body {
        padding-top: 0;
    }

    article {
        padding: .5em 0;
    }
}

@media screen and (max-width: 768px) {
    .main-body-with-sidebar {
        padding: 0 10px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-single-article .title {
        font-size: 1.6em;
    }

    .sidebar-widget {
        padding: 15px;
        margin-bottom: 20px;
    }

    .popular-apps-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        padding: 10px;
    }

    .app-icon-news {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .app-title {
        font-size: 13px;
    }

    .comments-section {
        padding: 20px 15px;
        margin-top: 30px;
    }

    .comment-form {
        padding: 20px;
    }

    .comment-item {
        flex-direction: column;
        gap: 12px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .comment-children {
        margin-left: 15px;
        padding-left: 15px;
    }

    .form-submit {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .comment-avatar .avatar {
        width: 45px;
        height: 45px;
    }

    .comment-children .comment-avatar .avatar {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .update-badge-large {
        left: 130px !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px !important;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (prefers-color-scheme: dark) {
    .comments-section {
        background: #1a1a1a;
        border-color: #333;
    }

    .comment-form {
        background: #2d2d2d;
        border-color: #444;
    }

    .form-input,
    .form-textarea {
        background: #333;
        border-color: #444;
        color: #fff;
    }

    .comment-item:hover {
        background: #2d2d2d;
    }

    .comments-title,
    .author-name {
        color: #fff;
    }
}
/* =========================================
   正文列表修复：恢复 UEditor / Markdown 圆点与数字
   兼容 .content / .news-content / .article-body / .flash-article-body
========================================= */

/* 列表容器 */
.content ul,
.news-content ul,
.article-body ul,
.flash-article-body ul,
.content .qk-md-ul,
.news-content .qk-md-ul,
.article-body .qk-md-ul,
.flash-article-body .qk-md-ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.8em !important;
    margin: 1em 0 1.2em !important;
    overflow: visible !important;
}

.content ol,
.news-content ol,
.article-body ol,
.flash-article-body ol,
.content .qk-md-ol,
.news-content .qk-md-ol,
.article-body .qk-md-ol,
.flash-article-body .qk-md-ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 2em !important;
    margin: 1em 0 1.2em !important;
    overflow: visible !important;
}

/* 列表项：强制恢复 marker */
.content li,
.news-content li,
.article-body li,
.flash-article-body li,
.content .qk-md-ul li,
.news-content .qk-md-ul li,
.article-body .qk-md-ul li,
.flash-article-body .qk-md-ul li,
.content .qk-md-ol li,
.news-content .qk-md-ol li,
.article-body .qk-md-ol li,
.flash-article-body .qk-md-ol li {
    display: list-item !important;
    list-style: inherit !important;
    margin: 0.35em 0 !important;
    overflow: visible !important;
}

/* li 里面套 p 的情况，避免段落把 marker 顶乱 */
.content li p,
.news-content li p,
.article-body li p,
.flash-article-body li p {
    margin: 0 !important;
}

/* 二级三级无序列表 */
.content ul ul,
.news-content ul ul,
.article-body ul ul,
.flash-article-body ul ul,
.content .qk-md-ul .qk-md-ul,
.news-content .qk-md-ul .qk-md-ul,
.article-body .qk-md-ul .qk-md-ul,
.flash-article-body .qk-md-ul .qk-md-ul {
    list-style-type: circle !important;
}

.content ul ul ul,
.news-content ul ul ul,
.article-body ul ul ul,
.flash-article-body ul ul ul,
.content .qk-md-ul .qk-md-ul .qk-md-ul,
.news-content .qk-md-ul .qk-md-ul .qk-md-ul,
.article-body .qk-md-ul .qk-md-ul .qk-md-ul,
.flash-article-body .qk-md-ul .qk-md-ul .qk-md-ul {
    list-style-type: square !important;
}

/* 二级三级有序列表 */
.content ol ol,
.news-content ol ol,
.article-body ol ol,
.flash-article-body ol ol,
.content .qk-md-ol .qk-md-ol,
.news-content .qk-md-ol .qk-md-ol,
.article-body .qk-md-ol .qk-md-ol,
.flash-article-body .qk-md-ol .qk-md-ol {
    list-style-type: lower-alpha !important;
}

.content ol ol ol,
.news-content ol ol ol,
.article-body ol ol ol,
.flash-article-body ol ol ol,
.content .qk-md-ol .qk-md-ol .qk-md-ol,
.news-content .qk-md-ol .qk-md-ol .qk-md-ol,
.article-body .qk-md-ol .qk-md-ol .qk-md-ol,
.flash-article-body .qk-md-ol .qk-md-ol .qk-md-ol {
    list-style-type: lower-roman !important;
}

/* marker 样式 */
.content li::marker,
.news-content li::marker,
.article-body li::marker,
.flash-article-body li::marker {
    color: #475569 !important;
    font-weight: 700;
}
