/* 产品展示页专属样式 */

/* 产品介绍 */
.product-intro {
    padding-top: 80px;
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.intro-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.intro-feature {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.feature-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

/* 功能卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 软件截图 */
.screenshots-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.screenshot-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.screenshot-header {
    background: #2d2d44;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.screenshot-content {
    padding: 25px;
}

.mock-title {
    text-align: center;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.mock-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.form-input {
    background: #2d2d44;
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
}

.form-btn {
    background: linear-gradient(135deg, var(--primary-color), #42A5F5);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
}

/* 八字展示 */
.mock-bazi {
    padding: 10px 0;
}

.bazi-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.bazi-col {
    flex: 1;
    text-align: center;
    background: #2d2d44;
    border-radius: 8px;
    padding: 15px 10px;
}

.bazi-col .pillar {
    display: block;
    color: #888;
    font-size: 11px;
    margin-bottom: 8px;
}

.bazi-col .ganzhi {
    display: block;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* 五行展示 */
.mock-elements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.element-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.el-name {
    width: 24px;
    color: #888;
    font-size: 13px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #2d2d44;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
}

.bar-fill.metal { background: linear-gradient(90deg, #9e9e9e, #bdbdbd); }
.bar-fill.wood { background: linear-gradient(90deg, #4caf50, #81c784); }
.bar-fill.water { background: linear-gradient(90deg, #2196f3, #64b5f6); }
.bar-fill.fire { background: linear-gradient(90deg, #f44336, #e57373); }
.bar-fill.earth { background: linear-gradient(90deg, #ff9800, #ffb74d); }

.el-val {
    width: 20px;
    color: white;
    font-size: 13px;
    text-align: right;
}

.screenshot-label {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

/* 使用说明 */
.usage-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.usage-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #42A5F5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.step-content p {
    font-size: 13px;
    color: var(--text-gray);
}

.usage-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* 产品优势 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.advantage-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.advantage-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.advantage-item p {
    font-size: 13px;
    color: var(--text-gray);
}

/* CTA区域 */
.cta-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cta-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

/* 动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .intro-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .screenshots-wrapper {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .usage-arrow {
        display: none;
    }

    .usage-steps {
        flex-direction: column;
    }

    .usage-step {
        width: 100%;
        max-width: 350px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .intro-features {
        grid-template-columns: 1fr;
    }

    .usage-step {
        flex-direction: column;
        text-align: center;
    }

    .bazi-row {
        flex-wrap: wrap;
    }

    .bazi-col {
        flex: 1 1 45%;
    }
}
