@charset "UTF-8";

.fortune-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    line-height: 1.9;
}

.fortune-page p,
.fortune-page li {
    font-weight: 400;
    color: #222;
}

.fortune-hero {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.fortune-hero__text {
    flex: 1;
    min-width: 300px;
}

.fortune-hero__text h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #2c3e50;
}

.fortune-hero__text p {
    font-size: 1.08rem;
    margin-bottom: 16px;
}

.fortune-hero__image {
    flex: 0 0 280px;
    text-align: center;
}

.fortune-hero__image img {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.fortune-cta {
    margin: 28px 0 10px;
    padding: 24px;
    background: #f7fbff;
    border: 2px solid #9fbce3;
    border-radius: 16px;
    text-align: center;
}

.fortune-cta p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #243b5a;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: #356ac3;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 999px;
    font-size: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.fortune-section {
    margin-top: 42px;
    padding: 28px;
    background: #fffef9;
    border: 2px solid #d8c979;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.fortune-section h2 {
    position: relative;
    margin: 0 0 20px 0;
    padding: 8px 0 10px 18px;
    font-size: 1.55rem;
    font-weight: 700;
    color: #274c77;
    border-left: 8px solid #4f7fd6;
    line-height: 1.4;
}

.fortune-section h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(to right, #4f7fd6, #d8c979);
    border-radius: 999px;
}

.fortune-section ul {
    margin: 14px 0 14px 22px;
}

.fortune-section li {
    margin-bottom: 8px;
}

.fortune-badges {
    margin-top: 18px;
}

.fortune-badge {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 8px 14px;
    background: #eef5ff;
    border: 1px solid #9fbce3;
    border-radius: 999px;
    font-size: 0.95rem;
    color: #2d4f7c;
    font-weight: 600;
}

.fortune-links {
    margin-top: 42px;
    padding: 28px;
    background: #f9fafb;
    border: 2px solid #b8c4d6;
    border-radius: 16px;
}

.fortune-links h2 {
    position: relative;
    margin: 0 0 20px 0;
    padding: 8px 0 10px 18px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #274c77;
    border-left: 8px solid #4f7fd6;
    line-height: 1.4;
}

.fortune-links h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(to right, #4f7fd6, #b8c4d6);
    border-radius: 999px;
}

.fortune-links ul {
    margin-left: 22px;
}

.fortune-links a {
    text-decoration: none;
    color: #2f5fb3;
    font-weight: 600;
}

.fortune-links a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-item {
    border: 2px solid #c7d3e6;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: #f5f9ff;
    color: #243b5a;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-question:hover {
    background: #ebf3ff;
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: bold;
    color: #356ac3;
    line-height: 1;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    background: #fff;
}

.faq-answer p {
    margin: 0;
    padding: 18px 20px 20px;
    border-top: 1px solid #d7e3f2;
}

.faq-item.open {
    border-color: #89a9d8;
    box-shadow: 0 3px 10px rgba(53, 106, 195, 0.08);
}

@media (max-width: 768px) {
    .fortune-hero__text h1 {
        font-size: 1.75rem;
    }

    .fortune-page {
        padding: 20px 14px 50px;
    }

    .fortune-section,
    .fortune-links,
    .fortune-cta {
        padding: 20px;
    }

    .fortune-section h2,
    .fortune-links h2 {
        font-size: 1.28rem;
        padding-left: 14px;
        border-left-width: 6px;
    }

    .faq-question {
        padding: 16px;
        font-size: 0.96rem;
    }

    .faq-answer p {
        padding: 16px;
    }
}