/* ========== 文章详情页样式 - Article Page Styles ========== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    background-color: #F5F5F3;
}

/* 导航栏固定 */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 面包屑导航 - 文档风格 */
.breadcrumb-brutal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #0A0A0A;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #666;
    letter-spacing: .04em;
    border: 2px solid #0A0A0A;
    box-shadow: 4px 4px 0 #E8E6E3;
}

.breadcrumb-brutal a {
    color: #999;
    text-decoration: none;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-brutal a:hover {
    color: #FF3366;
}

.breadcrumb-brutal a i {
    font-size: 12px;
}

.breadcrumb-brutal > i {
    color: #FF3366;
    font-size: 12px;
}

.breadcrumb-brutal > span {
    color: #FF3366;
    font-weight: 700;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文章头部卡片 */
.doc-article-header {
    position: relative;
    background: #fff;
    border: 3px solid #0A0A0A;
    padding: 36px 32px 28px;
    margin-bottom: 24px;
    box-shadow: 8px 8px 0 #E8E6E3;
}

.doc-article-label {
    position: absolute;
    top: 0;
    left: 20px;
    background: #0A0A0A;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 5px 16px;
    transform: translateY(-50%);
}

.doc-article-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #0A0A0A;
    margin: 4px 0 16px;
}

/* 标签 */
.doc-article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.doc-tag {
    display: inline-block;
    background: #0A0A0A;
    color: #FF3366;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 14px;
    border: none;
}

/* 元信息栏 - 黑底 */
.doc-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: #0A0A0A;
    margin-top: 4px;
}

.doc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #999;
    letter-spacing: .03em;
}

.doc-meta-item i {
    color: #FF3366;
    font-size: 13px;
}

/* ========== 文章正文 - 文档风格 ========== */
.doc-article-body {
    background: #fff;
    border: 3px solid #0A0A0A;
    padding: 40px;
    line-height: 1.85;
    font-size: 15px;
    color: #333;
    box-shadow: 6px 6px 0 #E8E6E3;
}

.doc-article-body h2,
.doc-article-body h3,
.doc-article-body h4 {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0A0A0A;
    color: #0A0A0A;
}

.doc-article-body h2 { font-size: 1.65rem; }
.doc-article-body h3 { font-size: 1.35rem; }
.doc-article-body h4 { font-size: 1.15rem; }

.doc-article-body p {
    margin-bottom: 20px;
    color: #444;
}

.doc-article-body img {
    max-width: 100%;
    height: auto;
    border: 2px solid #0A0A0A;
    margin: 24px 0;
    box-shadow: 4px 4px 0 #E8E6E3;
}

.doc-article-body blockquote {
    border-left: 5px solid #FF3366;
    padding: 20px 24px;
    margin: 28px 0;
    background: #F5F5F3;
    border: 2px solid #0A0A0A;
    border-left: 5px solid #FF3366;
    font-style: italic;
    color: #555;
}

.doc-article-body ul,
.doc-article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.doc-article-body li {
    margin-bottom: 10px;
    color: #444;
}

.doc-article-body ul li::marker {
    color: #FF3366;
}

.doc-article-body code {
    font-family: 'Space Mono', monospace;
    font-size: 0.88em;
    background: #0A0A0A;
    color: #e0e0e0;
    padding: 3px 8px;
    border: none;
}

.doc-article-body pre {
    background: #0A0A0A;
    border: 2px solid #0A0A0A;
    padding: 24px;
    overflow-x: auto;
    margin: 28px 0;
    position: relative;
}

.doc-article-body pre::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 16px;
    width: 12px;
    height: 12px;
    background: #ff5f57;
    border-radius: 50%;
    box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}

.doc-article-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    display: block;
    padding-top: 16px;
    color: #e0e0e0;
    line-height: 1.6;
}

.doc-article-body table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #0A0A0A;
    margin: 28px 0;
}

.doc-article-body thead {
    background: #0A0A0A;
    color: white;
}

.doc-article-body th,
.doc-article-body td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.doc-article-body th {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.doc-article-body a {
    color: #FF3366 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: opacity 0.2s ease !important;
}
.doc-article-body a:hover {
    opacity: 0.7 !important;
}
.doc-article-body a::after,
.doc-article-body a::before {
    display: none !important;
}

/* ========== 文章底部操作栏 ========== */
.doc-article-footer {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 0;
    background: transparent;
    border: none;
    flex-wrap: wrap;
}

.doc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0A0A0A;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 14px 28px;
    border: 2px solid #0A0A0A;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.doc-action-btn i { font-size: 15px; }

.doc-action-btn:hover {
    background: #fff;
    color: #0A0A0A;
    border-color: #0A0A0A;
}

/* 侧边栏 */
.sidebar-widget {
    background: var(--brutal-bg-secondary);
    border: 2px solid var(--brutal-border-light);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget-title {
    font-family: var(--brutal-font-serif);
    font-weight: 800;
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brutal-text-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: var(--brutal-accent-red);
}

.sidebar-list-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    transition: all var(--brutal-transition-fast);
}

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

.sidebar-list-item:hover {
    padding-left: 8px;
    color: var(--brutal-accent-red);
}

.sidebar-list-item h5 {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--brutal-font-sans);
    margin-bottom: 4px;
}

.sidebar-list-item time {
    font-family: var(--brutal-font-mono);
    font-size: 10px;
    color: var(--brutal-text-muted);
    text-transform: uppercase;
}

/* ========== 文档风格侧边栏卡片 ========== */
.doc-card {
    position: relative;
    background: #fff;
    border: 3px solid #0A0A0A;
    padding: 28px 24px 20px;
    margin-bottom: 24px;
    box-shadow: 6px 6px 0 #E8E6E3;
    transition: box-shadow .2s, transform .2s;
}
.doc-card:hover {
    box-shadow: 8px 8px 0 #E8E6E3;
    transform: translate(-2px, -2px);
}

/* 左上角黑色标签 */
.doc-card-label {
    position: absolute;
    top: 0;
    left: 16px;
    background: #0A0A0A;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 5px 14px;
    transform: translateY(-50%);
}

/* 卡片标题 */
.doc-card-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 22px;
    color: #0A0A0A;
    margin: 4px 0 18px;
    letter-spacing: -.02em;
    line-height: 1.2;
}

/* 黑色内容区 */
.doc-card-body {
    background: #0A0A0A;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 列表项 */
.doc-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    transition: background .15s;
}
.doc-card-item:last-child {
    border-bottom: none;
}
.doc-card-item:hover {
    background: rgba(255,255,255,.06);
}

.doc-card-item-title {
    color: #eee;
    font-size: 13px;
    font-weight: 500;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s;
}
.doc-card-item:hover .doc-card-item-title {
    color: #FF3366;
}

.doc-card-item-date {
    color: #666;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .doc-article-header { padding: 28px 24px 22px; }
    .doc-article-body { padding: 32px; }
}

@media (max-width: 768px) {
    .doc-article-header { padding: 24px 20px 18px; }
    .doc-article-title { font-size: 1.5rem; }
    .doc-article-body { padding: 24px; }

    .doc-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .doc-article-footer {
        flex-direction: column;
    }
    .doc-action-btn { justify-content: center; }
}

@media(max-width: 992px) {
    .doc-card { margin-bottom: 20px; }
    .doc-card-title { font-size: 19px; }
}

/* ========== 导航栏增强样式 ========== */
.brutal-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.brutal-menu { position: relative; display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.brutal-menu > li { position: relative; }
.brutal-menu-link { display: flex; align-items: center; gap: 4px; padding: 8px 16px; font-family: var(--brutal-font-sans); font-weight: 600; font-size: 14px; color: var(--brutal-text-primary); text-decoration: none; transition: all 0.2s ease; border: 2px solid transparent; position: relative; }
.brutal-menu-link:hover { color: var(--brutal-accent-red); border-color: transparent; background: rgba(255,51,102,0.05); }
.brutal-menu-link::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:0; height:3px; background:#FF3366; transition:width 0.3s; }
.brutal-menu-link:hover::after { width:80%; }
.brutal-dropdown { display:none; position:absolute; top:100%; left:0; min-width:200px; background:var(--brutal-bg-secondary); border:2px solid var(--brutal-border-black); padding:12px 0; box-shadow:var(--brutal-shadow-lg); z-index:9999; margin-top:4px; }
.brutal-dropdown-item { display:block; padding:10px 20px; color:var(--brutal-text-secondary); font-size:13px; text-decoration:none; transition:all 0.15s; font-family:var(--brutal-font-sans); }
.brutal-dropdown-item:hover { color:var(--brutal-accent-red); background:rgba(255,51,102,0.06); padding-left:24px; }
.brutal-mobile-menu { display:none; border-top:2px solid var(--brutal-border-light); background:var(--brutal-bg-secondary); }
.brutal-mobile-list { list-style:none; margin:0; padding:16px 24px; }
.brutal-mobile-list li a { display:block; padding:12px 0; color:var(--brutal-text-primary); font-size:15px; font-weight:600; text-decoration:none; border-bottom:1px solid var(--brutal-border-light); font-family:var(--brutal-font-sans); }
.brutal-hamburger { display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px; width:36px; height:36px; background:transparent; border:2px solid var(--brutal-border-black); cursor:pointer; padding:6px; transition:all 0.2s; }
.brutal-hamburger span { display:block; width:100%; height:2px; background:var(--brutal-text-black); transition:all 0.3s; }
.brutal-hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.brutal-hamburger.active span:nth-child(2) { opacity:0; }
.brutal-hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }
@media (max-width:768px) {
    .brutal-hamburger { display:flex; }
    .brutal-menu { display:none; }
    .brutal-mobile-menu.display-block { display:block !important; }
}

/* ========== 恢复系统鼠标光标 + 全局链接无下划线 ========== */
* { cursor: auto !important; }
body { cursor: default !important; }
a, button, .btn, input, textarea, select { cursor: pointer !important; }
.cursor-wrapper, .cursor-dot, .cursor-ring { display: none !important; }

a { text-decoration: none !important; }
a:hover { text-decoration: none !important; }
a:focus { text-decoration: none !important; outline: none !important; }
a:active { text-decoration: none !important; }

.article-content-wrapper a {
    color: var(--brutal-accent-red) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: opacity 0.2s ease !important;
}
.article-content-wrapper a:hover {
    color: var(--brutal-accent-red) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    opacity: 0.75 !important;
}
.article-content-wrapper a::after,
.article-content-wrapper a::before {
    display: none !important;
}

.sidebar-list-item {
    text-decoration: none !important;
}
.sidebar-list-item:hover {
    text-decoration: none !important;
}

.breadcrumb-brutal a {
    text-decoration: none !important;
}
.breadcrumb-brutal a:hover {
    text-decoration: none !important;
}

/* ========== Footer样式 ========== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-new { background-color: #0A0A0A; color: #CCCCCC; padding: 70px 0 30px; border-top: 3px solid #0A0A0A; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.footer-brand { flex-shrink: 0; margin-right: 60px; max-width: 360px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-img { width: 42px; height: 42px; object-fit: contain; border: none; }
.footer-brand-name { font-family: var(--brutal-font-serif); font-size: 20px; font-weight: 800; color: #FFFFFF; }
.footer-brand-desc { font-size: 14px; color: #888888; line-height: 1.7; margin: 0; }
.footer-links-wrap { display: flex; flex: 1; justify-content: flex-end; gap: 60px; }
.footer-links-col { min-width: 100px; }
.footer-col-title { font-family: var(--brutal-font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #666666; margin-bottom: 20px; }
.footer-col-label { font-family: var(--brutal-font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #555555; margin-bottom: 8px; display: block; }
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 10px; }
.footer-links-list a { color: #AAAAAA; font-size: 14px; text-decoration: none; transition: color 0.2s ease; display: block; padding: 3px 0; }
.footer-links-list a:hover { color: var(--brutal-accent-red); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-copyright { color: #777777; font-size: 13px; margin: 0; line-height: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.footer-copyright a { color: #777777; text-decoration: none; transition: color 0.2s ease; }
.footer-copyright a:hover { color: var(--brutal-accent-red); }

.footer-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-top: 16px;
	padding: 16px 24px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 4px;
}
.badge-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Space Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	color: #AAAAAA;
	padding: 6px 14px;
	background: rgba(0,0,0,0.3);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 3px;
	transition: all 0.25s ease;
	white-space: nowrap;
}
.badge-item img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	flex-shrink: 0;
}
@media(max-width:992px){.footer-main{flex-direction:column;gap:36px}.footer-brand{margin-right:0;text-align:center;max-width:100%}.footer-logo-wrap{justify-content:center}.footer-links-wrap{flex-wrap:wrap;justify-content:center;gap:32px}.footer-links-col{min-width:calc(50% - 16px)}}
@media(max-width:576px){.footer-links-col{min-width:100%;text-align:center}.footer-copyright{flex-direction:column;gap:4px}}
