/* 一门建站页面样式 */

/* 顶部轮播 */

.ymy-jz-hero {
    position: relative;
    overflow: hidden;
}

.ymy-jz-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.ymy-jz-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.ymy-jz-slide.ymy-is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.ymy-jz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.04) 100%);
}

.ymy-jz-content {
    max-width: 550px;
    margin: 0 0 0 -200px;
    padding: 0;
    text-align: left;
    color: #fff;
}

.ymy-jz-title {
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.ymy-jz-desc {
    max-width: 400px;
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.ymy-jz-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 30px;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
}

.ymy-jz-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.ymy-jz-list li::before {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.ymy-jz-actions {
    margin-top: 4px;
}

.ymy-jz-actions .ymy-btn {
    padding: 10px 20px;
    font-size: 18px;
}

/* 进入动画：当前 banner 激活时，标题 / 列表(描述) / 按钮依次淡入上移 */
.ymy-jz-content.ymy-jz-animate .ymy-jz-title {
    animation: ymyJzFadeUp 0.6s ease 0.05s both;
}

.ymy-jz-content.ymy-jz-animate .ymy-jz-list,
.ymy-jz-content.ymy-jz-animate .ymy-jz-desc {
    animation: ymyJzFadeUp 0.6s ease 0.2s both;
}

.ymy-jz-content.ymy-jz-animate .ymy-jz-actions {
    animation: ymyJzFadeUp 0.6s ease 0.35s both;
}

@keyframes ymyJzFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ymy-jz-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.ymy-jz-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.ymy-jz-prev { left: 20px; }
.ymy-jz-next { right: 20px; }

.ymy-jz-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ymy-jz-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.2s;
}

.ymy-jz-dot.ymy-is-active {
    width: 26px;
    border-radius: 5px;
    background: #fff;
}

/* 介绍模块 */
.ymy-jz-intro {
    background: #f4f4f4;
    padding: 40px 0;
}

.ymy-jz-intro-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 2px 10px rgba(12, 13, 30, 0.05);
}

.ymy-jz-intro-item {
    flex: 1 1 25%;
    min-width: 220px;
    box-sizing: border-box;
    position: relative;
    padding: 28px 24px 76px;
    border-right: 1px solid #f4f4f4;
}

.ymy-jz-intro-item:last-child { border-right: none; }

.ymy-jz-intro-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 14px;
}

.ymy-jz-intro-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ymy-jz-intro-links li { margin: 0; }

.ymy-jz-intro-links li a {
    display: inline-block;
    position: relative;
    padding-left: 16px;
    color: #718096;
    font-size: 14px;
    line-height: 2;
    text-decoration: none;
    transition: color 0.2s;
}

.ymy-jz-intro-links li a::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.ymy-jz-intro-links li a:hover { color: var(--ymy-accent); }

.ymy-jz-intro-more {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: inline-block;
    min-width: 60px;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    color: #fff;
    background: var(--ymy-accent);
    text-decoration: none;
    transition: background 0.2s;
}

.ymy-jz-intro-more:hover {
    color: #fff;
    background: var(--ymy-accent-hover);
}

/* 特色功能 */
.ymy-jz-features {
    background: #fff;
    padding: 64px 0;
}

.ymy-jz-features-title {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

.ymy-jz-features-sub {
    margin: 0 auto 8px;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.7;
    color: #718096;
    text-align: center;
}

.ymy-jz-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.ymy-jz-feature-card {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(12, 13, 30, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ymy-jz-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(12, 13, 30, 0.08);
    border-color: var(--ymy-accent-light);
}

.ymy-jz-feature-title {
    position: relative;
    margin: 0 0 14px;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.ymy-jz-feature-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--ymy-accent);
}

.ymy-jz-feature-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
}

.ymy-jz-feature-tags li {
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--ymy-accent-light);
    color: var(--ymy-accent);
    font-size: 12px;
    line-height: 1.8;
}

.ymy-jz-feature-desc {
    flex: 1 1 auto;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #718096;
}

.ymy-jz-feature-card .ymy-btn {
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 14px;
}

/* 案例展示 */
.ymy-jz-cases {
    background: #f6f7fb;
    padding: 64px 0;
}

.ymy-jz-cases-title {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

.ymy-jz-cases-subtitle {
    margin: 0 0 36px;
    font-size: 15px;
    line-height: 1.6;
    color: #718096;
    text-align: center;
}

.ymy-jz-cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.ymy-jz-case-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 40px) / 3);
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(12, 13, 30, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ymy-jz-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(12, 13, 30, 0.08);
}

.ymy-jz-case-media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef0f4;
}

.ymy-jz-case-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ymy-jz-case-body {
    padding: 16px;
}

.ymy-jz-case-name {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

.ymy-jz-case-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.ymy-jz-case-tags li {
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--ymy-accent-light);
    color: var(--ymy-accent);
    font-size: 12px;
    line-height: 1.8;
}

/* 响应式 */

@media (max-width: 1024px) {
    .ymy-jz-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ymy-jz-case-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 768px) {
    .ymy-jz-slider { height: 460px; }
    .ymy-jz-content { margin-left: 0; }
    .ymy-jz-title { font-size: 28px; }
    .ymy-jz-desc { font-size: 15px; }
    .ymy-jz-list { grid-template-columns: 1fr; gap: 10px; max-width: 340px; }
    .ymy-jz-list li { font-size: 14px; }
    .ymy-jz-arrow { display: none; }
    .ymy-jz-intro { padding: 20px 0; }
    .ymy-jz-intro-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid #f4f4f4; padding-bottom: 64px; }
    .ymy-jz-intro-item:last-child { border-bottom: none; }
    .ymy-jz-features { padding: 40px 0; }
    .ymy-jz-features-title { font-size: 26px; }
    .ymy-jz-features-grid { grid-template-columns: 1fr; }
    .ymy-jz-cases { padding: 40px 0; }
    .ymy-jz-cases-title { font-size: 26px; }
    .ymy-jz-case-card { flex-basis: 100%; }
}

/* 暗色模式 */

body.ymy-dark-mode .ymy-jz-intro {
    background: var(--ymy-bg-page);
}

body.ymy-dark-mode .ymy-jz-intro-list {
    background: var(--ymy-bg-card);
}

body.ymy-dark-mode .ymy-jz-intro-item {
    border-right-color: var(--ymy-border-light);
}

body.ymy-dark-mode .ymy-jz-intro-title {
    color: var(--ymy-text-primary);
}

body.ymy-dark-mode .ymy-jz-intro-links li a {
    color: var(--ymy-text-secondary);
}

body.ymy-dark-mode .ymy-jz-features {
    background: var(--ymy-bg-page);
}

body.ymy-dark-mode .ymy-jz-features-title {
    color: var(--ymy-text-primary);
}

body.ymy-dark-mode .ymy-jz-features-sub {
    color: var(--ymy-text-secondary);
}

body.ymy-dark-mode .ymy-jz-feature-card {
    border-color: var(--ymy-border-color);
    background: var(--ymy-bg-card);
}

body.ymy-dark-mode .ymy-jz-feature-title {
    color: var(--ymy-text-primary);
}

body.ymy-dark-mode .ymy-jz-feature-desc {
    color: var(--ymy-text-secondary);
}

body.ymy-dark-mode .ymy-jz-cases {
    background: var(--ymy-bg-page);
}

body.ymy-dark-mode .ymy-jz-cases-title {
    color: var(--ymy-text-primary);
}

body.ymy-dark-mode .ymy-jz-cases-subtitle {
    color: var(--ymy-text-secondary);
}

body.ymy-dark-mode .ymy-jz-case-card {
    border-color: var(--ymy-border-color);
    background: var(--ymy-bg-card);
}

body.ymy-dark-mode .ymy-jz-case-media {
    background: var(--ymy-bg-elevated);
}

body.ymy-dark-mode .ymy-jz-case-name {
    color: var(--ymy-text-primary);
}

@media (max-width: 768px) {
    body.ymy-dark-mode .ymy-jz-intro-item {
        border-bottom-color: var(--ymy-border-light);
    }
}
