/* FastAdmin 前台样式 */

:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 70px;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* 内容不足一屏时让页脚贴住视口底部，避免页脚下方出现大片空白 */
body > footer.footer {
    margin-top: auto !important;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

/* 站内搜索：导航栏 */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 240px;
    min-width: 170px;
    max-width: 240px;
    margin-right: 0.75rem;
}

.nav-search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.nav-search-input {
    width: 100%;
    height: 36px;
    padding: 0 2.4rem 0 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.88rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.nav-search-input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.nav-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.nav-search-submit {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-search-submit:hover,
.nav-search-submit:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

/* 英雄区域 */
.hero-section {
    background:
        radial-gradient(1100px 520px at 82% 6%, rgba(255, 255, 255, 0.16), transparent 62%),
        radial-gradient(820px 480px at 6% 100%, rgba(43, 21, 86, 0.22), transparent 66%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* 极淡网点底纹 */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

/* 右侧几何圆环，增加层次但不干扰文字 */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -160px;
    width: 620px;
    height: 620px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 96px);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .btn-outline-primary {
    color: white;
    border-color: white;
}

.hero-section .btn-outline-primary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* 首屏搜索 */
.hero-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 540px;
    margin-bottom: 1rem;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(32, 20, 72, 0.28);
}

.hero-search > i {
    margin: 0 10px 0 14px;
    color: #8a90a2;
    font-size: 1rem;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 1rem;
}

.hero-search input::placeholder {
    color: #9aa0b0;
}

.hero-search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    padding: 0.55rem 1.35rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.hero-search button:hover,
.hero-search button:focus-visible {
    background: #3d5fc9;
    outline: none;
}

.hero-hot-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.9rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-hot-searches a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
    padding-bottom: 1px;
}

.hero-hot-searches a:hover {
    border-bottom-style: solid;
}

/* 浏览器模型 */
.browser-mockup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.browser-header {
    background: #f1f1f1;
    padding: 10px 15px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.browser-content {
    display: flex;
    height: 280px;
}

.mockup-sidebar {
    width: 60px;
    background: #4e73df;
}

.mockup-main {
    flex: 1;
    padding: 15px;
    background: #f8f9fc;
}

.mockup-header {
    height: 20px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 60%;
}

.mockup-card {
    height: 60px;
    background: white;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 统计数据 */
/* 统计数据 */
.stats-section {
    background: white;
}

.stat-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 18px 24px;
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
    border-color: #d9e2f6;
    transform: translateY(-2px);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.stat-icon.indigo { background: #eef2ff; color: #4e73df; }
.stat-icon.green { background: #e8f8f1; color: #12a97a; }
.stat-icon.amber { background: #fff5e6; color: #e0a012; }
.stat-icon.cyan { background: #e6f7fa; color: #2596a8; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #232a36;
    font-variant-numeric: tabular-nums;
}

.stat-number .plus {
    font-size: 0.6em;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 2px;
    vertical-align: 0.3em;
}

.stat-label {
    margin-top: 10px;
    color: #7d8697;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* 模板卡片 */
.template-card {
    background: white;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.25s ease;
    height: 100%;
}

.template-card:hover {
    transform: translateY(-6px);
    border-color: rgba(78, 115, 223, 0.28);
    box-shadow: 0 18px 38px rgba(30, 41, 59, 0.18);
}

.template-card .card-img-top {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.template-card:hover .card-img-top {
    transform: scale(1.04);
}

.template-card .template-title {
    transition: color 0.2s ease;
}

.template-card:hover .template-title {
    color: var(--primary-color);
}

.template-card .btn {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.template-card:hover .btn-primary {
    background-color: #3d5fd6;
    border-color: #3d5fd6;
    box-shadow: 0 6px 14px rgba(78, 115, 223, 0.32);
}

.template-card:hover .btn-outline-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.template-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.template-card .card-body {
    padding: 20px;
}

.template-card .template-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.template-card .template-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-card .template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.template-card .template-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--danger-color);
}

.template-card .template-price.free {
    color: var(--success-color);
}

.template-card .template-original-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.template-card .template-downloads {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.template-card .template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.template-card .template-tag {
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.template-card .badge-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.template-card .badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.template-card .card-img-wrapper {
    position: relative;
}

/* 分类卡片 */
.category-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(30, 41, 59, 0.16);
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

.category-card .category-name {
    transition: color 0.2s ease;
}

.category-card .category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.category-card .category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.category-card .category-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 特性卡片 */
.feature-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: white;
}

/* 页脚 */
.footer {
    margin-top: 50px;
}

.footer h5, .footer h6 {
    color: white;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* 模板列表页 */
.filter-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.filter-sidebar h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.filter-item:hover {
    color: var(--primary-color);
}

.filter-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-item .filter-count {
    margin-left: auto;
    background: var(--light-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.sort-bar {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-options {
    display: flex;
    gap: 20px;
}

.sort-option {
    cursor: pointer;
    color: #666;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.sort-option:hover,
.sort-option.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.sort-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 280px;
    padding: 0.18rem 0.28rem 0.18rem 0.7rem;
    border: 1px solid rgba(78, 115, 223, 0.28);
    border-radius: 999px;
    background: rgba(78, 115, 223, 0.08);
    color: var(--primary-color);
    font-size: 0.82rem;
}

.search-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-chip-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.search-chip-clear:hover,
.search-chip-clear:focus-visible {
    background: rgba(78, 115, 223, 0.18);
    outline: none;
}

.search-empty {
    max-width: 620px;
    margin: 0 auto;
    padding: 54px 16px 40px;
}

.search-empty h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.search-empty-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-suggestion-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.85rem;
    border: 1px solid #dfe3f2;
    border-radius: 999px;
    background: #fff;
    color: #4e5d78;
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.search-suggestion-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.12);
}

/* 模板详情页 */
.template-detail-header {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.template-detail-gallery {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.template-detail-gallery img {
    width: 100%;
    height: auto;
}

.template-info-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.template-info-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

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

.info-item .label {
    color: var(--secondary-color);
}

.info-item .value {
    font-weight: 600;
    color: #333;
}

/* 关于页面 */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.team-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

/* 联系页面 */
.contact-info-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 面包屑 */
.breadcrumb-wrapper {
    background: white;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

/* 评分星星 */
.rating {
    color: #f6c23e;
}

.rating .text-muted {
    color: #ddd !important;
}

/* 分页 */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 响应式 */
@media (max-width: 991.98px) {
    .nav-search {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    /* 窄屏隐藏圆环，避免底纹与文字重叠 */
    .hero-section::after {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-search {
        max-width: none;
    }

    .hero-search button {
        padding: 0.55rem 1rem;
    }

    .hero-search input {
        font-size: 0.92rem;
    }
    
    .stat-card {
        padding: 20px 12px 18px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.82rem;
    }
    
    .sort-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .sort-options {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sort-meta {
        justify-content: flex-start;
    }
}

/* 页脚备案信息 */
.site-filings {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    font-size: 0.85rem;
}

.site-filing-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.site-filing-item:hover {
    color: #fff;
}

.site-filing-item i {
    font-size: 0.9rem;
}

/* ==================== 回到顶部 ==================== */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1035;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 10px 24px rgba(78, 115, 223, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.scroll-top-btn:hover {
    background: #3d5fc9;
}

.scroll-top-btn:focus-visible {
    outline: 3px solid rgba(78, 115, 223, 0.35);
    outline-offset: 3px;
}

@media (max-width: 576px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-btn {
        transition: none;
    }
}

/* ==================== 全站公告栏 ==================== */
.site-notice-bar {
    position: sticky;
    top: 70px;
    z-index: 1029;
    background: linear-gradient(90deg, #fff8e6 0%, #fdf1d2 100%);
    border-bottom: 1px solid #f3dfae;
    box-shadow: 0 2px 8px rgba(120, 88, 20, 0.08);
}

.site-notice-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 0.9rem;
    color: #7a5b12;
}

.site-notice-icon {
    color: #d39e00;
    flex-shrink: 0;
}

.site-notice-tag {
    flex-shrink: 0;
    background: #ffc107;
    color: #6b4c00;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

.site-notice-latest {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0;
    color: #6b4c00;
    font-weight: 600;
}

.site-notice-latest:hover {
    color: #a97a00;
    text-decoration: underline;
}

.site-notice-date {
    flex-shrink: 0;
    color: #a08650;
    font-size: 0.8rem;
}

.site-notice-more {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #a97a00;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 2px 4px;
}

.site-notice-more:hover {
    color: #7a5b12;
    text-decoration: underline;
}

.site-notice-close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #b09256;
    padding: 2px 4px;
    line-height: 1;
}

.site-notice-close:hover {
    color: #7a5b12;
}

.site-notice-item + .site-notice-item {
    border-top: 1px dashed #e8e8e8;
    margin-top: 16px;
    padding-top: 16px;
}

.site-notice-content {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.75;
    white-space: pre-wrap;
    margin-top: 4px;
}

@media (max-width: 575.98px) {
    .site-notice-inner {
        gap: 6px;
        font-size: 0.82rem;
    }

    .site-notice-date {
        display: none;
    }
}

/* ==================== 模板评论 ==================== */
.comments-card {
    padding: 24px;
}

.comment-summary .fas,
.comment-summary .far {
    color: #ffb400;
    font-size: 0.9rem;
}

.comment-form {
    background: #f7f9fc;
    border: 1px solid #e8eef6;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.comment-login-tip {
    background: #f7f9fc;
    border: 1px dashed #d5dfec;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    color: #666;
    font-size: 0.9rem;
}

.comment-star-picker {
    display: inline-flex;
    gap: 2px;
}

.comment-star-picker .star-btn {
    border: 0;
    background: transparent;
    padding: 0 2px;
    color: #d8dde5;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.comment-star-picker .star-btn:hover {
    transform: scale(1.1);
}

.comment-star-picker .star-btn.active {
    color: #ffb400;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f5;
}

.comment-item:last-child {
    border-bottom: 0;
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4e73df;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.comment-avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1 1 auto;
    min-width: 0;
}

.comment-name {
    font-weight: 600;
    color: #2c3e50;
}

.comment-stars .fas,
.comment-stars .far {
    color: #ffb400;
    font-size: 0.8rem;
}

.comment-content {
    margin: 6px 0 0;
    color: #555;
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-empty {
    text-align: center;
    color: #999;
    padding: 32px 0;
}

/* ==================== 教程文档中心 ==================== */
.doc-page {
    padding-bottom: 60px;
}

.doc-header {
    padding: 34px 0 26px;
}

.doc-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.doc-header p {
    color: #64748b;
    margin-bottom: 0;
}

.doc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.doc-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.doc-tab {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all .18s ease;
}

.doc-tab:hover {
    border-color: #4e73df;
    color: #4e73df;
}

.doc-tab.active {
    background: #4e73df;
    border-color: #4e73df;
    color: #fff;
}

.doc-search {
    width: 300px;
    max-width: 100%;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: transform .25s cubic-bezier(.22, .61, .36, 1),
                box-shadow .25s cubic-bezier(.22, .61, .36, 1),
                border-color .25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.article-card:hover {
    transform: translateY(-7px);
    border-color: #b9c6fa;
    box-shadow: 0 20px 40px rgba(78, 115, 223, .2);
    color: inherit;
}

.article-card .article-card-title,
.article-card .article-card-views {
    transition: color .2s ease;
}

.article-card:hover .article-card-title {
    color: var(--primary-color);
}

.article-card:hover .article-card-views {
    color: var(--primary-color);
}

.article-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.article-badge.deploy { background: #eef2ff; color: #4e73df; }
.article-badge.usage { background: #e8f8f1; color: #12a97a; }
.article-badge.faq { background: #e6f7fa; color: #2596a8; }
.article-badge.note { background: #fff5e6; color: #d08a00; }

.article-card-views {
    font-size: 12px;
    color: #94a3b8;
}

.article-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    color: #1f2937;
    margin-bottom: 10px;
}

.article-card-summary {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
    font-size: 12px;
    color: #94a3b8;
}

.article-card-meta i {
    margin-right: 4px;
}

.doc-empty {
    text-align: center;
    padding: 70px 20px;
    color: #94a3b8;
}

.doc-empty i {
    font-size: 34px;
    margin-bottom: 14px;
    display: block;
}

.doc-article {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 34px 38px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}

.doc-article-header {
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 26px;
}

.doc-article-header h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.45;
    color: #1f2937;
    margin: 12px 0;
}

.doc-article-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94a3b8;
}

.doc-content {
    color: #334155;
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
}

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4 {
    color: #1f2937;
    font-weight: 700;
    margin: 30px 0 14px;
    line-height: 1.5;
}

.doc-content h1 { font-size: 24px; }
.doc-content h2 { font-size: 21px; }
.doc-content h3 { font-size: 18px; }
.doc-content h4 { font-size: 16px; }

.doc-content p {
    margin-bottom: 16px;
}

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

.doc-content li {
    margin-bottom: 8px;
}

.doc-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid #4e73df;
    background: #f8faff;
    color: #475569;
    border-radius: 0 8px 8px 0;
}

.doc-content code {
    background: #f1f5f9;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13.5px;
}

.doc-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 18px 0;
    line-height: 1.65;
}

.doc-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 13.5px;
}

.doc-content a {
    color: #4e73df;
}

.doc-side-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.doc-side-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.doc-side-template {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.doc-side-template img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef0f7;
}

.doc-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-related-list li + li {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eef0f5;
}

.doc-related-list a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    display: block;
}

.doc-related-list a:hover {
    color: #4e73df;
}

.tutorial-list {
    display: grid;
    gap: 12px;
}

.tutorial-list-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s cubic-bezier(.22, .61, .36, 1),
                box-shadow .2s ease,
                border-color .2s ease,
                background-color .2s ease;
}

.tutorial-list-item:hover {
    transform: translateY(-3px);
    border-color: #b9c6fa;
    background: #f8faff;
    box-shadow: 0 10px 22px rgba(78, 115, 223, .14);
    color: inherit;
}

.tutorial-list-item .tutorial-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #eef2ff;
    color: #4e73df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background-color .2s ease, color .2s ease;
}

.tutorial-list-item:hover .tutorial-icon {
    background: var(--primary-color);
    color: #fff;
}

.tutorial-list-item .tutorial-title {
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.5;
    color: #1f2937;
    transition: color .2s ease;
}

.tutorial-list-item:hover .tutorial-title {
    color: var(--primary-color);
}

.tutorial-list-item > .fa-chevron-right {
    transition: transform .2s ease, color .2s ease;
}

.tutorial-list-item:hover > .fa-chevron-right {
    transform: translateX(3px);
    color: var(--primary-color) !important;
}

.tutorial-list-item .tutorial-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

@media (max-width: 767.98px) {
    .doc-article {
        padding: 24px 20px;
    }
    .doc-header h1 {
        font-size: 24px;
    }
}
