/* 首页 */
.home-hero {
    margin-bottom: 3.5rem;
    padding: 5.5rem 0 4.5rem;
    background:
        radial-gradient(circle at top right, rgba(120, 144, 156, 0.28), transparent 32%),
        linear-gradient(135deg, #314148 0%, #263238 100%);
    color: #fff;
}

.home-carousel {
    position: relative;
    padding: 0 4.5rem 3rem;
}

.home-slide {
    min-height: 32rem;
}

.home-slide-copy {
    max-width: 34rem;
}

.home-slide-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.home-slide-category {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-slide-title {
    margin-bottom: 1.25rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
}

.home-slide-description {
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.home-slide-points {
    margin-bottom: 2rem;
}

.home-slide-points li {
    position: relative;
    margin-bottom: 0.85rem;
    padding-left: 1.4rem;
    color: rgba(255, 255, 255, 0.88);
}

.home-slide-points li::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
}

.home-slide-visual {
    display: block;
    padding: 1.25rem;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 1.25rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-slide-visual:hover {
    transform: translateY(-0.4rem);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.home-slide-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background-color: #1f8f5f;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.home-slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background-color: #f2f5f6;
}

.home-slide-image img {
    max-width: 100%;
    max-height: 18rem;
    object-fit: contain;
}

.home-slide-visual-body {
    padding-top: 1.25rem;
}

.home-slide-visual-category {
    margin-bottom: 0.5rem;
    color: #6c7b84;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-slide-visual-body h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.85rem;
}

.home-slide-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.home-slide-link::after {
    content: ">";
    margin-left: 0.45rem;
}

.home-carousel-indicators {
    margin-bottom: 0;
}

.home-carousel-indicators [data-bs-target] {
    width: 0.8rem;
    height: 0.8rem;
    margin: 0 0.35rem;
    border-radius: 50%;
}

.home-carousel-control {
    width: 3.25rem;
    opacity: 1;
}

.home-carousel-control .carousel-control-prev-icon,
.home-carousel-control .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    background-size: 42% 42%;
}

.home-section-heading {
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-categories {
    margin-top: -0.5rem;
}

.category-stack {
    display: grid;
    gap: 1rem;
}

.category-row {
    padding: 1.25rem 1.4rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.category-row .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.9rem;
}

.category-copy {
    max-width: 34rem;
}

.category-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background-color: rgba(55, 71, 79, 0.08);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.category-copy h3 {
    margin-bottom: 0.55rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.category-copy p {
    margin-bottom: 0;
    color: #59656c;
    line-height: 1.65;
}

.category-sample {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem;
    background-color: #f6f8f9;
    border-radius: 0.95rem;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-sample:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.category-sample-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.8rem;
    padding: 0.55rem;
    border-radius: 0.8rem;
    background-color: #fff;
}

.category-sample-image img {
    max-width: 100%;
    max-height: 4.7rem;
    object-fit: contain;
}

.category-sample-body {
    padding-top: 0;
}

.category-sample-label {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #6c7b84;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-sample-body h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-size: 1.02rem;
    line-height: 1.35;
}

.category-sample-body p {
    margin-bottom: 0.4rem;
    color: #59656c;
    font-size: 0.92rem;
    line-height: 1.5;
}

.category-sample-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-color);
}

.home-cases {
    background-color: var(--light-color);
}

.case-card {
    display: block;
    height: 100%;
    padding: 1rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-0.4rem);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.case-image {
    overflow: hidden;
    border-radius: 0.85rem;
    background-color: #f5f7f8;
}

.case-image img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.case-body {
    padding: 0.85rem 0.2rem 0;
    text-align: center;
}

.case-body h3 {
    margin-bottom: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.friend-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    height: 100%;
    padding: 1.15rem 1.4rem;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.friend-link-card:hover {
    transform: translateY(-0.35rem);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.friend-link-card.is-placeholder {
    background-color: #f5f7f8;
    box-shadow: none;
}

.friend-link-card h3 {
    margin-bottom: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.friend-link-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    padding: 0.7rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #f4f7f8 0%, #ffffff 100%);
    box-shadow: inset 0 0 0 1px rgba(55, 71, 79, 0.08);
}

.friend-link-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .home-carousel {
        padding: 0 1rem 3rem;
    }

    .home-slide {
        min-height: auto;
    }

    .home-slide-title {
        font-size: 2.4rem;
    }

    .home-slide-image {
        min-height: 16rem;
    }

    .home-carousel-control {
        width: 2.2rem;
    }

    .home-carousel-control .carousel-control-prev-icon,
    .home-carousel-control .carousel-control-next-icon {
        width: 2.4rem;
        height: 2.4rem;
    }

    .category-row {
        padding: 1.1rem 1.15rem;
    }

    .category-copy {
        max-width: none;
    }

    .category-copy h3 {
        font-size: 1.28rem;
    }

    .category-sample {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.8rem;
    }

    .category-sample-image {
        min-height: 5.2rem;
    }

    .category-sample-image img {
        max-height: 4.2rem;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 4.5rem 0 3.8rem;
    }

    .home-carousel {
        padding: 0 0 3rem;
    }

    .home-slide-copy {
        text-align: center;
    }

    .home-slide-title {
        font-size: 2rem;
    }

    .home-slide-description {
        font-size: 1rem;
    }

    .home-slide-points {
        text-align: left;
    }

    .home-slide-visual-body h2 {
        font-size: 1.55rem;
    }

    .category-row {
        padding: 1rem;
    }

    .home-categories {
        margin-top: 0;
    }

    .category-stack {
        gap: 0.85rem;
    }

    .category-sample {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 0.7rem;
        padding: 0.7rem;
    }

    .category-index {
        margin-bottom: 0.55rem;
    }

    .category-copy h3 {
        font-size: 1.18rem;
    }

    .category-copy p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .category-sample-label {
        margin-bottom: 0.25rem;
    }

    .category-sample-body h4 {
        font-size: 0.96rem;
    }

    .category-sample-body p {
        margin-bottom: 0.3rem;
        font-size: 0.88rem;
    }

    .category-sample-link {
        font-size: 0.88rem;
    }

    .case-image img {
        height: 12rem;
    }
}
