/* S.COO 前台样式 */

/* CSS变量定义 */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
    --font-stack: -apple-system, "Microsoft YaHei", sans-serif;
    --navbar-height: 60px;
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-stack);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    color: var(--text-light);
    font-size: 0.9375rem;
    position: relative;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* 汉堡菜单按钮 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* 导航栏搜索框 */
.navbar-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 12px;
}

.navbar-search-input {
    width: 180px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    font-size: 0.875rem;
    font-family: var(--font-stack);
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s, width 0.3s;
}

.navbar-search-input:focus {
    border-color: var(--primary);
    width: 220px;
}

.navbar-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--primary);
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.navbar-search-btn:hover {
    background: var(--primary-dark);
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--navbar-height) + 24px) 20px 40px;
    min-height: calc(100vh - 120px);
}

/* 广告横幅区域 */
.ads-section {
    margin-bottom: 32px;
}

.ad-banner {
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.ad-iframe {
    width: 100%;
    min-height: 90px;
    border: none;
    display: block;
}

/* 区块标题 */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.section-more {
    text-align: center;
    margin-top: 20px;
}

/* 网址导航区域 */
.nav-section {
    margin-bottom: 40px;
}

.nav-category {
    margin-bottom: 28px;
}

.category-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-icon {
    font-size: 1.125rem;
}

/* 网址导航网格布局 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s, border-color 0.2s;
    color: var(--text);
}

.nav-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    color: var(--text);
}

.nav-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
    color: var(--primary);
    font-size: 1.25rem;
}

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

.nav-card-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-card-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 内容列表 */
.content-section {
    margin-bottom: 40px;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow 0.2s;
}

.content-item:hover {
    box-shadow: var(--shadow-hover);
}

.content-item-title {
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.content-item-title a {
    color: var(--text);
}

.content-item-title a:hover {
    color: var(--primary);
}

.content-item-summary {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.content-item-tag {
    background: var(--bg);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* 内容列表页布局 */
.content-page {
    display: flex;
    gap: 24px;
}

.content-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 2px;
}

.category-link {
    display: block;
    padding: 8px 14px;
    color: var(--text-light);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.category-link:hover,
.category-link.active {
    background: var(--primary);
    color: #fff;
}

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
}

.page-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.875rem;
    background: var(--card-bg);
    transition: all 0.2s;
    cursor: pointer;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 内容详情页 */
.content-detail {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--border);
}

.breadcrumb-current {
    color: var(--text);
}

.article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.article-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-category {
    background: var(--bg);
    color: var(--primary);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.8125rem;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body p {
    margin-bottom: 16px;
}

.article-body img {
    border-radius: 6px;
    margin: 12px 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-body pre {
    background: var(--bg);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.article-body code {
    font-size: 0.875rem;
}

.article-body blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* 加密/解密页面 */
.encrypt-page,
.decrypt-page {
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.encrypt-form,
.decrypt-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

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

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: var(--font-stack);
    color: var(--text);
    background: var(--card-bg);
    resize: vertical;
    transition: border-color 0.2s;
    line-height: 1.6;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea[readonly] {
    background: var(--bg);
    cursor: default;
}

/* 加密内容输入框 - 可手动编辑（保存时与明文一起存库） */
.form-textarea-locked,
.form-textarea[disabled] {
    background: var(--card-bg);
    color: var(--text);
    cursor: text;
    opacity: 1;
}

/* 二级导航（明文解码子页面） - 右上角 */
.decode-page {
    position: relative;
    padding-top: 0;
}
.decode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.decode-header > .page-title {
    margin: 0;
    flex: 0 0 auto;
}
.decode-header > .sub-nav {
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex: 0 0 auto;
}
.sub-nav {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}
.sub-nav-link {
    display: inline-block;
    padding: 8px 20px;
    color: var(--text-secondary, #64748B);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 7px;
    transition: all 0.2s;
}
.sub-nav-link:hover {
    color: var(--primary, #2563EB);
    background: var(--primary-light, #EFF6FF);
}
.sub-nav-link.active {
    color: #fff;
    background: var(--primary, #2563EB);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
    .decode-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 带复制/举报按钮的 textarea 容器 */
.textarea-with-copy {
    position: relative;
}
.textarea-with-copy .form-textarea {
    padding-right: 44px;
}
/* 右下角动作按钮组（复制 + 举报） */
.textarea-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.textarea-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--white, #fff);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 6px;
    color: var(--text-secondary, #64748B);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.textarea-actions button:hover:not(:disabled) {
    border-color: var(--primary, #2563EB);
    color: var(--primary, #2563EB);
    background: var(--primary-light, #EFF6FF);
}
.textarea-actions button:active:not(:disabled) {
    transform: scale(0.96);
}
.textarea-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-copy.is-copied {
    border-color: var(--success, #10B981);
    color: var(--success, #10B981);
    background: #ECFDF5;
}
.btn-copy.is-copied:hover:not(:disabled) {
    border-color: var(--success, #10B981) !important;
    color: var(--success, #10B981) !important;
    background: #ECFDF5 !important;
}
/* 举报按钮 - 红色警示主题 */
.btn-report {
    border-color: #FECACA !important;
    color: #DC2626 !important;
}
.btn-report:hover:not(:disabled) {
    border-color: #DC2626 !important;
    color: #fff !important;
    background: #DC2626 !important;
}
.btn-report.is-reported {
    border-color: var(--success, #10B981) !important;
    color: var(--success, #10B981) !important;
    background: #ECFDF5 !important;
    cursor: default;
}

/* ============================================================
   举报弹窗
   ============================================================ */
.report-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: reportFadeIn 0.25s ease;
}
.report-modal[style*="display:flex"] { display: flex !important; }
@keyframes reportFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.report-modal-mask {
    position: absolute;
    inset: 0;
    background: #0F172A;
    z-index: 0;
}
.report-modal-dialog {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    border-radius: 14px;
    width: 540px;
    max-width: 92vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    animation: reportSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes reportSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.report-modal-head {
    padding: 20px 24px;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #F87171 100%);
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.report-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.report-modal-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.report-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
}
.report-modal-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.report-modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.report-modal-close:hover {
    background: rgba(255,255,255,0.28);
    transform: rotate(90deg);
}
.report-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: #FFFFFF;
}
.report-modal-section {
    margin-bottom: 20px;
}
.report-modal-section:last-child { margin-bottom: 0; }
.report-modal-section-label {
    font-size: 13px;
    color: #1E293B;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-required {
    color: #DC2626;
    font-weight: 700;
}
.report-hint {
    color: #94A3B8;
    font-weight: 400;
    font-size: 12px;
}
.report-reasons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.report-reason-item {
    cursor: pointer;
    user-select: none;
}
.report-reason-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.report-reason-box {
    display: block;
    padding: 10px 12px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #475569;
    font-size: 13px;
    text-align: center;
    transition: all 0.15s;
    position: relative;
}
.report-reason-item:hover .report-reason-box {
    border-color: #FCA5A5;
    background: #FEF2F2;
    color: #B91C1C;
}
.report-reason-item input:checked + .report-reason-box {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #B91C1C;
    font-weight: 600;
}
.report-reason-item input:checked + .report-reason-box::before {
    content: "✓";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #DC2626;
    font-weight: 700;
}
.report-description {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1E293B;
    background: #FFFFFF;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.2s;
    box-sizing: border-box;
}
.report-description:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.report-error {
    background: #FEF2F2;
    color: #B91C1C;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #FECACA;
    margin-top: 12px;
}
.report-modal-foot {
    padding: 14px 24px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #F8FAFC;
    flex-shrink: 0;
}
.report-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid;
    transition: all 0.2s;
    font-family: inherit;
}
.report-btn-cancel {
    background: #FFFFFF;
    border-color: #E2E8F0;
    color: #64748B;
}
.report-btn-cancel:hover {
    border-color: #94A3B8;
    color: #475569;
}
.report-btn-submit {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.report-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
}
.report-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: var(--font-stack);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:hover {
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-default {
    background: var(--card-bg);
    color: var(--text);
    border-color: var(--border);
}

.btn-default:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}


/* 结果提示区域 */
.result-message {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9375rem;
    margin-top: 16px;
    line-height: 1.6;
    word-break: break-all;
}

.result-message.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.result-message.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.result-message.warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* 搜索页面 */
.search-page {
    max-width: 800px;
    margin: 0 auto;
}

.search-form-wrap {
    margin-bottom: 32px;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    font-family: var(--font-stack);
    color: var(--text);
    background: var(--card-bg);
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 1px solid var(--primary);
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: var(--primary);
    color: #fff;
    font-size: 0.9375rem;
    font-family: var(--font-stack);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-info {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.search-info strong {
    color: var(--primary);
}

/* 底部版权 */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-inner p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 响应式：768px以下单列布局 */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-search {
        display: none;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .navbar-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 12px 20px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .content-page {
        flex-direction: column;
    }

    .content-sidebar {
        width: 100%;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .category-list li {
        margin-bottom: 0;
    }

    .category-link {
        padding: 6px 12px;
        font-size: 0.875rem;
    }

    .article {
        padding: 20px;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .encrypt-form,
    .decrypt-form {
        padding: 20px;
    }

    .form-actions {
        flex-wrap: wrap;
    }
}
