/* --- 特点列表基础样式 --- */
.climbing-plan-features {
    padding: 0;
    list-style: none;
    font-size: 16px;
    flex: 1 0 auto;
}

.climbing-plan-features > li {
    padding: 6px 0;
    text-align: left;
}

.climbing-plan-features > li::before {
    font-family: Font Awesome 5 Free;
    content: "\F058";
    padding-right: 10px;
    color: #04b91c;
    font-weight: 900;
}

.climbing-plan-features > .info::before {
    font-family: Font Awesome 5 Free;
    content: "\f05a";
    padding-right: 10px;
    color: #3366ff;
    font-weight: 900;
}

/* --- Tooltip 样式 --- */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-icon {
    font-weight: bold;
    color: #3366ff;
    margin-left: 8px;
    border: 1px solid #3366ff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 18px;
    font-style: italic;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: normal;
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* --- 长期订阅优惠框样式 --- */
.long-term-deal-box {
    margin-top: 20px;
    padding: 12px;
    background-color: #f0f8ff;
    border: 1px dashed #007bff;
    border-radius: 8px;
}

.long-term-deal-box h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #007bff;
    font-weight: bold;
    text-align: center;
}

.long-term-deal-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.long-term-deal-box li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.long-term-deal-box li::before {
    content: none;
}

.long-term-deal-box li:last-child {
    border-bottom: none;
}

.deal-term {
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.deal-spacer {
    flex: 1;
    border-bottom: 1px dashed #ccc;
    margin: 0 10px;
    height: 1px;
    position: relative;
    top: 4px;
    opacity: 0.5;
}

.deal-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.unit-price {
    font-weight: bold;
    color: #555;
    font-size: 15px;
    margin-right: 8px;
    letter-spacing: -0.5px;
}

.discount-tag {
    background-color: rgb(220, 252, 231);
    color: rgb(21, 128, 61);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
}

/* --- 手机端防溢出补丁 --- */
@media (max-width: 480px) {
    /* 1. 修正气泡位置：不再居中，而是“右对齐” */
    .tooltip-container .tooltip-text {
        width: auto !important; /* 取消固定宽度 */
        min-width: 200px !important; /* 保证最小宽度 */
        max-width: 80vw !important; /* 最大不超过屏幕宽度的 80% */
        white-space: normal !important; /* 允许换行 */

        left: auto !important; /* 废除左边距定位 */
        margin-left: 0 !important; /* 废除负边距偏移 */

        right: 0 !important; /* 核心：靠右对齐！(对齐父容器右边缘) */
        transform: none !important; /* 清除任何可能的位移 */
    }

    /* 2. 修正小箭头位置：让它指着图标 */
    .tooltip-container .tooltip-text::after {
        left: auto !important; /* 废除左定位 */
        right: 15px !important; /* 箭头固定在气泡右侧 15px 处 */
        margin-left: 0 !important;
    }
}
