  /* 容器样式 */
    .product-specs-container {
        margin: 20px 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    .spec-title {
        font-size: 14px;
        color: #666;
        margin-bottom: 12px;
    }

    /* 列表布局 (Flexbox) */
    .spec-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px; /* 选项之间的间距 */
    }

    /* 单个选项卡片 (默认状态) */
    .spec-item {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 160px; /* 固定宽度，根据需求调整 */
        padding: 15px 10px;
        border: 1px solid #e0e0e0; /* 浅灰边框 */
        border-radius: 6px;
        background: #fff;
        color: #333;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
        box-sizing: border-box;
    }

    /* 鼠标悬停 */
    .spec-item:hover {
        border-color: #ccc;
    }

    /* 规格名称样式 */
    .spec-name {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 5px;
        text-align: center;
    }

    /* 价格和库存信息样式 */
    .spec-info {
        font-size: 12px;
        color: #999;
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.4;
    }
    .spec-info .price {
        color: #e4393c; /* 价格红色 */
        font-weight: bold;
        font-size: 14px;
    }

    /* --- 核心：选中状态 (Active) --- */
    .spec-item.active {
        border: 2px solid #8B4513; /* 胡桃木色/深棕色边框 */
        color: #8B4513;
        background-color: #fffdf9; /* 极淡的暖色背景 */
        z-index: 1;
    }
    
    .spec-item.active .spec-name {
        color: #8B4513;
        font-weight: bold;
    }

    /* 右上角的对勾图标 (CSS绘制) */
    .spec-item.active::after {
        content: '✓';
        position: absolute;
        top: -8px;
        right: -8px;
        width: 18px;
        height: 18px;
        background-color: #D2691E; /* 橙色背景 */
        color: #fff;
        font-size: 12px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border: 1px solid #fff;
    }