/* Agency 模板 · YS 适配层（基于 StartBootstrap Agency v7.0.12 / MIT） */

/* 主视觉背景：原模板相对路径指向 ../assets/img/，这里指向插件目录内 */
header.masthead {
    background: linear-gradient(rgba(12, 14, 20, 0.55), rgba(12, 14, 20, 0.75)), url("header-bg.jpg") center/cover no-repeat;
}
header.masthead .masthead-subheading {
    color: rgba(255, 255, 255, 0.85);
}
header.masthead .masthead-heading {
    color: #fff;
}

/* 时间线圆形文字：黄底配深色字 */
.agy-tl-img {
    background: #ffc800 !important;
}
.agy-tl-img span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #14150f !important;
    line-height: 1.25;
    display: inline-block;
    padding: 0 6px;
}
.timeline-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 字体：使用系统字体栈替代 Google Fonts（国内访问优化） */
body,
h1, h2, h3, h4, h5, h6,
.btn, .navbar-brand, .nav-link,
.masthead-heading, .masthead-subheading,
.section-heading, .section-subheading,
.timeline-heading h4 {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
}

/* 品牌（Logo + 站点名） */
.agy-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.agy-brand img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.92);
    padding: 3px;
}
.agy-brand span {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 1px;
}
#mainNav.navbar-shrink .agy-brand span {
    color: #000;
}

/* 功能图标：用系统 SVG 图标替代 FontAwesome fa-stack */
.agy-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #ffc800;
    box-shadow: 0 0 0 8px rgba(255, 200, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.agy-stack img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.col-md-3:hover .agy-stack {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 0 0 12px rgba(255, 200, 0, 0.2);
}

/* 时间线圆形文字（颜色由顶部统一控制，避免黄底白字不可读） */
.agy-tl-img span {
    display: inline-block;
    padding: 0 6px;
}

/* 授权查询 */
.agy-query {
    background: #10131b url("header-bg.jpg") center/cover no-repeat fixed;
}
.agy-query .section-heading {
    color: #fff;
}
.agy-query .section-subheading {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
}
.agy-query-form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}
.agy-query-form input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0.6rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.agy-query-result {
    margin: 1.6rem auto 0;
    max-width: 640px;
    padding: 1rem 1.35rem;
    border-radius: 0.6rem;
    text-align: left;
    line-height: 1.7;
}
.agy-query-result b {
    display: block;
    margin-bottom: 2px;
}
.agy-query-result span {
    font-size: 0.9rem;
    opacity: 0.85;
}
.agy-result-ok   { background: rgba(25, 135, 84, 0.22); border: 1px solid rgba(25, 135, 84, 0.55); color: #d9f4e5; }
.agy-result-warn { background: rgba(255, 193, 7, 0.18); border: 1px solid rgba(255, 193, 7, 0.5); color: #fff3cd; }
.agy-result-bad  { background: rgba(220, 53, 69, 0.2); border: 1px solid rgba(220, 53, 69, 0.55); color: #f8d7da; }

/* 页脚 */
.footer {
    font-size: 0.92rem;
}
.agy-foot-contacts a {
    color: #6c757d;
    margin: 0 8px;
    text-decoration: none;
}
.agy-foot-contacts a:hover {
    color: #ffc800;
}

@media (max-width: 768px) {
    .agy-query-form {
        flex-direction: column;
    }
    .agy-brand span {
        display: none;
    }
}
