/*
 Theme Name:   Astra Child Official Style
 Theme URI:    https://wpastra.com/
 Description:  复刻 Astra 官网同款风格子主题
 Author:       Custom
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* 全局基础复刻官网 */
html, body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
    background: #ffffff;
    color: #333842;
}

/* 容器宽度和官网一致 */
.ast-container {
    max-width: 1280px !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* 导航栏 仿官网白底极简 */
.main-header-bar {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
}

/* 导航菜单字体 */
.main-header-menu > li > a {
    font-weight: 500 !important;
    font-size: 15px !important;
    color: #111827 !important;
    padding: 12px 16px !important;
}

/* 标题层级 对齐官网 */
h1 {
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #111827 !important;
}
h2 {
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}
h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
}

/* 正文段落 */
p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
}

/* 按钮样式 官网同款 */
.ast-button, .wp-block-button__link, input[type="submit"] {
    background: #2563eb !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: none !important;
}
.ast-button:hover, .wp-block-button__link:hover {
    background: #1d4ed8 !important;
}

/* 去掉多余边距、留白更干净 */
.ast-content-wrap {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* 手机端自适应 */
@media (max-width: 768px) {
    h1 { font-size: 30px !important; }
    h2 { font-size: 26px !important; }
    .ast-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* 分类导航悬浮置顶 */
.sticky-nav-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    padding: 15px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* 导航按钮居中排布 */
.sticky-nav-bar .wp-block-buttons {
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 !important;
}

/* 手机端分类横向可左右滑动 */
@media (max-width: 768px) {
    .sticky-nav-bar .wp-block-buttons {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 0 10px 10px !important;
        justify-content: flex-start !important;
    }
    .sticky-nav-bar .wp-block-button {
        white-space: nowrap !important;
    }
}
