/* 全局样式重置 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

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

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

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

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

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 50%, #274fb8 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* 前台主内容容器 */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 列表页头部行 */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.header-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="70" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="2" fill="rgba(255,255,255,0.08)"/></svg>');
    pointer-events: none;
}

.site-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-name i {
    color: #fff;
    font-size: 24px;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.back-home:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-home i {
    font-size: 16px;
}

/* 首页容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 分类卡片网格 - PC端2列 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 分类卡片 */
.category-card {
    background: #fff;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.15);
}

/* 大类头部 */
.cat-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.cat-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #4285f4, #5b9aff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.cat-name {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
}

.cat-count {
    font-size: 13px;
    color: #6b7280;
}

/* 子分类区域 */
.cat-subs {
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 子分类标签 */
.sub-item {
    padding: 4px 11px;
    font-size: 13px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s;
}

.sub-item:hover {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

/* 栏目头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.view-more {
    font-size: 13px;
    color: #4285f4;
    text-decoration: none;
    transition: color 0.2s;
}

.view-more:hover {
    color: #3367d6;
}

/* 最新资料列表 */
.latest-articles {
    padding: 0;
}

.article-row {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #4285f4;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.article-row:last-child {
    margin-bottom: 0;
}

.article-row:hover {
    background: linear-gradient(135deg, #f8fafc, #f0f7ff);
    border-left-color: #3367d6;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.15);
}

.article-title {
    font-size: 15px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.article-row div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-tag {
    background: #e8f0fe;
    color: #4285f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

.article-down {
    color: #fff;
    background: #4285f4;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    flex-shrink: 0;
}

/* 加载更多按钮 */
.load-more-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4285f4;
    font-size: 14px;
}

.load-more-btn:hover {
    background: #f0f5ff;
    border-color: #4285f4;
}

.load-more-btn.loading .btn-text {
    color: #9ca3af;
}

.load-more-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-icon {
    font-size: 10px;
    transition: transform 0.2s;
}

.load-more-btn:hover .btn-icon {
    transform: rotate(180deg);
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
    margin-top: 40px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: #3367d6;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* 通用表单样式 */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.form-control::placeholder {
    color: #999;
}

/* 表格通用样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background: #fafbfc;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: #e8f0fe;
    color: #4285f4;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* 分隔线 */
.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 10px;
}

/* 列表页顶部导航 */
.top-nav {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.top-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 列表页标题 */
.title {
    text-align: center;
    padding: 25px 0;
    color: #333;
    margin-bottom: 20px;
}

.title h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

/* 列表页搜索框 */
.search-box {
    width: 100%;
    max-width: 550px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    padding: 0 22px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
}

.search-btn {
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

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

/* 列表页分类导航 */
.nav-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-level {
    margin-bottom: 12px;
}

.nav-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

.nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-item {
    padding: 6px 14px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border: 1px solid #eee;
    transition: 0.2s;
    text-decoration: none;
}

.nav-item.active {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.nav-item:hover {
    background: #e8f0fe;
}

.nav-item.level2 {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 16px;
}

/* 列表页文章列表 */
.item {
    background: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #4285f4;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.item.hide {
    display: none;
}

.item:hover {
    background: linear-gradient(135deg, #f8fafc, #f0f7ff);
    border-left-color: #3367d6;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.15);
}

.item .name {
    font-size: 15px;
    flex: 1;
}

.item .tag {
    background: #e8f0fe;
    color: #4285f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

.item .down {
    color: #fff;
    background: #4285f4;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

/* 列表页样式 */
.filter-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-bar input, .filter-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-bar button {
    padding: 8px 20px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.filter-bar button:hover {
    background: #3367d6;
}

/* 分类导航 */
.nav-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-box .level1-title, .nav-box .level2-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.nav-box .level1-title {
    margin-bottom: 8px;
}

.nav-box .level2-title {
    margin-top: 15px;
}

.nav-box .level1-tags, .nav-box .level2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-box .level1-tags a, .nav-box .level2-tags a {
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.nav-box .level1-tags a {
    background: #f5f7fa;
    color: #666;
}

.nav-box .level1-tags a:hover, .nav-box .level1-tags a.active {
    background: #4285f4;
    color: white;
}

.nav-box .level2-tags a {
    background: #f0f9ff;
    color: #4285f4;
    font-size: 13px;
    padding: 4px 12px;
}

.nav-box .level2-tags a:hover, .nav-box .level2-tags a.active {
    background: #4285f4;
    color: white;
}

/* 文章列表 */
.article-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.article-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f2f5;
    transition: 0.2s;
}

.article-item:hover {
    background: #fafbfc;
}

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

.article-item .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #66bb6a, #81c784);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 15px;
}

.article-item .info {
    flex: 1;
}

.article-item .title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.article-item .title:hover {
    color: #4285f4;
}

.article-item .meta {
    font-size: 12px;
    color: #999;
}

.article-item .meta span {
    margin-right: 15px;
}

.article-item .download {
    padding: 8px 20px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.2s;
}

.article-item .download:hover {
    background: #3367d6;
}

/* 分页 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    transition: 0.2s;
}

.pagination a:hover, .pagination a.active {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

/* 后台样式 */
.admin-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-content {
    display: flex;
    flex: 1;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.cache-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.cache-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.35);
}

.home-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.logout-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.25);
}

.admin-sidebar {
    width: 220px;
    background: #34495e;
    padding-top: 20px;
    min-height: calc(100vh - 60px);
}

.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover {
    background: #2c3e50;
    color: white;
}

.admin-sidebar a.active {
    background: #4285f4;
    color: white;
    border-left-color: #4285f4;
}

.admin-main {
    flex: 1;
    padding: 20px;
    background: #ecf0f1;
}

.admin-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.admin-box h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.admin-form label, .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.admin-form input, .admin-form textarea, .admin-form select,
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafafa;
}

.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus,
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #4285f4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.admin-form input::placeholder, .form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.admin-form textarea, .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form button, .form-group button,
.admin-box button, .admin-box input[type="submit"] {
    padding: 14px 40px;
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.25);
}

.admin-form button:hover, .form-group button:hover,
.admin-box button:hover, .admin-box input[type="submit"]:hover {
    background: linear-gradient(135deg, #3367d6, #274fb8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.35);
}

.admin-form button:active, .form-group button:active {
    transform: translateY(0);
}

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

/* 快捷发布样式 */
.quick-paste {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.quick-paste:hover {
    border-color: #4285f4;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.quick-paste label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.quick-paste textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
    background: white;
    margin-bottom: 15px;
    box-sizing: border-box;
    min-height: 100px;
}

.quick-paste textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.btn-quick {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-quick:hover {
    background: linear-gradient(135deg, #3367d6, #274fb8);
    transform: translateY(-1px);
}

.btn-quick-secondary {
    padding: 12px 24px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-quick-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-left {
    display: flex;
    align-items: center;
}

.stats {
    font-size: 14px;
    color: #666;
}

.stats strong {
    color: #4285f4;
    font-size: 18px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    padding: 10px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: all 0.2s;
}

.search-form input:focus {
    outline: none;
    border-color: #4285f4;
}

.search-form button {
    padding: 10px 20px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.search-form button:hover {
    background: #3367d6;
}

/* 文章网格布局 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #4285f4;
}

.article-header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-category {
    padding: 4px 12px;
    background: #4285f4;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.article-subcategory {
    padding: 4px 12px;
    background: #e8f0fe;
    color: #4285f4;
    border-radius: 15px;
    font-size: 12px;
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    margin-bottom: 12px;
}

.article-link {
    font-size: 13px;
    color: #666;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag-badge {
    padding: 3px 10px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.article-date {
    font-size: 12px;
    color: #999;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn.edit {
    background: #e8f5e9;
    color: #2e7d32;
}

.action-btn.edit:hover {
    background: #c8e6c9;
}

.action-btn.delete {
    background: #ffebee;
    color: #c62828;
}

.action-btn.delete:hover {
    background: #ffcdd2;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.page-link {
    padding: 8px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #4285f4;
    color: #4285f4;
}

.page-link.active {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

/* 分类列表样式 */
.category-list {
    margin-top: 15px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #eee;
    transition: 0.2s;
}

.category-item:hover {
    background: #fafbfc;
    border-color: #ddd;
}

.category-item.parent {
    border-left: 4px solid #4285f4;
}

.category-item.sub {
    border-left: 4px solid #66bb6a;
    padding-left: 35px;
}

.category-item .name {
    font-weight: 500;
    color: #333;
}

.category-item .subname {
    color: #666;
}

.category-item .cat-count {
    color: #4285f4;
    font-size: 13px;
    margin-left: 8px;
}

.category-item .action {
    display: flex;
    gap: 15px;
}

.category-item .action a {
    font-size: 13px;
    color: #4285f4;
    text-decoration: none;
}

.category-item .action a.delete {
    color: #e74c3c;
}

.category-item .action a:hover {
    text-decoration: underline;
}

/* 标签列表样式 */
.tags-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background: #e8f0fe;
    color: #4285f4;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    transition: 0.2s;
}

.tag-item:hover {
    background: #dcecfd;
}

.tag-item .name {
    margin-right: 10px;
}

.tag-item a.delete {
    color: #e74c3c;
    text-decoration: none;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(66, 133, 244, 0.3);
}

.tag-item a.delete:hover {
    text-decoration: underline;
}

/* 后台表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #fafbfc;
}

.admin-table a {
    color: #4285f4;
    text-decoration: none;
    margin-right: 10px;
}

.admin-table a:hover {
    text-decoration: underline;
}

.admin-table .delete {
    color: #e74c3c;
}

/* 导航标签 */
.nav-tabs {
    margin-bottom: 20px;
}

.nav-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 6px 6px 0 0;
    margin-right: 5px;
    transition: 0.2s;
}

.nav-tab:hover {
    background: #f5f7fa;
}

.nav-tab.active {
    background: #4285f4;
    color: white;
}

/* 提示消息 */
.message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 图标选择 */
.icon-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
    position: relative;
}

.icon-option:hover {
    background: #f5f7fa;
    border-color: #4285f4;
}

.icon-option.selected {
    background: #e8f0fe;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66,133,244,0.2);
}

.icon-option.selected::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4285f4;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.icon-preview {
    font-size: 24px;
    margin-right: 8px;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.login-container input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}

.login-container button:hover {
    background: #3367d6;
}

.login-error {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

/* 列表页响应式 */
@media (max-width: 768px) {
    /* 移动端响应式 */
    .main-wrapper {
        padding: 0 15px;
    }
    
    /* 首页响应式 */
    .header h1 {
        font-size: 20px;
    }
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cat-header {
        padding: 14px;
    }
    .cat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .cat-name {
        font-size: 16px;
    }
    .sub-item {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    /* 列表页响应式 */
    .item {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .item .name {
        font-size: 14px;
        width: 100%;
    }
    .nav-item {
        padding: 5px 10px;
        font-size: 13px;
    }
    .search-input {
        height: 38px;
    }
    .search-btn {
        height: 38px;
        padding: 0 16px;
        font-size: 14px;
    }
    .top-nav {
        margin: -10px -10px 15px;
        padding: 10px;
    }
    
    /* 文章列表响应式 */
    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-item .icon {
        margin-bottom: 10px;
    }
    .article-item .download {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    
    /* 过滤器响应式 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* 后台响应式 */
    .admin-body {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        padding-bottom: 10px;
        border-bottom: 1px solid #2c3e50;
    }
    .admin-sidebar a {
        display: inline-block;
        padding: 10px 15px;
        border-left: none;
        border-radius: 4px;
    }
    .admin-header {
        padding: 15px 20px;
    }
    .admin-header h1 {
        font-size: 18px;
    }
    .admin-main {
        padding: 15px;
    }
    .admin-box {
        padding: 15px;
    }
}

/* 小屏幕响应式 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    .main-wrapper {
        padding: 0 12px;
    }
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .category-card .cat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .title h1 {
        font-size: 18px;
    }
    .pagination a {
        padding: 5px 10px;
        font-size: 13px;
    }
}
