/* Component styles (Buttons, Cards, Forms, etc.) */

.theme-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: var(--text-color);
}

/* Buttons */
.theme-btn {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    font-weight: 700;
    padding: .75rem 2rem !important;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    border: none;
}

.theme-btn:hover {
    opacity: 0.85;
    color: var(--white);
}

.contact-text {
    font-weight: 700;
}

.mail-text {
    font-size: 0.75rem;
    font-weight: 400;
}

.carousel-control-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-pill);
    background-color: rgba(0, 0, 0, 0.5);
}

/* Feature Card */
.feature-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--card-radius);
    height: 100%;
    text-align: center;
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.08);
    transition: all 0.3s ease-in-out;
}

.feature-card img {
    opacity: 0.2;
    margin-bottom: -1rem;
}

.feature-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-text {
    border-bottom: 1px dashed var(--border-light);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Value Card */
.value-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.value-card:hover {
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.15);
    transform: translateY(-5px);
}

.value-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.value-header i {
    font-size: 2rem;
    color: var(--white);
}

.value-body {
    padding: 2rem;
}

.value-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.value-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 3px;
}

/* Strength Item */
.strength-item {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--card-radius);
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    /* Ensure badge positioning context */
    overflow: hidden;
}

.strength-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--yellow-color);
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0 0 24px;
}

.strength-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(71, 50, 146, 0.1);
}

.strength-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.strength-item .strength-title {
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Plan Card */
.plan-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.08);
    position: relative;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.plan-img {
    transition: transform 0.4s ease;
}

.plan-card:hover .plan-img {
    transform: scale(1.1) rotate(2deg);
}

.plan-card.campaign {
    border: 2px solid var(--primary-color);
    z-index: 10;
}

.plan-card.campaign .plan-header h3 {
    color: var(--yellow-color);
    text-decoration: underline;
}

.plan-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.15);
}

.campaign-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--yellow-color);
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.plan-header {
    padding: 3rem 1.5rem;
    text-align: center;
    background: #f4f1ff;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.plan-card.campaign .plan-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.plan-price {
    font-size: 2rem;
    line-height: 1;
    color: var(--white);
    font-weight: 700;
}

.plan-card.campaign .campaign-price {
    font-size: 6rem;
    font-weight: 800;
}

.plan-price span {
    font-size: 1.2rem;
    margin-left: .5rem;
}

.price-line-through {
    position: relative;
    width: fit-content;
}

.price-line-through::after {
    content: '';
    position: absolute;
    top: 60%;
    left: -1rem;
    transform: translateY(-60%);
    width: calc(100% + 2rem);
    height: 2px;
    background-color: var(--yellow-color);
    z-index: 1;
}

.plan-body {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    font-size: 18px;
}

.plan-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.plan-section .theme-btn {
    padding: .75rem 3rem !important;
    animation: pulse-scale-primary 2s infinite;
}

/* Option Card */
.options-container {
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px dashed var(--border-light);
}

.option-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(175, 156, 235, 0.08);
    height: 100%;
}

.option-title {
    /* color: var(--primary-color); */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.option-list li:last-child {
    margin-bottom: 0 !important;
}

.option-name {
    margin-right: 1rem;
    text-align: left;
}

.option-price {
    white-space: nowrap;
    color: var(--primary-color);
}

/* Contact Card */
.contact-card-link {
    display: block;
    height: 100%;
    color: inherit;
    transition: transform 0.3s ease;
}

.contact-card-link:hover {
    transform: translateY(-4px);
    color: inherit;
    text-decoration: none;
}

.contact-card,
.qr-card {
    border-radius: var(--card-radius);
    min-height: 200px;
    padding: 3rem;
    color: var(--white);
    height: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Dark overlay for readability */
    z-index: 1;
}

.contact-card>* {
    position: relative;
    z-index: 2;
}

/* Work Item (Use Case) */
.work-item-link {
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.work-item-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-4px);
}

.work-item {
    overflow: hidden;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(175, 156, 235, 0.08);
    border: 1px solid var(--border-light);
    height: 100%;
}

.work-image {
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item-link:hover .work-image img {
    transform: scale(1.08);
}

.work-content {
    padding: 1rem;
    text-align: left;
    background-color: var(--white);
}

.work-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
    background: var(--primary-color-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-top: 0.75rem;
}

.work-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Animations */
@keyframes pulse-scale {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes pulse-scale-primary {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(136, 92, 242, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(136, 92, 242, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(136, 92, 242, 0);
    }
}


/* Carousel Thumbnails */
.carousel .carousel-item {
    height: 400px;
}

.opacity-hover {
    transition: opacity 0.3s ease, border-color 0.3s ease;
    opacity: 0.6;
    border-color: transparent !important;
}

.opacity-hover:hover,
.opacity-hover.active {
    opacity: 1;
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
}

/* Breadcrumbs */
.project-breadcrumbs {
    background-color: transparent;
}

.project-breadcrumbs .breadcrumb {
    font-size: 0.85rem;
    flex-wrap: nowrap;          /* 强制在一行内 */
    white-space: nowrap;        /* 文本不换行 */
    overflow: hidden;           /* 超出部分隐藏，用于配合省略号 */
}

.project-breadcrumbs .breadcrumb-item {
    display: flex;
    align-items: center;
    max-width: 100%;
}

/* 只对最后一个面包屑（当前页）做省略处理 */
.project-breadcrumbs .breadcrumb-item:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-breadcrumbs .breadcrumb-item a {
    color: var(--bs-tertiary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-breadcrumbs .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.project-breadcrumbs .breadcrumb-item+.breadcrumb-item::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f105";
    /* fa-chevron-right */
    font-size: 0.75rem;
    vertical-align: middle;
    color: var(--primary-color);
}

/* Responsive Components */
@media (max-width: 991px) {
    .btn-lg {
        font-size: 1rem;
    }

    .feature-card,
    .strength-item {
        padding: 2rem;
    }

    .contact-card {
        min-height: 200px;
    }

    .qr-card {
        height: auto;
        min-height: auto;
        max-width: 160px;
        margin: 0 auto;
    }

    .plan-header h3 {
        font-size: 1.25rem;
    }

    .plan-body {
        flex-direction: column;
        text-align: center;
    }

    .plan-img {
        margin-bottom: 1.5rem !important;
    }

    .work-image img {
        height: 150px;
        /* Smaller image on mobile */
    }

    .carousel .carousel-item {
        height: 240px;
    }
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
}

.post-nav-link:hover {
    text-decoration: none;
    color: inherit;
    background-color: var(--bg-light);
}

.post-nav-prev {
    flex-direction: row;
}

.post-nav-next {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.post-nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.post-nav-content {
    flex: 1;
    min-width: 0;
}

.post-nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-nav-next .post-nav-content {
    text-align: right;
}

.menu-plan-link {
    position: relative;
}

.menu-plan-badge {
    position: absolute;
    width: 80px;
    text-align: center;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--yellow-color);
    color: var(--secondary-color);
    font-size: 0.5rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

@media (max-width: 991px) {
    .post-nav-link {
        padding: 1rem;
        gap: 0.75rem;
    }

    .post-nav-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .post-nav-title {
        font-size: 0.9rem;
    }

    .post-nav-label {
        font-size: 0.75rem;
    }

    .menu-plan-badge {
        left: 16px;
        transform: translateX(-0%);
    }
}