/* ========================================
   主题介绍页样式 - 蓝色简洁风格
   ======================================== */

/* 仅在本页启用透明 Header：取消透明 Header 对内容区的默认补偿（避免首屏下移） */
body.xun-page-theme-intro.has-transparent-header .xun-content {
    padding-top: 0;
}

.theme-intro-page {
    min-height: 100vh;
    background: var(--color-bg-layout, #f8fafc);
}

/* Hero 区域 */
.theme-intro-hero {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(180deg, #1e3a5f 0%, #2563eb 100%);
    overflow: hidden;
}

.theme-intro-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.theme-intro-hero-decor {
    display: none;
}

.theme-intro-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.theme-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #22c55e;
    border-radius: 20px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.theme-intro-badge svg {
    width: 14px;
    height: 14px;
}

.theme-intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.3;
}

.theme-intro-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.theme-intro-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.theme-intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.theme-intro-btn svg {
    width: 16px;
    height: 16px;
}

.theme-intro-btn--primary {
    background: #fff;
    color: #2563eb;
}

.theme-intro-btn--primary:hover {
    opacity: 0.9;
    color: #2563eb;
}

.theme-intro-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.theme-intro-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.theme-intro-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.theme-intro-stat {
    text-align: center;
}

.theme-intro-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.theme-intro-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
}

/* 主题卡片区域 */
.theme-intro-card-section {
    max-width: 960px;
    margin: -40px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
}

.theme-intro-card {
    background: var(--color-bg-container, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.theme-intro-card-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.theme-intro-card-preview {
    position: relative;
    background: #000;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.theme-intro-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #22c55e;
    border-radius: 4px;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
}

.theme-intro-preview-badge svg {
    width: 12px;
    height: 12px;
}

.theme-intro-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.theme-intro-preview-placeholder {
    text-align: center;
    color: #fff;
}

.theme-intro-preview-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
}

.theme-intro-preview-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.theme-intro-preview-tagline {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.theme-intro-card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.theme-intro-card-header {
    margin-bottom: 16px;
}

.theme-intro-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text, #1f2937);
    margin: 0 0 8px;
}

.theme-intro-card-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
    margin: 0;
}

.theme-intro-price-box {
    background: var(--color-bg-layout, #f8fafc);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.theme-intro-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.theme-intro-price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc2626;
}

.theme-intro-price-current .currency {
    font-size: 1rem;
}

.theme-intro-price-original {
    font-size: 0.9375rem;
    color: var(--color-text-tertiary, #9ca3af);
    text-decoration: line-through;
}

.theme-intro-price-tip {
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #64748b);
    margin: 0;
}

.theme-intro-price-tip strong {
    color: #2563eb;
}

.theme-intro-license-tip {
    font-size: 0.75rem;
    color: #dc2626;
    margin: 8px 0 0;
    line-height: 1.5;
}

.theme-intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.theme-intro-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #64748b);
}

.theme-intro-feature svg {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
}

.theme-intro-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.theme-intro-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.theme-intro-action-btn svg {
    width: 16px;
    height: 16px;
}

.theme-intro-action-btn--primary {
    background: #2563eb;
    color: #fff;
}

.theme-intro-action-btn--primary:hover {
    opacity: 0.9;
    color: #fff;
}

.theme-intro-action-btn--success {
    background: #22c55e;
    color: #fff;
}

.theme-intro-action-btn--success:hover {
    opacity: 0.9;
    color: #fff;
}

.theme-intro-action-btn--outline {
    background: transparent;
    color: var(--color-text-secondary, #64748b);
    border: 1px solid var(--color-border, #e2e8f0);
}

.theme-intro-action-btn--outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* 主题信息条 */
.theme-intro-meta-bar {
    max-width: 960px;
    margin: -20px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
}

.theme-intro-meta-bar-inner {
    background: var(--color-bg-container, #fff);
    border-radius: 10px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.theme-intro-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
}

.theme-intro-meta-icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-intro-meta-icon svg {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

.theme-intro-meta-text {
    display: flex;
    flex-direction: column;
}

.theme-intro-meta-label {
    color: var(--color-text-tertiary, #9ca3af);
    font-size: 0.6875rem;
}

.theme-intro-meta-value {
    color: var(--color-text, #1f2937);
    font-weight: 600;
    font-size: 0.875rem;
}

/* 功能介绍区域 */
.theme-intro-highlights {
    padding: 60px 0;
    background: var(--color-bg-layout, #f8fafc);
}

.theme-intro-highlights-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.theme-intro-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.theme-intro-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text, #1f2937);
    margin: 0 0 10px;
}

.theme-intro-section-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, #64748b);
    margin: 0;
}

.theme-intro-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.theme-intro-highlight-card {
    background: var(--color-bg-container, #fff);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.theme-intro-highlight-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-intro-highlight-icon svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.theme-intro-highlight-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text, #1f2937);
    margin: 0 0 6px;
}

.theme-intro-highlight-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.5;
    margin: 0;
}

/* FAQ 区域 */
.theme-intro-faq {
    padding: 60px 0;
    background: var(--color-bg-container, #fff);
}

.theme-intro-faq-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.theme-intro-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-intro-faq-item {
    background: var(--color-bg-layout, #f8fafc);
    border-radius: 10px;
    overflow: hidden;
}

.theme-intro-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text, #1f2937);
}

.theme-intro-faq-question:hover {
    background: rgba(37, 99, 235, 0.04);
}

.theme-intro-faq-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-tertiary, #9ca3af);
    transition: transform 0.2s;
}

.theme-intro-faq-item.active .theme-intro-faq-icon {
    transform: rotate(180deg);
}

.theme-intro-faq-answer {
    overflow: hidden;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.7;
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease-out,
                padding-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-intro-faq-item.active .theme-intro-faq-answer {
    opacity: 1;
    padding-bottom: 16px;
}

/* 购买须知区域 */
.theme-intro-notice {
    padding: 60px 0;
    background: var(--color-bg-layout, #f8fafc);
}

.theme-intro-notice-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.theme-intro-notice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.theme-intro-notice-card {
    background: var(--color-bg-container, #fff);
    border-radius: 10px;
    padding: 20px;
}

.theme-intro-notice-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.theme-intro-notice-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-intro-notice-icon svg {
    width: 18px;
    height: 18px;
}

.theme-intro-notice-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.theme-intro-notice-icon--green {
    background: #f0fdf4;
    color: #22c55e;
}

.theme-intro-notice-icon--orange {
    background: #fff7ed;
    color: #f97316;
}

.theme-intro-notice-icon--purple {
    background: #faf5ff;
    color: #a855f7;
}

.theme-intro-notice-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text, #1f2937);
    margin: 0;
}

.theme-intro-notice-desc {
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* 授权说明区域 */
.theme-intro-license {
    padding: 60px 0;
    background: var(--color-bg-container, #fff);
}

.theme-intro-license-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.theme-intro-license-content {
    background: var(--color-bg-layout, #f8fafc);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.theme-intro-license-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.theme-intro-license-warning-icon {
    width: 24px;
    height: 24px;
    color: #d97706;
    flex-shrink: 0;
}

.theme-intro-license-warning-text {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.6;
}

.theme-intro-license-warning-text strong {
    color: #78350f;
}

.theme-intro-license-examples {
    margin-top: 20px;
}

.theme-intro-license-examples-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text, #1f2937);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-intro-license-examples-title svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.theme-intro-license-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-intro-license-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-bg-container, #fff);
    border-radius: 8px;
    font-size: 0.875rem;
}

.theme-intro-license-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.theme-intro-license-item--valid .theme-intro-license-item-icon {
    color: #22c55e;
}

.theme-intro-license-item--invalid .theme-intro-license-item-icon {
    color: #ef4444;
}

.theme-intro-license-item-domain {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: var(--color-text, #1f2937);
}

.theme-intro-license-item-note {
    color: var(--color-text-tertiary, #9ca3af);
    font-size: 0.8125rem;
}

/* 空状态 */
.theme-intro-empty {
    text-align: center;
    padding: 80px 20px;
}

.theme-intro-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-intro-empty-icon svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.theme-intro-empty h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
}

.theme-intro-empty p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .theme-intro-highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .theme-intro-hero {
        padding: 80px 0 50px;
    }

    .theme-intro-title {
        font-size: 1.75rem;
    }

    .theme-intro-subtitle {
        font-size: 0.9375rem;
    }

    .theme-intro-buttons {
        flex-direction: column;
        align-items: center;
    }

    .theme-intro-btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }

    .theme-intro-stats {
        gap: 24px;
    }

    .theme-intro-stat-value {
        font-size: 1.5rem;
    }

    .theme-intro-card-section {
        margin-top: -30px;
        padding-bottom: 40px;
    }

    .theme-intro-card-inner {
        grid-template-columns: 1fr;
    }

    .theme-intro-card-preview {
        min-height: 200px;
    }

    .theme-intro-card-info {
        padding: 20px;
    }

    .theme-intro-features {
        grid-template-columns: 1fr;
    }

    .theme-intro-card-actions {
        flex-direction: column;
    }

    .theme-intro-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .theme-intro-highlights,
    .theme-intro-faq,
    .theme-intro-notice {
        padding: 40px 0;
    }

    .theme-intro-meta-bar-inner {
        justify-content: center;
    }

    .theme-intro-notice-grid {
        grid-template-columns: 1fr;
    }

    .theme-intro-section-title {
        font-size: 1.25rem;
    }
}

/* 暗色模式 */
.dark .theme-intro-hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
}

.dark .theme-intro-card {
    background: var(--color-bg-container, #1e293b);
}

.dark .theme-intro-price-box {
    background: var(--color-bg-layout, #0f172a);
}

.dark .theme-intro-highlight-card {
    background: var(--color-bg-container, #1e293b);
}

.dark .theme-intro-highlight-icon {
    background: rgba(37, 99, 235, 0.15);
}

.dark .theme-intro-faq-item {
    background: var(--color-bg-layout, #0f172a);
}

.dark .theme-intro-notice-card {
    background: var(--color-bg-container, #1e293b);
}

.dark .theme-intro-meta-bar-inner {
    background: var(--color-bg-container, #1e293b);
}

.dark .theme-intro-meta-icon {
    background: rgba(37, 99, 235, 0.15);
}

.dark .theme-intro-license-content {
    background: var(--color-bg-layout, #0f172a);
}

.dark .theme-intro-license-warning {
    background: rgba(217, 119, 6, 0.15);
}

.dark .theme-intro-license-warning-text {
    color: #fbbf24;
}

.dark .theme-intro-license-warning-text strong {
    color: #fcd34d;
}

.dark .theme-intro-license-item {
    background: var(--color-bg-container, #1e293b);
}

.dark .theme-intro-license-examples-title svg {
    color: #60a5fa;
}
