/* 首页样式 - 黑金风格 */

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 100px;
    position: relative;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 48px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 18px;
    color: #8b949e;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 32px;
    background: #efc49b;
    color: #000000;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #f4d4b4;
    box-shadow: 0 0 24px rgba(239, 196, 155, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 12px 32px;
    background: transparent;
    color: #efc49b;
    border: 1px solid #efc49b;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(239, 196, 155, 0.1);
    box-shadow: 0 0 20px rgba(239, 196, 155, 0.2);
}

/* 功能展示区 */
.features {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: #8b949e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* 炫彩金动态边框（hover 时启用） */
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px; /* 边框厚度 */
    background: linear-gradient(120deg,
        rgba(239, 196, 155, 0.25),
        rgba(239, 196, 155, 0.8),
        rgba(239, 196, 155, 0.25)
    );
    background-size: 200% 200%;
    /* 仅显示外圈边框 */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.feature-card:hover::before {
    opacity: 1;
    animation: flowBorder 3s ease infinite;
}

@keyframes flowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.feature-card:hover {
    box-shadow: 0 8px 32px rgba(239, 196, 155, 0.15);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(239, 196, 155, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #efc49b;
    font-size: 28px;
}

.feature-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 12px;
}

.feature-card__desc {
    font-size: 15px;
    color: #8b949e;
    line-height: 1.6;
}

/* 产品展示区 */
.products {
    padding: 80px 24px;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.product-card {
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(120deg,
        rgba(239, 196, 155, 0.25),
        rgba(239, 196, 155, 0.8),
        rgba(239, 196, 155, 0.25)
    );
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(239, 196, 155, 0.15);
}

.product-card:hover::before {
    opacity: 1;
    animation: flowBorder 3s ease infinite;
}

.product-card__badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 196, 155, 0.2);
    color: #efc49b;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 16px;
}

.product-card__title {
    font-size: 22px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 12px;
}

.product-card__desc {
    font-size: 15px;
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-card__link {
    color: #efc49b;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.product-card__link:hover {
    gap: 10px;
}

/* 统计数据区 */
.stats {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item__number {
    font-size: 48px;
    font-weight: 700;
    color: #efc49b;
    margin-bottom: 8px;
}

.stat-item__label {
    font-size: 16px;
    color: #8b949e;
}

/* FAQ 区域 */
.faq {
    padding: 80px 24px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(120deg,
        rgba(239, 196, 155, 0.25),
        rgba(239, 196, 155, 0.8),
        rgba(239, 196, 155, 0.25)
    );
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.faq-item:hover {
}

.faq-item:hover::before {
    opacity: 1;
    animation: flowBorder 3s ease infinite;
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #e6edf3;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #efc49b;
}

.faq-icon {
    font-size: 10px;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #8b949e;
    line-height: 1.7;
}

/* CTA 区域 */
.cta {
    padding: 100px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 40px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    color: #8b949e;
    margin-bottom: 40px;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 36px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 140px 16px 80px;
    }

    .hero__title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item__number {
        font-size: 36px;
    }
}
