/* roulang page: index */
:root {
            --bs-primary: #1D4ED8;
            --bs-primary-rgb: 29, 78, 216;
            --bs-primary-hover: #1E40AF;
            --accent-cyan: #38BDF8;
            --accent-soft: #EFF6FF;
            --bg-base: #F8FAFC;
            --bg-card: #FFFFFF;
            --text-heading: #0F172A;
            --text-body: #334155;
            --text-muted: #64748B;
            --border-color: #E2E8F0;
            --card-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05);
            --card-shadow-hover: 0 12px 32px -4px rgba(29, 78, 216, 0.08);
            --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-body);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }

        h1, h2, h3, h4, h5, h6 {
            color: var(--text-heading);
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        a {
            color: var(--bs-primary);
            text-decoration: none;
            transition: var(--transition-smooth);
        }
        a:hover {
            color: var(--bs-primary-hover);
        }

        /* 顶部导航重塑：搜索主导型 */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 1020;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
        }
        .navbar-brand-text {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--bs-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .navbar-brand-text .brand-badge {
            font-size: 0.75rem;
            background: #DBEAFE;
            color: var(--bs-primary);
            padding: 0.2rem 0.5rem;
            border-radius: 999px;
            font-weight: 600;
        }
        .nav-search-wrap {
            position: relative;
            width: 100%;
            max-width: 460px;
        }
        .nav-search-input {
            width: 100%;
            padding: 0.55rem 3rem 0.55rem 2.75rem;
            font-size: 0.9rem;
            background-color: #F1F5F9;
            border: 1px solid transparent;
            border-radius: 999px;
            transition: var(--transition-smooth);
        }
        .nav-search-input:focus {
            background-color: #FFFFFF;
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
            outline: none;
        }
        .nav-search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
        }
        .nav-search-btn {
            position: absolute;
            right: 0.35rem;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.25rem 0.8rem;
            font-size: 0.78rem;
        }

        /* 统一卡片与胶囊微标 */
        .card-custom {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            transition: var(--transition-smooth);
        }
        .card-custom:hover {
            box-shadow: var(--card-shadow-hover);
            border-color: #BFDBFE;
            transform: translateY(-2px);
        }
        .pill-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.3rem 0.75rem;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
            background: #EFF6FF;
            color: var(--bs-primary);
            border: 1px solid #DBEAFE;
        }
        .pill-number {
            display: inline-block;
            width: 24px;
            height: 24px;
            line-height: 24px;
            text-align: center;
            border-radius: 50%;
            background: #DBEAFE;
            color: var(--bs-primary);
            font-size: 0.75rem;
            font-weight: 700;
        }

        /* Hero 开发者风格代码块 */
        .hero-section {
            padding: 4.5rem 0 3.5rem;
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
            border-bottom: 1px solid var(--border-color);
        }
        .api-code-card {
            background: #0F172A;
            border-radius: 14px;
            padding: 1.5rem;
            color: #E2E8F0;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 0.85rem;
            box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35);
            border: 1px solid #1E293B;
        }
        .api-code-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #1E293B;
            padding-bottom: 0.75rem;
            margin-bottom: 1rem;
        }
        .mac-dots {
            display: flex;
            gap: 6px;
        }
        .mac-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .dot-red { background: #EF4444; }
        .dot-yellow { background: #F59E0B; }
        .dot-green { background: #10B981; }

        /* 看板指标 */
        .metric-num {
            font-size: 2.25rem;
            font-weight: 800;
            color: var(--bs-primary);
            line-height: 1.1;
        }

        /* 对比表格 */
        .comparison-table {
            background: #FFFFFF;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }
        .comparison-table th, .comparison-table td {
            padding: 1rem 1.25rem;
            vertical-align: middle;
        }

        /* 时间轴 */
        .timeline-box {
            position: relative;
            padding-left: 2rem;
        }
        .timeline-box::before {
            content: '';
            position: absolute;
            left: 7px;
            top: 6px;
            bottom: 6px;
            width: 2px;
            background: #E2E8F0;
        }
        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
        }
        .timeline-item::after {
            content: '';
            position: absolute;
            left: -2rem;
            top: 6px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #FFFFFF;
            border: 4px solid var(--bs-primary);
        }

        /* 周刊/简报内容项 */
        .digest-item {
            display: block;
            padding: 1.25rem;
            border-bottom: 1px solid var(--border-color);
            transition: var(--transition-smooth);
        }
        .digest-item:last-child {
            border-bottom: none;
        }
        .digest-item:hover {
            background-color: #F8FAFC;
        }

        /* 页脚定制 */
        .site-footer {
            background-color: #F1F5F9;
            border-top: 1px solid var(--border-color);
            padding: 4rem 0 2rem;
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .footer-title {
            color: var(--text-heading);
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }
        .footer-links {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }
        .footer-links li {
            margin-bottom: 0.6rem;
        }
        .footer-links a {
            color: var(--text-muted);
        }
        .footer-links a:hover {
            color: var(--bs-primary);
        }

/* roulang page: article */
:root {
            --bs-primary: #1D4ED8;
            --bs-primary-rgb: 29, 78, 216;
            --bs-primary-hover: #1E40AF;
            --accent-cyan: #38BDF8;
            --accent-soft: #EFF6FF;
            --bg-base: #F8FAFC;
            --bg-card: #FFFFFF;
            --text-heading: #0F172A;
            --text-body: #334155;
            --text-muted: #64748B;
            --border-color: #E2E8F0;
            --card-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05);
            --card-shadow-hover: 0 12px 32px -4px rgba(29, 78, 216, 0.08);
            --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        body {
            background-color: var(--bg-base);
            color: var(--text-body);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }
        a {
            color: var(--bs-primary);
            text-decoration: none;
            transition: var(--transition-smooth);
        }
        a:hover {
            color: var(--bs-primary-hover);
        }
        .site-header {
            position: sticky;
            top: 0;
            z-index: 1020;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
        }
        .navbar-brand-text {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--bs-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .navbar-brand-text .brand-badge {
            font-size: 0.75rem;
            background: #DBEAFE;
            color: var(--bs-primary);
            padding: 0.2rem 0.5rem;
            border-radius: 999px;
            font-weight: 600;
        }
        .nav-search-wrap {
            position: relative;
            width: 100%;
            max-width: 460px;
        }
        .nav-search-input {
            width: 100%;
            padding: 0.55rem 3rem 0.55rem 2.75rem;
            font-size: 0.9rem;
            background-color: #F1F5F9;
            border: 1px solid transparent;
            border-radius: 999px;
            transition: var(--transition-smooth);
        }
        .nav-search-input:focus {
            background-color: #FFFFFF;
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
            outline: none;
        }
        .nav-search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
        }
        .nav-search-btn {
            position: absolute;
            right: 0.35rem;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.25rem 0.8rem;
            font-size: 0.78rem;
        }
        .card-custom {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            transition: var(--transition-smooth);
        }
        .card-custom:hover {
            box-shadow: var(--card-shadow-hover);
            border-color: #BFDBFE;
        }
        .pill-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.3rem 0.75rem;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
            background: #EFF6FF;
            color: var(--bs-primary);
            border: 1px solid #DBEAFE;
        }
        .article-hero {
            padding: 3rem 0 2rem;
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
            border-bottom: 1px solid var(--border-color);
        }
        .article-lead-box {
            background: #F0F7FF;
            border-left: 4px solid var(--bs-primary);
            border-radius: 0 12px 12px 0;
            padding: 1.5rem 1.75rem;
            color: #1E3A8A;
            font-size: 1.05rem;
            line-height: 1.8;
            margin-bottom: 2.5rem;
        }
        .article-content {
            font-size: 1.06rem;
            line-height: 1.95;
            color: #334155;
        }
        .article-content h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-heading);
            margin-top: 2.5rem;
            margin-bottom: 1.25rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #E2E8F0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .article-content h2::before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 1.2rem;
            background: var(--bs-primary);
            border-radius: 2px;
        }
        .article-content h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-heading);
            margin-top: 2rem;
            margin-bottom: 1rem;
        }
        .article-content p {
            margin-bottom: 1.5rem;
        }
        .article-content ul, .article-content ol {
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }
        .article-content li {
            margin-bottom: 0.5rem;
        }
        .article-content blockquote {
            margin: 1.75rem 0;
            padding: 1rem 1.5rem;
            background: #F8FAFC;
            border-left: 3px solid var(--accent-cyan);
            color: #475569;
            font-style: italic;
        }
        .meta-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 1.25rem;
            color: var(--text-muted);
            font-size: 0.88rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px dashed var(--border-color);
        }
        .meta-strip-item {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }
        .statement-card {
            background: #F8FAFC;
            border: 1px dashed #CBD5E1;
            border-radius: 12px;
            padding: 1.5rem;
        }
        .recommend-card {
            display: block;
            padding: 1.25rem;
            border-radius: 14px;
            background: #FFFFFF;
            border: 1px solid var(--border-color);
            transition: var(--transition-smooth);
            height: 100%;
        }
        .recommend-card:hover {
            transform: translateY(-3px);
            border-color: #93C5FD;
            box-shadow: var(--card-shadow-hover);
        }
        .feedback-input {
            background: #F8FAFC;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            font-size: 0.92rem;
            transition: var(--transition-smooth);
        }
        .feedback-input:focus {
            background: #FFFFFF;
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
            outline: none;
        }
        .site-footer {
            background-color: #F1F5F9;
            border-top: 1px solid var(--border-color);
            padding: 4rem 0 2rem;
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .footer-title {
            color: var(--text-heading);
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }
        .footer-links {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }
        .footer-links li {
            margin-bottom: 0.6rem;
        }
        .footer-links a {
            color: var(--text-muted);
        }
        .footer-links a:hover {
            color: var(--bs-primary);
        }

/* roulang page: category1 */
:root {
            --bs-primary: #1D4ED8;
            --bs-primary-rgb: 29, 78, 216;
            --bs-primary-hover: #1E40AF;
            --accent-cyan: #38BDF8;
            --accent-soft: #EFF6FF;
            --bg-base: #F8FAFC;
            --bg-card: #FFFFFF;
            --text-heading: #0F172A;
            --text-body: #334155;
            --text-muted: #64748B;
            --border-color: #E2E8F0;
            --card-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05);
            --card-shadow-hover: 0 12px 32px -4px rgba(29, 78, 216, 0.08);
            --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-body);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }

        a {
            color: var(--bs-primary);
            text-decoration: none;
            transition: var(--transition-smooth);
        }
        a:hover {
            color: var(--bs-primary-hover);
        }

        /* 顶部导航重塑：搜索主导型 */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 1020;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
        }
        .navbar-brand-text {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--bs-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .navbar-brand-text .brand-badge {
            font-size: 0.75rem;
            background: #DBEAFE;
            color: var(--bs-primary);
            padding: 0.2rem 0.5rem;
            border-radius: 999px;
            font-weight: 600;
        }
        .nav-search-wrap {
            position: relative;
            width: 100%;
            max-width: 460px;
        }
        .nav-search-input {
            width: 100%;
            padding: 0.55rem 3rem 0.55rem 2.75rem;
            font-size: 0.9rem;
            background-color: #F1F5F9;
            border: 1px solid transparent;
            border-radius: 999px;
            transition: var(--transition-smooth);
        }
        .nav-search-input:focus {
            background-color: #FFFFFF;
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
            outline: none;
        }
        .nav-search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
        }
        .nav-search-btn {
            position: absolute;
            right: 0.35rem;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.25rem 0.8rem;
            font-size: 0.78rem;
        }

        /* 统一卡片与胶囊微标 */
        .card-custom {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            transition: var(--transition-smooth);
        }
        .card-custom:hover {
            box-shadow: var(--card-shadow-hover);
            border-color: #BFDBFE;
            transform: translateY(-2px);
        }

        .pill-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.3rem 0.75rem;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
            background: #EFF6FF;
            color: var(--bs-primary);
            border: 1px solid #DBEAFE;
        }

        .category-hero {
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
            border-bottom: 1px solid var(--border-color);
            padding: 3.5rem 0 2.5rem;
        }

        .filter-chip {
            padding: 0.4rem 1rem;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid var(--border-color);
            background: #FFFFFF;
            color: var(--text-body);
            transition: var(--transition-smooth);
            display: inline-block;
        }
        .filter-chip.active, .filter-chip:hover {
            background: var(--bs-primary);
            color: #FFFFFF;
            border-color: var(--bs-primary);
        }

        .media-index-card {
            border: 1px solid var(--border-color);
            border-radius: 14px;
            background: #FFFFFF;
            padding: 1.25rem;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: var(--transition-smooth);
        }
        .media-index-card:hover {
            border-color: #93C5FD;
            box-shadow: var(--card-shadow-hover);
            transform: translateY(-3px);
        }

        .featured-banner {
            background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
            color: #FFFFFF;
            border-radius: 20px;
            padding: 2.5rem;
            position: relative;
            overflow: hidden;
        }

        .tag-cloud-item {
            display: inline-block;
            background: #FFFFFF;
            border: 1px solid var(--border-color);
            padding: 0.4rem 0.9rem;
            border-radius: 8px;
            font-size: 0.85rem;
            color: var(--text-heading);
            margin: 0.25rem;
            transition: var(--transition-smooth);
        }
        .tag-cloud-item:hover {
            border-color: var(--bs-primary);
            color: var(--bs-primary);
            background: #F0F9FF;
        }

        .newsletter-strip {
            background: #EFF6FF;
            border: 1px solid #BFDBFE;
            border-radius: 16px;
            padding: 2rem;
        }

        /* 页脚定制 */
        .site-footer {
            background-color: #F1F5F9;
            border-top: 1px solid var(--border-color);
            padding: 4rem 0 2rem;
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .footer-title {
            color: var(--text-heading);
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }
        .footer-links {
            list-style: none;
            padding-left: 0;
            margin-bottom: 0;
        }
        .footer-links li {
            margin-bottom: 0.6rem;
        }
        .footer-links a {
            color: var(--text-muted);
        }
        .footer-links a:hover {
            color: var(--bs-primary);
        }

        .accordion-button:not(.collapsed) {
            background-color: #EFF6FF;
            color: var(--bs-primary);
            box-shadow: none;
        }
        .accordion-button:focus {
            box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
            border-color: #BFDBFE;
        }

/* roulang: framework shim */
/* 覆盖 Bootstrap 等对 a/btn 的全局默认，避免导航出现下划线/蓝链 */
.site-header a,.site-header a:hover,.navbar a,.navbar a:hover,.nav-links a,.nav-links a:hover,header nav a,header nav a:hover{text-decoration:none}
.site-header .btn,.navbar .btn,.nav-cta{text-decoration:none}
