@charset "utf-8";

:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --secondary-color: #60A5FA;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --dark-color: #1E293B;
    --light-color: #F8FAFC;
    --text-color: #334155;
    --heading-color: #0F172A;
    --border-color: #E2E8F0;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 420; /* Slightly heavier than 400 for better Windows rendering with Variable Font */
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* @media (min-width: 768px) {
    html {
        font-size: 14px;
    }
} */

#top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.site-header .navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

#main {
    margin-top: 80px;
    padding-top: 1.5rem;
}

#main:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
}

@media (max-width: 991.98px) {
    .site-header .navbar {
        padding-top: 0.45rem;
        padding-bottom: 0.35rem;
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-top-row {
        padding-bottom: 0.25rem;
    }

    .navbar-actions-mobile .btn {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.55rem !important;
    }

    .navbar-nav-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-bottom: 0.15rem;
    }

    .navbar-nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .site-header .navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: 0.1rem;
    }

    .site-header .navbar-nav .nav-link {
        padding: 0.28rem 0.42rem !important;
        font-size: 0.88rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .site-header .nav-divider {
        width: 1px;
        height: 12px;
        background: rgba(255, 255, 255, 0.18);
        margin: 0 0.2rem;
        flex-shrink: 0;
        align-self: center;
    }

    #main {
        margin-top: 96px;
    }

    .home-hero-section {
        padding-top: 130px;
    }
}

section {
    padding: 6rem 0;
}

.card-header-title {
    max-width: 700px;
}

.card-deck .card {
    min-width: 220px;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.panel {
    display: none;
    margin: 20px 5px 20px;
}

.panel.active {
    display: block;
}

.shadow {
    box-shadow: 0 0 10px #ccc;
    transition: box-shadow 0.3s;
}

.oauth-login-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* 注册页面优化样式 */

.feature-item {
    padding: 1rem;
}

.feature-item:hover {
    transform: none;
}

/* 价格卡片样式 */
.pricing-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    border-radius: 0.375rem;
    overflow: hidden;
}

.pricing-card:hover {
    box-shadow: var(--shadow-sm) !important;
}

/* 推荐标签 */
.ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #dc3545;
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 价格显示 */
.pricing-price {
    position: relative;
}

/* 脉冲按钮动画 */
.pulse-button {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.pulse-button:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.trust-item {
    padding: 1rem;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
}

/* 渐变背景 */
.bg-gradient-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
}

/* 功能列表样式 */
.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .pricing-card.recommended {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .ribbon {
        display: none;
    }
    
    .trust-section .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* 卡片动画 */
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oauth-login-btn img {
    max-width: 100%;
}

.hand-pointer {
    cursor: pointer;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%; /* 将border-radius设置为50%实现圆形 */
}

#avatar {
    cursor: pointer;
}

.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-bottom-primary {
    border-bottom: 0.25rem solid var(--primary-color) !important;
}

.border-left-secondary {
    border-left: 0.25rem solid var(--secondary-color) !important;
}

.border-bottom-secondary {
    border-bottom: 0.25rem solid var(--secondary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-bottom-success {
    border-bottom: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-bottom-info {
    border-bottom: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.border-bottom-warning {
    border-bottom: 0.25rem solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger-color) !important;
}

.border-bottom-danger {
    border-bottom: 0.25rem solid var(--danger-color) !important;
}

.border-left-light {
    border-left: 0.25rem solid #f8f9fc !important;
}

.border-bottom-light {
    border-bottom: 0.25rem solid #f8f9fc !important;
}

.border-left-dark {
    border-left: 0.25rem solid #5a5c69 !important;
}

.border-bottom-dark {
    border-bottom: 0.25rem solid #5a5c69 !important;
}

/* 开发者回复和子评论统一样式 */
.bg-light.p-3.rounded,
.child-comment {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #eaecf0;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bg-light.p-3.rounded:hover,
.child-comment:hover {
    background-color: #f1f3f5;
    border-color: #d0d5dd;
}

.child-comments {
    margin-top: 12px;
    padding-left: 0;
}

.child-comment .media-body {
    padding: 0;
}

.child-comment .border-left {
    border-left: none !important;
}

/* 减少开发者回复的默认内边距 */
.bg-light.p-3 {
    padding: 12px !important;
}

/* 
扩展的8个徽章颜色样式 - 基于Bootstrap4 
*/

/* 1. 橙色徽章 - 警告/提醒 */
.badge-orange {
    color: #fff;
    background-color: #fd7e14;
}

.badge-orange[href]:hover,
.badge-orange[href]:focus {
    color: #fff;
    background-color: #e8650e;
    text-decoration: none;
}

/* 2. 紫色徽章 - 高级/VIP */
.badge-purple {
    color: #fff;
    background-color: #6f42c1;
}

.badge-purple[href]:hover,
.badge-purple[href]:focus {
    color: #fff;
    background-color: #59359a;
    text-decoration: none;
}

/* 3. 青色徽章 - 信息/通知 */
.badge-cyan {
    color: #fff;
    background-color: #20c997;
}

.badge-cyan[href]:hover,
.badge-cyan[href]:focus {
    color: #fff;
    background-color: #1aa179;
    text-decoration: none;
}

/* 4. 粉色徽章 - 特殊/推荐 */
.badge-pink {
    color: #fff;
    background-color: #e83e8c;
}

.badge-pink[href]:hover,
.badge-pink[href]:focus {
    color: #fff;
    background-color: #d91a72;
    text-decoration: none;
}

/* 5. 浅灰色徽章 - 中性/默认 */
.badge-light-gray {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.badge-light-gray[href]:hover,
.badge-light-gray[href]:focus {
    color: #495057;
    background-color: #e9ecef;
    text-decoration: none;
}

/* 6. 深绿色徽章 - 环保/自然 */
.badge-forest {
    color: #fff;
    background-color: #198754;
}

.badge-forest[href]:hover,
.badge-forest[href]:focus {
    color: #fff;
    background-color: #146c43;
    text-decoration: none;
}

/* 7. 深蓝色徽章 - 稳重/商务 */
.badge-navy {
    color: #fff;
    background-color: #0d47a1;
}

.badge-navy[href]:hover,
.badge-navy[href]:focus {
    color: #fff;
    background-color: #083570;
    text-decoration: none;
}

/* 8. 金色徽章 - 高端/奖励 */
.badge-gold {
    color: #212529;
    background-color: #ffc107;
}

.badge-gold[href]:hover,
.badge-gold[href]:focus {
    color: #212529;
    background-color: #e0a800;
    text-decoration: none;
}

/* 徽章尺寸变体 */
.badge-lg {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.badge-sm {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

/* 徽章动画效果 */
.badge-pulse {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 徽章阴影效果 */
.badge-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.badge-shadow:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* timeline */

.timeline-item {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    padding: 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.timeline-item:hover {
    border-color: #d0d5dd;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.comment-content {
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

.timeline-list {
    max-width: 100%;
}

/* 子评论样式 - 参考 app_detail.php */
.child-comments {
    margin-left: 0rem;
    margin-top: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.child-comment {
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    max-width: 100%;
    overflow: hidden;
}

.child-comment:hover {
    background-color: #f1f3f5;
    border-color: #d0d5dd;
}

.child-comment .media-body {
    padding: 0.5rem 0;
    max-width: 100%;
    overflow: hidden;
}

.child-comment .flex-grow-1 {
    min-width: 0;
    max-width: 100%;
}

.child-comment p {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-bottom: 0.5rem;
}

/* 子评论用户昵称点击样式 */
.child-nickname {
    transition: all 0.2s ease;
}

.child-nickname:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.timeline-item .col-auto img,
.child-comment .flex-shrink-0 img {
    border: 1px solid #dee2e6;
}

.child-comment .badge {
    font-size: 0.7em;
    margin-left: 0.25rem;
}

/* 时间线徽章提示样式：小字号 + 反转配色 */
.community-badge-tooltip .tooltip-inner {
    font-size: 0.72rem;
    background-color: #ffffff;
    color: #212529;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.community-badge-tooltip.bs-tooltip-top .arrow::before,
.community-badge-tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: #ffffff;
}

.community-badge-tooltip.bs-tooltip-bottom .arrow::before,
.community-badge-tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: #ffffff;
}

.community-badge-tooltip.bs-tooltip-left .arrow::before,
.community-badge-tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before {
    border-left-color: #ffffff;
}

.community-badge-tooltip.bs-tooltip-right .arrow::before,
.community-badge-tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before {
    border-right-color: #ffffff;
}

.child-comment .text-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

/* 图片样式 */
.comment-att-img {
    cursor: pointer;
    transition: opacity 0.15s ease;
    border: 1px solid #eaecf0;
    border-radius: 4px;
}

.comment-att-img:hover {
    opacity: 0.88;
}

/* 图片上传按钮样式 */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* 图片预览样式 */
#timeline_att_img_preview {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

#timeline_att_img_preview:hover {
    border-color: var(--primary-color);
}

/* 回复表单样式 */
.reply-form {
    padding: 0px;
    margin-top: 10px;
}

.reply-form textarea {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    resize: vertical;
    min-height: 80px;
}

.reply-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    outline: none;
}

@media (max-width: 768px) {
    .timeline-item {
        margin-bottom: 1rem;
    }

    .timeline-item .col-auto img {
        width: 40px !important;
        height: 40px !important;
    }

    .child-comments {
        margin-left: 0.5rem !important;
    }

    .child-comment img {
        width: 30px !important;
        height: 30px !important;
    }

    .child-comment {
        padding-left: 0.5rem;
    }

    .reply-form {
        padding: 10px;
    }
}

/* 定价卡片样式 */
.pricing-card-vip {
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        background: #fff;
        padding: 30px 20px;
        height: 100%;
        position: relative;
    }

    .pricing-card-svip {
        border-radius: 12px;
        background: #181e32;
        /* 深蓝色背景 */
        color: #fff;
        padding: 30px 20px;
        position: relative;
        height: 100%;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }

    .vip-title {
        color: #28a745;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .svip-title {
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    .svip-title .fa-crown {
        color: #f39c12;
        margin-right: 10px;
    }

    .price-box {
        margin-bottom: 20px;
        text-align: left;
    }

    .price-num {
        font-size: 48px;
        font-weight: bold;
        line-height: 1;
    }

    .price-unit {
        font-size: 18px;
        color: #6c757d;
    }

    .pricing-card-svip .price-unit {
        color: #aab0c6;
    }

    .pricing-card-svip .price-num {
        color: #fff;
    }

    .original-price {
        color: #6c757d;
        text-decoration: line-through;
        margin-right: 10px;
        font-size: 14px;
    }

    .pricing-card-svip .original-price {
        color: #6c757d;
    }

    .discount-badge {
        background: #dc3545;
        color: #fff;
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 4px;
        vertical-align: middle;
        font-weight: normal;
    }

    .feature-list {
        list-style: none;
        padding: 0;
        margin: 0 0 30px 0;
        text-align: left;
    }

    .feature-list li {
        margin-bottom: 15px;
        display: flex;
        align-items: start;
    }

    .feature-list li .fas {
        margin-top: 5px;
        margin-right: 10px;
        width: 16px;
        text-align: center;
    }

    .pricing-card-vip .fas {
        color: #28a745;
    }

    .pricing-card-svip .fas {
        color: #f39c12;
    }

    .feature-title {
        font-weight: bold;
        display: block;
        font-size: 16px;
    }

    .feature-desc {
        font-size: 12px;
        color: #6c757d;
        display: block;
    }

    .pricing-card-svip .feature-desc {
        color: #aab0c6;
    }

    .svip-privilege-box {
        background: #232942;
        border-radius: 8px;
        padding: 20px;
        margin-top: 20px;
        border: 1px solid #2e3456;
    }

    .privilege-title {
        color: #f39c12;
        font-weight: bold;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        font-size: 16px;
    }

    .privilege-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
    }

    .privilege-list li {
        margin-bottom: 10px;
        font-size: 14px;
        color: #fff;
        display: flex;
        align-items: center;
    }

    .privilege-list li .dot {
        color: #f39c12;
        margin-right: 8px;
        font-size: 12px;
    }

    .privilege-list li a {
        color: #00d2ff;
        /* 链接颜色 */
        text-decoration: none;
    }

    .privilege-list li a:hover {
        text-decoration: underline;
    }

    .btn-vip {
        background-color: #00b34a;
        border-color: #00b34a;
        color: #fff;
        font-weight: bold;
        padding: 8px 16px;
        border-radius: 4px;
        width: 100%;
        display: block;
        text-align: center;
    }

    .btn-vip:hover {
        background-color: #009e41;
        border-color: #009e41;
        color: #fff;
        text-decoration: none;
    }

    .btn-svip {
        background-color: #ff9800;
        border-color: #ff9800;
        color: #fff;
        font-weight: bold;
        padding: 8px 16px;
        border-radius: 4px;
        width: 100%;
        display: block;
        text-align: center;
    }

    .btn-svip:hover {
        background-color: #f57c00;
        border-color: #f57c00;
        color: #fff;
        text-decoration: none;
    }

    .green-text {
        color: #00d2ff;
    }

/* --- Component Overrides --- */

/* Navbar Modern Component Styles */
.brand-logo {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.badge-brand-pro {
    background: #3B82F6;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.site-header .navbar-nav .nav-link {
    color: #E2E8F0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.site-header .navbar-nav .nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 0.35rem;
    align-self: center;
}

.site-header .nav-sponsor-link {
    color: #7DD3FC !important;
    font-size: 0.875rem !important;
}

.site-header .nav-sponsor-link:hover {
    color: #FFFFFF !important;
}

.btn-nav-subtle {
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease;
}

.btn-nav-subtle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav-ghost {
    background: transparent;
    color: #E2E8F0;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease;
}

.btn-nav-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.btn-nav-action {
    border-radius: 8px !important;
    font-weight: 600;
    background: #3B82F6;
    border: 1px solid #3B82F6;
    padding: 0.35rem 0.9rem !important;
    font-size: 0.875rem !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
    transition: all 0.15s ease;
}

.btn-nav-action:hover {
    background: #2563EB;
    border-color: #2563EB;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.45);
}

.btn-nav-user {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.875rem !important;
}

.btn-nav-user:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.btn:hover {
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.25rem !important;
}

.btn-lg {
    padding: 0.5rem 1rem !important;
    font-size: 1.125rem !important;
    border-radius: 0.3rem !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: #059669 !important; /* emerald-600 */
    border-color: #059669 !important;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    background-color: #DC2626 !important; /* red-600 */
    border-color: #DC2626 !important;
}

.btn-dark {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-dark:hover, .btn-dark:focus, .btn-dark:active {
    background-color: #0F172A !important; /* slate-900 */
    border-color: #0F172A !important;
}

.btn-light {
    background-color: #F1F5F9; /* slate-100 */
    border-color: #E2E8F0;
    color: var(--dark-color);
}

.btn-light:hover, .btn-light:focus, .btn-light:active {
    background-color: #E2E8F0 !important;
    border-color: #CBD5E1 !important;
}

/* Service Boxes / Features */
.servicebox {
    background: #fff;
    padding: 2rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.servicebox:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.service-icon .servicetitle span {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.service-icon h5 {
    margin: 1rem 0;
    font-size: 1.25rem;
}

.service-icon p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-icon hr {
    width: 50px;
    border-top: 2px solid var(--primary-color);
    margin: 1rem auto;
    opacity: 0.5;
}

/* Cards Global */
.card {
    border: none;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.card-footer {
    background-color: transparent;
    border-top: none;
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

/* Cards (Ecosystem & Partners) */
.card.hover-card {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.card.hover-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.card-img-top {
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title, .card-text a {
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
}

.card-text a:hover {
    color: var(--primary-color);
}

/* Search Bar */
.search-input-group .form-control {
    padding: 0.625rem 1.25rem;
    height: auto;
}
.search-input-group .btn {
    padding: 0.625rem 1.25rem;
}

/* Footer */
footer, .site-footer {
    background-color: transparent;
    border-top: none !important;
    padding-top: 3rem !important;
    padding-bottom: 2rem;
}

footer h6 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a.text-muted {
    color: var(--text-color) !important;
    transition: color 0.2s ease;
}

footer a.text-muted:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* Sections */
section h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

section p.text-muted {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Modern Homepage UI Components
   ========================================================================== */

/* 1. Hero Section */
.home-hero-section {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent 70%), linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    padding-top: 125px;
    padding-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.hero-pill-badge {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 6px 18px;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    margin-bottom: 2.25rem !important;
}

.hero-pill-badge:hover {
    border-color: #CBD5E1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.badge-hero-version {
    background: #3B82F6;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 9999px;
    padding: 3px 10px;
    font-size: 0.75rem;
}

.hero-pill-text {
    color: #64748B;
    font-size: 0.85rem;
}

.hero-pill-link {
    color: #3B82F6;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.hero-pill-link:hover {
    color: #1D4ED8;
    text-decoration: none;
}

.home-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 1.75rem;
}

.home-hero-desc {
    font-size: 1.2rem;
    color: #475569;
    max-width: 820px;
    line-height: 1.85;
    margin-bottom: 3.25rem !important;
}

.home-hero-actions {
    margin-bottom: 4.5rem;
}

.home-hero-actions .btn-hero-primary {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    border: 1px solid #0F172A;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
}

.home-hero-actions .btn-hero-primary:hover {
    background: #1E293B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -4px rgba(15, 23, 42, 0.25);
}

.home-hero-actions .btn-hero-secondary {
    background: #FFFFFF;
    color: #0F172A;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.home-hero-actions .btn-hero-secondary:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #94A3B8;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.home-hero-actions .btn-hero-ghost {
    background: transparent;
    color: #334155;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.home-hero-actions .btn-hero-ghost:hover {
    background: #F1F5F9;
    color: #0F172A;
}

/* 2. Showcase Image */
.home-showcase-wrapper {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.home-showcase-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.02);
}

/* 3. Section Headers & Features */
.section-header .section-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.section-header .section-subtitle {
    font-size: 1.05rem;
    color: #64748B;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.icon-gradient-indigo { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.icon-gradient-emerald { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.icon-gradient-amber { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.icon-gradient-cyan { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.icon-gradient-rose { background: rgba(244, 63, 94, 0.1); color: #F43F5E; }
.icon-gradient-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }

.feature-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.feature-card-desc {
    font-size: 0.925rem;
    line-height: 1.65;
    color: #64748B;
}

/* 4. Deployment Cards */
.deploy-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.deploy-card:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
}

.deploy-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-bt { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.badge-1panel { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.badge-docker { background: rgba(14, 165, 233, 0.1); color: #0EA5E9; }

.deploy-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
}

.badge-soft-success { background: rgba(16, 185, 129, 0.1); color: #059669; font-size: 0.72rem; }
.badge-soft-primary { background: rgba(59, 130, 246, 0.1); color: #2563EB; font-size: 0.72rem; }
.badge-soft-info { background: rgba(14, 165, 233, 0.1); color: #0284C7; font-size: 0.72rem; }

/* 5. App Ecosystem Cards */
.app-showcase-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.app-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.app-card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #F1F5F9;
}

.app-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-showcase-card:hover .app-card-img {
    transform: scale(1.05);
}

.app-type-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.app-card-title a {
    color: #0F172A;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.app-card-title a:hover {
    color: #3B82F6;
    text-decoration: none;
}

/* 6. Sponsors & Partners */
.sponsors-grid {
    gap: 16px;
}

.sponsor-brand-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sponsor-brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

.sponsor-logo {
    width: 200px;
    height: 55px;
    object-fit: contain;
}

.partner-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.partner-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #E2E8F0;
}

.partner-name {
    font-size: 1rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .home-hero-section {
        padding: 125px 0 40px;
    }

    .home-hero-title {
        font-size: 2.2rem;
    }

    .home-hero-desc {
        font-size: 1rem;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-actions .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }
}

/* Back to Top Button */
#topBtn {
    background-color: #0F172A;
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    z-index: 1040;
}

#topBtn:hover {
    background-color: #3B82F6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* Utilities */
.transition-transform {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.text-muted {
    color: #64748B !important; /* slate-500 */
}

/* ==========================================================================
   Modern Admin & Dashboard UI
   ========================================================================== */

/* Admin Top Header */
.admin-top-header {
    padding: 0.25rem 0.5rem;
}

.btn-admin-menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}

.btn-admin-menu-toggle:hover,
.btn-admin-menu-toggle:focus {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #0F172A;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Admin Sidebar Navigation */
.admin-sidebar-menu .list-group-admin {
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.admin-sidebar-menu .list-group-admin .list-group-item {
    border: 1px solid transparent;
    border-radius: 8px !important;
    margin-bottom: 3px;
    padding: 0.65rem 0.95rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: #475569;
    background-color: transparent;
    transition: all 0.15s ease;
}

.admin-sidebar-menu .list-group-admin .list-group-item i {
    width: 20px;
    text-align: center;
    color: #94A3B8;
    transition: color 0.15s ease;
}

.admin-sidebar-menu .list-group-admin .list-group-item:hover {
    background-color: #F1F5F9;
    color: #0F172A;
    text-decoration: none;
}

.admin-sidebar-menu .list-group-admin .list-group-item:hover i {
    color: #0F172A;
}

.admin-sidebar-menu .list-group-admin .list-group-item.active {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #0F172A !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.admin-sidebar-menu .list-group-admin .list-group-item.active i {
    color: #FFFFFF !important;
}

.sidebar-section-label {
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94A3B8;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Cards (Global & Admin) */
.card-outline-secondary, .card {
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-header {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #F1F5F9 !important;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0F172A;
    padding: 0.95rem 1.25rem;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.card-body {
    padding: 1.25rem;
}

/* Modern Tables in Admin */
.table-responsive {
    border-radius: 8px;
    border: 1px solid #F1F5F9;
}

.table {
    margin-bottom: 0;
    color: #334155;
}

.table thead th {
    background-color: #F8FAFC;
    color: #64748B;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-top: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-top: 1px solid #F1F5F9;
    font-size: 0.9rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #FAFAFA;
}

.table-hover tbody tr:hover {
    background-color: #F1F5F9;
}

/* Modern Pill Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.badge-primary {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #2563EB !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #D97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #DC2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: #0891B2 !important;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-secondary {
    background-color: #F1F5F9 !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0;
}

.badge-light {
    background-color: #F8FAFC !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0;
}

.badge-dark {
    background-color: #0F172A !important;
    color: #FFFFFF !important;
}

/* Auth Pages (Login/Signup) Input Styles */
#loginform .form-control,
#regform .form-control,
#forgotform .form-control,
#resetform .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    height: auto;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

#loginform .form-control:focus,
#regform .form-control:focus,
#forgotform .form-control:focus,
#resetform .form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#loginform .btn-login,
#regform .btn-login,
#forgotform .btn-login,
#resetform .btn-login {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

.login-heading {
    font-weight: 700;
    color: var(--heading-color);
}

/* 注册协议展示与交互样式 */
.signup-agreement {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    padding-left: 0;
}

.signup-agreement .form-check-input {
    position: static;
    margin: 0 0.5rem 0 0;
}

.signup-agreement .form-check-label {
    margin-bottom: 0;
    line-height: 1.6;
}

.signup-agreement .form-check-label a {
    font-weight: 600;
}

.signup-agreement-modal .modal-body,
.signup-agreement-modal {
    color: var(--text-color);
}

.signup-agreement-modal {
    max-height: 70vh;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.75;
}

.signup-agreement-modal h6 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.signup-agreement-modal p {
    margin-bottom: 0.75rem;
}

/* --- Admin Panel Card Improvements --- */

/* 1. Remove background and border from card header to merge with body */
.card-header {
    background-color: transparent;
    border-bottom: none;
    padding-top: 1.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--heading-color);
}

/* 2. Enhanced shadow and spacing for cards */
.card {
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08); /* Shadow-md+ */
    margin-bottom: 2rem;
    background-color: #fff;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* Shadow-lg */
}

/* 3. Nested Cards Styling */
.card .card {
    box-shadow: none !important;
    border: 1px solid #e2e8f0; /* Use a light border for definition */
    background-color: #fff; 
}

.card .card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Slight shadow on hover */
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Reset nested card padding if needed */
.card .card .card-body {
    padding: 1.25rem;
}

/* Override outline classes */
.card-outline-secondary {
    border: none !important;
}

/* Soften HR if used inside cards */
.card hr {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
}

/* 优化 timeline 页面子评论之间的过度间隙以及精致的反馈卡片展示 */
.child-comments .child-comment {
    margin-bottom: 8px !important;
    padding: 8px 12px !important;
}
.child-comments .child-comment .media-body {
    padding: 0 !important;
}
.app-feedback-card {
    border: 1px solid #eef2f6;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}
.app-feedback-card:hover {
    background-color: #f1f3f5 !important;
}

/* ==========================================================================
   App Store Header, Search & Filter Components
   ========================================================================== */
.app-store-header {
    margin-bottom: 2rem;
    padding: 0.5rem 0 1rem;
}

/* App Type Switcher (Tabs) */
.app-type-tabs {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.app-type-tab {
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-type-tab:hover {
    color: #0f172a;
    text-decoration: none;
}

.app-type-tab.active {
    background-color: #ffffff;
    color: var(--primary-color, #3b82f6);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* App Search Bar (Centered, Clean & Professional) */
.app-search-wrapper {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.app-search-form {
    width: 100%;
}

.app-search-inner {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 28px;
    padding: 4px 6px 4px 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-search-inner:focus-within {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 2px 4px rgba(15, 23, 42, 0.04);
}

.app-search-icon {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.app-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1e293b;
    padding: 6px 0;
    min-width: 0;
}

.app-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.app-search-btn {
    border: none;
    outline: none;
    background-color: var(--primary-color, #3b82f6);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 20px;
    border-radius: 22px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-search-btn:hover {
    background-color: var(--primary-hover, #2563eb);
    color: #ffffff;
}

.app-search-btn:active {
    transform: scale(0.97);
}

/* App Category Filter Tags (Centered below Search) */
.app-filter-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.app-filter-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}

.app-filter-item {
    margin: 0;
}

.app-filter-btn {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.875rem;
    color: #64748b;
    background-color: transparent;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.app-filter-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
    text-decoration: none;
}

.app-filter-btn.active {
    color: #ffffff;
    background-color: var(--primary-color, #3b82f6);
    font-weight: 500;
}

.app-filter-btn.active:hover {
    color: #ffffff;
    background-color: var(--primary-hover, #2563eb);
}

.app-filter-item .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    padding: 6px;
    min-width: 140px;
}

.app-filter-item .dropdown-item {
    border-radius: 4px;
    padding: 6px 12px;
    color: #475569;
}

.app-filter-item .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.app-filter-item .dropdown-item.active {
    background-color: #e0f2fe;
    color: #0284c7;
    font-weight: 500;
}

