/* ---------- 基础容器 ---------- */
.f-specs-section,
f-specifications {
    display: block;
    width: 100%;
}

.f-specs__wrapper {
    display: block;
    width: 100%;
    margin-bottom: 30px;

}
.f-specs__wrapper.title-the-top{
    display: block;
}
.f-specs__wrapper.title-the-top .f-specs__header{
    max-width: 100%;
    margin-bottom: 26px;
}
.f-specs__grid-wrapper{
    padding-bottom: 15px;
}

.f-specs__wrapper:after {
    content: "";
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    border-bottom: 1px solid rgb(var(--color-border));
}

.f-specs--collapsed .f-specs__wrapper::after {
    display: none;
}

/* ---------- 分组标题 ---------- */
.f-specs__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 0 0.75rem 0;
    border-bottom: 1px solid rgb(var(--color-border))
}

.f-specs__header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}


.f-specs__title {
    margin: 0;
}


/* ---------- 折叠按钮（移动端显示，PC 隐藏） ---------- */
.f-specs__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.2s ease;
    border-radius: 0.375rem;
    flex-shrink: 0;
}


.f-specs__toggle.active {
    transform: rotate(180deg);
}

.f-specs__grid-wrapper {
    margin-bottom: 30px;
}
/* ---------- 网格 ---------- */
.f-specs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--specs-gap-v, 0) var(--specs-gap-h, 0);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- 规格项 ---------- */
.f-specs__item {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
    border-bottom: none;
    transition: none;
    cursor: default;
    background: transparent !important;
    box-shadow: none !important;
    border-left: none !important;
}

.f-specs__label {
    font-size: var(--font-base-size) px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.15rem 0;
    padding: 0;
}

.f-specs__label::before {
    content: none;
}

.f-specs__value {
    font-size: var(--font-h5-desktop) px;
    font-weight: 600;
    color: rgb(var(--color-foreground-secondary));
    line-height: 1.5;
    margin: 0;
    padding: 0;
    white-space: pre-line;
    word-break: break-word;
}


/* ---------- Tooltip ---------- */
.f-specs__tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    margin-left: 0.25rem;
}

.f-specs__tooltip-trigger svg {
    width: 14px;
    height: 14px;
    transition: color 0.2s;
}

.f-specs__tooltip-trigger:hover svg {
}

.f-specs__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    color: rgb(var(--color-tooltip-text));
    padding: 0.3rem 0.7rem;
    border-radius: 0.375rem;
    font-size: var(--font-base-size) px;
    font-weight: 400;
    white-space: nowrap;
    max-width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    text-transform: none;
}

.f-specs__tooltip-trigger:hover .f-specs__tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ---------- 滚动进入动画 ---------- */
f-specifications[data-animation="true"] .f-specs__item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

f-specifications[data-animation="true"] .f-specs__item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .f-specs__header {
        max-width: 320px;
    }
}

/* ============================================
   ★ PC 端左右布局（≥768px）
   ============================================ */
@media (min-width: 768px) {
    .f-specs__wrapper {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .f-specs__header {
        flex: 0 0 auto;
        max-width: 404px;
        width: 100%;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .f-specs__header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        flex: unset;
    }

    .f-specs__icon {
        font-size: var(--font-h3-desktop) px;
    }


    .f-specs__grid-wrapper {
        flex: 1;
        min-width: 0;
    }

    .f-specs__toggle {
        display: none !important;
    }

    .f-specs__grid {
        grid-template-columns: repeat(var(--specs-columns-pc, 2), 1fr);
    }
}

/* ---------- 移动端微调（<=767px） ---------- */
@media (max-width: 767px) {


    .f-specs__icon {
        font-size: var(--font-h3-mobile) px;
    }

    .f-specs__label {
        font-size: var(--font-base-size) px; /* 或使用 --font-h6-mobile 但基础变量更稳 */
    }

    .f-specs__value {
        font-size: var(--font-h5-mobile) px;
    }

    .f-specs__tooltip {
        font-size: var(--font-base-size) px;
    }

    .f-specs__header {
        max-width: 100%;
    }

    .f-specs__item {
        padding: 0.15rem 0;
    }

    /* 手机默认折叠 */
    .f-specs__grid-wrapper.is-collapsed {
        display: none;

    }

}
