/* 主题色 */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --accent-color: #8b5cf6;
    --secondary-color: #10b981;
    --text-main: #1f2937;
    --text-secondary: #4b5563;
    --bg-light: #ffffff;
    --bg-subtle: #f9fafb;
    --white: #ffffff;
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-color: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body.bg {
    background-color: var(--white);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-spacing {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.hero-section {
    position: relative;
    padding: 160px 0 120px;
    overflow: visible;
    background:
        radial-gradient(800px circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 80%),
        radial-gradient(600px circle at 0% 100%, rgba(16, 185, 129, 0.05), transparent 60%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
    max-width: 580px;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-logo img {
    height: 42px;
    width: auto;
}

.hero-logo h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reveal {
    opacity: 0;
    filter: none !important;
    transform: translateY(30px) scale(0.96);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    filter: none !important;
    transform: translateY(0) scale(1);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

.reveal-delay-400 {
    transition-delay: 0.4s;
}

.reveal-delay-500 {
    transition-delay: 0.5s;
}


.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
    font-weight: 400;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border-color: #e5e7eb;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: var(--text-main);
    transform: translateY(-1px);
}

.hero-visual {
    flex: 1.2;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.floating-card img {
    border-radius: 24px;
    width: 100%;
    height: auto;
    display: block;
}

.floating-card:hover {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.03);
    z-index: 30;
}

.features-section {
    background: var(--bg-subtle);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.feature-card {
    width: 100%;
    background: var(--white);
    padding: 48px 40px;
    border-radius: 32px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: 20px;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
}

.showcase-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.showcase-card {
    width: 380px;
    height: 300px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.showcase-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-card:hover .showcase-bg {
    transform: scale(1.08);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.highlight-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: 24px;
    background: var(--bg-subtle);
    transition: var(--transition);
}

.highlight-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.highlight-icon {
    height: 60px;
    margin-bottom: 20px;
}

.highlight-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.highlight-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.app-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: var(--transition);
    display: block;
    text-decoration: none;
}

/*.app-card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);*/
/*    border-color: transparent;*/
/*}*/

.app-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f1f1f1;
}

.app-content {
    padding: 16px;
    border-top: 1px solid #eee;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.app-version {
    color: var(--text-secondary);
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

.app-price {
    font-weight: 600;
    color: #ef4444;
}

.app-price.free {
    color: var(--secondary-color);
}

/* 价格方案板块 */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    width: 380px;
    max-width: 100%;
    /* 移动端适配 */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* 
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
} */

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    /* transform: scale(1.05); */
    z-index: 2;
}

/* .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
} */

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.pricing-header {
    text-align: center;
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.plan-price small {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features {
    flex: 1;
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    /* 顶部对齐，防止多行文字图标居中 */
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features li i {
    margin-right: 12px;
    font-size: 16px;
    margin-top: 4px;
    /* 微调图标位置 */
}

.pricing-features li i.yes {
    color: var(--secondary-color);
}

.pricing-features li i.no {
    color: #d1d5db;
}

.pricing-btn {
    /* width: 100%; */
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 16px;
}

/* 版本对比表格 */
.comparison-section {
    padding: 80px 0;
    background: #fff;
}

.comparison-container {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    /* 移动端横向滚动 */
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    /* 最小宽度 */
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 第一列：功能名，固定 */
.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-main);
    width: 25%;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    border-right: 1px solid #f3f4f6;
}

/* 表头区域 */
.comparison-table thead th {
    padding-top: 40px;
    padding-bottom: 30px;
    vertical-align: bottom;
    background: #fff;
}

.plan-header-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.plan-header-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    /* 默认黑色 */
    display: block;
    margin-bottom: 15px;
}

.plan-header-price.free {
    color: var(--secondary-color);
}

.plan-header-price.pro {
    color: var(--primary-color);
}

.plan-header-price.flagship {
    color: #ef4444;
}

/* 旗舰版红色 */

.plan-header-btn {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

/* 按钮样式复用 */
.btn-outline {
    border: 1px solid #e5e7eb;
    color: var(--text-secondary);
}


.btn-solid {
    background: var(--primary-color);
    color: #fff;
}

.btn-solid:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-solid-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.btn-solid-red:hover {
    filter: brightness(1.1);
    color: #fff;
}

/* 旗舰版高亮列 */
.col-highlight {
    background: rgba(239, 68, 68, 0.02);
}

/* 修复高亮列遮挡 */
.comparison-table td.col-highlight {
    position: relative;
}

/* 图标 */
.icon-yes {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
}

.icon-no {
    color: #e5e7eb;
    font-size: 16px;
}

/* 分组标题行 */
.group-row td {
    background: #f9fafb;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 15px;
    letter-spacing: 1px;
}

@media (max-width: 1200px) {
    .home-container {
        padding: 0 24px;
    }

    .section-spacing {
        padding: 80px 0;
    }

    .highlights-grid,
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 640px;
    }

    .hero-logo {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-visual {
        display: none;
    }
}
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .home-container {
        padding: 0 16px;
    }

    .section-spacing {
        padding: 60px 0;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        /* width: 100%; */
    }

    .floating-card {
        display: none;
    }

    .hero-visual {
        display: none;
    }
}
@media (max-width: 768px) {
    .comparison-container {
        margin: 0 -20px;
        /* 抵消容器 padding */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-fill-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-fill-primary:hover {
    color: #ffffff96;
}

/*查看更多插件*/
.more-plugin {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    user-select: none;
    cursor: pointer;
}

.plugin-item {
    padding: 10px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
}

.mobile-plan-overview {
    display: none;
}

/*版本比对响应式*/
@media(max-width:780px){
    .mobile-plan-overview {
        display: flex;
        gap: 35px;
        margin-bottom: 16px;
    }
    .plan-item span{
        text-align: center;
    }
    .comparison-container {
        max-width: 100%;
        margin: 0 -16px 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    .comparison-table {
        width: 100%;
        min-width: 0;
        border-collapse: collapse;
        overflow-x: clip;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: static;
        left: auto;
        width: auto;
        background: transparent;
        border-right: none;
    }

    .comparison-table tbody {
        display: block;
    }

    .comparison-table tr {
        display: block;
        width: 100%;
    }

    .comparison-table tr.group-row td {
        display: block;
        margin: 16px 0 8px;
        padding: 10px 16px;
        text-align: left;
        border-bottom: none;
    }

    .comparison-table tr:not(.group-row) {
        margin: 0 16px 12px;
        border-radius: 12px;
        border: 1px solid #eef0f4;
        background: #fff;
        overflow: hidden;
    }

    .comparison-table tr:not(.group-row) td {
        display: block;
        width: 100%;
        padding: 8px 14px;
        border-bottom: none;
        text-align: left;
        font-size: 13px;
    }

    .comparison-table tr:not(.group-row) td:first-child {
        font-weight: 600;
        padding-top: 10px;
        padding-bottom: 6px;
        border-bottom: 1px solid #f3f4f6;
    }

    .comparison-table tr:not(.group-row) td:nth-child(2),
    .comparison-table tr:not(.group-row) td:nth-child(3),
    .comparison-table tr:not(.group-row) td:nth-child(4) {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .comparison-table tr:not(.group-row) td:nth-child(2)::before {
        content: "开源免费版";
        font-size: 12px;
        color: #6b7280;
    }

    .comparison-table tr:not(.group-row) td:nth-child(3)::before {
        content: "商业授权版";
        font-size: 12px;
        color: #6b7280;
    }

    .comparison-table tr:not(.group-row) td:nth-child(4)::before {
        content: "旗舰全端版";
        font-size: 12px;
        color: #6b7280;
    }

    .comparison-table .icon-yes,
    .comparison-table .icon-no {
        font-size: 16px;
    }
}