/* 软件工作室 - 前台自定义样式 */

/* 玻璃拟态效果 */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== 浅色系 Hero — 白底 + 柔和彩色光晕 ===== */

.gradient-hero {
    background:
        radial-gradient(ellipse 70% 60% at 15% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 70% at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 95%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.gradient-hero-warm {
    background:
        radial-gradient(ellipse 65% 60% at 20% 25%, rgba(139, 92, 246, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 55% 55% at 75% 45%, rgba(244, 114, 182, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 40% 90%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.gradient-hero-tech {
    background:
        radial-gradient(ellipse 70% 60% at 25% 20%, rgba(99, 102, 241, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 55% 55% at 80% 45%, rgba(168, 85, 247, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 45% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.gradient-hero-cooperation {
    background:
        radial-gradient(ellipse 65% 60% at 15% 25%, rgba(20, 184, 166, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 55% 60% at 80% 40%, rgba(59, 130, 246, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

/* 更新日志折叠面板 */
.changelog-details summary {
    list-style: none;
}
.changelog-details summary::-webkit-details-marker {
    display: none;
}
.changelog-details[open] .changelog-chevron {
    transform: rotate(90deg);
}

.gradient-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

@keyframes studio-spin {
    to { transform: rotate(360deg); }
}
.studio-icon-spin {
    animation: studio-spin 1s linear infinite;
}

/* 文章详情 API 注入的 HTML */
.article-html-content {
    color: #334155;
    line-height: 1.75;
    font-size: 0.9375rem;
}
.article-html-content h1 { font-size: 1.5rem; font-weight: 800; margin: 1.5rem 0 0.75rem; color: #0f172a; }
.article-html-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0 0.5rem; color: #0f172a; }
.article-html-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.article-html-content p { margin-bottom: 1rem; }
.article-html-content ul, .article-html-content ol { margin: 0.5rem 0 1rem 1.25rem; }
.article-html-content a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.article-html-content img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1rem 0; }
.article-html-content pre, .article-html-content code { font-size: 0.875rem; }
.article-html-content pre { overflow-x: auto; padding: 1rem; border-radius: 0.75rem; background: #f1f5f9; margin: 1rem 0; }

/* 列表卡片摘要截断（本地 Tailwind 未必含 line-clamp） */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片悬浮效果 */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 隐藏滚动条 */
html { overflow-y: auto; }
html::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }


/* 可滚动区域隐藏滚动条（如横向表格） */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 定价表推荐列高亮 */
.pricing-col-recommended {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.85), 0 25px 50px -12px rgba(30, 64, 175, 0.35);
    border-radius: 1rem;
    position: relative;
    z-index: 1;
}

/* 图标内联 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* 字体栈 */
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none;
}
