/*
Theme Name: Astra Child
Theme URI: https://jxsk.ren
Template: astra
Version: 1.0.1
Author: 机械数控人
*/

/* 使用系统字体栈 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

/* 头部 - 深蓝科技风 */
.site-header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.main-header-bar {
    background: transparent !important;
}

.site-header a,
.ast-site-identity a,
.main-header-menu > li > a {
    color: #fff !important;
    font-weight: 500;
    font-size: 15px;
}

.site-header a:hover,
.main-header-menu > li > a:hover {
    color: #ffd700 !important;
}

/* Logo */
.site-title a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff !important;
}

.site-description {
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px;
    margin-top: 4px;
}

/* 导航菜单 */
.main-header-menu > li > a {
    padding: 24px 20px !important;
}

/* 下拉菜单美化 */
.main-header-menu .sub-menu {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: none;
    padding: 8px 0;
}

.main-header-menu .sub-menu li a {
    color: #333 !important;
    padding: 10px 20px !important;
    font-size: 14px;
}

.main-header-menu .sub-menu li a:hover {
    background: #f0f7ff !important;
    color: #1565c0 !important;
}

/* 文章卡片 */
.ast-article-post {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 24px;
    border: 1px solid #f0f0f0;
}

.ast-article-post:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* 文章标题 */
.entry-title a {
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 700;
}

.entry-title a:hover {
    color: #1565c0;
}

/* 分类标签 */
.cat-links a {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.cat-links a:hover {
    background: #1565c0;
    color: #fff;
}

/* 阅读更多按钮 */
.read-more {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.2s;
}

.read-more:hover {
    background: linear-gradient(135deg, #0d47a1, #0a3880);
    box-shadow: 0 4px 15px rgba(21,101,192,0.3);
}

/* 侧边栏 */
.widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 3px solid #1565c0;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

/* 搜索框 */
.search-form .search-field {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-form .search-field:focus {
    border-color: #1565c0;
    outline: none;
}

.search-form .search-submit {
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: #0d47a1;
}

/* 页脚 */
.site-footer {
    background: #1a1a2e !important;
    color: #aaa;
    padding: 40px 0 20px;
}

.site-footer a {
    color: #ccc;
}

.site-footer a:hover {
    color: #ffd700;
}

.site-footer .widget-title {
    color: #fff;
    border-bottom-color: #1565c0;
}

/* 分页 */
.ast-pagination .page-numbers {
    border-radius: 8px;
    margin: 0 4px;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.ast-pagination .page-numbers:hover {
    border-color: #1565c0;
    color: #1565c0;
}

.ast-pagination .page-numbers.current {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}

/* 面包屑 */
.breadcrumb-trail {
    font-size: 14px;
    color: #888;
    padding: 16px 0;
}

.breadcrumb-trail a {
    color: #1565c0;
}

/* 文章内容页 */
.single .entry-content h2 {
    color: #1a1a2e;
    font-size: 26px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 4px solid #1565c0;
}

.single .entry-content h3 {
    color: #333;
    font-size: 21px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 14px;
}

.single .entry-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
    color: #444;
}

.single .entry-content ul,
.single .entry-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.single .entry-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 表格美化（国标表格） */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.single .entry-content th {
    background: #1565c0;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.single .entry-content td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
}

.single .entry-content tr:nth-child(even) {
    background: #f8f9fa;
}

.single .entry-content tr:hover {
    background: #e3f2fd;
}

/* 评论区 */
.comments-area {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .site-header { padding: 10px 0; }
    .entry-title a { font-size: 18px; }
    .main-header-menu > li > a { padding: 14px 16px !important; }
    .ast-article-post { margin-bottom: 16px; }
    .single .entry-content h2 { font-size: 22px; }
}

/* 分类列表页标题 */
.archive .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
}

/* 标签云 */
.tagcloud a {
    background: #f5f5f5;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px !important;
    margin: 0 6px 8px 0;
    display: inline-block;
    transition: all 0.2s;
    text-decoration: none;
}

.tagcloud a:hover {
    background: #1565c0;
    color: #fff;
}
